/* =========================================================
   Nexlate — site styles
   Brand: ink #16181F · coral #FF5436 · warm paper
   ========================================================= */

:root {
  --ink: #16181F;
  --ink-2: #1F222B;
  --ink-3: #2A2E38;
  --paper: #F3F1EC;
  --paper-2: #EAE7E0;
  --paper-3: #E0DCD3;
  --white: #FFFFFF;
  --coral: #FF5436;
  --coral-deep: #E2401F;
  --coral-soft: #FFE6DF;
  --muted: #5D626D;
  --muted-light: #A9AEB8;
  --line: rgba(22, 24, 31, 0.12);
  --line-light: rgba(255, 255, 255, 0.12);
  --green: #1F9D5B;

  --sans: "Inter Tight", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--sans); letter-spacing: 0; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-coral { background: var(--coral); color: var(--ink); box-shadow: 0 10px 26px -12px rgba(255, 84, 54, .7); }
.btn-coral:hover { background: #FF6A50; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.section-ink .btn-ink, .contact .btn-ink { background: var(--white); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  color: var(--coral); font-weight: 600; text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(243, 241, 236, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-light { color: var(--white); }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; cursor: pointer; position: relative;
}
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 20px) 0 72px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 70% 45%, #FBFAF7 0%, rgba(251, 250, 247, 0) 70%),
    radial-gradient(120% 100% at 50% 0%, #F3F1EC 0%, #E6E2DA 100%);
}
.hero::after { /* fine grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 40px; width: min(var(--wrap), 100% - 48px); }
.hero-copy { max-width: 600px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); line-height: 1.3; margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255, 84, 54, .15); }

/* narration */
.narration {
  min-height: 7.4em;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .35em;
  font-size: clamp(30px, 3.4vw, 50px); font-weight: 500; letter-spacing: -0.022em; line-height: 1.1;
}
.line { transition: font-size .6s var(--ease), opacity .6s var(--ease), filter .6s var(--ease), color .6s; }
.line.is-past { font-size: .5em; line-height: 1.25; opacity: .38; filter: blur(2.5px); color: var(--muted); }
.line.is-old { opacity: .18; filter: blur(4px); }
.line .typed { white-space: pre-wrap; }
.cursor {
  display: inline-block; width: .07em; height: .9em; margin-left: .06em; vertical-align: -.08em;
  background: var(--ink); animation: blink 1s steps(1) infinite;
}
.narration.is-done .cursor { background: var(--coral); }
@keyframes blink { 50% { opacity: 0; } }

.narration-controls { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.listen {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .6);
  font: 600 15px var(--sans); color: var(--ink); cursor: pointer; transition: all .25s var(--ease);
}
.listen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.listen .wave1, .listen .wave2 { opacity: .35; }
.listen:hover { border-color: var(--ink); }
.listen[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.listen[aria-pressed="true"] .wave1 { animation: wave 1.2s ease-in-out infinite; }
.listen[aria-pressed="true"] .wave2 { animation: wave 1.2s ease-in-out .2s infinite; }
@keyframes wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.listen[hidden] { display: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, .6); cursor: pointer; display: grid; place-items: center; color: var(--ink);
  transition: border-color .25s, transform .4s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--ink); transform: rotate(-45deg); }
.text-btn { background: none; border: 0; padding: 8px 4px; font: 500 15px var(--sans); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.text-btn:hover { color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* stage: the AI host (animated picture, assets/js/host2d.js) */
.stage { position: relative; justify-self: end; }
.stage-glow {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 84, 54, .16) 0%, rgba(255, 84, 54, 0) 62%);
  transition: opacity .4s; opacity: .55;
}
.stage.is-speaking .stage-glow { opacity: 1; }
.stage-host { aspect-ratio: 2 / 3; width: min(100%, 470px, calc((100svh - 150px) * 0.6667)); }
.stage-host .host-still, .stage-host .stage-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(#000 70%, transparent 99%);
  mask-image: linear-gradient(#000 70%, transparent 99%);
}
.stage-host .host-still { object-fit: cover; object-position: top center; transition: opacity .5s var(--ease); }
.stage-host .stage-canvas { opacity: 0; transition: opacity .5s var(--ease); }
.stage-host.is-live .stage-canvas { opacity: 1; }
.stage-host.is-live .host-still { opacity: 0; }
.stage-host .stage-glow { inset: 2% 6% 34%; }
.stage-host .stage-label { opacity: 1; transform: none; }
.stage-label {
  position: absolute; left: 4px; bottom: 6%; transform: translateY(8px);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.stage-label span { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.stage.is-speaking .stage-label span { animation: wave 1s ease-in-out infinite; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(22, 24, 31, .3);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--white); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.015em; white-space: nowrap; }
.marquee i { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-ink { background: var(--ink); color: var(--white); }
.section-soft { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 18px; }
.section-ink .kicker { color: var(--coral); }
h2 { font-size: clamp(38px, 5.4vw, 76px); letter-spacing: -0.028em; line-height: 1.02; }
h2 em { color: var(--coral-deep); }
.section-ink h2 em { color: var(--coral); }
.lead { margin-top: 22px; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 620px; }
.section-ink .lead { color: var(--muted-light); }
.section-head .btn { margin-top: 30px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* problem */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.problem-card {
  background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(22, 24, 31, .25);
}
.problem-num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--coral); }
.problem-card h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 18px 0 14px; }
.problem-card p { color: var(--muted); }

/* layers */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.layer {
  position: relative; background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 32px 30px 34px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s;
}
.layer:hover { transform: translateY(-6px); border-color: rgba(255, 84, 54, .45); }
.layer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.layer-num { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; color: var(--coral); }
.pill { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 6px 11px; border-radius: 999px; }
.pill-live { background: rgba(31, 157, 91, .16); color: #5FD39A; }
.pill-next { background: rgba(255, 84, 54, .14); color: var(--coral); }
.layer h3 { font-size: 34px; letter-spacing: -0.022em; margin-bottom: 12px; }
.layer-lead { color: var(--muted-light); margin-bottom: 26px; }
.layer .ticks li { color: #DDE0E6; }
.layer-next { background: linear-gradient(160deg, #2A1C1A 0%, var(--ink-2) 55%); border-color: rgba(255, 84, 54, .3); }
.layer-note { color: #C9CDD5; font-size: 15.5px; border-top: 1px solid var(--line-light); padding-top: 20px; }

/* websites */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.split .section-head { position: sticky; top: calc(var(--header-h) + 30px); margin-bottom: 0; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { display: flex; gap: 16px; padding: 26px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.feature svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--coral-soft); stroke: var(--coral-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); }

/* agents */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agent { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .4s var(--ease), box-shadow .4s; }
.agent:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(22, 24, 31, .3); }
.agent svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--ink); stroke: var(--coral); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.agent h3 { font-size: 22px; margin-bottom: 10px; }
.agent p { color: var(--muted); font-size: 15.5px; }
.agent-note { background: var(--ink); color: var(--white); border-color: var(--ink); }
.agent-note h3 { margin-bottom: 18px; }
.agent-note .ticks li { color: #DDE0E6; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.step { position: relative; padding: 30px 26px 32px; border-top: 2px solid var(--ink); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: var(--ink); font-weight: 700; margin-bottom: 26px;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(246px, 1fr)); gap: 18px; align-items: stretch; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; }
.price .ticks { margin: 26px 0 32px; flex: 1; }
.price-name { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-amount { font-size: clamp(46px, 4.6vw, 62px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-top: 18px; }
.price-amount span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .42em; letter-spacing: 0; color: var(--muted); margin-right: 4px; vertical-align: .35em; }
.price-term { color: var(--muted); font-size: 15px; margin-top: 8px; }
.price-feature { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-10px); box-shadow: 0 40px 70px -40px rgba(22, 24, 31, .6); }
.price-feature .price-name, .price-feature .price-term, .price-feature .price-amount span { color: var(--muted-light); }
.price-feature .ticks li { color: #DDE0E6; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.principle { padding: 34px 30px 36px 0; border-bottom: 1px solid var(--line-light); }
.principle:not(:nth-child(3n)) { border-right: 1px solid var(--line-light); }
.principle:not(:nth-child(3n+1)) { padding-left: 30px; }
.principle h3 { font-size: 22px; margin-bottom: 10px; }
.principle p { color: var(--muted-light); font-size: 15.5px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5436' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 26px 0; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-copy .btn { margin-top: 32px; }
.contact-alt { margin-top: 18px; color: var(--muted-light); }
.contact-alt a { color: var(--white); }
.contact-form { background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 13.5px; font-weight: 500; color: var(--muted-light); }
.field input, .field select, .field textarea {
  width: 100%; font: 16px var(--sans); color: var(--white);
  background: var(--ink); border: 1px solid var(--line-light); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9AEB8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 84, 54, .2); }
.field ::placeholder { color: #6C717C; }
.form-note { font-size: 13.5px; color: var(--muted-light); }
.form-note a { color: var(--white); }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { background: #0F1116; color: var(--white); padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px 60px; align-items: start; }
.footer-tag { margin-top: 18px; color: var(--muted-light); font-size: 18px; line-height: 1.4; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 40px; }
.footer-links a { color: #D4D7DD; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--coral); }
.footer-legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 13.5px; color: #80858F; }
.footer-legal a { color: #D4D7DD; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .layers, .agent-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .layer-next, .price-grid .price:last-child { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle, .principle:not(:nth-child(3n+1)) { padding: 30px 24px 30px 0; border-right: 0; }
  .principle:nth-child(odd) { border-right: 1px solid var(--line-light); }
  .principle:nth-child(even) { padding-left: 24px; }
  .split, .faq-wrap { grid-template-columns: 1fr; }
  .split .section-head { position: static; margin-bottom: 40px; }
  .price-feature { transform: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); padding: 8px 24px 24px; box-shadow: 0 20px 30px -20px rgba(22, 24, 31, .3);
    transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 16px 0; font-size: 20px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .header-cta .btn { display: none; }

  .hero { padding-top: calc(var(--header-h) + 8px); align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .stage { order: -1; max-width: 360px; justify-self: center; margin: -10px auto -30px; }
  .stage-host { aspect-ratio: 1 / 1; width: min(80vw, 330px); margin: 0 auto 8px; }
  .narration { min-height: 4.8em; font-size: clamp(28px, 7.6vw, 38px); }
  .eyebrow { margin-bottom: 20px; }
  .scroll-cue { display: none; }

  .problem-grid, .layers, .agent-grid, .price-grid, .steps, .principles, .contact-grid, .feature-list, .field-row { grid-template-columns: 1fr; }
  .layer-next, .price-grid .price:last-child { grid-column: auto; }
  .principle, .principle:nth-child(odd), .principle:nth-child(even) { padding: 26px 0; border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, auto); justify-content: start; }
}

@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 { opacity: 1; transform: none; }
  .cursor { animation: none; }
}
