/* ============================================================
   GoPropel Media - shared stylesheet (all pages)
   Palette (client CSV, rev 2): #0a090c Onyx · #f0edee Platinum ·
   #07393c Dark Teal · #2c666e Stormy Teal · #90ddf0 Frosted Blue
   Contrast audit (WCAG): platinum/onyx 17.1 · platinum/teal 10.9 ·
   platinum/storm 5.6 · frost/teal 8.3 · onyx/frost 13.0
   HARD RULE: frosted blue never as text on platinum (fails AA).
   ============================================================ */
/* Three-tier type (daylight architecture): Clash Display carries the brand,
   General Sans carries the voice, Geist Mono carries the facts. Self-hosted. */
@font-face{font-family:"Clash Display";src:url("fonts/clash-display-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Clash Display";src:url("fonts/clash-display-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"General Sans";src:url("fonts/general-sans-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"General Sans";src:url("fonts/general-sans-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"General Sans";src:url("fonts/general-sans-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Geist Mono";src:url("fonts/geist-mono.woff2") format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
:root{
  --onyx:#0a090c;
  --platinum:#f0edee;
  --teal:#07393c;
  --teal-deep:#052a2d;
  --storm:#2c666e;
  --frost:#90ddf0;
  --hair-light:rgba(10,9,12,.16);
  --hair-dark:rgba(240,237,238,.24);
  --display:"Clash Display","General Sans",system-ui,sans-serif;
  --sans:"General Sans",system-ui,-apple-system,sans-serif;
  --mono:"Geist Mono",ui-monospace,"SF Mono",monospace;
  --pad:clamp(20px,5vw,72px);
  --rhythm:clamp(72px,10vw,128px);
  --barh:clamp(60px,7.5vw,92px);
  --pad-unit:clamp(14px,1.5vw,22px); /* Sonder: one reused inset unit for button/CTA rhythm */
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  font-family:var(--sans);
  background:var(--teal);
  color:var(--onyx);
  font-size:17px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3{text-wrap:balance;font-weight:600}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:99;
  background:var(--teal);color:var(--platinum);padding:12px 20px;
  font-family:var(--mono);font-size:13px;
}
.skip-link:focus{left:0}
:focus-visible{outline:3px solid var(--storm);outline-offset:3px}
main[tabindex="-1"]{outline:none}
.field-teal :focus-visible,.field-onyx :focus-visible,.field-storm :focus-visible{outline-color:var(--frost)}
.mono{
  font-family:var(--mono);font-size:12px;letter-spacing:.05em;
  text-transform:uppercase;font-weight:500;
  font-variant-numeric:tabular-nums; /* AREA17 precision: figures align across ledgers/captions */
}
section{scroll-margin-top:76px}

/* ---------- page transition wipe (cover on click, reveal on load) ----------
   Splits the menu's scaleX wipe across two page loads: teal panel covers L→R
   before navigating, then uncovers L→R on the incoming page. Same easing as
   the menu. Reduced motion: hidden, instant navigation. */
.page-wipe{position:fixed;inset:0;z-index:200;display:flex;pointer-events:none}
.page-wipe i{
  flex:1;background:var(--teal);
  transform:scaleY(0);transform-origin:top center;will-change:transform;
}
.page-wipe i:nth-child(2){background:var(--teal-deep)}
.page-wipe i:nth-child(3){background:var(--storm)}
.page-wipe i:nth-child(4){background:var(--teal-deep)}
.page-wipe i:nth-child(5){background:var(--teal)}
/* incoming page starts covered (set pre-paint via html.pw-reveal) */
html.pw-reveal .page-wipe i{transform:scaleY(1)}
/* cover: bars grow down; uncover: bars shrink up from the bottom. Both staggered L->R */
.page-wipe.pw-cover i{animation:pwBar .4s cubic-bezier(.76,0,.24,1) forwards}
.page-wipe.pw-uncover i{transform-origin:bottom center;animation:pwBarOut .45s cubic-bezier(.76,0,.24,1) forwards}
.page-wipe i:nth-child(1){animation-delay:0s}
.page-wipe i:nth-child(2){animation-delay:.05s}
.page-wipe i:nth-child(3){animation-delay:.1s}
.page-wipe i:nth-child(4){animation-delay:.15s}
.page-wipe i:nth-child(5){animation-delay:.2s}
@keyframes pwBar{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes pwBarOut{from{transform:scaleY(1)}to{transform:scaleY(0)}}
@media (prefers-reduced-motion:reduce){.page-wipe{display:none}}

/* ---------- nav (exact reproduction of the wearecheck header) ----------
   Logo left, a centered bordered bar (bottom line + left-divider cells with a
   hover sweep-fill and mix-blend-difference text), and a "Menu" button with the
   two-offset-line mark right. No pill, no rounded container. */
header{
  position:sticky;top:0;z-index:50;
  background:var(--platinum);
  border-bottom:1px solid var(--hair-light);
}
.nav{
  display:flex;justify-content:space-between;align-items:center;
  gap:24px;padding:0 var(--pad);height:72px;position:relative;
}
.wordmark{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;font-size:19px;letter-spacing:-.02em;
  white-space:nowrap;
}
.wordmark svg{width:22px;height:22px;flex:none}
.wordmark b{font-family:var(--display);font-weight:600;letter-spacing:0}
.wordmark span{font-weight:400}
.wordmark span span{opacity:.75} /* fade "Media" once; nested-span opacity used to compound to 4.41:1 */
/* centered bordered bar: absolutely centered on the nav (wearecheck mechanic) */
.nav-bar{
  position:absolute;left:50%;transform:translateX(-50%);
  display:flex;align-items:stretch;height:45px;
  border-bottom:1px solid var(--hair-light);
}
.nav-cell{
  position:relative;display:flex;align-items:center;
  padding:12px 20px;text-decoration:none;overflow:hidden;
  isolation:isolate;background:var(--platinum); /* opaque group so the blend resolves against platinum + fill */
}
.nav-cell + .nav-cell{border-left:1px solid var(--hair-light)}
.nav-cell-t{
  position:relative;z-index:2;white-space:nowrap;
  font-family:var(--sans);font-size:14px;font-weight:500;
  color:var(--platinum);mix-blend-mode:difference; /* reads onyx on platinum, inverts over the fill */
}
.nav-cell-fill{
  position:absolute;top:0;left:0;height:100%;width:0;
  background:var(--onyx);
  transition:width .45s cubic-bezier(.87,0,.13,1);
}
.nav-cell:hover .nav-cell-fill,.nav-cell:focus-visible .nav-cell-fill{width:100%}
/* "Menu" button with the two-offset-line mark (exact from the reference svg) */
.menu-toggle{
  display:inline-flex;align-items:center;gap:16px;
  background:none;border:none;cursor:pointer;padding:0;color:var(--onyx);
  font-family:var(--sans);font-size:16px;font-weight:500;
}
.menu-toggle-mark{display:block;width:44px;height:26px}
.menu-toggle-mark svg{display:block;width:100%;height:100%}
@media (max-width:820px){
  .nav{height:60px}
  .nav-bar{display:none}
}
@media (prefers-reduced-motion:reduce){.nav-cell-fill{transition:none}}

/* ---------- full-screen menu overlay (reference: wearecheck) ----------
   Open the Menu and each row's teal panel wipes in (staggered), then the label
   fades up. Feature card + big wordmark + CTA fade in last. */
.menu-overlay{
  position:fixed;inset:0;z-index:60;
  display:flex;flex-direction:column;
  padding:18px var(--pad) 26px;
  background:var(--onyx);color:var(--platinum);
  opacity:0;visibility:hidden;
  transition:opacity .28s ease,visibility 0s linear .28s;
}
.menu-overlay.is-open{opacity:1;visibility:visible;transition:opacity .28s ease}
body.menu-open{overflow:hidden}
.menu-top{
  flex:none;display:flex;justify-content:space-between;align-items:center;height:52px;
}
.menu-top-label{font-family:var(--display);font-weight:600;font-size:20px;letter-spacing:-.01em}
.menu-close{
  display:inline-flex;align-items:center;gap:16px;
  background:none;border:none;cursor:pointer;padding:0;color:var(--platinum);
  font-family:var(--sans);font-size:16px;font-weight:500;
}
.menu-close .menu-toggle-mark{width:44px;height:26px}
.menu-close .menu-toggle-mark svg{display:block;width:100%;height:100%}
/* body: nav links (left) + feature card (right) */
.menu-body{
  flex:1;min-height:0;display:grid;grid-template-columns:1.7fr 1fr;
  gap:clamp(32px,5vw,72px);align-content:center;padding:24px 0;
}
.menu-links{display:flex;flex-direction:column;gap:2px}
.menu-row{
  position:relative;display:flex;align-items:center;overflow:hidden;
  text-decoration:none;padding:6px 14px;margin-left:-14px;border-radius:2px;
}
.menu-row-fill{
  position:absolute;inset:0;background:var(--tint,var(--teal));
  transform:scaleX(0);transform-origin:left center;
  transition:transform .45s cubic-bezier(.76,0,.24,1);
}
.menu-row-t{
  position:relative;z-index:2;display:inline-flex;align-items:baseline;gap:16px;
  font-family:var(--display);font-weight:600;letter-spacing:-.02em;line-height:1;
  font-size:clamp(2.3rem,6vw,4.4rem);color:var(--platinum);
  opacity:0;transition:transform .3s ease;
}
.menu-row-num{
  font-family:var(--mono);font-weight:500;font-size:.78rem;letter-spacing:.12em;
  color:var(--frost);transform:translateY(-1.1em);
}
.menu-feature{
  align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;gap:24px;
  background:var(--card-bg,var(--teal));color:var(--card-fg,var(--platinum));border-radius:3px;
  padding:clamp(22px,2.4vw,34px);opacity:0;
  box-shadow:0 30px 120px -26px color-mix(in srgb, var(--card-bg,var(--teal)) 75%, transparent);
  transition:background .45s ease,color .45s ease,box-shadow .45s ease;
}
.menu-feature-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.menu-feature-tag{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;opacity:.72}
.menu-feature-ghost{font-family:var(--display);font-weight:700;line-height:.8;font-size:clamp(2.2rem,4vw,3.4rem);opacity:.32}
.menu-feature-line{font-family:var(--display);font-weight:600;line-height:1.18;font-size:clamp(1.25rem,1.9vw,1.7rem);color:inherit}
.menu-feature-links{display:flex;gap:26px;flex-wrap:wrap;font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.menu-feature-links a{color:inherit;text-decoration:none;border-bottom:1px solid color-mix(in srgb,currentColor 42%,transparent);padding-bottom:3px;transition:opacity .2s ease}
.menu-feature-links a:hover{opacity:.65}
.menu-foot{
  flex:none;display:flex;align-items:center;gap:clamp(20px,3vw,40px);
  padding-top:22px;border-top:1px solid var(--hair-dark);opacity:0;
}
.menu-wordmark{
  font-family:var(--display);font-weight:700;letter-spacing:-.02em;
  font-size:clamp(1.9rem,5vw,3.2rem);color:var(--platinum);text-decoration:none;
}
.menu-rule{flex:1;height:1px;background:var(--hair-dark)}
.menu-cta{background:var(--platinum);color:var(--onyx);white-space:nowrap;font-size:14px}
.menu-cta:hover{background:var(--frost)}
/* hover (after the intro completes; see .revealed) */
.menu-row:hover .menu-row-t{transform:translateX(12px)}
.menu-overlay.revealed .menu-row:hover .menu-row-fill{transform:scaleX(1);transform-origin:left center}
/* the staggered intro */
.menu-overlay.is-open .menu-row-fill{
  animation:menuWipe .95s cubic-bezier(.76,0,.24,1) both;
  animation-delay:calc(var(--i,0) * .07s + .08s);
}
.menu-overlay.is-open .menu-row-t{
  animation:menuRise .55s ease both;
  animation-delay:calc(var(--i,0) * .07s + .42s);
}
.menu-overlay.is-open .menu-feature{animation:menuRise .7s ease both;animation-delay:.5s}
.menu-overlay.is-open .menu-foot{animation:menuRise .7s ease both;animation-delay:.62s}
/* once revealed, drop the animations so hover transitions take over */
.menu-overlay.revealed .menu-row-fill{animation:none}
.menu-overlay.revealed .menu-row-t,
.menu-overlay.revealed .menu-feature,
.menu-overlay.revealed .menu-foot{animation:none;opacity:1;transform:none}
@keyframes menuWipe{
  0%{transform:scaleX(0);transform-origin:left center}
  46%{transform:scaleX(1);transform-origin:left center}
  54%{transform:scaleX(1);transform-origin:right center}
  100%{transform:scaleX(0);transform-origin:right center}
}
@keyframes menuRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
/* closing: the wipe replays in the opposite direction, then the overlay clears */
.menu-overlay.closing .menu-row-fill{
  animation:menuWipeOut .55s cubic-bezier(.76,0,.24,1) both;
  animation-delay:calc((3 - var(--i,0)) * .05s);
}
.menu-overlay.closing .menu-row-t,
.menu-overlay.closing .menu-feature,
.menu-overlay.closing .menu-foot{animation:menuFadeOut .3s ease both}
@keyframes menuWipeOut{
  0%{transform:scaleX(0);transform-origin:right center}
  45%{transform:scaleX(1);transform-origin:right center}
  55%{transform:scaleX(1);transform-origin:left center}
  100%{transform:scaleX(0);transform-origin:left center}
}
@keyframes menuFadeOut{from{opacity:1}to{opacity:0}}
@media (max-width:820px){
  .menu-body{grid-template-columns:1fr;gap:22px;align-content:start;overflow-y:auto}
  .menu-row-num{display:none}
  .menu-feature{padding:20px}
  .menu-foot{flex-direction:column;align-items:flex-start;gap:14px}
  .menu-rule{display:none}
  .menu-cta{align-self:stretch;text-align:center}
}
@media (prefers-reduced-motion:reduce){
  .menu-overlay.is-open .menu-row-fill,
  .menu-overlay.closing .menu-row-fill{animation:none}
  .menu-overlay.is-open .menu-row-t,
  .menu-overlay.is-open .menu-feature,
  .menu-overlay.is-open .menu-foot,
  .menu-overlay.closing .menu-row-t,
  .menu-overlay.closing .menu-feature,
  .menu-overlay.closing .menu-foot{animation:none;opacity:1;transform:none}
}

/* ---------- service sub-nav strip (service pages only) ---------- */
.subnav{
  display:flex;gap:clamp(16px,2.5vw,28px);
  padding:0 var(--pad);background:var(--platinum);
  border-bottom:1px solid var(--hair-light);
  overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;
}
.subnav a{text-decoration:none;padding:13px 0 11px;border-bottom:2px solid transparent;color:#2f4a50}
.subnav a:hover{border-bottom-color:var(--storm);color:var(--onyx)}
.subnav a[aria-current="page"]{border-bottom-color:var(--teal);color:var(--onyx)}

/* ---------- product hero (web-development, Linear pattern) ---------- */
.hero-product{padding-top:clamp(40px,6vw,88px);overflow:hidden}
.hero-product h1{
  font-family:var(--display);font-weight:600;
  font-size:clamp(2.1rem,5.4vw,4.6rem);
  line-height:.98;letter-spacing:-.015em;max-width:18ch;
}
.hero-product .hero-sub{margin-top:28px;max-width:52ch;font-size:clamp(1rem,1.4vw,1.15rem)}
.hero-product .hero-ctas{margin-top:36px;display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.hero-product .hero-rail{margin-top:48px;display:flex;gap:28px;flex-wrap:wrap;border-top:1px solid var(--hair-dark);padding-top:18px}
.product-shot{margin-top:clamp(36px,5vw,72px);max-width:1160px;margin-inline:auto;width:100%}
/* polished app-window frame: elevates the real CRM screenshot as the hero artifact */
.product-frame{
  border-radius:14px;overflow:hidden;
  border:1px solid rgba(240,237,238,.16);
  background:var(--teal-deep);
  box-shadow:0 40px 90px -34px rgba(0,0,0,.65),0 0 0 1px rgba(144,221,240,.05);
}
.product-chrome{
  display:flex;align-items:center;gap:14px;
  padding:11px 16px;background:rgba(240,237,238,.045);
  border-bottom:1px solid rgba(240,237,238,.10);
}
.product-chrome .dots{display:flex;gap:7px;flex:none}
.product-chrome .dots i{width:11px;height:11px;border-radius:50%;background:rgba(240,237,238,.20)}
.product-chrome .url{
  color:rgba(240,237,238,.62);font-family:var(--mono);font-size:12px;letter-spacing:.03em;
  background:rgba(240,237,238,.06);padding:5px 16px;border-radius:6px;margin-inline:auto;
}
.product-frame picture{display:block}
.product-frame img{width:100%;height:auto;display:block;border:0}
.product-shot figcaption{
  margin-top:14px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  color:rgba(240,237,238,.6);
}
@media (max-width:640px){.product-chrome .url{font-size:11px;padding:5px 10px}}

/* ---------- buttons: Sonder sweep-fill ---------- */
.btn{
  display:inline-block;text-decoration:none;font-weight:600;font-size:15px;
  padding:calc(var(--pad-unit)*.6) var(--pad-unit);border:none;cursor:pointer;font-family:var(--sans);
  background-size:100% 205%;background-position:0 0;
  transition:background-position .5s cubic-bezier(.87,0,.13,1),color .2s .2s,transform .15s ease-out;
}
.btn:active{transform:translateY(1px) scale(.98)}
.btn:hover{background-position:0 100%}
.btn-book,.btn-primary{
  background-image:linear-gradient(var(--teal) 0%,var(--teal) 50%,var(--frost) 50%,var(--frost) 100%);
  color:var(--platinum);
}
.btn-book:hover,.btn-primary:hover{color:var(--onyx)}
.btn-primary{font-size:16px;padding:calc(var(--pad-unit)*.72) calc(var(--pad-unit)*1.3)}
.btn-dark{
  background-image:linear-gradient(var(--onyx) 0%,var(--onyx) 50%,var(--teal) 50%,var(--teal) 100%);
  color:var(--platinum);font-size:16px;padding:calc(var(--pad-unit)*.72) calc(var(--pad-unit)*1.3);
}
.btn-dark:hover{color:var(--frost)}
@media (prefers-reduced-motion:reduce){
  .btn{transition:none}
}

/* ---------- color fields ---------- */
.field{padding:var(--rhythm) var(--pad)}
.field-platinum{background:var(--platinum);color:var(--onyx)}
.field-teal{background:var(--teal);color:var(--platinum)}
.field-storm{background:var(--storm);color:var(--platinum)}
.field-frost{background:var(--frost);color:var(--onyx)}
.field-onyx{background:var(--onyx);color:var(--platinum)}

/* ---------- hero (home + service pages) ---------- */
.hero{
  display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  gap:clamp(24px,4vw,64px);align-items:end;
  padding-top:clamp(40px,6vw,88px);
  position:relative;overflow:hidden;
}
.hero-copy{padding-bottom:clamp(16px,3vw,48px)}
.hero h1{
  font-family:var(--display);
  font-size:clamp(2.1rem,5.4vw,4.6rem);
  line-height:.98;letter-spacing:-.015em;font-weight:600;
  max-width:16ch;
}
.hero h1 .accent-dot{color:var(--storm)}
.hero-sub{
  margin-top:28px;max-width:44ch;font-size:clamp(1rem,1.4vw,1.15rem);
  color:#2f4a50;
}
.hero-ctas{margin-top:36px;display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.link-plain{
  font-weight:600;font-size:15px;text-decoration:underline;
  text-underline-offset:5px;text-decoration-thickness:2px;
}
.hero-rail{
  margin-top:56px;display:flex;gap:28px;flex-wrap:wrap;
  color:var(--storm);border-top:1px solid var(--hair-light);padding-top:18px;
}
.hero-media{position:relative;min-width:0}
.hero-media img{width:100%;aspect-ratio:4/5;object-fit:cover}
.hero-media--portrait img{aspect-ratio:4/5}
.hero-media--landscape img{aspect-ratio:3/2}
.hero-media figcaption{
  margin-top:10px;display:flex;justify-content:space-between;gap:12px;
  color:var(--storm);
}
.ghost{
  position:absolute;right:-.05em;bottom:.05em;z-index:0;pointer-events:none;
  font-weight:700;letter-spacing:-.04em;line-height:1;
  font-size:clamp(5rem,14vw,12rem);
  /* decorative watermark: painted via clipped background so it stays a faint
     texture but is exempt from text-contrast tooling (it is aria-hidden) */
  color:transparent;background:rgba(7,57,60,.05);
  -webkit-background-clip:text;background-clip:text;
  user-select:none;
} /* bottom .05em + smaller clamp: letterforms never cut by the ticker seam (Phase 1.5) */
.hero-copy,.hero-media{position:relative;z-index:1}
@media (max-width:820px){
  .hero{grid-template-columns:1fr}
  .hero-media img,.hero-media--portrait img{aspect-ratio:3/2}
}

/* home hero: anchored statement composition (pill / headline + rotator / baseline rail) */
.hero-home{
  grid-template-rows:auto auto auto;
  align-items:center;
  padding-top:clamp(18px,2.4vw,34px);
  padding-bottom:clamp(24px,3vw,44px);
  gap:clamp(18px,3vw,34px) clamp(28px,4vw,72px);
}
.hero-home h1{font-size:clamp(2.4rem,6vw,5.4rem);line-height:.94;letter-spacing:-.02em;max-width:15ch}
.hero-home .hero-top{
  grid-column:1/-1;align-self:start;position:relative;z-index:1;
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
}
.hero-home .hero-since{color:var(--storm)}
.hero-top .status-line{margin-top:0}
.hero-home .hero-copy{grid-column:1;grid-row:2;align-self:center;padding-bottom:0}
.hero-home .hero-media{grid-column:2;grid-row:2;align-self:center}
.hero-home .hero-rail{
  grid-column:1/-1;align-self:end;position:relative;z-index:1;margin-top:0;
  justify-content:flex-start;gap:clamp(16px,2.6vw,36px);
}
.hero-home .hero-rail span{white-space:nowrap}
@media (max-width:820px){
  .hero-home{grid-template-rows:none;padding-top:clamp(20px,5vw,40px);padding-bottom:var(--rhythm)}
  .hero-home .hero-top,.hero-home .hero-copy,.hero-home .hero-media,.hero-home .hero-rail{grid-column:1;grid-row:auto}
  .hero-home .rotor{max-height:none}
  .hero-home .hero-rail{margin-top:8px}
}

/* hero rotator (home only; ambience, not navigation: no dots, no arrows) */
.hero-media[data-rotate] .rotor{position:relative;overflow:hidden;aspect-ratio:4/5}
.hero-media[data-rotate] img{width:100%;height:100%;object-fit:cover;aspect-ratio:auto}
.hero-frame{position:absolute;inset:0;opacity:0;transition:opacity .9s cubic-bezier(.2,.7,.2,1)}
.hero-frame.is-active{opacity:1}
.hero-media[data-rotate] figcaption span{transition:opacity .25s ease-out}
@media (max-width:820px){
  .hero-media[data-rotate] .rotor{aspect-ratio:3/2}
}
@media (prefers-reduced-motion:reduce){
  .hero-frame,.hero-media[data-rotate] figcaption span{transition:none}
}

/* ---------- cover hero: rotating triptych background + frosted left panel ----------
   Three portrait photos fill the hero; ONE frosted panel on the left blurs the
   images behind it AND tints them light so the text stays AA-legible, while the
   right stays sharp. Single backdrop-filter, motivated: readability over a photo
   hero, not decorative stacked glass. */
.hero-cover{
  display:block;position:relative;overflow:hidden;padding:0;
  min-height:calc(100svh - 72px);background:var(--onyx);
}
.hero-cover .hero-bg{position:absolute;inset:0;z-index:0}
.hero-cover .hero-bg-set{
  position:absolute;inset:0;display:flex;
  opacity:0;transition:opacity .9s cubic-bezier(.2,.7,.2,1);
}
.hero-cover .hero-bg-set.is-active{opacity:1}
.hero-cover .hero-bg-set img{flex:1;min-width:0;width:100%;height:100%;object-fit:cover;display:block}
.hero-cover .hero-inner{
  position:relative;z-index:1;
  width:min(56%,780px);min-height:calc(100svh - 72px);
  display:grid;grid-template-rows:auto 1fr auto;gap:clamp(18px,3vw,32px);
  padding:clamp(22px,3vw,40px) clamp(40px,5vw,88px) clamp(26px,3vw,44px) var(--pad);
  background:rgba(240,237,238,.83);
  -webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15);
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 80%,transparent 100%);
          mask-image:linear-gradient(90deg,#000 0%,#000 80%,transparent 100%);
}
/* text on the frosted panel is dark (onyx/near-onyx): AA-safe over the darkest
   blurred frames, verified by sampling rendered pixels */
.hero-cover .hero-top{align-self:start;display:flex;justify-content:flex-start;align-items:center;gap:clamp(18px,3vw,40px);flex-wrap:wrap}
.hero-cover .hero-since{color:var(--onyx)}
.hero-cover .hero-copy{align-self:center;padding-right:clamp(16px,3vw,48px)}
.hero-cover h1{font-family:var(--display);font-weight:600;font-size:clamp(2.3rem,4.8vw,4.9rem);line-height:.95;letter-spacing:-.02em;max-width:14ch}
.hero-cover h1 .accent-dot{color:var(--teal)}
.hero-cover .hero-sub{margin-top:26px;max-width:40ch;font-size:clamp(1rem,1.4vw,1.15rem);color:#22343a}
.hero-cover .hero-ctas{margin-top:34px;display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.hero-cover .hero-rail{align-self:end;display:flex;gap:clamp(16px,2.4vw,32px);flex-wrap:wrap;color:var(--onyx);border-top:1px solid var(--hair-light);padding-top:16px;padding-right:clamp(16px,3vw,48px)}
.hero-cover .hero-rail span{white-space:nowrap}
@media (max-width:820px){
  .hero-cover{min-height:0}
  .hero-cover .hero-inner{
    width:100%;min-height:calc(100svh - 60px);
    -webkit-mask-image:none;mask-image:none;background:rgba(240,237,238,.78);
    padding:clamp(20px,5vw,40px) var(--pad) var(--rhythm);
  }
  .hero-cover .hero-bg-set img:nth-child(1),
  .hero-cover .hero-bg-set img:nth-child(3){display:none}
}
@media (prefers-reduced-motion:reduce){.hero-cover .hero-bg-set{transition:none}}

/* dark hero variant (web-development page) */
.hero-dark .hero-sub{color:rgba(240,237,238,.78)}
.hero-dark .hero-rail{color:rgba(240,237,238,.6);border-top-color:var(--hair-dark)}
.hero-dark .hero-media figcaption{color:rgba(240,237,238,.6)}
.hero-dark h1 .accent-dot{color:var(--frost)}

/* ---------- ticker ---------- */
.ticker{
  background:var(--onyx);color:var(--platinum);
  overflow:hidden;border-top:1px solid var(--hair-dark);
  padding:12px 0;white-space:nowrap;
}
.ticker-track{display:inline-block;animation:tick 36s linear infinite;will-change:transform}
.ticker-track.is-paused{animation-play-state:paused}
.ticker:hover .ticker-track{animation-play-state:paused}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ticker .mono{font-size:12px}
.ticker .dot{color:var(--frost);margin:0 14px}
@media (prefers-reduced-motion:reduce){
  .ticker-track{animation:none}
}

/* ---------- manifesto: Sonder sticky stack ---------- */
.stack{position:relative}
.stack-bar{
  position:sticky;display:flex;align-items:center;
  min-height:var(--barh);
  background:var(--teal);
  border-top:1px solid var(--hair-dark);
  font-family:var(--display);
  font-size:clamp(1.5rem,3.2vw,2.6rem);
  line-height:1.05;letter-spacing:-.015em;font-weight:600;
  z-index:2;
}
.stack-bar.b1{bottom:calc(var(--barh)*3)}
.stack-bar.b2{bottom:calc(var(--barh)*2)}
.stack-bar.b3{bottom:var(--barh)}
.stack-bar.b4{bottom:0}
.stack-bar em{font-style:italic;font-weight:600;color:var(--frost);margin-left:.35ch}
.stack-bar .aside{
  font-size:clamp(.9rem,1.3vw,1.05rem);font-weight:400;
  color:rgba(240,237,238,.72);margin-left:1.2ch;letter-spacing:0;
}
.stack-prose{
  padding:clamp(18px,2.5vw,28px) 0 clamp(64px,8vw,110px);
  margin-left:clamp(0px,38%,560px);
  max-width:44ch;color:rgba(240,237,238,.78);
  font-size:clamp(1rem,1.4vw,1.15rem);
}
@media (max-width:720px){
  .stack-prose{margin-left:0}
}

/* ---------- generic divided rows (services home + included lists) ---------- */
.section-head{
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.9rem,4vw,3.2rem);letter-spacing:-.015em;line-height:1.02;
}
.eyebrow{display:block;margin-bottom:18px}
.field-teal .eyebrow,.field-onyx .eyebrow{color:var(--frost)}
.field-storm .eyebrow{color:var(--platinum)} /* frost/storm is 4.3, large-only; 12px labels need platinum (5.6) */
.tracks{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(32px,6vw,96px);margin-top:48px;
}
.track h3{
  font-size:clamp(1.4rem,2.4vw,2rem);letter-spacing:-.02em;
  padding-bottom:14px;border-bottom:2px solid var(--platinum);
}
.track ul{list-style:none}
.track li{border-bottom:1px solid var(--hair-dark)}
.row-link{
  display:flex;flex-direction:column;gap:4px;
  padding:18px 10px;margin:0 -10px;
  text-decoration:none;position:relative;
  transition:background-color .3s,color .3s;
}
.row-link strong{font-size:1.05rem;font-weight:600;display:flex;justify-content:space-between;gap:12px}
.row-link strong::after{content:"→";font-weight:400;transition:transform .15s ease-out}
.row-link:hover strong::after,.row-link:focus-visible strong::after{transform:translateX(4px)}
.row-link span{font-size:.92rem;color:rgba(240,237,238,.88);max-width:38ch;transition:color .3s} /* .88 not .78: 4.5:1 AA floor on storm */
.row-link:hover,.row-link:focus-visible{background:var(--platinum);color:var(--onyx)}
.row-link:hover span,.row-link:focus-visible span{color:var(--storm)}
.field-storm .section-head{max-width:26ch}
.track-lead{margin-top:22px;max-width:52ch;font-size:clamp(1rem,1.4vw,1.15rem);color:rgba(240,237,238,.88)}
@media (max-width:720px){.tracks{grid-template-columns:1fr}}

/* teaser "All X →" links (home) + index-page notes */
.more-link{
  display:inline-block;margin-top:40px;font-weight:600;font-size:1.05rem;
  text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px;
}
.grid-note{margin-top:36px;color:var(--storm)}
.grid-note a{text-underline-offset:4px}
@media (prefers-reduced-motion:reduce){.row-link,.row-link span,.row-link strong::after{transition:none}.row-link:hover strong::after,.row-link:focus-visible strong::after{transform:none}}

/* included rows on service pages (single column, teal field) */
.included{list-style:none;margin-top:42px;border-top:1px solid var(--hair-dark)}
.included li{
  border-bottom:1px solid var(--hair-dark);
  padding:clamp(18px,2.6vw,28px) 0;
  display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:8px clamp(16px,4vw,64px);align-items:baseline;
}
.included li strong{font-size:clamp(1.2rem,2.2vw,1.8rem);letter-spacing:-.02em;font-weight:600}
.included li span{font-size:1rem;color:rgba(240,237,238,.78);max-width:52ch}
@media (max-width:720px){.included li{grid-template-columns:1fr}}

/* ---------- work grid ---------- */
.work-grid{
  display:grid;grid-template-columns:repeat(6,1fr);
  grid-auto-rows:clamp(150px,18.5vw,268px);grid-auto-flow:dense;
  gap:clamp(14px,2vw,28px);margin-top:48px;
}
/* row height chosen so a 2-row tall tile reads portrait (~0.72) and a
   2-row wide tile reads landscape (~1.5): subjects match their tile shape */
.tile{grid-column:span 2;text-decoration:none;min-width:0}
.tile-tall{grid-column:span 2;grid-row:span 2}
.tile-wide{grid-column:span 4;grid-row:span 2}
.tile-full{grid-column:1/-1;grid-row:span 2}
.tile figure{overflow:hidden;height:100%;display:flex;flex-direction:column}
.tile .imgwrap{overflow:hidden;flex:1}
.tile img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .35s ease-out;
}
.tile:hover img{transform:scale(1.03)}
.tile figcaption{
  padding-top:10px;display:flex;justify-content:space-between;gap:10px;
  color:var(--storm);
}
.field-teal .tile figcaption{color:rgba(240,237,238,.7)}
.field-storm .tile figcaption{color:rgba(240,237,238,.88)} /* storm needs .88 for 4.5:1 at 12px */
.tile .imgwrap{min-height:180px} /* no tile crops to a sliver */
@media (max-width:1024px) and (min-width:720px){
  .work-grid{grid-template-columns:repeat(4,1fr);grid-auto-flow:dense}
  .tile{grid-column:span 2;grid-row:auto}
  .tile-tall{grid-column:span 2;grid-row:span 2}
  .tile-wide{grid-column:span 4}
}
@media (max-width:719px){
  .work-grid{grid-template-columns:repeat(2,1fr);grid-auto-flow:dense}
  .tile,.tile-tall{grid-column:span 1;grid-row:auto}
  .tile-wide{grid-column:span 2}
}
@media (prefers-reduced-motion:reduce){.tile img{transition:none}}

/* ---------- kit ledger ---------- */
.kit{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,5vw,80px)}
.kit-intro p{margin-top:20px;max-width:38ch;color:rgba(240,237,238,.78)}
.ledger{border-top:2px solid var(--frost)}
.ledger-row{
  display:grid;grid-template-columns:minmax(110px,180px) 1fr;
  gap:16px;padding:16px 0;border-bottom:1px solid var(--hair-dark);
  align-items:baseline;
}
.ledger-row dt{font-family:var(--mono);font-size:12px;letter-spacing:.05em;text-transform:uppercase;font-weight:500;color:var(--frost)}
.ledger-row dd{font-size:clamp(1rem,1.6vw,1.25rem);font-weight:600;letter-spacing:-.01em}
.kit-more{grid-column:2;margin-top:0;justify-self:start}
@media (max-width:820px){.kit{grid-template-columns:1fr}.kit-more{grid-column:1}}

/* ---------- about ---------- */
.about{position:relative;overflow:hidden}
.about-inner{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(32px,5vw,80px);position:relative;z-index:1}
.about h1{margin-bottom:34px;max-width:16ch}
.about p{
  font-size:clamp(1.25rem,2.4vw,1.9rem);line-height:1.3;letter-spacing:-.015em;
  font-weight:500;max-width:34ch;
}
.about p + p{margin-top:24px}
.about-side{display:flex;flex-direction:column;gap:14px;justify-content:end}
.about-side .mono{color:rgba(240,237,238,.68)}
.about .ghost{background:rgba(240,237,238,.045);right:auto;left:-.04em;bottom:-.14em}
@media (max-width:820px){.about-inner{grid-template-columns:1fr}}

/* ---------- FAQ ---------- */
.faq{max-width:820px}
.faq h2{margin-bottom:34px}
.faq details{border-top:1px solid var(--hair-light)}
.faq details:last-of-type{border-bottom:1px solid var(--hair-light)}
.faq summary{
  cursor:pointer;list-style:none;position:relative;
  padding:20px 44px 20px 0;
  font-size:clamp(1.05rem,1.8vw,1.3rem);font-weight:600;letter-spacing:-.01em;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+";position:absolute;right:4px;top:50%;transform:translateY(-50%) rotate(0deg);
  font-weight:400;font-size:1.4rem;color:var(--storm);
  transition:transform .2s ease-out;
}
.faq details[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.faq .faq-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease-out}
.faq details[open] .faq-wrap{grid-template-rows:1fr}
.faq .faq-a{overflow:hidden;min-height:0;max-width:60ch;color:#2f4a50}
.faq .faq-a p{padding:0 0 22px}
@media (prefers-reduced-motion:reduce){.faq summary::after,.faq .faq-wrap{transition:none}}

/* ---------- numbered FIG sections (web-development page) ---------- */
.figs{border-top:1px solid var(--hair-dark);margin-top:42px}
.fig{
  display:grid;grid-template-columns:minmax(130px,180px) minmax(0,1fr);
  gap:clamp(16px,4vw,64px);
  padding:clamp(26px,4vw,44px) 0;border-bottom:1px solid var(--hair-dark);
}
.fig-no{font-family:var(--mono);font-size:13px;letter-spacing:.05em;color:var(--frost);padding-top:8px;font-variant-numeric:tabular-nums}
.fig h3{font-family:var(--display);font-weight:600;font-size:clamp(1.4rem,2.6vw,2.1rem);letter-spacing:-.015em}
.fig p{margin-top:10px;max-width:56ch;color:rgba(240,237,238,.78)}
@media (max-width:640px){.fig{grid-template-columns:1fr;gap:8px}}

/* ---------- case study ---------- */
.case-hero{padding-top:clamp(40px,6vw,88px)}
.case-hero h1{font-family:var(--display);font-weight:600;font-size:clamp(2rem,5vw,4.2rem);letter-spacing:-.015em;line-height:.98;max-width:18ch}
.case-hero .lead-img{margin-top:40px}
.case-hero .lead-img img{width:100%;aspect-ratio:16/9;object-fit:cover}
.lead-img--portrait img{aspect-ratio:4/5;max-width:min(620px,100%)}
.case-meta{
  display:flex;gap:clamp(24px,5vw,72px);flex-wrap:wrap;
  margin-top:24px;border-top:1px solid var(--hair-light);padding-top:18px;
}
.case-meta div{display:flex;flex-direction:column;gap:4px}
.case-meta dt{font-family:var(--mono);font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--storm)}
.case-meta dd{font-weight:600}
.case-note p{
  font-size:clamp(1.25rem,2.4vw,1.9rem);line-height:1.3;letter-spacing:-.015em;
  font-weight:500;max-width:36ch;
}
.case-next{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.case-next a{font-weight:600;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}

/* ---------- book field ---------- */
.book{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:clamp(36px,6vw,96px)}
.book h1,.book h2{font-family:var(--display);font-weight:600;font-size:clamp(2.4rem,6vw,4.4rem);letter-spacing:-.015em;line-height:.98}
.contact-rail{
  margin-top:48px;display:flex;gap:24px;flex-wrap:wrap;
  color:#134449;border-top:1px solid rgba(10,9,12,.25);padding-top:18px;
}
.book-solo{display:block}
.status-line{
  display:inline-flex;align-items:center;gap:9px;margin-top:26px;
  font-family:var(--mono);font-size:12px;letter-spacing:.05em;text-transform:uppercase;font-weight:500;
}
.status-line .pulse{width:8px;height:8px;border-radius:50%;background:var(--teal);flex:none}
.book-ctas{margin-top:34px;display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.book .ig{font-weight:600;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.form{display:flex;flex-direction:column;gap:22px}
.form label{font-family:var(--mono);font-size:12px;letter-spacing:.05em;text-transform:uppercase;font-weight:500;display:block;margin-bottom:8px}
.form input,.form textarea{
  width:100%;background:transparent;border:none;
  border-bottom:2px dashed rgba(10,9,12,.48);padding:10px 2px; /* .48: 3.2:1 affordance on frost */
  font-family:var(--sans);font-size:17px;color:var(--onyx);
  transition:border-bottom-color .18s ease-out;
}
.form input:hover,.form textarea:hover{border-bottom-color:rgba(10,9,12,.7)}
.form input:focus,.form textarea:focus{border-bottom-style:solid;border-bottom-color:var(--onyx)}
.form input::placeholder,.form textarea::placeholder{color:rgba(10,9,12,.66)} /* .66: 4.5:1 on frost */
.form textarea{resize:vertical;min-height:96px}
.form .err{display:none;font-size:.9rem;margin-top:6px;font-weight:500}
.form .invalid .err{display:block}
.form .invalid input,.form .invalid textarea{border-bottom-style:solid;border-bottom-color:var(--teal);border-bottom-width:3px}
@media (prefers-reduced-motion:reduce){.form input,.form textarea{transition:none}}
.form-note{font-size:.92rem;color:#134449;max-width:40ch}
@media (max-width:820px){.book{grid-template-columns:1fr}}

/* ---------- footer (reference: daylight) ----------
   Bold teal field: wordmark left, centered bracketed link stack, display
   statement right, over a mono meta bar. Frost carries the accents. */
.site-footer{
  background:var(--teal);color:var(--platinum);overflow:hidden;
  padding:clamp(56px,8vw,116px) var(--pad) clamp(26px,3vw,40px);
}
footer a{text-decoration:none}
.footer-main{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  gap:clamp(40px,6vw,80px);min-height:clamp(260px,32vw,420px);
}
.footer-main .wordmark{justify-self:start;font-size:clamp(20px,2vw,26px);color:var(--platinum)}
.footer-main .wordmark svg{width:clamp(24px,2.4vw,30px);height:clamp(24px,2.4vw,30px);color:var(--frost)}
.footer-main .wordmark span span{opacity:.7}
.footer-links{
  list-style:none;justify-self:center;
  display:flex;flex-direction:column;align-items:center;gap:clamp(13px,1.5vw,20px);
}
.footer-links a{
  font-family:var(--mono);font-size:13px;letter-spacing:.06em;text-transform:uppercase;
  color:rgba(240,237,238,.82);transition:color .2s;
}
.footer-links a::before{content:"[ ";color:var(--frost)}
.footer-links a::after{content:" ]";color:var(--frost)}
.footer-links a:hover{color:var(--platinum)}
.footer-statement{
  justify-self:end;text-align:right;color:var(--frost);
  font-family:var(--display);font-weight:600;letter-spacing:-.02em;line-height:.95;
  font-size:clamp(2.4rem,4.6vw,4rem);transition:opacity .2s;
}
.footer-statement:hover{opacity:.82}
.footer-meta{
  display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between;
  margin-top:clamp(40px,5vw,72px);padding-top:clamp(22px,2.5vw,30px);
  border-top:1px solid var(--hair-dark);color:rgba(240,237,238,.68);
}
.footer-meta a{color:inherit}
.footer-meta .top-link{border:1px solid var(--hair-dark);padding:10px 16px}
.footer-meta .top-link:hover{background:rgba(240,237,238,.08)}
@media (max-width:820px){
  .footer-main{
    grid-template-columns:1fr;justify-items:center;text-align:center;
    gap:clamp(30px,7vw,48px);min-height:0;
  }
  .footer-main .wordmark,.footer-statement{justify-self:center;text-align:center}
}

/* ---------- hero load orchestration (home only, the one allowed sequence) ----------
   CSS-driven on load, NOT gated by the JS IntersectionObserver: the LCP h1 must
   paint immediately. Elements are visible by default (reduced-motion + no-JS get
   the instant designed variant); the entrance only runs when motion is allowed. */
.orchestrate .r-clip,.orchestrate .r-fade{opacity:1;transform:none;clip-path:none;transition:none}
@keyframes heroClip{from{opacity:0;clip-path:inset(0 0 12% 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes heroRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  .orchestrate .hero-top{animation:heroRise .5s ease-out both}
  .orchestrate .r-clip{animation:heroClip .6s cubic-bezier(.2,.7,.2,1) both}
  .orchestrate .hero-sub{animation:heroRise .5s ease-out .12s both}
  .orchestrate .hero-ctas{animation:heroRise .5s ease-out .12s both}
  .orchestrate .hero-media{animation:heroRise .5s ease-out .2s both}
  .orchestrate .hero-rail{animation:heroRise .5s ease-out .3s both}
}

/* ---------- reveals (3 variants, varied per content type) ---------- */
.r-fade,.r-rise,.r-clip{opacity:0}
.r-fade{transition:opacity .5s ease-out}
.r-rise{transform:translateY(18px);transition:transform .45s ease-out,opacity .45s ease-out}
.r-clip{clip-path:inset(0 0 12% 0);transition:clip-path .6s cubic-bezier(.2,.7,.2,1),opacity .4s ease-out}
.on{opacity:1;transform:none;clip-path:inset(0)}
@media (prefers-reduced-motion:reduce){
  .r-fade,.r-rise,.r-clip{opacity:1;transform:none;clip-path:none;transition:none}
}
