/* ABECODS 2026 homepage v2. Stage (dark) only, per ADR-011.
   Radius rule: buttons pill (999px), cards and media 16px, inputs and chips 12px.
   One accent: volt lime. Ultramarine appears only as ambient glow. */

:root {
  --lime: #ceff5e;
  --blue: #1e10c7;
  --orange: #ee4e00;
  --ink: #161616;
  --bg: #0c0c0e;
  --bg-2: #131316;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(24, 24, 28, 0.82);
  --text: #f3f0e8;
  --muted: rgba(243, 240, 232, 0.66);
  --faint: rgba(243, 240, 232, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --accent: var(--lime);
  --on-accent: var(--ink);
  --display: 'Anton', Impact, sans-serif;
  --body: 'Cairo', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-card: 16px;
  --r-input: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hdr-h: 72px;
  color-scheme: dark;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -100px; left: 1rem; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 1rem; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; line-height: 0.98; }
.display, h1, h2, h3 { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
.ai-tag { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 6px; border-radius: 999px; background: rgba(206, 255, 94, 0.14); color: var(--lime); vertical-align: 2px; margin-left: 4px; }

/* Z-index scale: content 1, header 50, mega 49, mobile menu 70, floating labels 40, skip 100 */

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800; letter-spacing: 0.4px; white-space: nowrap; transition: transform 240ms var(--ease), box-shadow 300ms var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(206, 255, 94, 0.18); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-lg { padding: 18px 30px; font-size: 14px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.tlink i { transition: transform 260ms var(--ease); }
.tlink:hover i { transform: translateX(3px); }
.tlink.light { color: #fff; }

/* Header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 300ms, transform 400ms var(--ease), border-color 300ms; border-bottom: 1px solid transparent; }
.hdr.scrolled, .hdr.mega-open { background: rgba(12, 12, 14, 0.82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); }
.hdr.hidden:not(.mega-open) { transform: translateY(-100%); }
.hdr-in { height: var(--hdr-h); display: flex; align-items: center; gap: 2.5rem; }
.logo img { height: 30px; width: auto; }
.nav { display: none; align-items: center; gap: 2rem; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav a, .nav-trigger { transition: color 200ms; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nav a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded='true'] { color: var(--text); }
.nav-trigger i { font-size: 12px; transition: transform 300ms var(--ease); }
.nav-trigger[aria-expanded='true'] i { transform: rotate(180deg); }
.hdr-cta { margin-left: auto; }
.menu-btn { margin-left: auto; font-size: 26px; display: grid; place-items: center; width: 44px; height: 44px; }
@media (min-width: 1024px) { .nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 1023px) { .hdr-cta { display: none; } }
.progress-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress-line i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* Mega panel */
.mega { border-top: 1px solid var(--line); background: rgba(12, 12, 14, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2rem; padding-block: 2rem 1.5rem; }
.mega-col { display: flex; flex-direction: column; gap: 0.35rem; }
.mega-stage { font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; }
.mega-q { font-size: 13px; color: var(--faint); margin-bottom: 0.75rem; }
.mega-col a { display: block; padding: 0.7rem 0.8rem; margin-inline: -0.8rem; border-radius: var(--r-input); transition: background-color 200ms; }
.mega-col a:hover { background: var(--surface); }
.mega-col a strong { display: block; font-size: 15px; font-weight: 700; }
.mega-col a span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 14px; }
.mega-auto span { color: var(--muted); }
.mega-links { display: flex; gap: 1.75rem; }
.mega-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.mega-col, .mega-foot { opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 400ms var(--ease); }
.mega.on .mega-col, .mega.on .mega-foot { opacity: 1; transform: none; }
.mega.on .mega-col:nth-child(2) { transition-delay: 40ms; } .mega.on .mega-col:nth-child(3) { transition-delay: 80ms; } .mega.on .mega-col:nth-child(4) { transition-delay: 120ms; } .mega.on .mega-foot { transition-delay: 160ms; }

/* Mobile menu */
.mmenu { position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto; }
.mmenu-in { padding: 1rem var(--gutter) 6rem; display: flex; flex-direction: column; }
.mmenu-close { align-self: flex-end; font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; }
.mmenu-title { font-size: 12px; font-weight: 700; color: var(--faint); margin: 0.5rem 0 0.25rem; }
.mmenu details { border-bottom: 1px solid var(--line); }
.mmenu summary { list-style: none; cursor: pointer; font-family: var(--display); text-transform: uppercase; font-size: 30px; padding: 0.7rem 0; display: flex; justify-content: space-between; align-items: center; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary::after { content: '+'; color: var(--accent); }
.mmenu details[open] summary::after { content: '\2212'; }
.mmenu details a { display: block; padding: 0.55rem 0; color: var(--muted); font-size: 16px; }
.mmenu details a:last-child { padding-bottom: 1rem; }
.mmenu-auto { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.mmenu-main { display: flex; flex-direction: column; margin-top: 1rem; }
.mmenu-main a { font-family: var(--display); text-transform: uppercase; font-size: 30px; padding: 0.4rem 0; }
.mmenu-contact { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.5rem; color: var(--muted); }

/* Floating section label and mobile CTA */
.sec-label { position: fixed; right: var(--gutter); bottom: 1.25rem; z-index: 40; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 12, 14, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity 300ms; }
.mobile-cta { display: none; }
@media (max-width: 767px) {
  .sec-label { display: none; }
  .mobile-cta { display: flex; position: fixed; left: var(--gutter); right: var(--gutter); bottom: 12px; z-index: 40; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); transform: translateY(140%); transition: transform 400ms var(--ease); }
  .mobile-cta.on { transform: none; }
}

/* Shared section rhythm */
.sec { position: relative; padding-block: clamp(4.5rem, 8.5vw, 7rem); }
.h2 { font-size: clamp(38px, 5.4vw, 80px); max-width: 18ch; }
.sec-lead { font-size: clamp(17px, 1.45vw, 20px); font-weight: 300; color: var(--muted); max-width: 52ch; margin-top: 1.25rem; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.ln-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ln-mask > span { display: inline-block; }

/* S1 Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding-block: calc(var(--hdr-h) + 2rem) 3rem; overflow: hidden; background: radial-gradient(55% 60% at 80% 35%, rgba(30, 16, 199, 0.5), transparent 70%), var(--bg); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero-mark { position: absolute; z-index: 0; top: 10vh; right: -5vw; width: min(42vw, 620px); aspect-ratio: 1; pointer-events: none; }
.hero-mark canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 900ms ease; }
.hero-mark.is-live canvas { opacity: 1; }
.hero-mark-fallback { position: absolute; inset: 22%; width: 56%; transform: perspective(900px) rotateY(-22deg) rotateX(8deg); opacity: 0.9; }
.hero-mark.is-live .hero-mark-fallback { opacity: 0; transition: opacity 600ms; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 4rem; } .hero h1 .ln > span { white-space: nowrap; } }
.hero h1 { font-size: clamp(42px, 4.6vw, 80px); line-height: 0.95; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .ln > span { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 38ch; margin-top: 1.75rem; }

/* Form card */
.form-card { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.5rem, 3vw, 2.25rem); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06); scroll-margin-top: 100px; }
.form-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; letter-spacing: 0.5px; line-height: 1.05; }
.form-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.steps-ind { display: flex; gap: 6px; margin: 1.25rem 0 1.5rem; }
.steps-ind li { flex: 1; font-size: 12px; font-weight: 700; color: var(--faint); padding-top: 10px; border-top: 2px solid var(--line); transition: color 300ms, border-color 300ms; }
.steps-ind li.on, .steps-ind li.done { color: var(--text); border-top-color: var(--accent); }
.ms-step { border: 0; display: none; }
.ms-step.on { display: block; animation: stepIn 450ms var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.ms-step legend { font-weight: 700; font-size: 16px; margin-bottom: 1rem; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 56px; padding: 12px 14px; border-radius: var(--r-input); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; line-height: 1.3; transition: border-color 200ms, background-color 200ms, transform 200ms var(--ease); }
.chip:hover span { border-color: rgba(206, 255, 94, 0.5); transform: translateY(-1px); }
.chip input:checked + span { border-color: var(--accent); background: rgba(206, 255, 94, 0.1); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); color: var(--text); font: inherit; font-size: 15px; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(206, 255, 94, 0.18); }
.field .err { display: none; font-size: 12px; color: #ff9b6b; }
.field input[aria-invalid='true'] { border-color: var(--orange); }
.field input[aria-invalid='true'] + .err { display: block; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 0; margin-top: 1rem; }
.form-actions .back { margin-top: 0; }
.fineprint { font-size: 12px; color: var(--muted); margin-top: 1rem; }
.ms-done .done-title { font-family: var(--display); font-size: 34px; text-transform: uppercase; color: var(--accent); }
.ms-done p + p { color: var(--muted); margin-top: 0.5rem; }

/* Logo wall (the one marquee on the page) */
.clients { position: relative; padding-block: 2.5rem 1rem; }
.clients-label { font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 1.5rem; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; flex: none; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); padding-right: clamp(2.5rem, 5vw, 4.5rem); animation: marquee 44s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-mask { display: block; height: 34px; max-width: 190px; aspect-ratio: var(--ratio); background: var(--muted); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; transition: background-color 250ms; }
.marquee li:hover .logo-mask { background: var(--text); }

/* S2 Problem: typographic rows */
.prob-list { margin-top: clamp(2.5rem, 5vw, 4rem); }
.prob { display: grid; gap: 0.75rem 3rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .prob { grid-template-columns: 1.15fr 1fr; align-items: baseline; } }
.prob h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3vw, 46px); line-height: 1; }
.prob p { color: var(--muted); font-size: 17px; max-width: 46ch; }

/* S3 Guide */
.guide-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: 1.45fr 0.55fr; gap: 5rem; } .founder { position: sticky; top: 16vh; } }
.mani { font-size: clamp(30px, 3.6vw, 58px); line-height: 1.04; }
.mani .w { opacity: var(--o, 1); transition: opacity 120ms linear; }
.authority { display: grid; gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .authority { grid-template-columns: repeat(3, 1fr); } }
.authority dt { font-family: var(--display); font-size: 48px; line-height: 1; color: var(--accent); }
.authority dd { font-size: 14px; color: var(--muted); margin-top: 0.4rem; }
.founder { margin: 0; max-width: 380px; }
.founder-frame { position: relative; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; aspect-ratio: 4 / 5; }
.founder-frame img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.founder figcaption { margin-top: -2.5rem; position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 0.25rem; }
.founder-sig { height: 46px; width: auto; margin-bottom: 0.4rem; filter: invert(1) brightness(1.6); }
.founder strong { font-size: 16px; }
.founder span { font-size: 13px; color: var(--muted); }

/* S4 Journey: base = stacked stages (phones, reduced motion) */
.journey { position: relative; background: #0a0a0c; color: #fff; }
.journey::before, .journey::after { content: ''; position: absolute; left: 0; right: 0; height: 20vh; z-index: 3; pointer-events: none; }
.journey::before { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.journey::after { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }
.journey-stage { position: relative; }
.journey-posters, .journey-film, .journey-shade, .journey-skip { display: none; }
.journey-copy { padding-block: 5rem 3rem; }
.journey-intro { font-size: clamp(36px, 5vw, 80px); max-width: 15ch; }
.journey-beats { display: grid; gap: 3rem; margin-top: 2.5rem; }
.jbeat-img { width: calc(100% + 2 * var(--gutter)); max-width: none; margin: 0 calc(-1 * var(--gutter)) 1.25rem; aspect-ratio: 16 / 9; object-fit: cover; }
.jbeat h3 { font-size: clamp(48px, 6.5vw, 104px); line-height: 0.95; }
.jbeat p { color: rgba(255, 255, 255, 0.78); font-size: clamp(17px, 1.5vw, 21px); max-width: 30ch; margin-top: 0.5rem; }
.jlinks { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.jlinks a { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(12, 12, 14, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; transition: border-color 200ms, background-color 200ms; }
.jlinks a:hover { border-color: var(--lime); background: rgba(206, 255, 94, 0.1); }
.journey-rail { padding: 0 var(--gutter) 4rem; max-width: var(--wrap); margin-inline: auto; }
.journey-rail ol { display: none; }
.journey-auto { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.journey-auto a { color: #fff; font-weight: 700; border-bottom: 1px solid var(--lime); }

.journey.journey-live { height: 440vh; }
.journey-live .journey-stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.journey-live .journey-posters { display: block; position: absolute; inset: 0; }
.journey-live .jp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease; }
.journey-live .jp.on { opacity: 1; }
.journey-live .journey-film { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.journey-live .journey-film.ready { opacity: 1; }
.journey-live .journey-shade { display: block; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 12, 0.88) 0%, rgba(10, 10, 12, 0.45) 42%, rgba(10, 10, 12, 0) 70%); }
.journey-live .journey-skip { display: inline-block; position: absolute; top: calc(var(--hdr-h) + 1.5rem); right: var(--gutter); z-index: 4; font-size: 13px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 3px; }
.journey-live .journey-copy { position: absolute; inset: 0; z-index: 2; max-width: var(--wrap); margin-inline: auto; padding-block: 0; }
.journey-live .journey-intro, .journey-live .jbeat { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-38%); opacity: 0; visibility: hidden; transition: opacity 600ms var(--ease), transform 800ms var(--ease), visibility 0s 600ms; }
.journey-live .journey-intro.on, .journey-live .jbeat.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity 600ms var(--ease), transform 800ms var(--ease), visibility 0s; }
.journey-live .journey-beats { margin: 0; }
.journey-live .jbeat-img { display: none; }
.journey-live .journey-rail { position: absolute; left: 0; right: 0; bottom: 2rem; z-index: 4; padding-bottom: 0; }
.journey-live .journey-rail ol { display: flex; }
.journey-rail li { flex: 1; }
.journey-rail button { width: 100%; text-align: left; padding-top: 0.8rem; border-top: 2px solid rgba(255, 255, 255, 0.16); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.5); transition: color 300ms, border-color 300ms; }
.journey-rail button:hover { color: #fff; }
.journey-rail li.on button { color: #fff; border-top-color: var(--lime); }
.journey-rail li.done button { border-top-color: rgba(206, 255, 94, 0.45); }
.journey-live .journey-auto { margin-top: 1rem; font-size: 14px; }

/* S5 AI Solutions */
.ai::before { content: ''; position: absolute; inset: 10% 0 auto auto; width: 60vw; height: 70%; background: radial-gradient(50% 50% at 70% 40%, rgba(30, 16, 199, 0.28), transparent 70%); pointer-events: none; }
.ai-tabs { margin-top: clamp(2.5rem, 5vw, 3.5rem); position: relative; }
.ai-tablist { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ai-tablist::-webkit-scrollbar { display: none; }
.ai-tablist [role='tab'] { flex: none; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); transition: color 200ms, border-color 200ms, background-color 200ms; }
.ai-tablist [role='tab']:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.ai-tablist [role='tab'][aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ai-panel { display: grid; gap: 2.5rem; margin-top: 2rem; align-items: center; }
@media (min-width: 1024px) { .ai-panel { grid-template-columns: 0.6fr 1.4fr; gap: 3.5rem; align-items: start; padding-top: 1rem; } }
.ai-panel.enter > * { animation: panelIn 700ms var(--ease) both; }
.ai-panel.enter > *:nth-child(2) { animation-delay: 80ms; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } }
.ai-copy p { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 40ch; }
.ai-copy p + p { margin-top: 1rem; }
.ai-copy .tlink { margin-top: 1.75rem; }
.ai figure { margin: 0; position: relative; }
.ai figcaption { font-size: 13px; color: var(--muted); margin-top: 1rem; }
.aiva-demo { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 1rem 1.25rem; }
.aiva-src { width: clamp(90px, 9vw, 130px); }
.aiva-src img { border-radius: var(--r-input); }
.aiva-src span { display: block; font-size: 12px; color: var(--muted); margin-top: 0.5rem; }
.aiva-arrow { font-size: 26px; color: var(--accent); }
.aiva-views { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.aiva-views img, .aiva-views video { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-card); background: var(--bg-2); }
.aiva-demo figcaption { grid-column: 1 / -1; }
.vto-demo { position: relative; padding-right: 12%; }
.vto-page { width: 100%; border-radius: var(--r-card); border: 1px solid var(--line); }
.vto-result { position: absolute; right: 0; bottom: 8%; width: 30%; border-radius: var(--r-card); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); outline: 1px solid rgba(255, 255, 255, 0.12); }
.render-demo img { width: 100%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); }
.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: -1rem; position: relative; }
.channels li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.channels i { font-size: 18px; color: var(--accent); }
@media (max-width: 767px) {
  .aiva-demo { grid-template-columns: 1fr; }
  .aiva-arrow { transform: rotate(90deg); justify-self: start; }
  .aiva-views { grid-template-columns: repeat(2, 1fr); }
  .vto-demo { padding-right: 0; padding-bottom: 30%; }
  .vto-result { width: 42%; bottom: 0; }
}

/* S6 Plan: staggered steps along a rising line */
.plan-steps { position: relative; display: grid; gap: 2.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.pstep h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.02; margin-bottom: 0.75rem; }
.pstep p { color: var(--muted); max-width: 34ch; }
.pstep { padding-top: 1.5rem; border-top: 2px solid var(--line); position: relative; }
.pstep::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); }
.pstep.is-on::before { transform: scaleX(1); }
@media (min-width: 900px) {
  .plan-steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; }
  .pstep:nth-child(2) { margin-top: 4rem; }
  .pstep:nth-child(3) { margin-top: 8rem; }
}
.plan-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 3.5rem; }
.plan-cta span { font-size: 14px; color: var(--muted); }

/* S7 Results: sticky stack (CSS sticky, inner card scaled) */
.res-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.stack { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 14vh; }
.stack-item { position: sticky; top: calc(var(--hdr-h) + 12px + var(--i) * 18px); }
.pcard { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45); transform-origin: 50% 0; will-change: transform; }
.pcard-body { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.pcard-client { font-size: 13px; font-weight: 700; color: var(--accent); }
.pcard-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.02; margin-top: 0.8rem; max-width: 18ch; }
.pcard-line { font-size: 15px; color: var(--muted); max-width: 40ch; margin-top: 0.9rem; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.nums .big { grid-column: 1 / -1; }
.nums dt { font-family: var(--display); font-size: clamp(32px, 3vw, 44px); line-height: 1; }
.nums .big dt { font-size: clamp(56px, 5.6vw, 88px); color: var(--accent); }
.nums dd { font-size: 13px; color: var(--muted); margin-top: 0.3rem; }
.basis { font-size: 12px; color: var(--faint); margin-top: 1rem; }
.pcard-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 1.25rem; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pcard-link .arr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 16px; transition: transform 300ms var(--ease); }
.pcard-link:hover .arr { transform: rotate(-45deg); }
.pcard-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #0a0a0c; }
.pm-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease); }
.pcard:hover .pm-cover { scale: 1.04; }
.pm-inset { position: absolute; right: 6%; bottom: 8%; height: 76%; width: auto; border-radius: var(--r-input); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); outline: 1px solid rgba(255, 255, 255, 0.12); transition: transform 700ms var(--ease); }
.pcard:hover .pm-inset { transform: translateY(-6px) rotate(-1.5deg); }
.type-media { display: grid; place-items: center; padding: 2rem; background: radial-gradient(70% 80% at 70% 30%, rgba(30, 16, 199, 0.45), transparent 70%), #0a0a0c; }
.nums-xl { width: 100%; max-width: 520px; grid-template-columns: 1fr; gap: 2rem; }
.nums-xl dt { font-size: clamp(64px, 7vw, 120px); color: var(--accent); }
.ba-frame { --pos: 50%; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.ba-divider::after { content: '\2194'; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 20px; font-weight: 800; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-frame:has(.ba-range:focus-visible) .ba-divider::after { outline: 2px solid var(--text); outline-offset: 3px; }
@media (min-width: 900px) {
  .pcard { grid-template-columns: 5fr 7fr; height: min(520px, calc(100dvh - var(--hdr-h) - 130px)); }
  .pcard-media { aspect-ratio: auto; height: 100%; }
}
@media (max-width: 899px) {
  .stack-item { top: calc(var(--hdr-h) + var(--i) * 12px); }
  .pcard-media { order: -1; }
  .pcard-body { gap: 1.25rem; }
}

/* S8 Testimonials */
.voices-grid { display: grid; gap: 3rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1024px) { .voices-grid { grid-template-columns: 1.3fr 1fr; gap: 4.5rem; align-items: start; } }
.quote-lead { margin: 0; }
.quote-lead blockquote p { font-size: clamp(20px, 1.6vw, 25px); font-weight: 300; line-height: 1.34; max-width: 46ch; }
.quote-lead blockquote p::before { content: '\201C'; color: var(--accent); }
.quote-lead blockquote p::after { content: '\201D'; color: var(--accent); }
.who { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; }
.who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bg-2); border: 1px solid var(--line); }
.who strong { display: block; font-size: 15px; }
.who span { font-size: 13px; color: var(--muted); }
.quotes { display: grid; }
.q { margin: 0; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.q:first-child { border-top: 0; padding-top: 0; }
.q blockquote p { font-size: 16px; }
.q .who { margin-top: 0.9rem; }

/* S9 Fit */
.fit-grid { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .fit-grid { grid-template-columns: 1fr 1fr; } }
.fit-col { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--r-card); border: 1px solid rgba(206, 255, 94, 0.3); background: rgba(206, 255, 94, 0.05); }
.fit-col.alt { border-color: var(--line); background: var(--surface); }
.fit-col h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2vw, 30px); margin-bottom: 1rem; }
.fit-col li { position: relative; padding: 0.85rem 0 0.85rem 2rem; font-size: 16px; }
.fit-col li + li { border-top: 1px solid var(--line); }
.fit-col li::before { content: '+'; position: absolute; left: 0; top: 0.8rem; font-weight: 800; font-size: 17px; color: var(--accent); }

/* S10 FAQ */
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } .faq-grid > div:first-child { position: sticky; top: 18vh; align-self: start; } }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-size: clamp(17px, 1.4vw, 19px); font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--accent); transition: transform 300ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 1.5rem; max-width: 60ch; }

/* S11 Finale */
.finale { position: relative; background: #0a0a0c; color: #fff; }
.finale::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 20vh; z-index: 3; background: linear-gradient(to bottom, var(--bg), transparent); pointer-events: none; }
.finale-stage { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; }
.finale-poster, .finale-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale-film { opacity: 0; transition: opacity 600ms; }
.finale-film.ready { opacity: 1; }
.finale-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.15) 75%); }
.finale-copy { position: relative; z-index: 2; padding-block: 6rem; }
.finale-beat.b1 { display: none; }
.finale h2 { font-size: clamp(46px, 6.2vw, 104px); max-width: 12ch; }
.fin-lead { color: rgba(255, 255, 255, 0.76); font-size: 18px; font-weight: 300; max-width: 44ch; margin-top: 1.25rem; }
.fin-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2rem; }
.stake-no { color: rgba(255, 255, 255, 0.72); }
.stake-yes { color: var(--lime); }
.finale.finale-live { height: 300vh; }
.finale-live .finale-stage { position: sticky; top: 0; height: 100svh; }
.finale-live .finale-copy { position: absolute; inset: 0; max-width: var(--wrap); margin-inline: auto; }
.finale-live .finale-beat { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-42%); opacity: 0; visibility: hidden; transition: opacity 600ms var(--ease), transform 800ms var(--ease), visibility 0s 600ms; }
.finale-live .finale-beat.b1 { display: block; font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6vw, 96px); line-height: 0.98; max-width: 13ch; }
.finale-live .finale-beat.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity 600ms var(--ease), transform 800ms var(--ease), visibility 0s; }

/* Footer */
.foot { background: #0a0a0c; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.foot-grid { display: grid; gap: 2.5rem; padding-block: 4rem 2.5rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.foot-brand img { height: 32px; width: auto; }
.foot-brand p { margin-top: 1rem; max-width: 24ch; }
.foot-col { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-col p { color: var(--text); font-weight: 700; margin-bottom: 0.25rem; }
.foot-col a:hover { color: var(--text); }
.socials { display: flex; gap: 0.9rem; margin-top: 0.5rem; font-size: 20px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); font-size: 13px; }
.foot-base span:last-child { display: flex; gap: 1.5rem; }
@media (max-width: 767px) { .foot { padding-bottom: 4.5rem; } }

/* Reduced motion: everything readable, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .marquee { overflow-x: auto; }
}
@media (max-width: 640px) {
  .hero-mark { width: 74vw; top: 6px; right: -24vw; opacity: 0.24; }
  .chips { grid-template-columns: 1fr; }
}
