/* ==========================================================================
   Maison Commerce — one-page lander
   Black & white, wide layout, GT Sectra (headings) + GT Mechanik Poly (body)
   ========================================================================== */

/* ---------- Fonts (drop licensed files into /fonts — see fonts/README.md) -- */
@font-face {
  font-family: "GT Sectra";
  src: url("../fonts/GTSectra-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Sectra";
  src: url("../fonts/GTSectra-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Sectra";
  src: url("../fonts/GTSectra-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Sectra";
  src: url("../fonts/GTSectra-BookItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GT Sectra";
  src: url("../fonts/GTSectraDisplay-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
/* GT Mechanik Poly — the proportional cut of the family (Mono and Semi are
   monospaced / semi-monospaced, so they're wrong for running text).
   These are static cuts, not a variable file, so each face claims a weight
   *range*: the page asks for 450, 550 and 600, and without ranges the CSS
   matching algorithm rounds those UP to the next available master (450→Medium,
   550→Bold). The ranges below pin them to the cut that was actually intended. */
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Thin-Trial.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Light-Trial.woff2") format("woff2");
  font-weight: 200 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Regular-Trial.woff2") format("woff2");
  font-weight: 400 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Medium-Trial.woff2") format("woff2");
  font-weight: 500 550;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Bold-Trial.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Heavy-Trial.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Black-Trial.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Obliques — only fetched if something actually asks for sans italic */
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Thin-Oblique-Trial.woff2") format("woff2");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Light-Oblique-Trial.woff2") format("woff2");
  font-weight: 200 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Regular-Oblique-Trial.woff2") format("woff2");
  font-weight: 400 450;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Medium-Oblique-Trial.woff2") format("woff2");
  font-weight: 500 550;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Bold-Oblique-Trial.woff2") format("woff2");
  font-weight: 600 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Heavy-Oblique-Trial.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GT Mechanik Poly";
  src: url("../fonts/GT-Mechanik-Poly-Black-Oblique-Trial.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --ink: #0a0a0a;
  --ink-soft: #1d1d1b;
  --dim: #55554f;
  --faint: #8a8a83;
  --line: rgba(10, 10, 10, 0.12);
  --line-soft: rgba(10, 10, 10, 0.07);
  --bg: #fdfdfb;
  --bg-0: rgba(253, 253, 251, 0);
  --card: #ffffff;
  --paper: #faf9f6;
  --surface: #f1f1ef;
  --surface-2: #e8e8e4;
  --wire: #ecece7;
  --wire-d: #cfcfc8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 3.4vw, 60px);
  --max: 1840px;
  --shot-gap: clamp(14px, 1.4vw, 24px);
  --scene-d: 12s;
  --font-serif: "GT Sectra", Georgia, "Times New Roman", serif;
  --font-sans: "GT Mechanik Poly", -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[data-iclosed-link] { cursor: pointer; }
em { font-style: italic; }
strong { font-weight: 600; }

::selection { background: var(--ink); color: #fff; }

.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Shared layout ------------------------------------------------- */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec { padding-block: clamp(52px, 5.5vw, 92px); position: relative; }

/* ---------- Corner ticks ----------------------------------------------------- */
/* 4px marks inset 8px from each edge of a card — one box, four gradient dots
   rather than four elements. currentColor so they flip to white on the black
   open result tile. Applies to both card families; keep them in sync. */
.result::after,
.usp::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0),
    linear-gradient(currentColor 0 0);
  background-size: 4px 4px;
  background-repeat: no-repeat;
  background-position: left top, right top, left bottom, right bottom;
}

.sec-head { margin-bottom: clamp(12px, 1.4vw, 20px); }
.sec-head .eyebrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.sec-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.eyebrow.center { justify-content: center; }
.sec-num { color: var(--ink); font-size: inherit; font-variation-settings: "wght" 500; }
.sec-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 2.2vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  max-width: 20ch;
}
.sec-title em { font-style: italic; font-weight: 400; }

/* ---------- Word-by-word heading reveal ------------------------------------ */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* room for descenders and italic overhang, cancelled so metrics don't shift */
  padding: 0.06em 0.08em 0.14em 0;
  margin: -0.06em -0.08em -0.14em 0;
}
.w-i {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition:
    transform 0.72s var(--ease) calc(var(--wi) * 52ms),
    opacity 0.5s ease calc(var(--wi) * 52ms);
}
.revealed .w-i { transform: none; opacity: 1; }

.sec-sub {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.65;
  color: var(--dim);
  max-width: 58ch;
}
.sec-sub.narrow { margin-bottom: clamp(32px, 4vw, 56px); }

.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
}
.split-2.flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* ---------- Buttons & links ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.3s;
}
.btn:hover {
  background: var(--ink-soft);
}
.btn-label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0.12em 0;
  margin: -0.12em 0;
}
.btn-label > span {
  display: block;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.btn-label::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: 0.12em;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.btn:hover .btn-label > span {
  transform: translateY(-100%);
  opacity: 0;
}
.btn:hover .btn-label::after {
  transform: translateY(0);
  opacity: 1;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 12px 24px; font-size: 16px; background: #001b05; }
.btn-lg:hover { background: #002a08; }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

.link-arrow {
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
.link-arrow::after {
  content: "\2192";
  transition: transform 0.35s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nav ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: -1px; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s;
}
.nav-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.4s var(--ease);
}
.nav.scrolled .nav-inner { padding-bottom: 11px; }

/* Two pills: brand · (tabs + actions) — hung from the top edge */
.brand,
.nav-cluster {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  min-height: 58px;
}
.brand { padding: 0 20px; border-radius: 0 0 20px 20px; }
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: 0 0 20px 20px;
}
.tabs ul { padding: 0 2px; }

/* Load-in: brand drops, then the cluster, then its items widen it open */
@keyframes nav-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes nav-item-in {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: translateY(0); }
}
html.js .brand { animation: nav-drop 0.6s var(--ease) 0.1s both; }
html.js .nav-cluster { animation: nav-drop 0.6s var(--ease) 0.4s both; }
html.js .tabs li,
html.js .nav-actions .btn {
  animation: nav-item-in 0.45s var(--ease) both;
}
html.js .tabs li:nth-child(1) { animation-delay: 0.8s; }
html.js .tabs li:nth-child(2) { animation-delay: 0.86s; }
html.js .tabs li:nth-child(3) { animation-delay: 0.92s; }
html.js .tabs li:nth-child(4) { animation-delay: 0.98s; }
html.js .tabs li:nth-child(5) { animation-delay: 1.04s; }
html.js .nav-actions .btn { animation-delay: 1.12s; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 26px; width: auto; }

.tabs { position: relative; }
.tabs ul { display: flex; gap: 2px; position: relative; z-index: 1; }
.tabs a {
  display: inline-block;
  padding: 9px 17px;
  font-size: 14px;
  font-weight: 450;
  color: var(--dim);
  border-radius: 999px;
  transition: color 0.3s;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); }
.tab-pill {
  position: absolute;
  top: 0; left: 0;
  background: rgba(10, 10, 10, 0.065);
  border-radius: 999px;
  opacity: 0;
  z-index: 0;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease), opacity 0.3s;
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  position: relative;
}
.burger span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.burger span:first-child { transform: translate(-50%, -50%) translateY(-3.5px); }
.burger span:last-child { transform: translate(-50%, -50%) translateY(3.5px); }
.menu-open .burger span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-open .burger span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* Kept in flow with visibility rather than display:none — toggling display in
   the same frame as opacity skips the transition entirely. */
.mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 10px var(--gutter) 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition:
    opacity 0.3s var(--ease),
    clip-path 0.45s var(--ease),
    visibility 0s linear 0.45s;
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu .btn { margin-top: 18px; padding: 14px 28px; align-self: flex-start; border-bottom: 0; justify-content: center; }
.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transition:
    opacity 0.25s var(--ease),
    clip-path 0.45s var(--ease),
    visibility 0s;
}
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu > :nth-child(1) { transition-delay: 0.08s; }
.menu-open .mobile-menu > :nth-child(2) { transition-delay: 0.13s; }
.menu-open .mobile-menu > :nth-child(3) { transition-delay: 0.18s; }
.menu-open .mobile-menu > :nth-child(4) { transition-delay: 0.23s; }
.menu-open .mobile-menu > :nth-child(5) { transition-delay: 0.28s; }
.menu-open .mobile-menu > :nth-child(6) { transition-delay: 0.33s; }

/* ---------- 1 · Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(120px, 15vh, 176px);
  padding-bottom: clamp(40px, 5vw, 80px);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 4.5vw, 88px);
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  padding: 32px;
  background-color: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.01;
  letter-spacing: -0.018em;
  margin: 20px 0 26px;
}
.hero-title em { font-weight: 400; }
.hero-copy .eyebrow { font-size: 10px; letter-spacing: 0.1em; }

.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--dim);
  max-width: none;
  margin-bottom: 36px;
}

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.cta-row.center { justify-content: center; }

.proof { margin-top: auto; padding-top: clamp(40px, 5vw, 64px); }
.proof-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.proof-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px clamp(18px, 1.8vw, 30px); }
.client-logo {
  height: 20px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s;
}
.client-logo:hover { opacity: 1; }
.proof-more { font-size: 13.5px; color: var(--faint); }

/* Hero portfolio marquee */
.hero-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--shot-gap);
  width: 75%;
  justify-self: end;
  /* Full viewport height, with negative margins cancelling the section's
     padding so the column bleeds edge to edge without growing the hero. */
  height: 100vh;
  height: 100svh;
  margin-top: calc(clamp(120px, 15vh, 176px) * -1);
  margin-bottom: calc(clamp(40px, 5vw, 80px) * -1);
  transform: rotate(2deg) scale(1.06);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  flex-direction: column;
  gap: var(--shot-gap);
  /* No will-change here on purpose: each track is ~8500-9500px tall, past the
     8192px max texture size on plenty of GPUs. Promoting it permanently made
     the browser rasterize the whole strip, and the down track — which starts
     ~4200px into its own layer — would intermittently come up blank until a
     reload. Transform animations get composited anyway, and without the hint
     only the visible tiles are painted. */
}
.m-set { display: flex; flex-direction: column; gap: var(--shot-gap); }
.m-up .marquee-track { animation: mq-up 200s linear infinite; }
.m-down .marquee-track { animation: mq-down 220s linear infinite; }
.hero-shots:hover .marquee-track { animation-play-state: paused; }
html:not(.js) .marquee-track { animation: none; }

@keyframes mq-up {
  to { transform: translateY(calc(-50% - var(--shot-gap) / 2)); }
}
@keyframes mq-down {
  from { transform: translateY(calc(-50% - var(--shot-gap) / 2)); }
  to { transform: translateY(0); }
}

/* ---------- Wireframe placeholder primitives ------------------------------- */
.shot {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.02), 0 30px 60px -42px rgba(10, 10, 10, 0.25);
  flex: none;
  aspect-ratio: 9 / 19.5;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-bar {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line-soft);
  background: #fafaf8;
}
.shot-bar i { width: 6px; height: 6px; border-radius: 50%; background: #e0e0da; }
.shot-body { padding: 15px; display: flex; flex-direction: column; gap: 9px; }
.shot-body.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.shot-body.center { align-items: center; }

.s-line { display: block; height: 7px; border-radius: 99px; background: var(--wire); flex: none; }
.s-line.dark { background: var(--wire-d); }
.s-line.h-lg { height: 11px; }
.s-line.center { margin-inline: auto; }
.s-block { border-radius: 10px; background: linear-gradient(135deg, #f0f0ec, #e3e3dd); flex: none; }
.s-pill { height: 26px; border-radius: 99px; background: var(--ink); flex: none; }
.s-pill.center { margin-inline: auto; }
.s-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wire-d); flex: none; }
.s-dot.dark { background: var(--ink); }
.s-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.s-nav .s-line { width: 14%; }
.s-stars { display: flex; gap: 3px; }
.s-stars i { width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }
.s-row { display: flex; align-items: center; gap: 10px; }
.s-row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.grow { flex: 1; }
.s-thumb { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #f0f0ec, #e3e3dd); flex: none; }
.s-divider { height: 1px; background: var(--line-soft); }
.s-num {
  width: 22px; height: 22px; flex: none;
  border: 1px solid var(--wire-d);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim);
}
.s-input { height: 24px; border-radius: 8px; border: 1px solid var(--line-soft); background: #fbfbf9; }
.s-chip { height: 22px; border-radius: 99px; border: 1px solid var(--wire-d); margin-inline: auto; }
.s-chip.sel { background: var(--ink); border-color: var(--ink); }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.s-grid > div { display: flex; flex-direction: column; gap: 6px; }
.s-chiprow { display: flex; gap: 6px; }
.s-chiprow span { width: 30px; height: 19px; border-radius: 6px; border: 1px solid var(--wire-d); }
.s-chiprow span.on { background: var(--ink); border-color: var(--ink); }
.s-ghostbtn { width: 46%; height: 24px; border-radius: 99px; border: 1.5px dashed var(--wire-d); }

/* width utilities */
.w-10{width:10%}.w-12{width:12%}.w-14{width:14%}.w-15{width:15%}.w-20{width:20%}
.w-25{width:25%}.w-28{width:28%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}
.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}
.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}
.w-95{width:95%}.w-100{width:100%}
/* block heights */
.h-56{height:56px}.h-64{height:64px}.h-90{height:90px}.h-100{height:100px}
.h-110{height:110px}.h-150{height:150px}.h-170{height:170px}

/* ---------- 2/3 · Scenes (animated browser mockups) ------------------------ */
.scene-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 420;
}
/* a frame that carries thought bubbles below it hands the ratio to the stage,
   so the frame itself can grow to fit both the scene and the bubbles */
.scene-frame.has-thoughts { aspect-ratio: auto; }
.scene-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 420;
}
.scene {
  position: absolute;
  top: 0; left: 0;
  width: 560px;
  height: 420px;
  transform-origin: top left;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  overflow: hidden;
}
.scene * { animation-duration: var(--scene-d); animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.scene.paused *, .scene.paused *::before, .scene.paused *::after { animation-play-state: paused !important; }

.sc-chrome {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fafaf8;
  position: relative;
}
.sc-chrome > i { width: 8px; height: 8px; border-radius: 50%; background: #e2e2dc; }
.sc-url {
  width: 190px; height: 16px;
  margin-left: 14px;
  border-radius: 99px;
  background: #efefeb;
}
.sc-close {
  position: absolute;
  right: 16px; top: 7px;
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.sc-close::before, .sc-close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 1.4px; background: var(--faint);
}
.sc-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.sc-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.sc-page {
  position: absolute;
  top: 36px; left: 0; right: 0; bottom: 0;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* problem page layout — the same PDP as the solution, but cluttered and off-kilter */
.sc-header { display: flex; align-items: center; gap: 10px; height: 18px; }
.sc-header .s-line { height: 6px; }
.sc-cartlabel { margin-left: auto; font-size: 10px; color: var(--faint); letter-spacing: 0.04em; }
.sc-cartlabel::after { content: "Cart (0)"; }

.scene-problem .sc-pdp { flex: 1; height: auto; }
.scene-problem .sc-gallery { width: 208px; top: 4px; transform: rotate(-0.7deg); }
.scene-problem .sc-thumbs { gap: 5px; }
.scene-problem .sc-thumbs i:first-child { outline: 0; }
.scene-problem .sc-thumbs i:nth-child(2) { width: 31px; height: 35px; }
.scene-problem .sc-thumbs i:nth-child(4) { width: 47px; height: 31px; }
.scene-problem .sc-buybox { left: 236px; top: 2px; gap: 5px; }
.scene-problem .sc-buybox .s-line:nth-child(4) { transform: translateX(7px) rotate(0.4deg); }
.scene-problem .sc-buybox .s-line:nth-child(6) { transform: translateX(-5px); }
.scene-problem .sc-sizes { margin-top: 12px; gap: 5px; flex-wrap: wrap; }
.scene-problem .sc-sizes span { width: 33px; height: 23px; font-size: 9px; }
.scene-problem .s-ghostbtn { width: 58%; margin-top: 7px; transform: rotate(-0.6deg); }

/* cursor + tag */
.sc-cursor {
  position: absolute;
  top: 0; left: 0;
  offset-rotate: 0deg;
  offset-anchor: center;
  opacity: 0;
  will-change: offset-distance;
  filter: drop-shadow(0 2px 4px rgba(10, 10, 10, 0.18));
}
.sc-cursor svg { transform: translate(5px, 7px); }
.cur-tag {
  position: absolute;
  left: 18px; top: 22px;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--dim);
  box-shadow: 0 4px 10px -4px rgba(10, 10, 10, 0.2);
}
.cur-tag.tag-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.cur-problem {
  offset-path: path("M 240 64 C 210 78 168 96 140 112 C 116 124 96 136 88 150 C 132 192 220 206 280 232 C 350 212 425 94 452 66 C 462 160 458 250 456 298 C 340 312 180 292 124 264 C 200 232 300 202 348 184 C 420 132 500 62 528 22");
  animation-name: p-cursor;
}
.cur-solution {
  offset-path: path("M 430 90 C 412 130 388 190 371 239 C 380 275 400 302 416 323 C 456 296 490 220 500 174 C 496 240 468 322 439 370 C 442 388 446 402 450 416");
  animation-name: s-cursor;
}

/* click ripples */
.ripple {
  position: absolute;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
}
.r-p1 { left: 88px; top: 150px; animation-name: rip-p1; }
.r-p2 { left: 280px; top: 232px; animation-name: rip-p2; }
.r-p3 { left: 285px; top: 228px; animation-name: rip-p3; }
.r-p4 { left: 528px; top: 22px; animation-name: rip-p4; }
.r-s1 { left: 371px; top: 239px; animation-name: rip-s1; }
.r-s2 { left: 416px; top: 323px; animation-name: rip-s2; }
.r-s3 { left: 439px; top: 370px; animation-name: rip-s3; }
.r-s4 { left: 500px; top: 174px; animation-name: rip-s4; }

/* thought notes — a bubble that surfaces under the scene, trailing up to it */
.sc-thoughts {
  position: relative;
  height: 34px;
  margin-top: 38px;
  /* --t1/--t2 are the measured widths of the copy, set by main.js. The
     fallbacks only matter if that never runs. */
  --sc-pad: 17px;
  --sc-morph-size: 10px;
}
.sc-note {
  /* anchored left, so the bubble grows rightward as each thought lands */
  position: absolute;
  left: 0;
  top: 0;
  height: 34px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 1px rgba(10, 10, 10, 0.03), 0 14px 26px -14px rgba(10, 10, 10, 0.28);
  white-space: nowrap;
  /* the bubble lives outside .scene now, so it needs the timeline itself */
  animation: sc-bubble var(--scene-d) infinite cubic-bezier(0.65, 0, 0.35, 1);
}
/* the two trailing dots that make it read as a thought, not a tooltip */
.sc-note::before,
.sc-note::after {
  content: '';
  position: absolute;
  left: 50%;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 12px -8px rgba(10, 10, 10, 0.3);
  animation-duration: var(--scene-d);
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.16, 0.84, 0.44, 1);
  transform-origin: 50% 50%;
}
.sc-note::before { width: 11px; height: 11px; left: 20px; top: -15px; animation-name: sc-dot-a; }
.sc-note::after  { width: 6px;  height: 6px;  left: 9px;  top: -28px; animation-name: sc-dot-b; }

/* the loader: one shape cycling dot → square → triangle while a thought forms */
.sc-morph {
  /* parked on the text's own left edge, so it never shifts while the bubble
     grows around it — the shape sits exactly where the first word lands */
  position: absolute;
  left: var(--sc-pad);
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: var(--sc-morph-size);
  height: var(--sc-morph-size);
  animation: sc-morph-show var(--scene-d) infinite cubic-bezier(0.65, 0, 0.35, 1);
}
/* shape and visibility live on separate elements so their transforms don't
   overwrite each other — two animations on one element can't share transform */
.sc-morph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: sc-morph-shape 2.4s infinite cubic-bezier(0.65, 0, 0.35, 1);
}
/* the thoughts themselves, stacked in the same spot and swapped in turn */
.sc-say {
  position: absolute;
  left: var(--sc-pad);
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: max-content;
  height: max-content;
  opacity: 0;
  animation: var(--scene-d) infinite cubic-bezier(0.16, 0.84, 0.44, 1);
}
.s-1 { animation-name: sc-say-1; }
.s-2 { animation-name: sc-say-2; }

/* keep honouring the offscreen pause the scene already does */
.scene-frame:has(.scene.paused) .sc-note,
.scene-frame:has(.scene.paused) .sc-note::before,
.scene-frame:has(.scene.paused) .sc-note::after { animation-play-state: paused; }

/* problem exit state */
.sc-dim {
  position: absolute; inset: 0;
  background: rgba(253, 253, 251, 0.72);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  animation-name: p-dim;
  pointer-events: none;
}
.sc-exit {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 26px;
  text-align: center;
  box-shadow: 0 24px 48px -24px rgba(10, 10, 10, 0.35);
  opacity: 0;
  animation-name: p-exit;
}
.exit-title { display: block; font-family: var(--font-serif); font-size: 17px; font-weight: 500; }
.exit-sub { display: block; font-size: 11.5px; color: var(--faint); margin-top: 4px; }

/* solution page layout */
.sc-pdp { position: relative; height: 100%; }
.sc-gallery {
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-gallery .s-block { flex: 1; }
.sc-thumbs { display: flex; gap: 8px; }
.sc-thumbs i { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #f0f0ec, #e3e3dd); }
.sc-thumbs i:first-child { outline: 1.5px solid var(--ink); outline-offset: 2px; }

.sc-buybox {
  position: absolute;
  left: 272px; right: 0; top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-carticon { position: absolute; right: 0; top: -4px; font-size: 10px; color: var(--dim); letter-spacing: 0.04em; }
.sc-carticon span { position: absolute; right: 0; top: 0; white-space: nowrap; }
.cart-0 { animation-name: cart-0; }
.cart-1 { opacity: 0; font-weight: 600; color: var(--ink); animation-name: cart-1; }
.cart-2 { opacity: 0; font-weight: 600; color: var(--ink); animation-name: cart-2; }

.sc-usps { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.sc-usps li {
  position: relative;
  padding-left: 14px;
  font-size: 8.5px;
  line-height: 10px;
  color: var(--dim);
  letter-spacing: 0.01em;
}
.sc-usps li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 9px; height: 9px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.3 12 13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.3 12 13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.sc-stock {
  margin-top: 2px;
  height: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #a4443a;
  opacity: 0;
  transform: translateY(-3px);
  animation-name: stock-in;
}
.sc-stock::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #c0554a;
  flex: none;
}

.sc-pay {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pay-label {
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.pay-icons { display: flex; gap: 4px; }
.pay-icons i {
  height: 15px;
  flex: 1;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 1px;
  font-style: normal;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dim);
}
.pm-mc b { width: 6px; height: 6px; border-radius: 50%; background: var(--wire-d); }
.pm-mc b:last-child { margin-left: -2.5px; background: #cfcfc7; }

.sc-sizes { display: flex; gap: 8px; margin-top: 12px; }
.sc-sizes span {
  width: 44px; height: 30px;
  border: 1px solid var(--wire-d);
  border-radius: 8px;
  font-size: 10.5px;
  color: var(--dim);
  display: flex; align-items: center; justify-content: center;
}
.sc-sizes .sz-sel { animation-name: size-sel; }

.sc-atc {
  margin-top: 12px;
  height: 44px;
  border-radius: 99px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  animation-name: atc-press;
}
.atc-label { color: #fff; font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; }

/* cart drawer */
.sc-drawer {
  position: absolute;
  top: 44px; right: 12px; bottom: 12px;
  width: 216px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: -18px 24px 48px -30px rgba(10, 10, 10, 0.35);
  transform: translateX(115%);
  animation-name: drawer;
}
.s-thumb.sm { width: 26px; height: 26px; border-radius: 6px; }
.sc-price { font-size: 8.5px; font-weight: 600; color: var(--ink); flex: none; }

/* cart line that appears when the upsell is accepted */
.sc-added {
  height: 0;
  margin-top: -12px;
  overflow: hidden;
  opacity: 0;
  animation-name: added-row;
}

.sc-upsell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  border: 1px dashed var(--wire-d);
  border-radius: 9px;
  background: #fcfcfa;
}
.ups-title {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}
.ups-row { display: flex; align-items: center; gap: 8px; }
.ups-add {
  position: relative;
  height: 18px;
  min-width: 40px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--ink);
  flex: none;
}
.ups-1 .ups-add { animation-name: ups-press; }
.ups-add-1 {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  animation-name: ups-added;
}
.ups-1 .ups-add-0 { animation-name: ups-add-out; }

.sc-total { font-size: 9px; }
.tot-label { color: var(--dim); letter-spacing: 0.04em; }
.tot-val { position: relative; display: block; font-weight: 600; color: var(--ink); }
.tot-0 { animation-name: tot-0; }
.tot-1 { position: absolute; right: 0; top: 0; white-space: nowrap; opacity: 0; animation-name: tot-1; }

.sc-checkout {
  margin-top: auto;
  height: 40px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}

/* success card */
.sc-success {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 28px 56px -28px rgba(10, 10, 10, 0.35);
  opacity: 0;
  animation-name: success-card;
}
.ok-circle { stroke-dasharray: 100; stroke-dashoffset: 100; animation-name: ok-circle; }
.ok-check { stroke-dasharray: 100; stroke-dashoffset: 100; animation-name: ok-check; }
.ok-title { font-family: var(--font-serif); font-size: 16px; font-weight: 500; margin-top: 4px; }
.ok-sub { font-size: 11.5px; color: var(--faint); }

/* ----- scene keyframes: problem (12s loop) ----- */
@keyframes p-cursor {
  0%        { offset-distance: 0%; opacity: 0; }
  3%        { opacity: 1; }
  9%, 13%   { offset-distance: 6.3%; }
  17%, 22%  { offset-distance: 9.9%; }
  30%, 40%  { offset-distance: 22.7%; }
  48%, 52%  { offset-distance: 38.2%; }
  58%       { offset-distance: 52.1%; }
  66%       { offset-distance: 71.7%; }
  72%, 74%  { offset-distance: 85.8%; }
  80%, 84%  { offset-distance: 100%; opacity: 1; }
  87%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes rip-p1 {
  0%, 17.5% { transform: scale(0.2); opacity: 0; }
  18.5%     { opacity: 0.5; }
  23%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes rip-p2 {
  0%, 31%   { transform: scale(0.2); opacity: 0; }
  32%       { opacity: 0.5; }
  36%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes rip-p3 {
  0%, 34.5% { transform: scale(0.2); opacity: 0; }
  35.5%     { opacity: 0.5; }
  39.5%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes rip-p4 {
  0%, 80.5% { transform: scale(0.2); opacity: 0; }
  81.5%     { opacity: 0.55; }
  85.5%, 100% { transform: scale(1.9); opacity: 0; }
}
/* The bubble never leaves. It sits narrow while the loader morphs, widens as a
   thought lands, shrinks back to the loader, then widens onto the next one.
   width can't animate to auto/max-content, so the copy's width comes in as
   --t1/--t2 (measured in main.js) and the pill derives the rest. */
@keyframes sc-bubble {
  0%, 13%   { width: calc(var(--sc-morph-size) + var(--sc-pad) * 2); }
  17%, 43%  { width: calc(var(--t1, 119px) + var(--sc-pad) * 2); }
  47%, 57%  { width: calc(var(--sc-morph-size) + var(--sc-pad) * 2); }
  61%, 88%  { width: calc(var(--t2, 166px) + var(--sc-pad) * 2); }
  92%, 100% { width: calc(var(--sc-morph-size) + var(--sc-pad) * 2); }
}
/* dot → square → dot, turning as it goes */
@keyframes sc-morph-shape {
  0%   { border-radius: 50%; transform: rotate(0deg); }
  14%  { border-radius: 50%; }
  42%  { border-radius: 2px; }
  68%  { border-radius: 2px; }
  100% { border-radius: 50%; transform: rotate(360deg); }
}
@keyframes sc-morph-show {
  0%, 13%   { opacity: 1; transform: scale(1); }
  16%, 44%  { opacity: 0; transform: scale(0.4); }
  47%, 57%  { opacity: 1; transform: scale(1); }
  60%, 89%  { opacity: 0; transform: scale(0.4); }
  92%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes sc-say-1 {
  0%, 14%   { opacity: 0; transform: translateY(5px); }
  19%, 41%  { opacity: 1; transform: translateY(0); }
  44%, 100% { opacity: 0; transform: translateY(-5px); }
}
@keyframes sc-say-2 {
  0%, 58%   { opacity: 0; transform: translateY(5px); }
  63%, 86%  { opacity: 1; transform: translateY(0); }
  89%, 100% { opacity: 0; transform: translateY(-5px); }
}
/* the tail dots breathe with the bubble rather than coming and going */
@keyframes sc-dot-a {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 1; transform: scale(0.9); }
}
@keyframes sc-dot-b {
  0%, 100% { opacity: 1; transform: scale(0.92); }
  50%      { opacity: 1; transform: scale(1); }
}
@keyframes p-dim {
  0%, 82%   { opacity: 0; }
  86%, 96%  { opacity: 1; }
  100%      { opacity: 0; }
}
@keyframes p-exit {
  0%, 83%   { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  87%, 95%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  99%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* ----- scene keyframes: solution (12s loop) ----- */
@keyframes s-cursor {
  0%        { offset-distance: 0%; opacity: 0; }
  3%        { opacity: 1; }
  12%, 16%  { offset-distance: 23.4%; }
  24%, 30%  { offset-distance: 37.43%; }
  41%, 47%  { offset-distance: 62.87%; }
  55%, 62%  { offset-distance: 93.1%; }
  68%, 74%  { offset-distance: 100%; opacity: 1; }
  78%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes rip-s1 {
  0%, 13%   { transform: scale(0.2); opacity: 0; }
  14%       { opacity: 0.5; }
  18%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes rip-s2 {
  0%, 25.5% { transform: scale(0.2); opacity: 0; }
  26.5%     { opacity: 0.55; }
  30.5%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes rip-s4 {
  0%, 42%   { transform: scale(0.2); opacity: 0; }
  43%       { opacity: 0.55; }
  47%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes rip-s3 {
  0%, 56.5% { transform: scale(0.2); opacity: 0; }
  57.5%     { opacity: 0.55; }
  61.5%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes size-sel {
  0%, 14%   { background: transparent; color: var(--dim); border-color: var(--wire-d); }
  16%, 100% { background: var(--ink); color: #fff; border-color: var(--ink); }
}
@keyframes stock-in {
  0%, 16%   { opacity: 0; transform: translateY(-3px); }
  19%, 100% { opacity: 1; transform: none; }
}
@keyframes atc-press {
  0%, 25.5% { transform: none; }
  27%       { transform: scale(0.965); background: #2c2c29; }
  29%, 100% { transform: none; }
}
@keyframes cart-0 {
  0%, 28%   { opacity: 1; }
  29%, 100% { opacity: 0; }
}
@keyframes cart-1 {
  0%, 28%   { opacity: 0; transform: translateY(5px); }
  31%, 45%  { opacity: 1; transform: none; }
  46%, 100% { opacity: 0; transform: none; }
}
@keyframes cart-2 {
  0%, 46%   { opacity: 0; transform: translateY(5px); }
  48%, 100% { opacity: 1; transform: none; }
}
@keyframes drawer {
  0%, 31%   { transform: translateX(115%); }
  36%, 64%  { transform: translateX(0); }
  69%, 100% { transform: translateX(115%); }
}
@keyframes ups-press {
  0%, 42.5% { transform: none; }
  43.5%     { transform: scale(0.93); }
  45%, 100% { transform: none; }
}
@keyframes ups-add-out {
  0%, 44%   { opacity: 1; }
  45.5%, 100% { opacity: 0; }
}
@keyframes ups-added {
  0%, 44%   { opacity: 0; }
  45.5%, 100% { opacity: 1; }
}
@keyframes added-row {
  0%, 45%   { height: 0; margin-top: -12px; opacity: 0; }
  50%, 100% { height: 26px; margin-top: 0; opacity: 1; }
}
@keyframes tot-0 {
  0%, 46%   { opacity: 1; }
  47.5%, 100% { opacity: 0; }
}
@keyframes tot-1 {
  0%, 46%   { opacity: 0; transform: translateY(4px); }
  48.5%, 100% { opacity: 1; transform: none; }
}
@keyframes success-card {
  0%, 63%   { opacity: 0; transform: translate(-50%, -52%) scale(0.94); }
  67%, 92%  { opacity: 1; transform: translate(-50%, -52%) scale(1); }
  96%, 100% { opacity: 0; transform: translate(-50%, -52%) scale(1); }
}
@keyframes ok-circle {
  0%, 65%   { stroke-dashoffset: 100; }
  73%, 100% { stroke-dashoffset: 0; }
}
@keyframes ok-check {
  0%, 72%   { stroke-dashoffset: 100; }
  78%, 100% { stroke-dashoffset: 0; }
}

/* ---------- Problem / solution copy --------------------------------------- */
.tick-list { display: flex; flex-direction: column; gap: 13px; margin: 26px 0; }
.tick-list li {
  position: relative;
  padding-left: 36px;
  font-size: 16px;
  color: var(--dim);
  line-height: 1.55;
  max-width: 54ch;
}
.x-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px; height: 22px;
  border: 1px solid var(--wire-d);
  border-radius: 50%;
  font-size: 9px;
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
}


.steps { display: flex; flex-direction: column; margin-top: 34px; }
.steps li {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps .mono-icon { width: 88px; flex: none; margin-top: 2px; }

/* Step icons: multi-stage loops on top of the marching dashes */
.steps .mono-icon [class^="i-"] { transform-box: fill-box; transform-origin: center; }

@keyframes icon-pop {
  0%, 12%   { opacity: 0; transform: scale(0.3); }
  20%, 62%  { opacity: 1; transform: scale(1); }
  72%, 100% { opacity: 0; transform: scale(0.3); }
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }

.steps .icon-research .i-arm {
  transform-origin: 36px 38px;
  transform-box: view-box;
  animation: radar-sweep 4s linear infinite;
}
.steps .icon-research .i-blip { animation: icon-pop 4s var(--ease) infinite; }
.steps .icon-research .i-node { animation: icon-pop 4s var(--ease) 2s infinite; }

@keyframes build-rect {
  0%, 6%    { opacity: 0; transform: scale(0.2); }
  22%, 74%  { opacity: 1; transform: scale(1); }
  88%, 100% { opacity: 0; transform: scale(0.2); }
}
@keyframes build-fill {
  0%, 24%   { transform: scaleX(0); }
  46%, 74%  { transform: scaleX(1); }
  88%, 100% { transform: scaleX(0); }
}
@keyframes build-handle {
  0%, 10%   { opacity: 0; transform: translate(-16px, -16px); }
  26%       { opacity: 1; transform: translate(-16px, -16px); }
  48%, 74%  { opacity: 1; transform: translate(0, 0); }
  88%, 100% { opacity: 0; transform: translate(0, 0); }
}
/* outline + fill share one group so they scale together — the fill used to
   stay full-size while the rect shrank, spilling over the dashed edge */
.steps .icon-build .i-frame { animation: build-rect 4.4s var(--ease) infinite; }
.steps .icon-build .i-rect { animation: mono-dash 1.6s linear infinite; }
.steps .icon-build .i-fill { transform-origin: left center; animation: build-fill 4.4s var(--ease) infinite; }
.steps .icon-build .i-handle { animation: build-handle 4.4s var(--ease) infinite; }
.steps .icon-build .i-drag {
  animation: mono-dash 1.6s linear infinite, icon-pop 4.4s var(--ease) infinite;
}

@keyframes test-rise {
  0%, 30%   { opacity: 0; transform: translateY(14px); }
  48%, 76%  { opacity: 1; transform: translateY(0); }
  88%, 100% { opacity: 0; transform: translateY(14px); }
}
@keyframes test-fade {
  0%, 22%   { opacity: 0; }
  36%, 60%  { opacity: 1; }
  74%, 100% { opacity: 0.25; }
}
.steps .icon-test .i-win { animation: icon-pop 4.8s var(--ease) infinite; }
.steps .icon-test .i-lose { animation: test-fade 4.8s var(--ease) infinite; }
.steps .icon-test .i-top { animation: test-rise 4.8s var(--ease) infinite; }
.steps .icon-test .i-riseline {
  animation: mono-dash 1.6s linear infinite, test-rise 4.8s var(--ease) infinite;
}
.steps h3 { font-size: 18.5px; font-weight: 550; margin-bottom: 6px; }
.steps p { font-size: 15.5px; color: var(--dim); max-width: 52ch; line-height: 1.6; }

/* ---------- 3b · Services --------------------------------------------------- */
.services {
  background: #001b05;
  color: #fff;
  border-radius: 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.services .container {
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 80px);
}
.services-head { flex: none; position: sticky; top: 80px; }
.services .service-rows { width: 100%; margin-top: 0; }
.services .eyebrow { color: rgba(255, 255, 255, 0.55); }
.services .sec-num { color: #fff; }
.services .service:hover { background: rgba(255, 255, 255, 0.045); }
.services .service-index { color: rgba(255, 255, 255, 0.5); }
.services .mono-icon { color: #fff; }
.services .service-main p { color: rgba(255, 255, 255, 0.68); }
.services .service-points li {
  color: rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.services .service-points li::before { color: #fff; }

.service-rows { margin-top: clamp(36px, 4.5vw, 64px); }
.service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(18px, 1.8vw, 28px);
  row-gap: clamp(18px, 2vw, 28px);
  align-items: start;
  max-width: 800px;
  margin-left: auto;
  padding: clamp(30px, 3.6vw, 48px) 0;
  transition: background 0.45s var(--ease);
  position: relative;
}
.service-mark { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.service-main { grid-column: 2; grid-row: 1; }
.service-points { grid-column: 2; grid-row: 2; }
.service:hover { background: var(--surface); }
.service-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.mono-icon {
  width: clamp(72px, 6vw, 96px);
  height: auto;
  color: var(--ink);
}
/* March the dashed strokes; 12 = two full 3+3 dash cycles, so it loops seamlessly */
@keyframes mono-dash { to { stroke-dashoffset: -12; } }
.mono-icon [stroke-dasharray] { animation: mono-dash 1.6s linear infinite; }
.service:nth-child(2) .mono-icon [stroke-dasharray] { animation-duration: 2s; }
.service:nth-child(3) .mono-icon [stroke-dasharray] { animation-duration: 2.4s; }
.service-main h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  max-width: 100%;
}
.service-main p { font-size: 15.5px; color: var(--dim); line-height: 1.65; }
.service-points { display: flex; flex-direction: column; padding-top: 6px; }
.service-points li {
  position: relative;
  font-size: 14.5px;
  color: var(--dim);
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--line-soft);
}
.service-points li:last-child { border-bottom: 0; }
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  color: var(--ink);
}
/* ---------- 4 · Recent work ------------------------------------------------ */
/* Temporarily hidden — remove this block (and the 4 nav/footer links below) to restore */
.work,
.tabs li:has(a[href="#work"]),
.mobile-menu a[href="#work"],
.cta-row .link-arrow[href="#work"],
.footer-col a[href="#work"] { display: none; }

.cases { margin-top: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; }
.case {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(32px, 4.5vw, 96px);
  align-items: center;
  padding-block: clamp(44px, 5.5vw, 80px);
  border-top: 1px solid var(--line);
}
.case-media { position: relative; }
.case-shot {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
}
.case-shot .shot-bar { height: 32px; }
.case-shot .shot-body { padding: clamp(18px, 2vw, 30px); gap: 12px; }
.case-shot .s-line { height: 8px; }
.case-shot .s-line.h-lg { height: 13px; }
.case-shot-mobile {
  position: absolute;
  right: clamp(10px, 3%, 28px);
  bottom: -30px;
  width: clamp(110px, 24%, 175px);
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 24px 48px -34px rgba(10, 10, 10, 0.3);
}
.case-metric-chip {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(10, 10, 10, 0.45);
}
.case-info { max-width: 560px; }
.case-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(23px, 1.8vw, 30px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.case-logo span { font-size: 0.45em; vertical-align: super; font-style: normal; color: var(--faint); }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.case-tags span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
}
.case-desc { font-size: 16.5px; line-height: 1.65; color: var(--dim); margin-bottom: 28px; }
.case-metrics { border-top: 1px solid var(--line-soft); padding-top: 24px; }
.metric-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.metric-label { display: block; font-size: 14.5px; color: var(--faint); margin-top: 10px; }

/* ---------- 5 · Results (stat tiles) ---------------------------------------- */
/* heading holds the left column, the single 700px stack of tiles sits on the right */
.results-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 700px);
  gap: clamp(32px, 6vw, 120px);
  align-items: start;
}
.results-intro { position: sticky; top: 120px; }
.results-intro .sec-title { margin-bottom: 0; }
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 700px;
  align-items: stretch;
  gap: clamp(10px, 1vw, 18px);
}
.result {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  padding: clamp(24px, 2.4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: min-height 0.65s var(--ease), background-color 0.45s var(--ease), color 0.45s var(--ease);
}
html.js .result { cursor: pointer; }
.result:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.result.is-open:focus-visible { outline-color: #fff; }


/* tilted preview — peeks in from the right edge, clipped by the card */
.result-shot {
  position: absolute;
  top: 50%;
  right: -26%;
  width: 66%;
  aspect-ratio: var(--ar, 16 / 10);
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 44px -24px rgba(10, 10, 10, 0.5);
  transform: translateY(-50%) rotate(-7deg);
  transition: right 0.65s var(--ease), width 0.65s var(--ease), transform 0.65s var(--ease);
  pointer-events: none;
}
/* each frame takes its own image's ratio (--ar), so nothing is cropped or
   letterboxed — the screenshots run from 7.3:1 to 1.2:1 */
.result-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.result:hover .result-shot { transform: translateY(-50%) rotate(-4.5deg) translateX(-10px); }
.result.is-open .result-shot,
.result.is-open:hover .result-shot {
  right: 4%;
  width: 62%;
  /* widths alone would let a near-square screenshot (result-3 is 1.2:1) grow
     taller than the card and run through the label — cap it and crop from the
     bottom instead, since every dashboard puts its headline metrics up top */
  max-height: 70%;
  transform: translateY(-50%) rotate(0deg);
}
.result.is-open .result-shot img { object-position: top; }
/* keep the copy above the preview and clear of it while collapsed */
.result-value, .result-label { position: relative; z-index: 1; }
.result-value, .result-label { transition: font-size 0.65s var(--ease), opacity 0.4s var(--ease), color 0.45s var(--ease); }
/* collapsed tiles all share one height, so the board reads as an even grid */
.result { min-height: clamp(240px, 19vw, 300px); }
/* the open tile is the exception — it grows to give the preview room */
.result.is-open { min-height: clamp(360px, 30vw, 460px); }
/* black is reserved for the open card */
.result.is-open { background: var(--ink); color: #fff; }
.result.is-open .result-label { color: rgba(255, 255, 255, 0.62); }
.result-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.result-label {
  font-size: 14.5px;
  color: var(--dim);
  margin-top: 14px;
  max-width: 26ch;
  line-height: 1.55;
}
/* ---------- 6 · Compare table ----------------------------------------------- */
/* ---------- 6 · Why us -------------------------------------------------------- */
/* paper, matching the results band above — the cards are the white now */
.why { background: var(--bg); }
.usp-grid {
  --usp-tab-h: 26px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 0.9vw, 16px);
  margin-top: clamp(36px, 4vw, 56px);
}
.usp {
  position: relative;
  /* room for the number tab, which is pulled up out of the card */
  margin-top: var(--usp-tab-h);
  background: var(--card);
  /* white on paper needs the hairline or the card edge disappears */
  border: 1px solid var(--line-soft);
  /* square top corners so the tab meets the card edge to edge */
  border-radius: 0 0 12px 12px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  padding: clamp(20px, 1.9vw, 32px) clamp(16px, 1.5vw, 26px) clamp(22px, 2.1vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.usp-media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(16px, 1.5vw, 26px);
}
/* the renders ship on white — multiply drops it into the card tone */
.usp-media img {
  width: auto;
  height: clamp(120px, 10.5vw, 168px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.usp-body { display: flex; flex-direction: column; align-items: center; }

/* The number rides in a tab above the card. Square bottom corners butted flush
   against the card's top edge read as a second, tinted card slipped in behind
   — no negative z-index, which the reveal transform would trap anyway. */
.usp-num {
  position: absolute;
  /* +1px clears the card's own top border, so that hairline runs unbroken
     across the seam and the tab reads as sitting behind it */
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  /* +2px so the tab's hairlines land on the card's, not 1px inside them —
     a % width resolves against the padding box, which excludes the border */
  width: calc(100% + 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--usp-tab-h);
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.usp h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(17px, 1.2vw, 21px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 9px;
}
.usp p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
}

/* ---------- 7 · FAQ ---------------------------------------------------------- */
.faq-layout {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.faq-list { max-width: 600px; display: flex; flex-direction: column; gap: 8px; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro .btn { margin-top: 28px; }
.faq-item {
  transition: background 0.35s var(--ease);
}
.faq-item.open {
  background: var(--surface);
  border-radius: 14px;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 24px clamp(16px, 1.4vw, 24px);
  font-size: clamp(16.5px, 1.15vw, 19px);
  font-weight: 500;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--ink-soft); }
.faq-icon {
  position: relative;
  flex: none;
  width: 18px; height: 18px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 15px; height: 1.4px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 clamp(16px, 1.4vw, 24px) 24px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 64ch;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- 8 · Book a call -------------------------------------------------- */
.book {
  padding-block: 56px;
  overflow: hidden;
}
/* Temporarily hidden — delete this rule to restore */
.book .cta-row .link-arrow { display: none; }
.book-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.book-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 3vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px 0 26px;
  max-width: 16ch;
}
.book-title em { font-weight: 400; }
.book-sub {
  font-size: clamp(16.5px, 1.2vw, 19.5px);
  line-height: 1.65;
  color: var(--dim);
  max-width: 62ch;
  margin-bottom: 40px;
}
.book-reassure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 42px;
}
.book-reassure li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: #001b05;
}
.book-reassure li::before {
  content: "";
  width: 12px; height: 12px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.4 4.6 8.4 10.5 1.6' fill='none' stroke='%230a0a0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.book-founder {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 520px;
  text-align: left;
}
.founder-avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.book-founder p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.book-founder p span {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13px;
  color: var(--faint);
  margin-top: 8px;
}

/* ---------- 8b · Full-bleed video band ---------------------------------------- */
/* dotted rule above the footer, inset to the container */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - var(--gutter) * 2, var(--max) - var(--gutter) * 2);
  border-top: 1px dotted var(--line);
}

.video-band {
  position: relative;
  line-height: 0;
  overflow: hidden;
}
.video-band video {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 460px);
  object-fit: cover;
  margin: 0 auto;
  max-width: 1000px;
}
/* Long, eased fades on all four edges — tracks the video box, not the full band.
   Stops fade to --bg-0 (same colour, zero alpha) rather than `transparent`,
   which is rgba(0,0,0,0) and would smear grey through the midpoint. */
.video-band::after {
  content: "";
  position: absolute;
  inset: 0;
  max-width: 1000px;
  margin: 0 auto;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      var(--bg) 0%,
      rgba(253, 253, 251, 0.94) 7%,
      rgba(253, 253, 251, 0.78) 15%,
      rgba(253, 253, 251, 0.52) 24%,
      rgba(253, 253, 251, 0.24) 33%,
      var(--bg-0) 42%,
      var(--bg-0) 58%,
      rgba(253, 253, 251, 0.24) 67%,
      rgba(253, 253, 251, 0.52) 76%,
      rgba(253, 253, 251, 0.78) 85%,
      rgba(253, 253, 251, 0.94) 93%,
      var(--bg) 100%),
    linear-gradient(to right,
      var(--bg) 0%,
      rgba(253, 253, 251, 0.94) 3%,
      rgba(253, 253, 251, 0.78) 6%,
      rgba(253, 253, 251, 0.52) 10%,
      rgba(253, 253, 251, 0.24) 14%,
      var(--bg-0) 18%,
      var(--bg-0) 82%,
      rgba(253, 253, 251, 0.24) 86%,
      rgba(253, 253, 251, 0.52) 90%,
      rgba(253, 253, 251, 0.78) 94%,
      rgba(253, 253, 251, 0.94) 97%,
      var(--bg) 100%);
}

/* ---------- Call-thanks page --------------------------------------------- */
.nav-bare .nav-inner { justify-content: flex-start; }
.thanks { padding-top: clamp(130px, 16vh, 200px); }
.thanks-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.thanks-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  margin-right: 2px;
}
.thanks-title { max-width: none; margin-top: 14px; }
.thanks-inner .book-sub { margin-inline: auto; }
.thanks-inner .book-sub + .book-sub { margin-top: 18px; }
.thanks-inner .book-reassure { margin-top: 34px; }

.review-wall {
  columns: 3;
  column-gap: clamp(12px, 1.2vw, 20px);
  margin-top: clamp(36px, 4vw, 56px);
}
.review {
  break-inside: avoid;
  margin-bottom: clamp(12px, 1.2vw, 20px);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}
.review img { display: block; width: 100%; height: auto; }
.review-proof { margin-top: clamp(44px, 5vw, 72px); padding-top: 0; }
.review-proof .proof-label { text-align: center; }
.review-proof .proof-logos { justify-content: center; }

/* ---------- 9 · Footer -------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  padding-top: 56px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer-col p.footer-label {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #001b05;
  margin-bottom: 16px;
}
.footer-col p { font-size: 15px; line-height: 1.7; color: var(--dim); }
.footer-col a {
  display: inline-block;
  padding: 2.5px 0;
  color: var(--dim);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 30px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Responsive -------------------------------------------------------- */
@media (max-width: 1180px) {
  .split-2, .split-2.flip { grid-template-columns: 1fr; gap: 52px; }
  .split-2 .scene-frame { order: 1; }
  .split-2 .sec-copy { order: 2; }
  .scene-frame { max-width: 640px; }
  .services .container { flex-direction: column; gap: clamp(24px, 3vw, 40px); }
  /* stacked above the rows here, so there's nothing for it to stick alongside */
  .services-head { position: static; }
  .service { max-width: none; margin-left: 0; }
  .service-points { padding-top: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-shots { height: 480px; min-height: 0; align-self: auto; margin-block: 0; }
  .faq-layout { flex-direction: column; gap: 40px; }
  .faq-intro { position: static; }
  .case { grid-template-columns: 1fr; gap: 64px; }
  .case-info { max-width: 640px; }
  .review-wall { columns: 2; }
  .usp-grid { grid-template-columns: repeat(6, 1fr); }
  .usp { grid-column: span 2; }
  .usp:nth-child(4), .usp:nth-child(5) { grid-column: span 3; }
  /* heading stops holding its own column and sits above the board */
  .results-layout { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
  .results-intro { position: static; }
  .results-grid { max-width: none; }
  /* stacked cards are content-height, so give the tilted preview room to sit in */
  .results-grid .result { min-height: 210px; }
  /* the preview goes near full-bleed here, so the open card grows with the
     viewport — the tallest screenshot is ~1.2:1, needing about 0.7 × card width */
  .results-grid.has-open .result.is-open { min-height: clamp(380px, 76vw, 520px); }
  /* the preview is near full-bleed here and the label runs the full width under
     it, so keep it shorter than the desktop cap to stay clear of the copy */
  .results-grid.has-open .result.is-open .result-shot { width: 84%; right: 8%; max-height: 62%; }
}

/* the burger only exists below 900px, so neither does the panel */
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

@media (max-width: 900px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp, .usp:nth-child(4) { grid-column: span 1; }
  .usp:nth-child(5) { grid-column: span 2; }
  .tabs { display: none; }
  .burger { display: block; }
  .nav-actions .btn { display: none; }

  /* one bar instead of two pills: .nav-inner becomes the surface and the
     mobile menu continues it, so opening reads as the bar growing */
  .nav { top: 12px; }
  .nav-inner {
    margin-inline: var(--gutter);
    align-items: center;
    min-height: 58px;
    padding: 8px 10px 8px 16px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    box-shadow: 0 6px 20px -14px rgba(10, 10, 10, 0.3);
    transition: padding 0.4s var(--ease), border-radius 0.35s var(--ease);
  }
  .nav.scrolled .nav-inner { padding-bottom: 8px; }
  .nav.menu-open .nav-inner { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .brand, .nav-cluster {
    background: none;
    border: 0;
    box-shadow: none;
    min-height: 0;
    padding: 0;
    border-radius: 0;
  }
  /* drop the whole bar in as one, not brand then cluster */
  html.js .nav-inner { animation: nav-drop 0.6s var(--ease) 0.1s both; }
  html.js .brand, html.js .nav-cluster { animation: none; }
  .mobile-menu {
    left: var(--gutter);
    right: var(--gutter);
    background: #fff;
    border: 1px solid var(--line-soft);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    padding: 4px 18px 22px;
    box-shadow: 0 18px 40px -28px rgba(10, 10, 10, 0.35);
  }
  /* the links read as headings, not UI labels */
  .mobile-menu a:not(.btn) { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
  .mobile-menu .btn { align-self: stretch; width: 100%; padding: 12px 22px; font-size: 14px; margin-top: 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: 80px; padding-bottom: 0; }
  .nav-inner { gap: 0; }
  .sec-title { max-width: 100%; }
  .hero-title { font-size: clamp(32px, 5.75vw, 27px); }
  .hero-inner { gap: 0; }
  .hero-copy { padding: 20px; }
  .hero-shots { grid-template-columns: 1fr 1fr; height: 400px; width: 100%; }
  .proof-label { text-align: center; }
  .proof-logos { justify-content: center; }
  .hero .cta-row .btn-lg { width: 100%; justify-content: center; }
  .split-2 { gap: 32px; }
  .split-2.flip { gap: 24px; }
  .steps h3 { font-size: 16px; }
  .steps p { font-size: 14px; }
  .cta-row .link-arrow { padding-block: 8px; }
  .review-wall { columns: 1; }
  .usp-grid { grid-template-columns: 1fr; gap: 10px; }
  .usp:nth-child(5) { grid-column: span 1; }
  .usp {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px 18px;
  }
  .usp-media { flex: none; margin-bottom: 0; }
  .usp-media img { width: 64px; height: 64px; }
  .usp-body { align-items: flex-start; }
  /* card content goes left-aligned here, so the number follows it */
  .usp-num { justify-content: flex-start; }
  .usp h3 { margin-bottom: 4px; }
  .results-grid { --rg-cols: 1fr !important; }
  .result { border-left: 0 !important; padding: 20px !important; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .result:first-child { border-top: 0; }
  .case-shot-mobile { bottom: -20px; }
  .book-founder { flex-direction: column; align-items: center; text-align: center; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
  .mono-icon [stroke-dasharray], .mono-icon [class^="i-"] { animation: none !important; }
  html.js .brand, html.js .nav-cluster,
  html.js .tabs li, html.js .nav-actions .btn { animation: none !important; }
  .scene *, .scene *::before, .scene *::after { animation: none !important; }
  .sc-cursor, .ripple, .sc-thoughts, .sc-dim, .sc-exit, .sc-drawer, .sc-success { display: none; }
  .sc-stock { opacity: 1; transform: none; }
  .sc-sizes .sz-sel { background: var(--ink); color: #fff; border-color: var(--ink); }
  .results-grid, .result, .result-shot, .result-value, .result-label { transition: none !important; }
  .mobile-menu, .mobile-menu a, .nav-inner { transition: none !important; }
  html.js .nav-inner { animation: none !important; }
  .btn, .btn svg { transition: none; }
  .btn-label > span, .btn-label::after { transition: none; }
}
