/* Aivion — site styles v2. Values follow the Aivion Brand System tokens. */
:root {
  --surface: #fbf8f3;
  --surface-raised: #ffffff;
  --surface-tint: #ffe9d6;
  --line: #e7e1d8;
  --line-strong: #7d8796;
  --ink: #0e1726;
  --ink-muted: #4a5568;
  --brand: #f58220;
  --brand-hover: #e2751a;
  --on-brand: #0e1726;
  --brand-text: #a64a09;
  --midnight: #0a1220;
  --midnight-raised: #121c2d;
  --midnight-line: #26324a;
  --paper: #fbf8f3;
  --muted-on-dark: #a8b3c4;
  --teal: #0b7a70;
  --teal-bright: #3cc9b8;
  --teal-tint: #dff3f0;
  --blue: #2e6be6;
  --blue-bright: #7aa5ff;
  --blue-tint: #e4ecfc;
  --focus: #2e6be6;

  --font-display: Poppins, "Avenir Next", "Segoe UI", sans-serif;
  --font-sans: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14,23,38,.06), 0 1px 1px rgba(14,23,38,.04);
  --shadow-md: 0 8px 24px rgba(14,23,38,.08);
  --shadow-lg: 0 24px 56px rgba(14,23,38,.16);
  --wrap: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--blue-bright); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
.display-xl { font-size: 62px; line-height: 66px; letter-spacing: -.028em; }
h1, .h1 { font-size: 50px; line-height: 56px; letter-spacing: -.022em; }
h2, .h2 { font-size: 38px; line-height: 44px; letter-spacing: -.018em; }
h3, .h3 { font-size: 22px; line-height: 28px; letter-spacing: -.005em; }
@media (max-width: 900px) { .display-xl { font-size: 46px; line-height: 50px; } h1, .h1 { font-size: 38px; line-height: 44px; } h2, .h2 { font-size: 30px; line-height: 36px; } }
@media (max-width: 420px) { .display-xl { font-size: 38px; line-height: 43px; } }
.lead { font-size: 19px; line-height: 30px; color: var(--ink-muted); margin: var(--space-4) 0 0; max-width: 600px; }
@media (max-width: 640px) { .lead { font-size: 17px; line-height: 27px; } }
p { margin: 0 0 var(--space-4); }
.muted { color: var(--ink-muted); }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 var(--space-3); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: var(--brand); }
.hl { color: var(--brand-text); }
.dark .hl { color: var(--brand); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* Header: solid, always separated from content */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(14,23,38,.07); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-6); }
.brand-link { display: flex; align-items: center; margin-left: -10px; }
.brand-link img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav-links a:not(.btn):hover { border-bottom-color: var(--line-strong); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--brand); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; display: block; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 73px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-2) max(16px, env(safe-area-inset-right, 0px)) var(--space-6) max(16px, env(safe-area-inset-left, 0px)); display: none; box-shadow: 0 12px 24px rgba(14,23,38,.08); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: var(--space-4); }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; border: 0; font-size: 17px; }
  .nav-links a[aria-current="page"] { color: var(--brand-text); }
  .nav-links .btn { width: 100%; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 20px; padding: 13px 24px; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 6px 16px rgba(245,130,32,.28); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface-raised); }
.btn-ghost { background: transparent; color: var(--brand-text); padding-left: 0; padding-right: 0; }
.btn-dark { background: var(--midnight); color: var(--paper); }
.btn-dark:hover { background: #16233a; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.dark .btn-secondary { color: var(--paper); border-color: var(--paper); }
.dark .btn-secondary:hover { background: var(--midnight-raised); }
.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; margin-top: var(--space-8); }

/* Sections */
.section { padding-block: var(--space-24); }
@media (max-width: 640px) { .section { padding-block: var(--space-16); } }
.section-head { max-width: 700px; margin-bottom: var(--space-12); }
.section-head.split-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); flex-wrap: wrap; }
.section-head.split-head > div { max-width: 640px; }
.dark { background: var(--midnight); color: var(--paper); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--paper); }
.dark .lead, .dark .muted { color: var(--muted-on-dark); }
.raised { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dots-bg { background-image: radial-gradient(rgba(14,23,38,.09) 1px, transparent 1.2px); background-size: 22px 22px; }

/* Icons */
.ico { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-tile { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--surface-tint); display: grid; place-items: center; color: var(--ink); flex: none; }
.t-teal .icon-tile { background: var(--teal-tint); color: var(--teal); }
.t-blue .icon-tile { background: var(--blue-tint); color: var(--blue); }
.t-orange .icon-tile { background: var(--surface-tint); color: var(--brand-text); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: var(--space-16) var(--space-24); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14,23,38,.08) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(100deg, transparent 35%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%); pointer-events: none; z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.cycle { display: inline-grid; vertical-align: bottom; }
.cycle > span { grid-area: 1 / 1; color: var(--brand-text); opacity: 0; transform: translateY(.35em); transition: opacity .45s var(--ease), transform .45s var(--ease); white-space: nowrap; }
.cycle > span.on { opacity: 1; transform: none; }
.cycle > span.off { opacity: 0; transform: translateY(-.35em); }
.svc-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
.svc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface-raised); font-weight: 500; font-size: 14px; line-height: 18px; cursor: pointer; color: var(--ink); transition: border-color .2s, background .2s, transform .2s var(--ease); position: relative; overflow: hidden; }
.svc-pill .ico { width: 18px; height: 18px; }
.svc-pill:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.svc-pill[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.svc-pill .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--brand); width: 0; }
.svc-pill[aria-selected="true"] .bar { animation: fill var(--dur, 5s) linear forwards; }
.paused .svc-pill .bar { animation: none; width: 0; }
@keyframes fill { to { width: 100%; } }

/* Stage */
.stage { position: relative; min-height: 470px; }
.stage-card { position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; min-height: 450px; }
.stage-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.stage-top .dots { display: flex; gap: 6px; } .stage-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.scene { position: absolute; inset: 49px 0 0; padding: var(--space-6); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.99); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s; }
.stage-float { position: absolute; z-index: 2; background: var(--midnight); color: var(--paper); border-radius: var(--radius-md); padding: 12px 14px; font-size: 13px; line-height: 18px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; transition: opacity .4s; }
.stage-float b { font-family: var(--font-display); font-weight: 600; display: block; }
.stage-float span { color: var(--muted-on-dark); font-size: 12px; }
.stage-float .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 0 rgba(60,201,184,.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(60,201,184,0); } 100% { box-shadow: 0 0 0 0 rgba(60,201,184,0); } }
.f1 { left: -28px; bottom: -26px; }
.stage-node { position: absolute; right: -14px; top: -26px; width: 104px; z-index: 2; }
.stage-node path, .node path { stroke: var(--brand); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stage-node circle, .node circle { fill: var(--brand); }
@media (max-width: 980px) { .f1 { left: 12px; bottom: -18px; } .stage-node { right: 8px; } }
@media (max-width: 480px) { .stage { min-height: 500px; } .stage-card { min-height: 480px; } .scene { padding: var(--space-4); } }

/* Scene: call */
.call-live { display: flex; align-items: center; gap: var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3); }
.call-live .av { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; flex: none; }
.call-live .av .ico { width: 20px; height: 20px; }
.call-live b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 18px; }
.call-live span { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.wave { display: flex; align-items: center; gap: 3px; margin-left: auto; height: 22px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--teal); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(1){height:8px;animation-delay:-.2s}.wave i:nth-child(2){height:16px;animation-delay:-.5s}.wave i:nth-child(3){height:22px;animation-delay:-.1s}.wave i:nth-child(4){height:12px;animation-delay:-.7s}.wave i:nth-child(5){height:18px;animation-delay:-.35s}
@keyframes wave { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-4); }
.bubble { font-size: 13px; line-height: 19px; padding: 10px 12px; border-radius: 14px; max-width: 82%; }
.bubble.caller { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.ai { background: var(--midnight); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.scene.on .bubble { animation: pop .45s var(--ease) both; }
.scene.on .bubble:nth-child(2) { animation-delay: .5s; } .scene.on .bubble:nth-child(3) { animation-delay: 1s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.summary { margin-top: var(--space-4); background: var(--surface); border: 1px dashed var(--teal); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 19px; }
.scene.on .summary { animation: pop .45s var(--ease) 1.5s both; }
.mono-tag { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 4px; }

/* Scene: browser */
.browser { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser .url { flex: 1; margin-left: 6px; background: var(--surface); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); padding: 3px 10px; }
.site-mock { padding: 14px; display: grid; gap: 10px; }
.sm-nav { display: flex; justify-content: space-between; align-items: center; }
.sm-logo { width: 54px; height: 10px; border-radius: 3px; background: var(--blue); }
.sm-links { display: flex; gap: 6px; } .sm-links i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); display: block; }
.sm-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.sm-h { height: 14px; border-radius: 4px; background: var(--ink); margin-bottom: 6px; }
.sm-h.s { width: 70%; }
.sm-p { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 5px; }
.sm-btn { width: 72px; height: 20px; border-radius: 6px; background: var(--brand); margin-top: 8px; position: relative; }
.sm-img { height: 92px; border-radius: 10px; background: linear-gradient(135deg, var(--blue-tint), var(--surface-tint)); position: relative; overflow: hidden; }
.sm-img::after { content: ""; position: absolute; left: 18%; bottom: 0; width: 64%; height: 60%; background: var(--blue); opacity: .18; border-radius: 50% 50% 0 0; }
.sm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sm-cards div { height: 54px; border-radius: 8px; background: var(--surface-raised); border: 1px solid var(--line); }
.scene.on .site-mock > * { animation: pop .5s var(--ease) both; }
.scene.on .site-mock > *:nth-child(2) { animation-delay: .25s; } .scene.on .site-mock > *:nth-child(3) { animation-delay: .5s; }
.cursor { position: absolute; width: 18px; height: 18px; z-index: 3; }
.scene.on .cursor { animation: cursor 3.2s var(--ease) .6s both; }
@keyframes cursor { 0% { left: 80%; top: 85%; opacity: 0; } 15% { opacity: 1; } 60% { left: 18%; top: 50%; } 70% { transform: scale(.85); } 78% { transform: none; } 100% { left: 18%; top: 50%; opacity: 1; } }
.score { display: flex; gap: 10px; margin-top: 12px; }
.score div { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 11px; line-height: 15px; color: var(--ink-muted); }
.score b { display: block; font-family: var(--font-display); font-size: 15px; color: var(--ink); }

/* Scene: automation flow */
.flow { position: relative; height: 330px; }
.flow svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow .wire { stroke: var(--line-strong); stroke-width: 1.5; fill: none; stroke-dasharray: 4 5; }
.flow .spark { fill: var(--teal); }
.fnode { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; box-shadow: var(--shadow-md); font-size: 13px; line-height: 17px; min-width: 150px; }
.fnode b { font-family: var(--font-display); font-weight: 600; display: block; font-size: 13px; }
.fnode span { color: var(--ink-muted); font-size: 11px; }
.fnode .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); flex: none; }
.fnode .ic .ico { width: 16px; height: 16px; }
.fnode.trigger .ic { background: var(--surface-tint); color: var(--brand-text); }
.fnode .ok { margin-left: auto; color: var(--teal); opacity: 0; }
.scene.on .fnode .ok { animation: okin .3s var(--ease) both; }
.scene.on .n2 .ok { animation-delay: 1s; } .scene.on .n3 .ok { animation-delay: 1.8s; } .scene.on .n4 .ok { animation-delay: 2.6s; }
@keyframes okin { to { opacity: 1; } }
.n1 { left: 0; top: 0; } .n2 { right: 0; top: 92px; } .n3 { left: 0; top: 184px; } .n4 { right: 0; top: 270px; }
@media (max-width: 480px) { .fnode { min-width: 0; max-width: 62%; } }

/* Scene: growth chart */
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: url(#gArea); }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.scene.on .chart .line { animation: draw 1.8s var(--ease) .2s forwards; }
.chart .area { opacity: 0; } .scene.on .chart .area { animation: okin .8s ease 1.2s forwards; }
.chart .end { fill: var(--blue); opacity: 0; } .scene.on .chart .end { animation: okin .3s ease 1.9s forwards; }
.chart text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 11px; line-height: 15px; color: var(--ink-muted); }
.kpis b { display: flex; align-items: center; gap: 4px; font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.kpis b .up { color: var(--teal); font-size: 12px; }
.illus { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-muted); text-transform: uppercase; margin-top: 10px; display: block; }

/* Scene: brand kit */
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kit > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; }
.kit .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-muted); text-transform: uppercase; display: block; margin-bottom: 8px; }
.kit .mark { grid-row: span 2; display: grid; place-items: center; background: var(--midnight); border-color: var(--midnight); position: relative; }
.kit .mark img { width: 64%; transition: transform .6s var(--ease); }
.scene.on .kit .mark img { animation: markin .9s var(--ease) both; }
@keyframes markin { from { opacity: 0; transform: scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
.kit .mark .lbl { position: absolute; left: 12px; top: 12px; color: var(--muted-on-dark); }
.swatches { display: flex; gap: 6px; }
.swatches i { flex: 1; height: 44px; border-radius: 8px; display: block; transform-origin: bottom; }
.scene.on .swatches i { animation: grow .5s var(--ease) both; }
.scene.on .swatches i:nth-child(2){animation-delay:.1s}.scene.on .swatches i:nth-child(3){animation-delay:.2s}.scene.on .swatches i:nth-child(4){animation-delay:.3s}
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
.spec { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 44px; letter-spacing: -.02em; }
.spec small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 11px; line-height: 15px; color: var(--ink-muted); letter-spacing: 0; }
.kit .post { grid-column: span 2; display: flex; gap: 12px; align-items: center; }
.kit .post .thumb { width: 74px; height: 92px; border-radius: 8px; background: var(--midnight); padding: 8px; display: flex; flex-direction: column; justify-content: space-between; flex: none; }
.kit .post .thumb i { display: block; height: 5px; border-radius: 3px; background: var(--paper); width: 80%; }
.kit .post .thumb i.o { background: var(--brand); width: 55%; }
.kit .post .thumb i.s { height: 3px; width: 40%; opacity: .5; }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-raised); overflow: hidden; padding-block: 18px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--ink); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.marquee span:nth-child(3n+2) { color: var(--ink-muted); }
@keyframes marq { to { transform: translateX(-50%); } }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-6); }
.tile { grid-column: span 2; position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; min-width: 0; }
.tile.wide { grid-column: span 3; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tile h3 { margin: var(--space-6) 0 var(--space-2); }
.tile p { color: var(--ink-muted); margin: 0; }
.tile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-6); }
.tile .tags span { font-size: 12px; line-height: 16px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-muted); }
.tile .go { margin-top: auto; padding-top: var(--space-6); font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--brand-text); display: flex; align-items: center; gap: 8px; }
.tile .go .arr { transition: transform .25s var(--ease); }
.tile:hover .go .arr { transform: translateX(4px); }
.tile .art { position: absolute; right: -20px; top: -20px; width: 160px; height: 160px; opacity: .9; pointer-events: none; transition: transform .5s var(--ease); }
.tile:hover .art { transform: rotate(-8deg) scale(1.05); }
.tile.dark-tile { background: var(--midnight); border-color: var(--midnight); color: var(--paper); }
.tile.dark-tile h3 { color: var(--paper); }
.tile.dark-tile p, .tile.dark-tile .tags span { color: var(--muted-on-dark); }
.tile.dark-tile .tags span { background: var(--midnight-raised); border-color: var(--midnight-line); }
.tile.dark-tile .go { color: var(--brand); }
.tile.dark-tile .icon-tile { background: #12322f; color: var(--teal-bright); }
.tile .lede-tag { position: absolute; top: var(--space-8); right: var(--space-8); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-bright); border: 1px solid #1d4a45; padding: 4px 10px; border-radius: var(--radius-pill); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.wide { grid-column: span 1; } .tile.full-sm { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.full-sm { grid-column: span 1; } .tile { padding: var(--space-6); } .tile .lede-tag { top: var(--space-6); right: var(--space-6); } }

/* Tabbed before/after (dark) */
.ba-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-16); align-items: start; }
@media (max-width: 980px) { .ba-wrap { grid-template-columns: 1fr; gap: var(--space-8); } }
.ba-tabs { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-8); }
.ba-tab { text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--radius-md); padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; color: var(--muted-on-dark); transition: background .2s, border-color .2s, color .2s; }
.ba-tab .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--midnight-raised); display: grid; place-items: center; }
.ba-tab .ic .ico { width: 18px; height: 18px; }
.ba-tab b { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--paper); display: block; }
.ba-tab small { font-size: 13px; line-height: 18px; }
.ba-tab .chev { opacity: 0; transition: opacity .2s, transform .2s; }
.ba-tab:hover { background: var(--midnight-raised); }
.ba-tab[aria-selected="true"] { background: var(--midnight-raised); border-color: var(--midnight-line); }
.ba-tab[aria-selected="true"] .ic { background: var(--brand); color: var(--on-brand); }
.ba-tab[aria-selected="true"] .chev { opacity: 1; color: var(--brand); }
@media (max-width: 980px) { .ba-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); } .ba-tabs::-webkit-scrollbar { display: none; } .ba-tab { grid-template-columns: 28px auto; flex: none; padding: 10px 14px; } .ba-tab small, .ba-tab .chev { display: none; } .ba-tab .ic { width: 28px; height: 28px; } }
.before-after { background: var(--midnight-raised); border: 1px solid var(--midnight-line); border-radius: var(--radius-lg); padding: var(--space-8); position: relative; }
.ba-panel[hidden] { display: none; }
.ba-panel h3 { font-size: 20px; margin-bottom: var(--space-4); }
.ba-head, .ba-row { display: grid; grid-template-columns: 1fr 96px 1fr; gap: var(--space-4); align-items: center; }
.ba-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); padding-bottom: var(--space-2); }
.ba-row { padding: var(--space-4) 0; border-bottom: 1px solid var(--midnight-line); }
.ba-row:last-child { border-bottom: 0; }
.ba-row .from { color: var(--muted-on-dark); text-decoration: line-through; text-decoration-color: rgba(168,179,196,.6); font-size: 15px; }
.ba-row .to { font-family: var(--font-display); font-weight: 600; color: var(--paper); font-size: 15px; }
.ba-row svg { width: 96px; height: 14px; overflow: visible; }
.ba-row svg line { stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 90; }
.ba-row svg circle { fill: var(--brand); }
.ba-row svg circle.e { opacity: 0; }
.ba-panel.play .ba-row svg line { animation: dashin .6s var(--ease) forwards; }
.ba-panel.play .ba-row svg circle.e { animation: okin .2s ease forwards; }
.ba-panel.play .ba-row .to { animation: pop .4s var(--ease) both; }
.ba-panel.play .ba-row:nth-child(3) * { animation-delay: .15s !important; } .ba-panel.play .ba-row:nth-child(4) * { animation-delay: .3s !important; } .ba-panel.play .ba-row:nth-child(5) * { animation-delay: .45s !important; } .ba-panel.play .ba-row:nth-child(6) * { animation-delay: .6s !important; }
.ba-panel.play .ba-row svg circle.e { animation-delay: .5s; }
@keyframes dashin { to { stroke-dashoffset: 0; } }
@media (max-width: 520px) { .ba-head, .ba-row { grid-template-columns: 1fr 48px 1fr; gap: var(--space-3); } .ba-row svg { width: 48px; } .before-after { padding: var(--space-6) var(--space-4); } }

/* Process */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.process-line { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.process-line i { position: absolute; inset: 0; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.pstep { position: relative; }
.pstep .dot { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--ink-muted); position: relative; z-index: 1; transition: background .3s, border-color .3s, color .3s; }
.pstep.lit .dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pstep h3 { margin: var(--space-6) 0 var(--space-2); }
.pstep p { color: var(--ink-muted); margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; gap: var(--space-8); padding-left: 0; } .process-line { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .process-line i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); } .pstep { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--space-6); } .pstep h3 { margin-top: 10px; } .pstep p { grid-column: 2; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.value .num { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 44px; letter-spacing: -.03em; color: var(--brand); }
.value h3 { margin: var(--space-4) 0 var(--space-2); font-size: 19px; line-height: 25px; }
.value p { color: var(--ink-muted); margin: 0; font-size: 15px; line-height: 24px; }

/* Clients */
.clients { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding-block: var(--space-8); }
.clients .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.clients ul { display: flex; gap: var(--space-12); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.clients li { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-muted); }

/* ---------- PAGE ENDINGS (each page has its own) ---------- */
/* Home: build-your-request on midnight */
.end-builder { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--midnight); color: var(--paper); padding: var(--space-16); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.end-builder canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.end-builder > * { position: relative; }
.end-builder h2 { color: var(--paper); }
.end-builder .lead { color: var(--muted-on-dark); }
.pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--midnight-line); background: var(--midnight-raised); color: var(--paper); font-weight: 500; font-size: 15px; cursor: pointer; transition: all .2s var(--ease); }
.pick button .ico { width: 18px; height: 18px; }
.pick button:hover { border-color: var(--muted-on-dark); }
.pick button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pick-out { margin-top: var(--space-6); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--midnight-raised); border: 1px solid var(--midnight-line); font-size: 15px; line-height: 24px; color: var(--muted-on-dark); min-height: 74px; }
.pick-out b { color: var(--paper); font-weight: 600; }
@media (max-width: 900px) { .end-builder { grid-template-columns: 1fr; padding: var(--space-12) var(--space-6); } }

/* Services: "where do I start" finder on peach */
.end-finder { border-radius: var(--radius-lg); background: var(--surface-tint); padding: var(--space-12); display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-12); position: relative; overflow: hidden; }
.end-finder .big-a { position: absolute; right: -60px; bottom: -80px; width: 300px; opacity: .08; pointer-events: none; }
.q-opts { display: grid; gap: 10px; }
.q-opts button { text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1.5px solid transparent; background: var(--surface-raised); cursor: pointer; font-weight: 500; font-size: 15px; line-height: 21px; transition: all .2s var(--ease); }
.q-opts button:hover { border-color: var(--brand); transform: translateX(3px); }
.q-opts button[aria-pressed="true"] { border-color: var(--ink); box-shadow: var(--shadow-md); }
.q-opts .k { font-family: var(--font-mono); font-size: 11px; color: var(--brand-text); width: 22px; flex: none; }
.rec { margin-top: var(--space-6); background: var(--midnight); color: var(--paper); border-radius: var(--radius-md); padding: var(--space-6); }
.rec .mono-tag { color: var(--brand); }
.rec h3 { color: var(--paper); margin: 4px 0 6px; }
.rec p { color: var(--muted-on-dark); margin: 0 0 var(--space-4); }
.rec[hidden] { display: none; }
@media (max-width: 900px) { .end-finder { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); gap: var(--space-8); } }

/* About: a note from the founder */
.end-note { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-12); align-items: center; }
.note { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8) var(--space-8) var(--space-6); box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); position: relative; background-image: repeating-linear-gradient(transparent 0 31px, rgba(46,107,230,.10) 31px 32px); background-position: 0 14px; }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(245,130,32,.35); transform: rotate(2deg); border-radius: 3px; }
.note p { font-size: 17px; line-height: 32px; color: var(--ink); margin: 0 0 4px; }
.note .sig { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 26px; line-height: 32px; color: var(--brand-text); margin-top: var(--space-4); }
.note .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 900px) { .end-note { grid-template-columns: 1fr; } .note { transform: none; } }

/* FAQ: two-way ending */
.end-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.end-split > div { border-radius: var(--radius-lg); padding: var(--space-12); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.end-split .mail { background: var(--surface-raised); border: 1px solid var(--line); }
.end-split .call { background: var(--brand); color: var(--on-brand); }
.end-split .call h2, .end-split .call p { color: var(--on-brand); }
.copy-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 6px 6px 6px 16px; flex-wrap: wrap; }
.copy-row code { font-family: var(--font-mono); font-size: 15px; color: var(--ink); flex: 1; user-select: all; min-width: 0; overflow-wrap: anywhere; }
.copy-row button { background: var(--ink); color: var(--paper); border: 0; border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
@media (max-width: 860px) { .end-split { grid-template-columns: 1fr; } .end-split > div { padding: var(--space-8) var(--space-6); } }

/* ---------- INNER PAGES ---------- */
.page-hero { padding-block: var(--space-16) var(--space-12); position: relative; overflow: hidden; }
.page-hero .lead { max-width: 700px; }
.page-hero .hero-node { position: absolute; right: 6%; top: 50%; width: 220px; transform: translateY(-50%); opacity: .9; }
@media (max-width: 900px) { .page-hero .hero-node { right: 16px; top: 28px; width: 84px; transform: none; } }

/* Services page */
.jump { position: sticky; top: calc(73px + env(safe-area-inset-top, 0px)); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px; border: 1.5px solid var(--line); background: var(--surface-raised); transition: all .2s; }
.jump a .ico { width: 16px; height: 16px; }
.jump a:hover { border-color: var(--line-strong); }
.jump a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; padding-block: var(--space-24); border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc.flip > .svc-copy { order: 2; }
@media (max-width: 980px) { .svc, .svc.flip { grid-template-columns: 1fr; gap: var(--space-8); padding-block: var(--space-16); } .svc.flip > .svc-copy { order: 0; } }
.svc-copy h2 { margin: var(--space-4) 0 var(--space-3); }
.svc-copy .for { font-size: 15px; line-height: 24px; color: var(--ink-muted); margin-top: var(--space-4); padding-left: 14px; border-left: 2px solid var(--line); }
.incl { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); }
@media (max-width: 560px) { .incl { grid-template-columns: 1fr; } }
.incl li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-2); align-items: start; font-size: 15px; line-height: 23px; }
.incl li .ico { width: 18px; height: 18px; color: var(--brand-text); margin-top: 3px; stroke-width: 2.5; }
.tools { margin-top: var(--space-6); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.tools b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-right: var(--space-2); }
.svc-visual { position: relative; }
.svc-visual .stage-card { min-height: 0; }
.svc-visual .scene { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; }
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .addons { grid-template-columns: 1fr; } }
.addon { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); }
.addon h3 { margin: var(--space-4) 0 var(--space-2); }
.addon p { color: var(--ink-muted); margin: 0; }

/* About */
.story { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-16); row-gap: var(--space-12); align-items: start; }
.story .story-text { grid-column: 1; grid-row: 1; }
.story .story-beliefs { grid-column: 1; grid-row: 2; }
.story .connect-art { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 120px; }
.story-beliefs .eyebrow { margin-bottom: var(--space-4); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; row-gap: var(--space-8); } .story .story-text, .story .story-beliefs, .story .connect-art { grid-column: 1; grid-row: auto; position: relative; top: 0; } }
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.pain { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface-raised, #fff); border: 1px solid var(--line); border-radius: var(--radius-md, 14px); font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 22px; color: var(--ink); }
.pain .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--surface-tint, #FFE9D6); color: var(--brand-text, #A64A09); }
.belief-list { display: grid; gap: 0; }
.belief { display: grid; grid-template-columns: 48px 1fr; align-items: start; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--line); cursor: default; }
.belief:first-child { border-top: 1px solid var(--line); }
.belief .bn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-raised, #fff); border: 1px solid var(--line); color: var(--line-strong); transition: color .3s, border-color .3s; }
.belief .bn svg { width: 30px; height: 21px; }
.belief:hover .bn { border-color: var(--brand); }
.belief:hover .bn { color: var(--brand); }
.belief h3 { font-size: 19px; line-height: 25px; margin-bottom: 4px; }
.belief p { color: var(--ink-muted); margin: 0; }
.connect-art { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius-lg); background: var(--midnight); overflow: hidden; }
.connect-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.connect-art .cap { position: absolute; left: var(--space-6); bottom: var(--space-6); right: var(--space-6); color: var(--paper); font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 28px; }
.connect-art .cap small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.founder { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-12); align-items: center; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; gap: var(--space-6); } }
.portrait { width: 100%; max-width: 260px; aspect-ratio: 5 / 6; border-radius: var(--radius-lg); background: var(--surface-tint); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait .mono-a { font-family: var(--font-display); font-weight: 600; font-size: 96px; color: var(--brand-text); letter-spacing: -.04em; }
.portrait span { position: absolute; bottom: 14px; left: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-muted); text-transform: uppercase; }
blockquote.pull { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 36px; letter-spacing: -.01em; color: var(--ink); }
.sig-line { margin-top: var(--space-4); color: var(--ink-muted); font-size: 15px; }
.sig-line b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .how-cards { grid-template-columns: 1fr; } }
.how-card { border-radius: var(--radius-lg); padding: var(--space-8); }
.how-card:nth-child(1) { background: var(--teal-tint); } .how-card:nth-child(2) { background: var(--blue-tint); } .how-card:nth-child(3) { background: var(--surface-tint); }
.how-card h3 { margin: var(--space-4) 0 var(--space-2); }
.how-card p { margin: 0; color: var(--ink); }
.how-card .ico { width: 28px; height: 28px; }

/* FAQ */
.faq-tools { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: var(--space-8); }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cats button { padding: 8px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface-raised); font-weight: 500; font-size: 14px; cursor: pointer; transition: all .2s; }
.cats button:hover { border-color: var(--line-strong); }
.cats button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { position: relative; flex: 1; max-width: 320px; min-width: 220px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-muted); }
.search input { padding-left: 40px; }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq details[hidden] { display: none; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-6) 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-cat { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); display: block; margin-bottom: 4px; }
.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-tint); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.faq summary .pm .ico { width: 16px; height: 16px; stroke-width: 2.5; }
.faq summary:hover .pm { background: var(--brand); }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--brand); }
.faq .answer { padding: 0 var(--space-12) var(--space-6) 0; color: var(--ink-muted); }
.faq .answer p:last-child { margin: 0; }
.faq-empty { padding: var(--space-8) 0; color: var(--ink-muted); }
@media (max-width: 640px) { .faq summary { font-size: 17px; line-height: 24px; } .faq .answer { padding-right: 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form.contact { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); display: grid; gap: var(--space-6); box-shadow: var(--shadow-md); }
@media (max-width: 640px) { form.contact { padding: var(--space-6) var(--space-4); } }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
label, legend { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; }
label .opt { font-family: var(--font-sans); font-weight: 400; color: var(--ink-muted); }
input, textarea { font: 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-raised); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; width: 100%; }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(46,107,230,.18); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips label { font-family: var(--font-sans); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); cursor: pointer; transition: all .15s; }
.chips input { width: auto; margin: 0; accent-color: var(--brand-text); }
.chips label:has(input:checked) { border-color: var(--brand-text); background: var(--surface-tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.notice { border-radius: var(--radius-md); padding: var(--space-4); font-size: 15px; display: none; }
.notice.show { display: block; }
.notice.ok { background: var(--teal-tint); color: #064e47; }
.notice.err { background: #fde8e8; color: #8a1c21; }
.info-stack { display: grid; gap: var(--space-4); }
.info-card { border-radius: var(--radius-lg); padding: var(--space-6); background: var(--surface-tint); }
.info-card.dark-card { background: var(--midnight); color: var(--paper); }
.info-card.dark-card h3 { color: var(--paper); }
.info-card h3 { font-size: 18px; line-height: 24px; margin-bottom: var(--space-2); }
.info-card p { margin: 0; }
.timeline { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-4); position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--midnight-line); }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); position: relative; color: var(--muted-on-dark); font-size: 15px; line-height: 22px; }
.timeline li b { color: var(--paper); font-family: var(--font-display); font-weight: 600; display: block; }
.timeline li::before { content: ""; width: 12px; height: 12px; margin: 5px 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--midnight); position: relative; }

/* Footer */
.site-footer { background: var(--midnight); color: var(--muted-on-dark); padding-block: var(--space-16) var(--space-8); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid img { height: 46px; margin-left: -10px; display: block; }
.foot-grid .tagline { margin: var(--space-4) 0 0; color: var(--paper); font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 24px; max-width: 280px; }
.foot-grid h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); margin: 0 0 var(--space-4); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.foot-grid a { color: var(--paper); text-decoration: none; font-size: 15px; }
.foot-grid a:hover { color: var(--brand); }
.foot-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--midnight-line); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: 13px; }

/* Reveal: visible at rest; only below-the-fold elements get the "pre" state from script */
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .reveal.pre { opacity: 1; transform: none; }
}
.ba-wrap > *, .hero-grid > *, .end-builder > div, .end-finder > div, .svc > *, .story > *, .contact-grid > * { min-width: 0; }
.stage-float[hidden] { display: none; }
.stage-node { top: auto; bottom: -34px; right: -26px; }
@media (max-width: 980px) { .stage-node { right: 4px; bottom: -40px; width: 84px; } }
.portrait .mono-a { position: static; font-family: var(--font-display); font-weight: 600; font-size: 96px; letter-spacing: -.04em; color: var(--brand-text); text-transform: none; }
[data-stage-eyebrow] { transition: opacity .2s ease, transform .2s ease; }
[data-stage-eyebrow].swap { opacity: 0; transform: translateY(-4px); }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .client-grid { grid-template-columns: 1fr; } }
.client { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); min-width: 0; }
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.client-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.client .mono { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--surface-tint); color: var(--brand-text); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.client .ctag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 10px; }
.client h3 { font-size: 24px; line-height: 30px; }
.client .who { margin: 0 0 var(--space-2); font-weight: 600; font-size: 15px; color: var(--ink); }
.client .muted { margin: 0; }
.client-link { margin-top: auto; padding-top: var(--space-6); font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; }
.client-link .arr { display: inline-block; transition: transform .2s var(--ease); }
.client-link:hover .arr { transform: translate(2px, -2px); }
.client.next { background: var(--midnight); border-color: var(--midnight); color: var(--paper); text-decoration: none; }
.client.next h3 { color: var(--paper); }
.client.next p { color: var(--muted-on-dark); margin: 0; }
.client.next .mono.plus { background: var(--brand); color: var(--on-brand); font-size: 30px; margin-bottom: var(--space-4); }
.client.next .go { margin-top: auto; padding-top: var(--space-6); font-family: var(--font-display); font-weight: 600; color: var(--brand); }
.client.next .go .arr { display: inline-block; transition: transform .2s var(--ease); }
.client.next:hover .go .arr { transform: translateX(4px); }
