/* Peach Parade homepage: light, ramp-style redesign (2026-11-10).
   Only index.html loads this file. Service pages, case studies and the blog still use site.css. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f3f1;
  --paper: #ffffff;
  --ink: #0c0a08;
  --ink-2: rgba(12, 10, 8, 0.66);
  --ink-3: rgba(12, 10, 8, 0.42);
  --line: rgba(12, 10, 8, 0.09);
  --peach: #ff9b6e;
  --peach-deep: #e8744a;
  --peach-soft: #ffe3d4;
  --font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(20px, 3.4vw, 48px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Pills ── */
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  height: 42px; padding: 0 20px;
  border-radius: 999px;
  font: 500 14px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s ease, box-shadow .25s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill-ghost:hover { box-shadow: inset 0 0 0 1px rgba(12,10,8,.2); }
.pill-peach { background: var(--peach); color: var(--ink); }
.pill-peach:hover { background: #ff8a57; }
.pill-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.pill .arr { font-size: .9em; }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(244, 243, 241, .78);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: 0 1px 2px rgba(12,10,8,.18); }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; gap: 8px; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh; min-height: 720px; max-height: 1100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 42% 60% at 50% 42%, #ffffff 0%, rgba(255,255,255,.6) 45%, rgba(255,255,255,0) 75%),
    var(--bg);
}
#heroCanvas { position: absolute; inset: 0; pointer-events: none; opacity: .32; }
.stage {
  position: absolute; inset: 0;
  perspective: 1600px;
  font-size: clamp(9px, 1vw, 15px); /* 1em = 14.4px at 1440 wide; every card is em-based so the whole cluster scales */
}
.fcard {
  position: absolute;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: calc(var(--w) * 0.0625em);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) translate3d(var(--tx, 0px), var(--ty, 0px), 0)
             rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)) rotateZ(calc(var(--rz, 0) * 1deg));
  opacity: var(--o, 1);
  will-change: transform, opacity;
}
.fcard-float { animation: float calc(6s + var(--i) * .7s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
.fcard-in {
  background: var(--paper);
  border-radius: 1em;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(12,10,8,.04), 0 1.2em 3em -1em rgba(12,10,8,.18), 0 0 0 1px rgba(12,10,8,.04);
  animation: cardIn 1.1s var(--ease) both;
  animation-delay: calc(.15s + var(--i) * .08s);
}
@keyframes float { from { transform: translateY(-.35em); } to { transform: translateY(.35em); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(2.5em) scale(.92); } to { opacity: 1; transform: none; } }

/* project screenshot cards */
.shot { position: relative; }
.shot img { width: 100%; height: auto; }
.shot .tag {
  position: absolute; left: .75em; bottom: .75em;
  display: inline-flex; align-items: center; gap: .45em;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 999px; padding: .4em .75em;
  font-size: .72em; font-weight: 500; color: var(--ink);
  box-shadow: 0 2px 8px rgba(12,10,8,.12);
}
.shot .tag i { width: .55em; height: .55em; border-radius: 50%; background: var(--dot, var(--peach)); display: block; }

/* pseudo-UI cards: shared bits */
.ui { padding: 1.05em 1.15em 1.15em; font-size: .82em; color: var(--ink); }
.ui-head { display: flex; align-items: center; gap: .55em; margin-bottom: .9em; font-weight: 500; font-size: .95em; }
.ui-head .ico { width: 1.5em; height: 1.5em; border-radius: .4em; display: grid; place-items: center; color: #fff; font-size: .8em; font-weight: 600; flex: none; }
.ui-head .sp { margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: .35em; font-size: .78em; font-weight: 500; border-radius: 999px; padding: .28em .65em; background: #f1f0ee; color: var(--ink-2); }
.chip.ok { background: #e3f4e6; color: #1d7a35; }
.chip.peach { background: var(--peach-soft); color: #b2461f; }
.chip.ok::before { content: ''; width: .5em; height: .5em; border-radius: 50%; background: #2fae55; }
.muted { color: var(--ink-3); }
.kpi { font-size: 2.1em; font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.kpi small { font-size: .42em; color: #1d7a35; font-weight: 500; letter-spacing: 0; margin-left: .3em; vertical-align: middle; }
.ui-row { display: flex; align-items: center; justify-content: space-between; padding: .55em 0; border-top: 1px solid var(--line); font-size: .92em; }
.ui-row b { font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: .28em; height: 3.4em; margin: .8em 0 .2em; }
.bars span { flex: 1; border-radius: .2em .2em 0 0; background: linear-gradient(to top, var(--peach), #ffc6a8); height: var(--h); }
.skel { height: .55em; border-radius: 999px; background: #eeedeb; margin: .45em 0; }
.ui-foot { display: flex; gap: .5em; flex-wrap: wrap; margin-top: .8em; }

/* AI answer card */
.ask { background: #f3f2f0; border-radius: 1em 1em .3em 1em; padding: .6em .85em; margin: 0 0 .8em auto; width: fit-content; max-width: 90%; font-size: .92em; }
.answer { display: flex; gap: .6em; }
.answer .spark { width: 1.6em; height: 1.6em; border-radius: 50%; flex: none; background: conic-gradient(from 200deg, #ffb48f, #ff7a59, #ffd2b8, #ffb48f); }
.answer p { font-size: .9em; line-height: 1.45; color: var(--ink-2); }
.answer p mark { background: var(--peach-soft); color: var(--ink); border-radius: .3em; padding: 0 .25em; font-weight: 500; }
.cite { display: inline-flex; width: 1.35em; height: 1.35em; border-radius: 50%; background: #ecebe8; font-size: .7em; align-items: center; justify-content: center; vertical-align: .1em; color: var(--ink-2); }

/* SERP card */
.serp-url { display: flex; align-items: center; gap: .55em; font-size: .85em; }
.serp-url .fav { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--peach-soft); display: grid; place-items: center; }
.serp-url .fav::after { content: ''; width: .75em; height: .75em; border-radius: 50%; background: var(--peach); }
.serp-title { color: #1a0dab; font-size: 1.12em; margin: .45em 0 .2em; letter-spacing: -0.02em; line-height: 1.25; }

/* ring card */
.ring { position: relative; width: 6.6em; height: 6.6em; margin: .2em auto .5em; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring .lbl b { font-size: 1.7em; font-weight: 400; letter-spacing: -0.04em; display: block; }
.ring .lbl span { font-size: .72em; color: var(--ink-3); }
.ui-center { text-align: center; }

/* growth funnel */
.fun { display: grid; gap: .5em; }
.fun-row { display: grid; grid-template-columns: 6.2em 1fr 4.6em; align-items: center; gap: .6em; font-size: .9em; }
.fun-row span { line-height: 1.15; }
.fun-row small { display: block; color: var(--ink-3); font-size: .78em; }
.fun-row i { display: block; height: 1.7em; width: var(--w); margin: 0 auto; border-radius: .4em; background: linear-gradient(90deg, #ffd9c4, var(--peach)); }
.fun-row b { text-align: right; font-weight: 500; white-space: nowrap; }
.ui.org .chart { height: 3.4em; }
.svc-tile .mock:has(.org) { translate: 0 -24%; }
.svc-tile .mock .sub.org { top: calc(100% - 1.4em); bottom: auto; right: -12%; width: 56%; }
.page-mock .sub.org { top: calc(100% - 4.2em); bottom: auto; right: -4%; width: 54%; }
.page-mock:has(.org) { translate: 0 -14%; }
/* chart */
.chart { width: 100%; height: 5.2em; display: block; margin: .6em 0 .1em; }

/* hero copy */
.hero-copy {
  position: absolute; left: var(--pad); bottom: clamp(28px, 5vh, 56px);
  z-index: 5; max-width: min(700px, 52vw);
}
.hero-copy h1 {
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero-copy h1 .peachy { color: var(--peach-deep); }
.hero-copy p { margin-top: 18px; max-width: 520px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.hero-cta { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.hero-word {
  position: absolute; right: var(--pad); bottom: clamp(28px, 5vh, 56px); z-index: 5;
  font-size: clamp(14px, 1.1vw, 16px); color: var(--ink-3); text-align: right; line-height: 1.4;
}

/* ── Sections ── */
section { position: relative; }
.wrap { padding: 0 var(--pad); }
.sec { padding-top: clamp(96px, 12vw, 180px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.h-xl {
  font-weight: 300; letter-spacing: -0.05em; line-height: .95;
  font-size: clamp(52px, 9vw, 144px);
}
.h-lg { font-weight: 300; letter-spacing: -0.045em; line-height: 1; font-size: clamp(40px, 6vw, 96px); }
.sec-head p { max-width: 360px; color: var(--ink-2); font-size: 16px; }
.eyebrow-link { color: var(--ink-2); font-size: 15px; text-decoration: none; white-space: nowrap; }
.eyebrow-link:hover { color: var(--ink); }

/* ── Work bento ── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.tile { grid-column: span var(--span, 6); text-decoration: none; color: inherit; display: block; cursor: pointer; }
.tile-media {
  position: relative; overflow: hidden;
  border-radius: clamp(14px, 1.4vw, 22px);
  aspect-ratio: var(--ar, 4 / 3);
  background: var(--tint, #ebe9e6);
  isolation: isolate;
}
.tile-media img {
  position: absolute; left: 9%; top: 12%; width: 100%; height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(12,10,8,.28), 0 0 0 1px rgba(12,10,8,.05);
  transition: transform .9s var(--ease);
}
.tile:hover .tile-media img { transform: translate(-1.5%, -2%) scale(1.015); }
.tile-media.duo img:nth-of-type(1) { width: 78%; left: 7%; top: 12%; }
.tile-media.duo img:nth-of-type(2) { width: 78%; left: 26%; top: 38%; }
.tile-media .stat {
  position: absolute; left: 18px; top: 18px; z-index: 2;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500;
}
.tile-cap { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px 0; font-size: 15px; }
.tile-cap b { font-weight: 500; }
.tile-cap span { color: var(--ink-3); }
.tile-cap .go { color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.tile:hover .tile-cap .go { color: var(--ink); transform: translate(2px, -2px); }

.lb-media[hidden] { display: none; }

/* Earlier roles: compact strip under the main work grid */
.tile-compact .tile-media img { width: 52%; left: 42%; top: 16%; }
.tile-compact .tile-media.duo img:nth-of-type(1) { width: 46%; left: 38%; top: 12%; }
.tile-compact .tile-media.duo img:nth-of-type(2) { width: 46%; left: 52%; top: 42%; }
.tile-compact .tile-cap { font-size: 14px; }
@media (max-width: 980px) { .tile-compact .tile-media { aspect-ratio: 2 / 1; } }

/* ── Services bento ── */
.svc-tile .tile-media { display: grid; place-items: center; }
.svc-tile .mock { width: min(74%, 380px); font-size: clamp(11px, 1.15vw, 16px); position: relative; }
.svc-tile .mock .fcard-in { animation: none; }
.svc-tile .mock .sub { position: absolute; right: -14%; bottom: -16%; width: 52%; }
.svc-tile .mock .sub-l { position: absolute; left: -14%; top: -26%; width: 50%; }
.svc-tile .tile-media .fcard-in { transition: transform .9s var(--ease); }
.svc-tile:hover .mock > .fcard-in { transform: translateY(-6px) rotate(-.6deg); }
.svc-desc { padding: 6px 4px 0; color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.related { margin-top: 40px; color: var(--ink-2); font-size: 15px; max-width: 900px; }
.related a { color: var(--ink); text-decoration-color: rgba(12,10,8,.25); text-underline-offset: 3px; }
.related a:hover { text-decoration-color: var(--peach-deep); }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font-weight: 300; letter-spacing: -0.06em; line-height: 1; font-size: clamp(56px, 8vw, 128px); }
.stat-num .suffix { color: var(--peach-deep); }
.stat-label { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* ── About / beyond the work ── */
.about-stage { position: relative; height: clamp(520px, 62vw, 820px); }
.about-stage .h-xl { position: absolute; inset: 50% 0 auto 0; transform: translateY(-50%); text-align: center; z-index: 1; pointer-events: none; }
.about-stage .h-xl span { display: block; }
.orbit {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%) translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotate(calc(var(--r, 0) * 1deg));
  z-index: var(--z, 2);
  will-change: transform;
}
.orbit.photo img { width: clamp(140px, 17vw, 250px); border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(12,10,8,.35); }
.orbit.chip-o {
  background: var(--paper); border-radius: 999px; padding: 10px 16px;
  font-size: clamp(12px, 1vw, 15px); font-weight: 500; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(12,10,8,.22), 0 0 0 1px rgba(12,10,8,.04);
}
.orbit.chip-o i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--peach)); margin-right: 8px; vertical-align: 1px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(24px, 4vw, 48px); color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.about-cols p + p { margin-top: 1em; }
.about-cols .lead { color: var(--ink); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -0.025em; font-weight: 400; }
.about-cols .role { margin-top: 16px; color: var(--ink-3); font-size: 15px; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* ── Contact ── */
.contact { text-align: center; padding: clamp(120px, 16vw, 240px) var(--pad) clamp(96px, 12vw, 180px); }
.contact h2 { font-weight: 300; letter-spacing: -0.05em; line-height: .98; font-size: clamp(48px, 8vw, 128px); }
.contact h2 em { font-style: normal; color: var(--peach-deep); }
.contact .cta { margin-top: 36px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.foot { padding: 0 var(--pad) 28px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: clamp(32px, 6vw, 96px); padding-top: 40px; }
.foot-cols p { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.foot-cols a { display: block; text-decoration: none; font-size: 14px; color: var(--ink-2); margin: 6px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-word {
  margin-top: clamp(48px, 8vw, 120px);
  font-weight: 400; letter-spacing: -0.06em; line-height: .8;
  font-size: clamp(64px, 15.5vw, 260px);
  color: rgba(12,10,8,.13);
  white-space: nowrap; user-select: none;
}
.foot-copy { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ── Lightbox (light) ── */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(244,243,241,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lb-panel {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--paper); border-radius: 24px;
  box-shadow: 0 40px 120px -30px rgba(12,10,8,.35), 0 0 0 1px var(--line);
  transform: translateY(24px) scale(.98); transition: transform .5s var(--ease);
}
.lightbox.open .lb-panel { transform: none; }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px var(--line); font-size: 22px; cursor: pointer; }
.lb-media { background: #efeeeb; padding: 32px 32px 0; }
.lb-media img { width: 100%; border-radius: 12px 12px 0 0; }
.lb-body { padding: 32px clamp(24px, 4vw, 48px) 40px; }
.lb-tag { color: var(--ink-3); font-size: 14px; }
.lb-title { font-weight: 300; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.045em; line-height: 1; margin: 8px 0 22px; }
.lb-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.lb-meta .m { background: #f3f2f0; border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.lb-meta .m-k { color: var(--ink-3); margin-right: 6px; }
.lb-cases { display: grid; gap: 22px; }
.lb-case-label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.lb-case p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.lb-case a { color: var(--ink); }
.lb-cta { margin-top: 30px; }
body.lb-active { overflow: hidden; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .bento .tile { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .faq-grid, .about-cols { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; max-height: none; padding-bottom: 40px; }
  .stage { position: relative; height: 112vw; max-height: 560px; font-size: 2.3vw; margin-top: 64px; }
  .fcard.hide-m { display: none; }
  .fcard { left: calc(var(--mx, var(--x)) * 1%); top: calc(var(--my, var(--y)) * 1%); width: calc(var(--mw, var(--w)) * 0.0625em); }
  .hero-copy { position: relative; left: auto; bottom: auto; max-width: none; padding: 0 var(--pad); }
  .hero-word { display: none; }
  .nav-right .pill-ghost { display: none; }
  .pill { height: 38px; padding: 0 16px; font-size: 13px; }
  .pill-lg { height: 48px; padding: 0 22px; font-size: 15px; }
  .orbit.chip-o.hide-m { display: none; }
  .orbit.chip-o { left: calc(var(--mx, var(--x)) * 1%); top: calc(var(--my, var(--y)) * 1%); }
  .about-stage { height: 150vw; }
  .tile-cap { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fcard-float, .fcard-in { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ══ Subpages (service pages, case studies, blog), generated by scripts/build_pages.py ══ */
body.sub { background: var(--bg) radial-gradient(ellipse 60% 520px at 70% 0, #fff 0%, rgba(255,255,255,0) 100%) no-repeat; }
.page { max-width: 1180px; margin: 0 auto; padding: clamp(120px, 14vw, 180px) var(--pad) 0; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.page-hero .page-mock:empty { display: none; }
.page-hero:has(.page-mock:empty) { grid-template-columns: 1fr; }
.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px;
}
.crumb::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }
.page h1 { font-weight: 300; letter-spacing: -0.048em; line-height: 1; font-size: clamp(40px, 5vw, 74px); margin-bottom: 26px; }
.page h1 em { font-style: normal; color: var(--peach-deep); }
.page .lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 680px; margin-bottom: 30px; letter-spacing: -0.02em; }
.hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.byline { color: var(--ink-3); font-size: 14px; margin: -6px 0 30px; }

/* mock UI beside the H1 */
.page-mock { position: relative; font-size: clamp(11px, 1.1vw, 16px); padding: 2.4em 1.6em; }
.page-mock .fcard-in { animation: cardIn 1.1s var(--ease) both; }
.about-photo img { display: block; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 22px; transform: rotate(2deg); box-shadow: 0 30px 60px -24px rgba(12,10,8,.35); }
.page-mock .main { transform: rotate(-1.5deg); }
.page-mock .sub { position: absolute; right: -2%; bottom: -6%; width: 50%; animation-delay: .25s; transform: rotate(3deg); }
.page-mock .sub-l { position: absolute; left: -4%; top: 0; width: 56%; animation-delay: .25s; transform: rotate(-4deg); z-index: 2; }

/* long-form body */
.page > h2, .page > p, .page > ul, .page > ol, .page > h3, .page > .callout, .page > table, .page > .faq { max-width: 740px; }
.page h2 { font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; font-size: clamp(30px, 3.4vw, 48px); margin: clamp(64px, 8vw, 104px) 0 20px; }
.page h3 { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; margin: 34px 0 8px; }
.page p, .page li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.page p + p { margin-top: 1em; }
.page ul { padding-left: 1.2em; }
.page ol:not(.steps) { padding-left: 1.4em; }
.page li { margin: 8px 0; }
.page li strong, .page p strong { color: var(--ink); font-weight: 500; }
.page a:not(.pill):not(.card) { color: var(--ink); text-decoration-color: rgba(232,116,74,.5); text-underline-offset: 3px; }
.page a:not(.pill):not(.card):hover { text-decoration-color: var(--peach-deep); }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--line); }
.proof > div { padding: 24px 20px 0 0; }
.proof > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.proof b { display: block; font-weight: 300; letter-spacing: -0.06em; line-height: 1; font-size: clamp(44px, 5.4vw, 80px); color: var(--ink); }
.proof span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }

.steps { list-style: none; padding: 0 !important; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; position: relative; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-size: 28px; font-weight: 300; letter-spacing: -0.04em; color: var(--peach-deep); }

.callout { border-left: 2px solid var(--peach); padding: 4px 0 4px 24px; margin: 32px 0; }
.callout p { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--ink); letter-spacing: -0.025em; }

table.cmp { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; max-width: 900px !important; }
table.cmp th, table.cmp td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--ink-2); }
table.cmp th { color: var(--ink-3); font-weight: 500; font-size: 13px; }

.meta-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.meta-grid > div { background: var(--paper); border-radius: 999px; padding: 9px 16px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.meta-grid span { color: var(--ink-3); margin-right: 6px; }
.meta-grid b { font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.4vw, 20px); margin-top: 48px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border-radius: 22px; padding: 28px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(12,10,8,.25); }
.card small { display: inline-block; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.card h3 { font-weight: 400; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.035em; line-height: 1.15; margin: 10px 0 10px; color: var(--ink); }
.card p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.card.has-img { padding: 12px 12px 28px; }
.card.has-img > :not(.card-img) { margin-left: 16px; margin-right: 16px; }
.card-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--tint); margin-bottom: 20px; }
.card-img img { position: absolute; left: 9%; top: 12%; width: 100%; border-radius: 8px; box-shadow: 0 24px 48px -18px rgba(12,10,8,.3); transition: transform .9s var(--ease); }
.card:hover .card-img img { transform: translate(-1.5%, -2%); }

.page .faq { margin-top: 8px; border-top: 1px solid var(--line); }
.cta-band {
  margin: clamp(80px, 10vw, 140px) 0 0; padding: clamp(48px, 7vw, 96px) var(--pad);
  border-radius: 28px; text-align: center;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, #fff 0%, rgba(255,255,255,0) 70%), var(--peach-soft);
}
.cta-band h2 { margin: 0 auto 14px; max-width: 820px; font-size: clamp(32px, 4.6vw, 64px); }
.cta-band p { margin: 0 auto; max-width: 560px; }
.cta-btn { margin-top: 28px !important; }
.page > .related { margin: 40px 0 clamp(80px, 10vw, 140px); }
.page + .foot { margin-top: clamp(80px, 10vw, 140px); }

@media (max-width: 900px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-mock { max-width: 420px; font-size: 13px; }
  .page-mock:has(.org) { translate: none; margin-bottom: 7em; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
  .cards { grid-template-columns: 1fr; }
  table.cmp { display: block; overflow-x: auto; }
}
