/* =========================================================================
   PineSucceed Technologies — HTML / CSS / Bootstrap version
   Design tokens: edit these to re-theme the whole site.
   ========================================================================= */
:root {
  --background: #fafafa;
  --foreground: #1f1f1f;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --muted: #5f5f5f;
  --line: #e7e7e7;
  --line-strong: #d6d6d6;
  --accent: #003466;
  --accent-strong: #002347;
  --accent-soft: #e6edf4;
  --device: #1f1f1f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans:
    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--foreground);
  --bs-body-bg: var(--background);
  --bs-border-color: var(--line);
  --bs-link-color: inherit;
  --bs-link-hover-color: inherit;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  /* Page fade-in on every load */
  animation: page-in 0.35s var(--ease) both;
}
main {
  flex: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 375px) {
  .wrap {
    padding-inline: 1.25rem;
  }
}
@media (min-width: 640px) {
  .wrap {
    padding-inline: 2rem;
  }
}
@media (min-width: 1024px) {
  .wrap {
    padding-inline: 2.5rem;
  }
}

.section {
  padding-block: 4rem;
}
@media (min-width: 640px) {
  .section {
    padding-block: 6rem;
  }
}
@media (min-width: 1024px) {
  .section {
    padding-block: 7rem;
  }
}
.section-lg {
  padding-block: 4rem;
}
@media (min-width: 640px) {
  .section-lg {
    padding-block: 6rem;
  }
}
@media (min-width: 1024px) {
  .section-lg {
    padding-block: 8rem;
  }
}
.border-top-line {
  border-top: 1px solid var(--line);
}
.bg-surface {
  background: var(--surface);
}
.bg-surface-2 {
  background: var(--surface-2);
}

/* ---------- Typography ---------- */
.text-muted-c {
  color: var(--muted);
}
.text-accent {
  color: var(--accent);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono {
  font-family: var(--font-mono);
}
.balance {
  text-wrap: balance;
}
.pretty {
  text-wrap: pretty;
}
.display {
  font-size: 2.375rem;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
@media (min-width: 375px) {
  .display {
    font-size: 2.625rem;
  }
}
@media (min-width: 414px) {
  .display {
    font-size: 3rem;
  }
}
@media (min-width: 640px) {
  .display {
    font-size: 3.75rem;
  }
}
@media (min-width: 1024px) {
  .display {
    font-size: 4.5rem;
  }
}
@media (min-width: 1280px) {
  .display {
    font-size: 5.5rem;
  }
}
.display-sm {
  font-size: 2.5rem;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
@media (min-width: 414px) {
  .display-sm {
    font-size: 3rem;
  }
}
@media (min-width: 640px) {
  .display-sm {
    font-size: 3.75rem;
  }
}
@media (min-width: 1024px) {
  .display-sm {
    font-size: 4.5rem;
  }
}
.h-section {
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .h-section {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .h-section {
    font-size: 3rem;
  }
}
.lead-c {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .lead-c {
    font-size: 1.125rem;
  }
}
.lead-xl {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .lead-xl {
    font-size: 1.125rem;
  }
}
@media (min-width: 1024px) {
  .lead-xl {
    font-size: 1.25rem;
  }
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .section-head {
    margin-bottom: 3.5rem;
  }
}
@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.section-head > div {
  max-width: 42rem;
}
.section-head .eyebrow {
  margin-bottom: 0.75rem;
}
.section-head .lead-c {
  margin-top: 1rem;
}

/* ---------- Buttons ---------- */
.btn-c {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    opacity 0.2s,
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.btn-c:active {
  transform: scale(0.98);
}
.btn-c.btn-lg-c {
  height: 3rem;
  padding-inline: 1.5rem;
  font-size: 0.9375rem;
}
.btn-primary-c {
  background: var(--accent);
  color: #fff;
}
.btn-primary-c:hover {
  background: var(--accent-strong);
  color: #fff;
}
.btn-secondary-c {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--line-strong);
}
.btn-secondary-c:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-c .bi {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s;
}
.btn-c:hover .arrow-ur {
  transform: translate(2px, -2px);
}
.btn-c:hover .arrow-r {
  transform: translateX(2px);
}
.btn-c:hover .arrow-d {
  transform: translateY(2px);
}
.btn-c:hover .arrow-l {
  transform: translateX(-2px);
}
.btn-c .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ---------- Badge ---------- */
.badge-c {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(31 31 31 / 0.8);
}
.badge-c.badge-lg {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Scroll reveal (replaces Framer Motion <Reveal>) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--y, 24px));
  /* border-color keeps card hover effects working on revealed elements */
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    border-color 0.2s;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance: staggered fade-up */
.js .hero-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
.js .hero-stats {
  opacity: 0;
  animation: fade-in 0.8s ease forwards 0.6s;
}
@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ---------- Navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.site-header.elevated {
  border-color: var(--line);
  background: rgb(250 250 250 / 0.8);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
@media (min-width: 1024px) {
  .site-header .bar {
    height: 4.5rem;
  }
}
.logo img {
  height: 2.25rem;
  width: auto;
}
@media (min-width: 1024px) {
  .logo img {
    height: 2.5rem;
  }
}
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}
.nav-links a {
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--foreground);
}
@media (min-width: 1024px) {
  .nav-links a {
    padding-inline: 1rem;
  }
}
.nav-cta {
  display: none;
}
@media (min-width: 768px) {
  .nav-cta {
    display: block;
  }
}
.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.25rem;
}
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu: grows to full height, links fade up one by one */
.mobile-menu {
  height: 0;
  opacity: 0;
  overflow-y: auto;
  background: var(--background);
  border-top: 1px solid transparent;
  transition:
    height 0.3s var(--ease),
    opacity 0.3s var(--ease);
  visibility: hidden;
}
.mobile-menu.open {
  height: calc(100dvh - 4rem);
  opacity: 1;
  border-color: var(--line);
  visibility: visible;
}
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}
.mobile-menu .inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding-block: 2rem;
}
.mobile-menu li {
  opacity: 0;
  transform: translateY(12px);
}
.mobile-menu.open li {
  animation: fade-up 0.3s ease forwards;
  animation-delay: calc(0.05s + var(--i, 0) * 0.04s);
}
.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.mobile-menu li a .bi {
  font-size: 1.25rem;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  position: fixed;
  z-index: 60;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 1rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 7rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) {
  .hero {
    padding-top: 9rem;
    padding-bottom: 5rem;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding-top: 11rem;
    padding-bottom: 6rem;
  }
}
.hero .eyebrow {
  color: var(--accent);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.ping {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}
.ping::before,
.ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent);
}
.ping::before {
  opacity: 0.6;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
.us-flag {
  height: 0.875rem;
  width: auto;
  flex-shrink: 0;
}
.us-flag.sm {
  height: 0.75rem;
}
.stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
@media (min-width: 640px) {
  .stats {
    margin-top: 6rem;
  }
}
@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
}
.stats dt {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.stats dd {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .stats dd {
    font-size: 2.25rem;
  }
}

/* ---------- Cards (services, results, tech) ---------- */
.card-c {
  height: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  transition:
    border-color 0.2s,
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.card-c:hover {
  border-color: var(--line-strong);
}
@media (min-width: 640px) {
  .card-c {
    padding: 2rem;
  }
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
}
.card-c h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card-c p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .card-c p {
    font-size: 1rem;
  }
}

/* ---------- Why us ---------- */
.reason .bi {
  font-size: 1.5rem;
  color: var(--accent);
}
.reason h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.reason p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}
.tz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--line);
}
@media (min-width: 1024px) {
  .tz-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tz-grid li {
  background: var(--surface);
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .tz-grid li {
    padding: 1.5rem;
  }
}
.tz-grid .time {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
  .tz-grid .time {
    font-size: 1.875rem;
  }
}

/* ---------- Project card ---------- */
.project-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    border-color 0.5s ease-out,
    box-shadow 0.5s ease-out,
    translate 0.5s ease-out;
}
.project-card:hover {
  translate: 0 -4px;
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.25);
}
.media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease);
}
.project-card .media {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}
.project-card .media img {
  object-position: top center;
}
.project-card:hover .media img,
.next-card:hover .media img {
  transform: scale(1.035);
}
.project-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .project-card .body {
    padding: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .project-card .body {
    padding: 2rem;
  }
}
.project-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.project-card .meta span:first-child {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-card h3 {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .project-card h3 {
    font-size: 1.75rem;
  }
}
.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project-card .desc {
  margin-top: 0.75rem;
  max-width: 36rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.project-card .chips {
  margin-top: 1.25rem;
}
.project-card .actions {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .project-grid {
    gap: 2rem;
  }
}
@media (min-width: 1536px) {
  .project-grid {
    gap: 2.5rem;
  }
}

/* Page top when the filter tabs sit right under the fixed header */
.work-top {
  padding-top: 6rem;
}
@media (min-width: 640px) {
  .work-top {
    padding-top: 7rem;
  }
}
/* Category tabs: one segmented pill, centered under the header */
.filters {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  gap: 0.25rem;
  padding: 0.3125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 8px 24px -12px rgb(0 0 0 / 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}
@media (min-width: 640px) {
  .filters {
    margin-bottom: 3.5rem;
  }
}
.filter-btn {
  display: inline-flex;
  flex-shrink: 0;
  height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding-inline: 1.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition:
    color 0.2s,
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.filter-btn:hover {
  background: var(--surface-2);
  color: var(--foreground);
}
.filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent);
}
.filter-btn .count {
  display: inline-grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding-inline: 0.375rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.filter-btn[aria-pressed="true"] .count {
  background: rgb(255 255 255 / 0.22);
  color: #fff;
}
/* Grid enter/exit animation when switching tabs */
.grid-item-enter {
  animation: item-in 0.45s var(--ease) both;
  animation-delay: var(--d, 0s);
}
.grid-item-exit {
  animation: item-out 0.25s var(--ease) both;
}
@keyframes item-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes item-out {
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.4375rem;
  width: 1px;
  background: var(--line);
}
.timeline ol {
  display: grid;
}
.timeline li {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline .dot {
  position: absolute;
  top: 0.25rem;
  left: 0;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--background);
}
.timeline .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.timeline h3 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.timeline p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .timeline::before {
    top: 0.4375rem;
    right: 0;
    bottom: auto;
    height: 1px;
    width: auto;
  }
  .timeline ol {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
  .timeline li {
    padding: 0;
  }
  .timeline .dot {
    position: static;
    display: block;
    margin-bottom: 1.5rem;
  }
}

/* ---------- About ---------- */
.values {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
@media (min-width: 640px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}
.values h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.values p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-box {
  border-radius: 2rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 3rem 1.25rem;
  text-align: center;
}
@media (min-width: 640px) {
  .contact-box {
    padding: 5rem 2.5rem;
  }
}
@media (min-width: 1024px) {
  .contact-box {
    padding-block: 6rem;
  }
}
.contact-title {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 48rem;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .contact-title {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .contact-title {
    font-size: 3.75rem;
  }
}
.contact-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
.contact-actions .btn-c {
  min-width: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer .inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .site-footer .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer a {
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--foreground);
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---------- Case study ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.back-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.back-link .bi {
  font-size: 1rem;
  transition: transform 0.2s;
}
.back-link:hover .bi {
  transform: translateX(-3px);
}
.meta-list {
  display: grid;
  gap: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
@media (min-width: 480px) {
  .meta-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .meta-list .span-2 {
    grid-column: span 2;
  }
}
.meta-list dt {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
.meta-list dd {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-shot {
  aspect-ratio: auto;
  max-height: min(80vh, 60rem);
  border-radius: 1rem;
  border: 1px solid var(--line);
}
/* Show the whole screenshot; only very tall pages get trimmed at the bottom. */
.hero-shot img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-height: min(80vh, 60rem);
  object-fit: cover;
  object-position: top;
}
@media (min-width: 640px) {
  .hero-shot {
    border-radius: 2rem;
  }
}

/* Device frames (pure CSS) */
.devices-stage {
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 2.5rem 1rem;
}
@media (min-width: 375px) {
  .devices-stage {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 640px) {
  .devices-stage {
    border-radius: 2.5rem;
    padding: 4rem 2.5rem;
  }
}
@media (min-width: 1024px) {
  .devices-stage {
    padding: 5rem 4rem;
  }
}
.laptop {
  max-width: 64rem;
  margin-inline: auto;
}
.laptop .lid {
  width: 88%;
  margin-inline: auto;
  border-radius: 0.9rem 0.9rem 0 0;
  background: var(--device);
  padding: 1.4% 1.4% 2%;
  box-shadow:
    0 40px 80px -40px rgb(0 0 0 / 0.45),
    0 0 0 1px rgb(0 0 0 / 0.1);
}
@media (min-width: 640px) {
  .laptop .lid {
    border-radius: 1.5rem 1.5rem 0 0;
  }
}
.laptop .cam {
  width: 0.25rem;
  height: 0.25rem;
  margin: 0 auto 1%;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.15);
}
@media (min-width: 640px) {
  .laptop .cam {
    width: 0.375rem;
    height: 0.375rem;
  }
}
.laptop .screen {
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: #000;
}
/* Screen box takes the screenshot's own ratio (set by JS, clamped), so the image fills it fully. */
.laptop .screen img {
  object-fit: cover;
  object-position: top center;
}
@media (min-width: 640px) {
  .laptop .screen {
    border-radius: 0.375rem;
  }
}
.laptop .base {
  position: relative;
  height: 0.625rem;
  border-radius: 0 0 0.75rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: linear-gradient(to bottom, var(--surface-2), var(--line-strong));
}
@media (min-width: 640px) {
  .laptop .base {
    height: 1rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }
}
.laptop .base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: 0.25rem;
  transform: translateX(-50%);
  border-radius: 0 0 0.375rem 0.375rem;
  background: var(--line-strong);
}
.tablet {
  border-radius: 1.5rem;
  background: var(--device);
  padding: 3.2%;
  box-shadow:
    0 30px 60px -30px rgb(0 0 0 / 0.45),
    0 0 0 1px rgb(0 0 0 / 0.1);
}
@media (min-width: 640px) {
  .tablet {
    border-radius: 2rem;
  }
}
.tablet .screen {
  border-radius: 0.9rem;
  background: #000;
  aspect-ratio: 3 / 4;
}
.tablet.landscape .screen {
  aspect-ratio: 4 / 3;
}
@media (min-width: 640px) {
  .tablet .screen {
    border-radius: 1.25rem;
  }
}
.phone {
  border-radius: 2.25rem;
  background: var(--device);
  padding: 3.5%;
  box-shadow:
    0 30px 60px -30px rgb(0 0 0 / 0.5),
    0 0 0 1px rgb(0 0 0 / 0.1);
}
@media (min-width: 640px) {
  .phone {
    border-radius: 2.75rem;
  }
}
.phone .screen {
  border-radius: 1.8rem;
  background: #000;
  aspect-ratio: 390 / 844;
}
@media (min-width: 640px) {
  .phone .screen {
    border-radius: 2.25rem;
  }
}
.phone .notch {
  position: absolute;
  top: 1.6%;
  left: 50%;
  z-index: 1;
  width: 30%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.device-label {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.small-devices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-top: 3.5rem;
}
@media (min-width: 640px) {
  .small-devices {
    margin-top: 5rem;
  }
}
@media (min-width: 768px) {
  .small-devices {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .small-devices {
    gap: 4rem;
  }
}
.small-devices .tablet-wrap {
  width: 100%;
  max-width: 380px;
}
.small-devices .tablet-wrap.landscape {
  max-width: 560px;
}
.small-devices .phone-wrap {
  width: 68%;
  max-width: 250px;
}
@media (min-width: 768px) {
  .small-devices .tablet-wrap {
    width: 46%;
    max-width: 440px;
  }
  .small-devices .tablet-wrap.landscape {
    width: 62%;
    max-width: 560px;
  }
  .small-devices .phone-wrap {
    width: 24%;
    max-width: 270px;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    gap: 2rem;
  }
}
.gallery-grid.mobile {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-grid.mobile {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .gallery-grid.mobile {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1280px) {
  .gallery-grid.mobile {
    grid-template-columns: repeat(5, 1fr);
  }
}
.thumb {
  display: block;
  width: 100%;
  text-align: left;
  cursor: zoom-in;
}
.thumb .media {
  aspect-ratio: 2 / 1;
  border-radius: 1rem;
  border: 1px solid var(--line);
}
/* Wide 2:1 box: no side cropping for dashboard screenshots; tall pages are trimmed at the bottom. */
.thumb .media img {
  object-position: top center;
}
.gallery-grid.mobile .thumb .media {
  aspect-ratio: 390 / 844;
}
@media (min-width: 640px) {
  .thumb .media {
    border-radius: 1.5rem;
  }
}
.thumb:hover .media img {
  transform: scale(1.03);
}
.thumb .zoom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgb(250 250 250 / 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}
.thumb:hover .zoom,
.thumb:focus-visible .zoom {
  opacity: 1;
}
.thumb .label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgb(0 0 0 / 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox .top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: #fff;
}
@media (min-width: 640px) {
  .lightbox .top {
    padding: 1rem 1.5rem;
  }
}
.lightbox .counter {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  color: rgb(255 255 255 / 0.5);
}
.lightbox .lb-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  font-size: 1.125rem;
  transition: background-color 0.2s;
}
.lightbox .lb-btn:hover {
  background: rgb(255 255 255 / 0.2);
}
.lightbox .scroller {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 1rem 2rem;
}
@media (min-width: 640px) {
  .lightbox .scroller {
    padding-inline: 1.5rem;
  }
}
.lightbox .frame {
  margin-inline: auto;
  max-width: 72rem;
}
.lightbox .frame.mobile {
  max-width: 420px;
}
.lightbox .frame img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
@media (min-width: 640px) {
  .lightbox .frame img {
    border-radius: 1rem;
  }
}
.lightbox .frame.swap {
  animation: lb-in 0.3s var(--ease) both;
}
@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Info rows, features, tech, results */
.info-row {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}
@media (min-width: 640px) {
  .info-row {
    padding-block: 3.5rem;
  }
}
@media (min-width: 1024px) {
  .info-row {
    grid-template-columns: 4fr 8fr;
    gap: 3rem;
  }
}
.info-row h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .info-row h2 {
    font-size: 1.875rem;
  }
}
.info-row .big {
  font-size: 1.125rem;
  line-height: 1.65;
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .info-row .big {
    font-size: 1.25rem;
  }
}
.info-details {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .info-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.info-details dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-details dd {
  margin-top: 0.5rem;
  line-height: 1.65;
  color: var(--muted);
}
.check-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .check-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
}
.check-list .bi {
  color: var(--foreground);
  margin-top: 0.125rem;
}
.features {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: var(--line);
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  padding: 1.25rem;
  font-weight: 500;
}
@media (min-width: 640px) {
  .features li {
    padding: 1.75rem;
  }
}
.features .tick {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 640px) {
  .tech-grid {
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1280px) {
  .tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.tech-item {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
  transition:
    border-color 0.2s,
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.tech-item:hover {
  border-color: var(--line-strong);
}
@media (min-width: 640px) {
  .tech-item {
    padding: 1.25rem;
  }
}
.tech-item .abbr {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.tech-item .name {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) {
  .tech-item .name {
    font-size: 1rem;
  }
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .results-grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}
.result {
  border-radius: 1.5rem;
}
.result .value {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
@media (min-width: 640px) {
  .result .value {
    font-size: 2.25rem;
  }
}
.result .label {
  margin-top: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--foreground);
}
.next-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.5s;
}
.next-card:hover {
  border-color: var(--line-strong);
}
@media (min-width: 768px) {
  .next-card {
    grid-template-columns: 3fr 2fr;
  }
}
.next-card .media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .next-card .media {
    aspect-ratio: auto;
    min-height: 22rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}
.next-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .next-card .body {
    padding: 2rem;
  }
}
@media (min-width: 1024px) {
  .next-card .body {
    padding: 3rem;
  }
}
.next-card h3 {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .next-card h3 {
    font-size: 1.875rem;
  }
}
@media (min-width: 1024px) {
  .next-card h3 {
    font-size: 2.25rem;
  }
}
.next-card .go {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.next-card .go .bi {
  transition: transform 0.3s;
}
.next-card:hover .go .bi {
  transform: translateX(4px);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .hero-item,
  .js .hero-stats,
  .mobile-menu li {
    opacity: 1;
    transform: none;
  }
}

.case-hero {
  padding-top: 6rem;
}
@media (min-width: 640px) {
  .case-hero {
    padding-top: 8rem;
  }
}
@media (min-width: 1024px) {
  .case-hero {
    padding-top: 9rem;
  }
}
.features .fill-lg,
.features .fill-sm {
  display: none;
}
@media (min-width: 640px) {
  .features .fill-sm {
    display: block;
  }
}
@media (min-width: 1024px) {
  .features .fill-sm {
    display: none;
  }
  .features .fill-lg {
    display: block;
  }
}

/* ---------- Project popup ---------- */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.pmodal.open {
  opacity: 1;
  visibility: visible;
}
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(4px);
}
.pm-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  color: var(--foreground);
  outline: none;
  transform: translateY(16px);
  transition: transform 0.3s var(--ease);
}
.pmodal.open .pm-panel {
  transform: none;
}
@media (min-width: 768px) {
  .pm-panel {
    inset: 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid var(--line);
    box-shadow: 0 40px 100px -40px rgb(0 0 0 / 0.5);
  }
}
.pm-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .pm-top {
    padding: 1.5rem 2rem 1.25rem;
  }
}
.pm-meta {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pm-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pm-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}
.pm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 0;
  transition: background-color 0.2s;
}
.pm-link:hover {
  background: var(--accent-soft);
}
.pm-close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--foreground);
  font-size: 1.1rem;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.pm-close:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.pm-body {
  display: grid;
  gap: 2rem;
  padding: 1.25rem 1.25rem 3rem;
}
@media (min-width: 768px) {
  .pm-body {
    padding: 2rem;
  }
}
@media (min-width: 1024px) {
  .pm-body {
    grid-template-columns: minmax(18rem, 34%) 1fr;
    gap: 3rem;
    align-items: start;
  }
  .pm-side {
    position: sticky;
    top: 7rem;
    max-height: calc(100dvh - 12rem);
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
  }
}
.pm-label {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.pm-side p {
  line-height: 1.7;
  text-wrap: pretty;
}
.pm-h {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pm-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.6;
}
.pm-list li + li {
  margin-top: 0.35rem;
}
.pm-stack {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.925rem;
}
.pm-stack div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
}
.pm-stack dt {
  font-weight: 600;
}
.pm-stack dd {
  margin: 0;
  color: var(--muted);
}
.pm-type {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.pm-published {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.pm-shots {
  display: grid;
  gap: 1.25rem;
}
.pm-shot {
  margin: 0;
}
.pm-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.pm-shot figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pm-mobile-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
}
.pm-shot.mobile img {
  border-radius: 1.25rem;
}
@media (max-width: 1023.98px) {
  .pm-shots {
    order: -1;
  }
}

/* ---------- Live demo links + accounts ---------- */
.demo-links {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.demo-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-2);
  color: var(--foreground);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.demo-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.demo-links .lbl {
  font-weight: 600;
  white-space: nowrap;
}
.demo-links .url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.demo-links .bi {
  color: var(--accent);
}
.demo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.demo-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.demo-table th,
.demo-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.demo-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
.demo-table tr:last-child td {
  border-bottom: 0;
}
.demo-table code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  white-space: nowrap;
}
.demo-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.demo-block {
  max-width: 56rem;
}
.demo-block .demo-links {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.pm-side .demo-table {
  min-width: 0;
  font-size: 0.8rem;
}
.pm-side .demo-table thead {
  display: none;
}
.pm-side .demo-table,
.pm-side .demo-table tbody {
  display: block;
}
.pm-side .demo-table tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.pm-side .demo-table tr:last-child {
  border-bottom: 0;
}
.pm-side .demo-table td {
  display: block;
  padding: 0;
  border: 0;
}
.pm-side .demo-table td:first-child {
  flex-basis: 100%;
  font-weight: 600;
}
.pm-side .demo-table td:last-child {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pm-demo {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.pm-demo .pm-h {
  margin-top: 0;
}
.pm-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.pm-sub {
  margin: 0.9rem 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.pm-sub + .pm-list {
  margin-bottom: 0.25rem;
}
