/*
  Exvita — public site. Night-first and quiet, like a car in a dark studio: a slow live light behind
  everything, glass that blurs and dims what's under it, big type and lots of air.
  Motion is slow and settles without bounce, except the tab focus, which is meant to feel alive.
*/
:root {
  --night: #04070c;
  --ink: #f3f6f9;
  --ink-2: rgba(243, 246, 249, 0.66);
  --ink-3: rgba(243, 246, 249, 0.4);
  --line: rgba(243, 246, 249, 0.12);
  --accent: #9cc3e8;
  --silver: linear-gradient(180deg, #ffffff 15%, #b9c8d8 60%, #7f95ab 110%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--night); }
body {
  margin: 0;
  font: 400 17px/1.5 var(--font);
  color: var(--ink);
  /* No fill here: html carries the night colour, so the fixed light layers (z-index below 0) show through. */
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(156, 195, 232, 0.35); }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.wrap.narrow { width: min(860px, 100% - 48px); }
section { position: relative; }

/* --- Background layers: still fallback, live light, a dim that deepens as you scroll, film grain. */
.sky, .live, .veil, .grain { position: fixed; inset: 0; pointer-events: none; }
.sky {
  z-index: -4;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(60, 100, 150, 0.35), transparent 60%),
    radial-gradient(70% 60% at 15% 85%, rgba(30, 60, 100, 0.35), transparent 60%),
    var(--night);
}
.live { z-index: -3; width: 100%; height: 100%; opacity: 0; transition: opacity 2.4s var(--ease); }
.live.on { opacity: 1; }
/* The app's backgrounds (photos, video), optionally through liquid glass; picked in the corner panel. */
.backdrop, .backdrop-dim { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -4; pointer-events: none; }
.backdrop { opacity: 0; transition: opacity 1.2s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease); }
.backdrop.on { opacity: 1; }
.backdrop-dim { background: #04070c; transition: opacity 0.5s var(--ease); }
body.bg-blur .backdrop { filter: blur(22px) saturate(1.1); transform: scale(1.08); }
body:not([data-bg="silk"]) .live { opacity: 0 !important; }
body[data-bg="silk"] .backdrop-dim { opacity: 0 !important; }

.bg-toggle {
  position: fixed; z-index: 70; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.bg-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.bg-toggle:active { transform: scale(0.94); }
.bg-panel {
  position: fixed; z-index: 70; right: 22px; bottom: 80px; width: min(340px, calc(100vw - 32px));
  max-height: calc(100svh - 120px); overflow-y: auto; padding: 16px; border-radius: 22px; color: var(--ink);
  background: rgba(14, 20, 30, 0.55); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px rgba(0, 0, 0, 0.45);
  transform-origin: bottom right; animation: bg-pop 0.35s var(--ease);
}
.bg-panel[hidden] { display: none; }
@keyframes bg-pop { from { opacity: 0; transform: scale(0.94) translateY(8px); filter: blur(6px); } }
.bg-panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.bg-close { background: none; border: 0; color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.bg-grid button { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; font: 500 11px var(--font); display: grid; gap: 5px; text-align: center; }
.bg-grid span { display: block; aspect-ratio: 1; border-radius: 12px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.bg-grid button:hover span { transform: scale(1.04); }
.bg-grid button[aria-checked="true"] { color: var(--ink); }
.bg-grid button[aria-checked="true"] span { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(156, 195, 232, 0.35); }
.bg-grid b { font-weight: 500; }
.bg-switch-row, .bg-dim { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 2px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bg-switch-row { background: none; border-left: 0; border-right: 0; border-bottom: 0; color: var(--ink); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.bg-switch-row small, .bg-dim small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.bg-switch-row i { flex: none; width: 40px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.16); position: relative; transition: background 0.25s; }
.bg-switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1); }
.bg-switch-row[aria-checked="true"] i { background: #5f9be0; }
.bg-switch-row[aria-checked="true"] i::after { transform: translateX(16px); }
.bg-dim { font-size: 14px; font-weight: 500; }
.bg-dim input { width: 110px; accent-color: #9cc3e8; }
.veil { z-index: -2; background: rgba(4, 7, 12, 0.62); opacity: var(--veil, 0); }
.grain {
  z-index: -1; opacity: 0.07; mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Type */
.micro {
  font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px;
}
.display {
  font-size: clamp(44px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
  margin: 0 0 28px;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display.small { font-size: clamp(36px, 5vw, 68px); letter-spacing: -0.035em; }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 38ch; margin: 0; letter-spacing: -0.01em; }

/* --- Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  /* No border: the shading alone separates the bar (a border here showed as a hard line). */
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.5), rgba(4, 7, 12, 0)) no-repeat;
  transition: background 0.5s var(--ease);
}
.nav.solid {
  background: rgba(6, 10, 16, 0.55);
  backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
}
.nav-in { width: min(1180px, 100% - 48px); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: 0.32em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.signin { margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.3s; }
.signin:hover { color: var(--ink); }

/* Tabs, console-style: a glowing glass highlight glides between tabs on a spring (main.js). */
.nav nav#tabs { margin-left: auto; position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.nav nav#tabs a {
  position: relative; z-index: 1; padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease);
  will-change: transform;
}
.nav nav#tabs a.focus, .nav nav#tabs a.active { color: var(--ink); }
.nav nav#tabs a.focus { text-shadow: 0 0 18px rgba(156, 195, 232, 0.8); }
.tab-glow {
  position: absolute; z-index: 0; left: 0; top: 4px; bottom: 4px; width: 0;
  border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 28px rgba(110, 165, 230, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: opacity 0.4s var(--ease);
  will-change: transform, width;
}
.tab-glow.show { opacity: 1; }
.tab-glow::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 120% 0;
  animation: shimmer 3.6s var(--ease) infinite; mix-blend-mode: overlay;
}
@keyframes shimmer { 0%, 55% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* --- Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px; border-radius: 999px; border: 0;
  background: #f3f6f9; color: #05080d;
  font: 500 17px var(--font); letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 40px rgba(156, 195, 232, 0.18);
  transition: transform 0.12s ease-out, background 0.3s var(--ease), box-shadow 0.4s var(--ease), opacity 0.3s;
}
.pill:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 12px 50px rgba(156, 195, 232, 0.35); }
.pill:active { transform: scale(0.97); }
.pill.small { height: 36px; padding: 0 18px; font-size: 14px; }
.pill.wide { width: 100%; }
.pill:disabled { opacity: 0.6; cursor: default; }
.text-link { font-size: 19px; color: var(--accent); font-weight: 500; }
.text-link span { display: inline-block; transition: transform 0.3s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* --- 1. Hero */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 90px; overflow: hidden; isolation: isolate;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7be0a6; box-shadow: 0 0 0 0 rgba(123, 224, 166, 0.6); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(123, 224, 166, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(123, 224, 166, 0); } }
.hero h1 {
  font-size: clamp(60px, 11vw, 168px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600;
  margin: 0 0 44px;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.scroll-cue { position: absolute; bottom: 36px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--ink-3); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-2); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* --- 2. Statement */
.statement { padding: 22vh 0; }
.words { width: min(1100px, 100% - 48px); margin: 0 auto; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.16; letter-spacing: -0.035em; font-weight: 600; }
.words .w { opacity: 0.18; transition: opacity 0.35s linear; }
.words .w.lit { opacity: 1; }

/* --- 3. Outcomes */
.outcomes { padding: 12vh 0 18vh; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 90px 1fr minmax(260px, 380px); gap: 32px; align-items: baseline; padding: 48px 0; border-bottom: 1px solid var(--line); }
.rows .n { font-size: 15px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rows h3 { margin: 0; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rows p { margin: 0; color: var(--ink-2); font-size: 19px; }

/* --- 4. Story */
.story { height: 380vh; }
.story-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-in { position: relative; }
.stage-stack { position: relative; height: clamp(300px, 46vh, 460px); }
.stage { position: absolute; inset: 0; opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); pointer-events: none; }
.stage.on { opacity: 1; transform: none; filter: none; }
.stage.past { transform: translateY(-40px); }
.stage > .n { display: none; }
.stage h2 { margin: 0 0 24px; font-size: clamp(64px, 12vw, 176px); line-height: 0.95; letter-spacing: -0.06em; font-weight: 600; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage p { margin: 0; font-size: clamp(20px, 2vw, 26px); color: var(--ink-2); max-width: 30ch; letter-spacing: -0.015em; }
.stage::after {
  content: attr(data-n); position: absolute; right: -3%; top: 50%; translate: 0 -50%; z-index: -1;
  font-size: clamp(200px, 34vw, 500px); line-height: 0.8; font-weight: 700; letter-spacing: -0.07em;
  color: rgba(156, 195, 232, 0.06); font-variant-numeric: tabular-nums; pointer-events: none;
}
.track { display: flex; gap: 8px; margin-top: 48px; max-width: 360px; }
.track i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.track i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* --- Glass bands (privacy, early access): blur and dim what's behind, with a cold studio light. */
.dark {
  background: rgba(3, 6, 10, 0.55);
  backdrop-filter: blur(40px) saturate(1.3); -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22vh 0; overflow: hidden; isolation: isolate;
}
.dark::before {
  content: ''; position: absolute; z-index: -1; width: 70vw; height: 70vw; right: -20vw; top: -25vw;
  background: radial-gradient(circle, rgba(90, 140, 200, 0.2), rgba(90, 140, 200, 0) 60%); pointer-events: none;
}
.specs { margin-top: 12vh; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.spec { padding: 36px 32px 0 0; }
.spec + .spec { padding-left: 32px; border-left: 1px solid var(--line); }
.spec h4 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.spec p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* --- 6. For */
.for { padding: 24vh 0 16vh; }
.roles { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.roles li { padding: 12px 22px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* --- 7. Team */
.team { padding: 12vh 0 16vh; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.person { padding: 40px 32px 0 0; }
.person + .person { padding-left: 32px; border-left: 1px solid var(--line); }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; font-size: 26px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.person h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; font-weight: 600; }
.person .role { margin: 0; color: var(--ink-2); }
.person .tagline { margin: 10px 0 0; color: var(--ink-2); font-style: italic; }
.person .bio { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* --- 8. FAQ */
.faq { padding: 12vh 0 22vh; }
.qs { border-top: 1px solid var(--line); margin-top: 40px; }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translateY(-4px); transition: transform 0.4s var(--ease); }
.qs details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.qs details p { margin: 0 0 28px; max-width: 60ch; color: var(--ink-2); font-size: 18px; }

/* --- 9. Access */
.access-in { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.access .display { font-size: clamp(40px, 4.8vw, 74px); }
.mail { margin-top: 28px; color: var(--ink-2); font-size: 16px; }
.mail a { color: var(--ink); border-bottom: 1px solid var(--line); }
.glass-form {
  display: grid; gap: 18px; padding: 40px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 80px rgba(0, 0, 0, 0.45);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.glass-form label { display: grid; gap: 8px; }
.glass-form label > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.glass-form label em { font-style: normal; opacity: 0.6; }
.glass-form input, .glass-form select, .glass-form textarea {
  width: 100%; font: 400 17px var(--font); color: var(--ink);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 14px 16px; outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.glass-form textarea { resize: vertical; }
.glass-form input:focus, .glass-form select:focus, .glass-form textarea:focus { border-color: rgba(156, 195, 232, 0.7); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 4px rgba(156, 195, 232, 0.12); }
.glass-form select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9d6e2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.glass-form select option { color: #05080d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-size: 15px; }
.status:empty { display: none; }
.status.ok { color: #9be0b4; }
.status.err { color: #ffb4a8; }
.fine { margin: 0; font-size: 13px; color: var(--ink-2); }
.fine a { border-bottom: 1px solid var(--line); }

/* --- Footer */
.foot { position: relative; background: rgba(3, 5, 8, 0.85); color: var(--ink-2); padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot .brand { color: var(--ink); font-size: 12px; }
.foot .brand img { width: 24px; height: 24px; border-radius: 7px; }
.foot nav { display: flex; gap: 24px; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 0 0 0 auto; }

/* --- Reveal */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero .micro.reveal { transition-delay: 0.1s; }
.hero h1.reveal { transition-delay: 0.22s; }
.hero .hero-cta.reveal { transition-delay: 0.4s; }
.rows li.reveal:nth-child(2), .spec.reveal:nth-child(2), .person.reveal:nth-child(2) { transition-delay: 0.1s; }
.rows li.reveal:nth-child(3), .spec.reveal:nth-child(3), .person.reveal:nth-child(3) { transition-delay: 0.2s; }
.person.reveal:nth-child(4) { transition-delay: 0.3s; }
.spec.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Legal pages */
.legal { padding: 140px 0 120px; }
.legal .sheet { width: min(820px, 100% - 48px); margin: 0 auto; padding: 56px; border-radius: 28px; background: rgba(8, 12, 18, 0.6); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, 0.1); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; font-weight: 600; margin: 0 0 6px; }
.legal .updated { color: var(--ink-3); margin: 0 0 36px; font-size: 14px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--accent); }
.draft-note { padding: 12px 16px; border-radius: 12px; background: rgba(255, 200, 90, 0.14); color: #ffd98a; font-size: 14px; margin-bottom: 28px; }

/* --- Small screens */
@media (max-width: 900px) {
  .nav nav#tabs { display: none; }
  .signin { margin-left: auto; }
  .rows li { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { padding: 32px 20px 32px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .spec:nth-child(even) { padding-left: 20px !important; border-left: 1px solid var(--line) !important; }
  .people { grid-template-columns: 1fr; }
  .person, .person + .person { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .access-in { grid-template-columns: 1fr; gap: 48px; }
  .glass-form { padding: 28px 22px; }
  .row { grid-template-columns: 1fr; }
  .legal .sheet { padding: 32px 24px; }
  .foot p { margin-left: 0; width: 100%; }
  .stage::after { right: -8%; top: 0; translate: 0 0; }
}
@media (max-width: 560px) {
  .specs { grid-template-columns: 1fr; }
  .spec:nth-child(even) { padding-left: 0 !important; border-left: 0 !important; }
  .hero-cta { flex-direction: column; gap: 22px; }
  .hero h1 { font-size: 16vw; }
}

/* --- Less motion: the live light holds still, nothing slides or blurs in, the story is a list. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stage { transition: opacity 0.3s linear; transform: none !important; filter: none !important; }
  .scroll-cue span, .dot, .tab-glow::after { animation: none; }
  .words .w { opacity: 1; }
  .story { height: auto; padding: 12vh 0; }
  .story-pin { position: static; height: auto; }
  .stage-stack { height: auto; display: grid; gap: 64px; }
  .stage { position: static; opacity: 1; }
  .stage::after, .track { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.solid { background: #070b11; backdrop-filter: none; }
  .dark { background: #05080d; backdrop-filter: none; }
}

/* ================= Horse ideas (compare with the switch at the bottom) ================= */
.emblem, .gallop { display: none; }
body[data-horse="emblem"] .emblem { display: block; }
body[data-horse="gallop"] .gallop { display: block; }

/* 2. Emblem: a small dark badge with the silver horse; a streak of light crosses it now and then,
      and it tilts a few degrees toward the pointer (set from main.js). */
.emblem {
  position: relative; width: 92px; height: 92px; margin: 0 auto 30px; border-radius: 26px; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 18px 50px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(120, 170, 230, 0.25);
  transform: perspective(600px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.6s var(--ease), opacity 1.2s var(--ease), filter 1.2s var(--ease);
}
.emblem.reveal.in { transform: perspective(600px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.emblem img { width: 100%; height: 100%; display: block; }
.emblem::after {
  content: ''; position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: sweep 5.5s var(--ease) 1.6s infinite;
  mix-blend-mode: overlay;
}
@keyframes sweep { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }

/* 3. Gallop: the app's 15-frame horse runs once across the foot of the screen, with light streaks
      under it, then fades. It plays again when chosen in the switch. */
.gallop { position: absolute; left: 0; right: 0; bottom: 9vh; height: 150px; pointer-events: none; overflow: hidden; }
.gallop-run { position: absolute; left: 0; bottom: 0; width: 220px; height: 152px; transform: translateX(-260px); opacity: 0; }
.gallop.go .gallop-run { animation: run 5.2s cubic-bezier(0.3, 0, 0.4, 1) 0.6s forwards; }
.sprite {
  position: absolute; inset: 0;
  background: url('assets/gallop.webp') 0 0 / 1500% 100% no-repeat;
  filter: drop-shadow(0 0 18px rgba(156, 195, 232, 0.55)) brightness(1.05);
  animation: frames 0.625s steps(15, jump-none) infinite;
  mix-blend-mode: screen; /* drops the strip's dark backdrop so no box shows around the horse */
}
@keyframes frames { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes run {
  0% { transform: translateX(-260px); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 40px)); opacity: 0; }
}
.gallop-run i {
  position: absolute; right: 70%; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 225, 255, 0.85));
}
.gallop-run i:nth-child(2) { bottom: 14px; width: 260px; }
.gallop-run i:nth-child(3) { bottom: 26px; width: 160px; opacity: 0.6; }
.gallop-run i:nth-child(4) { bottom: 8px; width: 380px; opacity: 0.35; }

/* Hero ideas: one canvas behind the headline. */
.hero { position: relative; }
.hero > :not(.art):not(.scroll-cue) { position: relative; z-index: 1; }
/* A soft studio spotlight behind the headline, and a thin horizon of light near the bottom. */
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
.hero::before {
  inset: 0;
  background:
    radial-gradient(42% 34% at 50% 48%, rgba(150, 185, 235, 0.13), transparent 70%),
    radial-gradient(70% 50% at 50% 0%, rgba(120, 150, 200, 0.08), transparent 70%);
}
.hero::after {
  left: 8%; right: 8%; bottom: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 215, 250, 0.45) 30%, rgba(235, 244, 255, 0.8) 50%, rgba(190, 215, 250, 0.45) 70%, transparent);
  box-shadow: 0 0 24px 2px rgba(140, 180, 240, 0.25);
  opacity: 0.55;
  animation: horizon 9s ease-in-out infinite;
}
@keyframes horizon { 0%, 100% { opacity: 0.4; transform: scaleX(0.92); } 50% { opacity: 0.7; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }
/* On the mural, the scene is the light: no blue spotlight or horizon line. */
body[data-bg="mural"] .hero::before, body[data-bg="mural"] .hero::after { display: none; }
body[data-bg="mural"] .hero .text-link { padding: 12px 22px; border-radius: 999px; background: rgba(38, 48, 40, 0.38); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body[data-bg="mural"] .hero h1, body[data-bg="mural"] .hero .micro { text-shadow: 0 2px 24px rgba(20, 30, 20, 0.25); }
.art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.art.on { opacity: 1; }
/* The headline drawn in points of light: the real text keeps its place but isn't painted. */
/* The headline in the mural design's type: rounded, open, solid white, then soft mint. */
.hero h1 {
  font-family: Figtree, var(--font); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(54px, 8.8vw, 140px);
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; -webkit-text-fill-color: currentColor;
}
.hero h1 .l1 { color: #ffffff; }
.hero h1 .l2 { color: #cdf7bc; }
.hero h1 .l1, .hero h1 .l2 { transition: opacity 0.9s var(--ease); }
/* While the pages build it, the real text keeps its place but isn't shown; it fades in once built. */
.hero h1.as-points:not(.settled) .l1, .hero h1.as-points:not(.settled) .l2 { opacity: 0; }
.hero .text-link { color: #bfe8b0; }
.hero .micro { color: rgba(255, 255, 255, 0.86); }

/* The compare switch. */
.compare {
  max-width: calc(100vw - 24px); overflow-x: auto; white-space: nowrap;
  position: fixed; z-index: 60; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(10, 14, 22, 0.7); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); font-size: 13px;
}
.compare[hidden] { display: none; }
.compare span { color: var(--ink-3); margin-right: 6px; font-weight: 500; letter-spacing: 0.04em; }
.compare button {
  font: 500 13px var(--font); color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; transition: background 0.3s var(--ease), color 0.3s;
}
.compare button:hover { color: var(--ink); }
.compare button.on { background: rgba(255, 255, 255, 0.14); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

@media (prefers-reduced-motion: reduce) {
  .emblem::after, .sprite { animation: none; }
  .gallop.go .gallop-run { animation: none; opacity: 1; transform: translateX(calc(50vw - 110px)); }
}
