/* ==========================================================================
   SIFRA — Concept 02 "Graphite & Ember"
   Dummy design study. Fully offline: no fonts, CDNs, APIs or form backends.
   ========================================================================== */

@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --bg: #060815;
  --bg-1: #0b0e1d;
  --bg-2: #0f1426;
  --bg-3: #151a30;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fg: #ecf1f9;
  --fg-2: #b8c2d6;
  --muted: #7e8aa3;
  --dim: #4f5a72;
  --ember: #3b82f6;
  --ember-2: #60a5fa;
  --ember-3: #bfdbfe;
  --ember-glow: rgba(59,130,246, .35);
  --ok: #3ddc97;
  --paper: #ecf1f8;
  --paper-2: #dde5f1;
  --ink: #0d1021;
  --ink-2: #404a60;
  --heat: linear-gradient(100deg, #dbeafe 0%, #60a5fa 35%, #3b82f6 65%, #6366f1 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --r: 20px;
  --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Grain + grid backdrop ---------- */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ember-2);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.display {
  font-size: clamp(44px, 8.4vw, 128px);
  line-height: .92; letter-spacing: -.01em; font-weight: 700; margin: 0;
}
.h1 { font-size: clamp(40px, 6vw, 88px); line-height: .98; letter-spacing: -.01em; font-weight: 700; margin: 0; }
.h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.01em; font-weight: 700; margin: 0; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--fg-2); max-width: 640px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.heat {
  background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outline-text { -webkit-text-stroke: 1px rgba(255,255,255,.35); color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .4s, border-color .3s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: 0 0 0 0 var(--ember-glow), 0 10px 40px -10px var(--ember-glow); }
.btn-primary:hover { background: #5291ff; box-shadow: 0 0 0 6px rgba(59,130,246, .14), 0 14px 50px -10px var(--ember-glow); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); background: rgba(255,255,255,.02); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn-light { background: var(--fg); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ember-2); font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6,8,21, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: .14em; font-size: 15px; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; position: relative; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.brand-mark::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--ember); }
.brand-mark::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 10px var(--ember); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 2px; width: 14px; margin: 4px auto -6px; border-radius: 2px; background: var(--ember); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,151,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.45); } 70% { box-shadow: 0 0 0 9px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 20px; } .menu-btn span:nth-child(3) { top: 24px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: rgba(6,8,21,.97); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.mobile-menu a { font-size: 36px; font-weight: 700; letter-spacing: -.01em; padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .04s; } .menu-open .mobile-menu a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .12s; } .menu-open .mobile-menu a:nth-child(5) { transition-delay: .16s; }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--heat); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.in .split-line > span, .split-line.in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .08s; } .split-line:nth-child(3) > span { transition-delay: .16s; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 14vw, 180px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); max-width: 860px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }
.rule { border-top: 1px solid var(--line); }

/* ---------- HERO ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 40px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(59,130,246, .16), transparent 70%),
    radial-gradient(40% 40% at 20% 90%, rgba(99,102,241, .10), transparent 70%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(80% 60% at 50% 100%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(80% 60% at 50% 100%, #000 10%, transparent 70%); opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; width: 100%; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); font-size: 13px; color: var(--fg-2); }
.chip b { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: .12em; padding: 4px 8px; border-radius: 999px; background: var(--ember); color: #fff; }
.hero-title { max-width: 14ch; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meter { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: rgba(11,14,29,.6); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); overflow: hidden; }
.hero-meter > div { padding: 18px 18px 16px; border-right: 1px solid var(--line); }
.hero-meter > div:last-child { border-right: 0; }
.hero-meter .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-meter .v { font-size: 32px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hero-meter .v small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--fg-2); white-space: nowrap; }
.marquee-item i { width: 8px; height: 8px; border-radius: 2px; background: var(--ember); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Scrubbed statement ---------- */
.statement { height: 260vh; }
.statement-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.statement-text { font-size: clamp(30px, 5vw, 72px); line-height: 1.08; letter-spacing: -.01em; font-weight: 700; max-width: 20ch; margin: 28px 0 0; text-align: left; }
.statement-text .w { color: rgba(255,255,255,.12); transition: color .25s; }
.statement-text .w.on { color: var(--fg); }
.statement-text .w.hot.on { color: var(--ember); }
.statement-foot { margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Sticky story ---------- */
.story { height: 480vh; }
.story-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.story-steps { position: relative; display: grid; }
.story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.story-step.active { opacity: 1; transform: none; pointer-events: auto; }
.story-step .num { font-family: var(--mono); font-size: 13px; color: var(--ember-2); letter-spacing: .12em; }
.story-step h3 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -.01em; line-height: 1; margin: 18px 0 20px; font-weight: 700; }
.story-step p { color: var(--fg-2); font-size: 18px; max-width: 440px; margin: 0; }
.story-step ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.story-step li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--fg-2); }
.story-step li::before { content: ""; width: 14px; height: 1px; background: var(--ember); }
.story-rail { display: flex; gap: 8px; margin-bottom: 36px; }
.story-rail span { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; position: relative; max-width: 64px; }
.story-rail span i { position: absolute; inset: 0; background: var(--ember); transform-origin: 0 50%; transform: scaleX(0); }

.device {
  position: relative; border-radius: 22px; background: linear-gradient(180deg, #12162a, #0c0f1f);
  border: 1px solid var(--line-2); box-shadow: 0 60px 120px -40px rgba(0,0,9,.9), 0 0 0 8px rgba(255,255,255,.02), 0 30px 120px -30px var(--ember-glow);
  aspect-ratio: 16 / 11; overflow: hidden; transform: perspective(1600px) rotateY(-8deg) rotateX(4deg); transition: transform 1s var(--ease);
}
.device:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(2deg); }
.device-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #202844; }
.device-tabs { display: flex; gap: 4px; margin-left: 14px; overflow: hidden; }
.device-tabs span { font-size: 11.5px; padding: 5px 12px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.device-tabs span.on { background: rgba(255,255,255,.06); color: var(--fg); }
.device-tag { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ok); letter-spacing: .1em; display: inline-flex; align-items: center; gap: 6px; }
.screens { position: absolute; inset: 40px 0 0 0; }
.screen { position: absolute; inset: 0; padding: clamp(16px, 2.4vw, 28px); opacity: 0; transform: scale(.98); transition: opacity .7s var(--ease), transform .9s var(--ease); display: flex; flex-direction: column; gap: 12px; }
.screen.active { opacity: 1; transform: none; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--ember); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--bg-3); border: 1px solid var(--line); color: var(--fg-2); border-bottom-left-radius: 4px; }
.file-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 12.5px; align-self: flex-end; }
.file-pill b { font-family: var(--mono); font-size: 10px; padding: 4px 6px; border-radius: 6px; background: #6366f1; color: #fff; }
.think { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: grid; gap: 6px; }
.think .t-ok { color: var(--ok); }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: rgba(59,130,246,.18); color: var(--ember-2); font-size: 10.5px; font-weight: 700; font-family: var(--mono); vertical-align: 1px; }
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sources div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 11px; color: var(--muted); }
.sources div b { display: block; color: var(--fg); font-size: 11.5px; margin-bottom: 2px; font-weight: 600; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 120px; flex: 1; }
.wave i { width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--ember-3), var(--ember)); animation: wave 1.2s var(--ease-io) infinite alternate; }
@keyframes wave { from { height: 10%; } to { height: 90%; } }
.voice-cap { text-align: center; font-size: 13px; color: var(--muted); }
.voice-cap b { display: block; color: var(--fg); font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line);
  padding: clamp(22px, 2.4vw, 32px); overflow: hidden; isolation: isolate; min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  transition: border-color .4s, transform .6s var(--ease);
}
.card::before { /* reveal light */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(96,165,250, .12), transparent 45%);
}
.card::after { /* border light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(96,165,250, .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 8px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 420px; }
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2); }
.c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-2 { grid-column: span 2; } .c-6 { grid-column: span 6; }
.card.tall { min-height: 420px; }
.spark { width: 100%; height: 140px; }
.big-stat { font-size: clamp(56px, 7vw, 96px); font-weight: 750; letter-spacing: -.01em; line-height: .9; font-variant-numeric: tabular-nums; }
.big-stat small { font-size: .32em; letter-spacing: -.01em; color: var(--muted); font-weight: 500; margin-left: 6px; }
.gauge { --p: 38; width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: conic-gradient(var(--ember) calc(var(--p) * 1%), rgba(255,255,255,.06) 0); transition: --p 1s; position: relative; }
.gauge::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-1); }
.gauge span { position: relative; font-size: 28px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.gauge span small { display: block; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .12em; font-weight: 500; }
.hud-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hud-actions button { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); transition: all .25s; }
.hud-actions button:hover { border-color: var(--ember); color: var(--fg); background: rgba(59,130,246,.08); }
.tree { width: 100%; height: 150px; }
.tree path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.tree path.hot { stroke: var(--ember); stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 2s var(--ease); }
.in .tree path.hot { stroke-dashoffset: 0; }
.tree circle { fill: var(--bg-3); stroke: var(--line-2); stroke-width: 1.5; }
.tree circle.hot { fill: var(--ember); stroke: var(--ember-3); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats span { font-family: var(--mono); font-size: 12px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--fg-2); transition: all .3s; }
.formats span:hover { border-color: var(--ember); color: var(--fg); transform: translateY(-2px); }
.lock-visual { position: relative; height: 150px; display: grid; place-items: center; }
.lock-visual .ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); animation: spin 18s linear infinite; }
.lock-visual .ring:nth-child(1) { width: 140px; height: 140px; border-style: dashed; }
.lock-visual .ring:nth-child(2) { width: 96px; height: 96px; border-color: rgba(59,130,246,.4); animation-direction: reverse; animation-duration: 12s; }
.lock-visual .core { width: 46px; height: 46px; border-radius: 14px; background: var(--ember); box-shadow: 0 0 40px var(--ember-glow); display: grid; place-items: center; }
.lock-visual .core svg { width: 22px; height: 22px; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Engines ---------- */
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-1); position: relative; }
.segmented button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.segmented button.on { color: var(--fg); }
.segmented .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .5s var(--ease), width .5s var(--ease); }
.segmented.light { background: var(--paper-2); border-color: rgba(0,0,9,.08); }
.segmented.light button { color: var(--ink-2); }
.segmented.light button.on { color: var(--ink); }
.segmented.light .pill { background: #fff; box-shadow: 0 1px 3px rgba(0,0,9,.12); }

.engine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: 56px; }
.engine-visual { aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; position: relative; display: grid; place-items: center; }
.chip-die {
  width: 62%; aspect-ratio: 1; border-radius: 28px; position: relative;
  background: linear-gradient(145deg, #161c32, #090c1b); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px var(--ember-glow), inset 0 1px 0 rgba(255,255,255,.08);
  display: grid; place-items: center; transition: transform 1s var(--ease), box-shadow 1s;
}
.chip-die::before { content: ""; position: absolute; inset: 14%; border-radius: 16px; border: 1px solid var(--line-2);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 10px), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 10px); }
.chip-die .label { position: relative; text-align: center; }
.chip-die .label b { display: block; font-size: clamp(26px, 3vw, 40px); letter-spacing: .12em; font-weight: 750; }
.chip-die .label span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ember-2); }
.pins { position: absolute; inset: 0; }
.pins i { position: absolute; background: linear-gradient(90deg, transparent, rgba(96,165,250,.6)); height: 1px; }
.engine-visual.lite .chip-die { transform: scale(.78); box-shadow: 0 30px 80px -30px rgba(61,220,151,.35), inset 0 1px 0 rgba(255,255,255,.08); }
.engine-visual.lite .chip-die .label span { color: var(--ok); }
.specs { display: grid; gap: 22px; }
.spec-row .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.spec-row .top span:last-child { font-family: var(--mono); color: var(--muted); font-size: 12.5px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 6px; background: var(--heat); transition: width 1.1s var(--ease); }
.engine-copy h3 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.01em; margin: 0 0 12px; line-height: 1.02; }
.engine-copy p { color: var(--fg-2); margin: 0 0 32px; max-width: 460px; }

/* ---------- Numbers band ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.numbers > div { padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); border-right: 1px solid var(--line); }
.numbers > div:last-child { border-right: 0; }
.numbers .n { font-size: clamp(44px, 6vw, 84px); font-weight: 750; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers .l { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 220px; }

/* ---------- Paper (light) section ---------- */
.paper { background: var(--paper); color: var(--ink); }
.paper .muted { color: var(--ink-2); }
.paper .eyebrow { color: #1d4ed8; }
.paper .lede { color: var(--ink-2); }

/* ---------- Pricing ---------- */
.price-controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; border-radius: var(--r-lg); background: #fff; border: 1px solid rgba(0,0,9,.08); padding: 32px; display: flex; flex-direction: column; gap: 22px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,9,.25); }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan.featured .muted { color: #96a2ba; }
.plan .badge { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--ember); color: #fff; }
.plan h3 { margin: 0; font-size: 20px; letter-spacing: -.015em; font-weight: 650; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: 64px; font-weight: 750; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: inherit; opacity: .6; font-size: 15px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ember); }
.plan .btn { margin-top: auto; }
.plan .fine { font-size: 13px; }
.compare { margin-top: 64px; display: grid; gap: 18px; max-width: 860px; margin-inline: auto; }
.compare-row { display: grid; grid-template-columns: 180px 1fr 90px; gap: 18px; align-items: center; font-size: 14px; }
.compare-row .track { height: 14px; border-radius: 8px; background: var(--paper-2); overflow: hidden; }
.compare-row .track i { display: block; height: 100%; border-radius: 8px; background: #a0acc4; width: 0; transition: width 1.4s var(--ease); }
.compare-row.us .track i { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.compare-row .val { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.compare-row.us { font-weight: 650; }
.savings { text-align: center; margin-top: 28px; font-size: 15px; }
.savings b { color: #1d4ed8; }

/* ---------- Terminal ---------- */
.term { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #040510; overflow: hidden; font-family: var(--mono); font-size: 14px; box-shadow: 0 40px 100px -40px rgba(0,0,9,.9); }
.term-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: #202844; }
.term-head span { margin-left: 10px; }
.term-body { padding: 22px 22px 26px; display: grid; gap: 10px; }
.term-line { display: flex; gap: 12px; color: var(--fg-2); opacity: 0; transform: translateX(-8px); transition: opacity .5s, transform .5s var(--ease); }
.term-line.on { opacity: 1; transform: none; }
.term-line .dots { flex: 1; border-bottom: 1px dotted var(--dim); transform: translateY(-5px); }
.term-line .z { color: var(--ok); font-weight: 600; }
.term-line.prompt { color: var(--ember-2); }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--ember); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; left: 50%; top: 60%; width: 1100px; height: 700px; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(59,130,246,.28), transparent); filter: blur(10px); }
.cta .display { max-width: 12ch; margin: 24px auto 0; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { margin: 0 0 16px; font-size: 12px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--fg); }
.footer-big { font-size: clamp(64px, 17vw, 260px); font-weight: 800; letter-spacing: -.01em; line-height: .8; margin: 72px 0 32px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(72px, 12vw, 150px)) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(59,130,246,.18), transparent); }
.page-hero .h1 { max-width: 16ch; margin-top: 24px; }
.page-hero .lede { margin-top: 28px; }

/* ---------- Accordion ---------- */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.paper .faq { border-color: rgba(0,0,9,.1); }
.faq-item { border-bottom: 1px solid var(--line); }
.paper .faq-item { border-color: rgba(0,0,9,.1); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; text-align: left; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.015em; }
.faq-q .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid currentColor; opacity: .5; position: relative; transition: transform .5s var(--ease), opacity .3s; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.faq-item.open .pm { transform: rotate(180deg); opacity: 1; }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 28px; color: var(--muted); max-width: 720px; }
.paper .faq-a p { color: var(--ink-2); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- Spec table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 18px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: center; }
.table .yes { color: var(--ok); font-weight: 700; }
.table .no { color: var(--dim); }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
.table-wrap .table tr:last-child td { border-bottom: 0; }
.table td:nth-child(2), .table th:nth-child(2) { background: rgba(59,130,246,.05); }

/* ---------- Principles / About ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { padding: clamp(28px, 3vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 300px; display: flex; flex-direction: column; gap: 16px; transition: background .4s; }
.principle:hover { background: var(--bg-1); }
.principle .idx { font-family: var(--mono); font-size: 12px; color: var(--ember-2); letter-spacing: .1em; }
.principle h3 { margin: auto 0 0; font-size: 24px; letter-spacing: -.025em; line-height: 1.15; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }
.manifesto { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.01em; font-weight: 600; max-width: 24ch; }
.manifesto em { font-style: normal; color: var(--ember-2); }
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-2); margin-left: 8px; }
.tl-item { position: relative; padding: 0 0 48px 40px; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ember); }
.tl-item .when { font-family: var(--mono); font-size: 12px; color: var(--ember-2); letter-spacing: .1em; }
.tl-item h3 { margin: 8px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.tl-item p { margin: 0; color: var(--muted); max-width: 520px; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
.avatar { width: 112px; height: 112px; border-radius: 28px; background: var(--heat); display: grid; place-items: center; font-size: 40px; font-weight: 750; color: #fff; letter-spacing: -.01em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); display: grid; gap: 6px; }
.contact-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card .v { font-size: 19px; font-weight: 600; letter-spacing: -.01em; word-break: break-word; }
.form { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-1), var(--bg)); display: grid; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 16px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); outline: none;
  font-size: 16px; transition: border-color .3s, box-shadow .3s; resize: vertical; appearance: none;
}
.field textarea { min-height: 150px; }
.field label { position: absolute; left: 17px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(59,130,246,.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 9px; font-size: 11px; letter-spacing: .06em; color: var(--ember-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; transition: all .25s; color: var(--fg-2); }
.topics input:checked + label { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.topics input:focus-visible + label { outline: 2px solid var(--ember-2); outline-offset: 2px; }
.form-note { font-size: 12.5px; color: var(--dim); font-family: var(--mono); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; padding: 14px 20px; border-radius: 14px; background: var(--fg); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 20px 60px -10px rgba(0,0,9,.6); transition: transform .6s var(--ease), visibility 0s linear .6s; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); flex: none; }

/* ---------- Concept banner ---------- */
.concept { position: fixed; right: 16px; bottom: 16px; z-index: 70; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(15,20,38,.85); border: 1px solid var(--line-2); color: var(--muted); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-4, .c-3, .c-2, .c-6 { grid-column: span 2; }
  .c-2.half, .c-3.half { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --nav-h: 58px; }
  .nav-links, .nav-status, .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
  .hero-bottom, .story-grid, .engine, .duo, .contact-grid { grid-template-columns: 1fr; }
  .hero-meter .v { font-size: 24px; }
  .hero { align-items: flex-end; padding-top: calc(var(--nav-h) + 38svh); }
  .hero-canvas { height: 62svh; bottom: auto; }
  .story { height: auto; }
  .story-sticky { position: relative; height: auto; padding: 96px 0; }
  .story-steps { gap: 40px; }
  .story-step { grid-area: auto; opacity: 1; transform: none; }
  .story-rail { display: none; }
  .story-device-col { order: -1; }
  .device { transform: none; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div:nth-child(2) { border-right: 0; }
  .numbers > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .compare-row { grid-template-columns: 110px 1fr 70px; gap: 10px; font-size: 13px; }
  .founder { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .c-4, .c-3, .c-2, .c-6, .c-2.half, .c-3.half { grid-column: span 1; }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meter { grid-template-columns: 1fr 1fr 1fr; }
  .hero-meter > div { padding: 14px 12px; }
  .hero-meter .v { font-size: 20px; }
  .sources { grid-template-columns: 1fr 1fr; }
  .sources div:nth-child(3) { display: none; }
  .concept { display: none; }
}

/* ---------- Refinements ---------- */
.display, .h1, .h2, .h3, .lede, .story-step h3 { text-wrap: balance; }
.section { padding: clamp(84px, 11vw, 150px) 0; }
.footer { padding-bottom: 88px; }
.plan .badge + div { padding-right: 116px; }
@media (max-width: 860px) {
  .hero-bottom, .story-grid, .engine, .duo, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .msg { max-width: 92%; }
  .file-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Nav adapts when it sits over a light section */
.nav.light.scrolled { background: rgba(236,241,248, .8); border-color: rgba(0,0,9,.08); }
.nav.light .brand, .nav.light .nav-links a, .nav.light .nav-links a[aria-current="page"] { color: var(--ink); }
.nav.light .nav-links a:hover { background: rgba(0,0,9,.05); }
.nav.light .nav-status { color: var(--ink-2); border-color: rgba(0,0,9,.12); }
.nav.light .btn-ghost { color: var(--ink); border-color: rgba(0,0,9,.18); background: transparent; }
.nav.light .menu-btn { border-color: rgba(0,0,9,.18); }
.nav.light .menu-btn span { background: var(--ink); }
.nav.light .brand-mark { background: var(--ink); }
.menu-open .nav.light .menu-btn span { background: var(--fg); }
.menu-open .nav.light .brand { color: var(--fg); }

@media (prefers-reduced-motion: reduce) and (pointer: fine) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .split-line > span { opacity: 1; transform: none; }
}
