/* ─────────────────────────────────────────────
   KAIROS NEXT · site.css · Version 2
   Film-first cinematic product site. Sans only.
   Legal pages keep their own style.css.
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #04050e;
  --bg-2: #080a18;
  --panel: rgba(255, 255, 255, 0.03);
  --glass: rgba(9, 11, 24, 0.55);
  --ink: #f2f3f8;
  --muted: #9aa0b4;
  --faint: #64697f;
  --hair: rgba(255, 255, 255, 0.09);
  --hair-soft: rgba(255, 255, 255, 0.05);

  --blue: #4a8cff;
  --blue-ice: #bcd4ff;
  --silver: #cdd2dd;
  --amber: #e0913a;
  --state: var(--blue);
  --state-soft: rgba(74, 140, 255, 0.16);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
  --gutter: clamp(20px, 4vw, 56px);
}

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* never let any transient overflow widen the layout viewport (iOS initial-scale) */
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(74, 140, 255, 0.35); }

.wrap { width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; }

body.fine-cursor, body.fine-cursor a, body.fine-cursor button { cursor: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

main { position: relative; z-index: 1; }

.grain {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); } 60% { transform: translate(-2%, -3%); }
  80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}

/* ─── Cursor ─── */
.cursor { display: none; }
body.fine-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none; border-radius: 50%;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(242, 243, 248, 0.4);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease),
              border-color 0.3s, background-color 0.3s;
}
.cursor-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bg);
  opacity: 0; transition: opacity 0.2s;
}
.cursor.is-hover .cursor-ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: rgba(242, 243, 248, 0.75); }
.cursor.has-label .cursor-ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: var(--ink); border-color: var(--ink); }
.cursor.has-label .cursor-label { opacity: 1; }
.cursor.is-down .cursor-ring { transform: scale(0.85); }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.4s, border-color 0.4s, height 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 58px;
  background: rgba(4, 5, 14, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hair-soft);
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-mark { width: 28px; height: 28px; }
.nav-wordmark { height: 15px; width: auto; }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 32px); }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted); transition: color 0.25s;
  padding: 6px 0; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-burger {
  display: none; flex-direction: column; gap: 6px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease); }
.nav-burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ─── Menu ─── */
.menu {
  position: fixed; inset: 0; z-index: 290;
  background: rgba(4, 5, 14, 0.96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 36px;
  visibility: hidden; opacity: 0;
}
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font-size: clamp(28px, 7vw, 40px); font-weight: 700; letter-spacing: -0.02em;
  padding: 9px 0; display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--hair-soft);
}
.menu-links a i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0.1em; }
.menu-links .menu-cta { color: var(--blue); border-bottom: 0; margin-top: 14px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 20px; }
.menu-foot a { font-size: 13px; color: var(--muted); }

/* ─── Buttons / links ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: 100px;
  border: 1px solid var(--hair);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #05060f; border-color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { color: var(--ink); background: rgba(9, 11, 24, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn-small { padding: 9px 20px; font-size: 13px; }
.btn-small:hover { background: var(--ink); color: #05060f; border-color: var(--ink); }

/* pre-release: the app is not on the store yet */
.btn-soon {
  color: var(--blue-ice); border-color: rgba(74, 140, 255, 0.32);
  background: rgba(74, 140, 255, 0.09);
  display: inline-flex; align-items: center; gap: 10px;
  cursor: default;
}
.btn-soon i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 10px var(--blue);
  animation: livePulse 2.2s ease-in-out infinite;
}
/* .btn-soon and .soon-pill below are now unused: the App Store badge
   replaced both when the app went live. Kept only so older builds do not
   break if one is reintroduced. */

/* Official Apple badge. Per Apple's marketing guidelines the artwork is used
   unmodified, at a size that keeps the wordmark legible, with clear space of at
   least 1/4 its height around it. Height is matched to the ghost button beside
   it in the hero so the pair sits on one line. */
.appstore {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 8px;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.appstore img { height: 46px; width: auto; display: block; }
.appstore:hover { opacity: .85; transform: translateY(-1px); }
.appstore:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.soon-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 34px; border-radius: 100px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-ice);
  border: 1px solid rgba(74, 140, 255, 0.32);
  background: rgba(74, 140, 255, 0.09);
}
.soon-pill i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 12px var(--blue);
  animation: livePulse 2.2s ease-in-out infinite;
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--hair); padding-bottom: 4px;
  transition: border-color 0.3s;
}
.text-link i { font-style: normal; transition: transform 0.3s var(--ease); }
.text-link:hover { border-color: var(--ink); }
.text-link:hover i { transform: translateX(4px); }

/* ─── Type ─── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint);
  margin-bottom: 22px;
}
.h2 {
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(36px, 5vw, 76px);
  max-width: 16ch; margin-bottom: 24px;
}
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 54ch; }

.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > span { display: inline-block; will-change: transform; }

.state-c-open { color: var(--blue); }
.state-c-neutral { color: var(--silver); }
.state-c-overload { color: var(--amber); }

/* ═══ THE FILM · the story as a background video ═══
   Pure HTML/CSS hero: poster paints instantly, video streams in,
   the story titles are baked into the film itself. Zero JS needed. */
.filmhero { position: relative; height: 100svh; overflow: hidden; background: var(--bg); }
.film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.film-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 14, 0.55), transparent 18%),
    linear-gradient(0deg, rgba(4, 5, 14, 0.78), rgba(4, 5, 14, 0.28) 26%, transparent 44%);
}
.film-ui { position: absolute; inset: 0; }
.film-copy {
  position: absolute; left: var(--gutter); bottom: 48px;
  max-width: 560px;
}
.film-title {
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  margin-bottom: 12px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.film-sub {
  font-size: clamp(15px, 1.5vw, 18px); color: var(--muted);
  max-width: 40ch; margin-bottom: 22px;
}
.film-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══ MODEL · live ═══ */
.model {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(8px, 1.6vh, 22px)) 0 40px;
}
.model.state-open { --state: var(--blue); --state-soft: rgba(74, 140, 255, 0.16); }
.model.state-neutral { --state: var(--silver); --state-soft: rgba(205, 210, 221, 0.13); }
.model.state-overload { --state: var(--amber); --state-soft: rgba(224, 145, 58, 0.15); }
.model-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.model-fallback {
  display: none; position: absolute; inset: 0;
  background: radial-gradient(42% 46% at 50% 58%, rgba(74, 140, 255, 0.2), transparent 70%);
}
body.no-webgl .model-gl { display: none; }
body.no-webgl .model-fallback { display: block; }
.model-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  min-height: calc(100svh - var(--nav-h) - clamp(40px, 6.4vh, 80px));
}
.model-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.model-head .h2 { margin-bottom: 16px; }
.model-head .lead { margin-bottom: 8px; }

.model-stage {
  position: relative; margin-top: clamp(10px, 1.8vh, 24px);
  display: flex; align-items: center; justify-content: center; width: 100%;
}
.ghost-word {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, 0);
  font-size: clamp(110px, 22vw, 340px);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--state); opacity: 0.09;
  white-space: nowrap; pointer-events: none; user-select: none;
  transition: color 0.8s;
  z-index: 0;
}

/* ─── Device frame ─── */
.device {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: clamp(30px, 4.2vh, 46px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 5px rgba(10, 12, 26, 0.9),
    0 0 0 6px rgba(255, 255, 255, 0.05),
    0 34px 80px -18px rgba(0, 0, 0, 0.85);
}
.device-screen {
  position: absolute; inset: 4px;
  border-radius: clamp(26px, 3.7vh, 42px);
  overflow: hidden;
}
.device-screen img, .device-screen .shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.device-screen .shot { opacity: 0; transition: opacity 0.7s ease; }
.device-screen .shot.is-active { opacity: 1; }
.device-gleam {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.04) 100%);
}
.device-sweep { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.device-sweep::before {
  content: ''; position: absolute; top: -20%; bottom: -20%; width: 46%;
  left: 0; transform: translateX(-160%) rotate(14deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.device-sweep.run::before { animation: sweep 1.1s var(--ease); }
@keyframes sweep { to { transform: translateX(340%) rotate(14deg); } }

.device-model {
  height: clamp(340px, 42vh, 560px);
  box-shadow:
    0 0 0 5px rgba(10, 12, 26, 0.9),
    0 0 0 6px rgba(255, 255, 255, 0.05),
    0 34px 80px -18px rgba(0, 0, 0, 0.85),
    0 0 130px -24px var(--state);
  transition: box-shadow 0.9s;
  will-change: transform;
}

/* ─── Dock ─── */
.dock {
  position: relative; z-index: 3;
  margin-top: clamp(12px, 2vh, 22px);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 12px 20px 10px;
  background: var(--glass);
  border: 1px solid var(--hair-soft);
  border-radius: 22px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.dock-meta {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.dock-read {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.dock-read.swap { opacity: 0; transform: translateY(-5px); }
.dock-action {
  font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; letter-spacing: -0.015em;
  color: var(--ink);
}
.dock-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  min-height: 1.4em;
}
.dock-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 10px var(--state);
  transition: background 0.6s, box-shadow 0.6s;
  animation: livePulse 2.2s ease-in-out infinite;
}
.dock-pills { display: flex; gap: 6px; }
.pill {
  font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 100px;
  border: 1px solid transparent; color: var(--muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.pill:hover { color: var(--ink); }
.pill.is-active { color: var(--ink); border-color: var(--hair); background: var(--state-soft); }

/* ─── Ticker ─── */
.ticker {
  position: relative; z-index: 1;
  border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft);
  padding: 16px 0; overflow: hidden;
  background: rgba(8, 10, 24, 0.5);
}
.ticker-track { display: flex; width: max-content; }
.ticker-set { display: flex; align-items: center; flex-shrink: 0; }
.ticker-set span {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; padding: 0 26px;
}
.ticker-set i { font-style: normal; color: var(--blue); }

/* ═══ IDEA ═══ */
.idea { position: relative; padding: clamp(90px, 11vw, 170px) 0; }
.idea-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: clamp(36px, 5vw, 64px) 0;
}
.idea-card {
  border: 1px solid var(--hair-soft); border-radius: 20px;
  padding: clamp(28px, 3vw, 48px);
  background: var(--panel); position: relative; overflow: hidden;
}
.idea-card.idea-kairos { border-color: rgba(74, 140, 255, 0.3); }
.idea-card.idea-kairos::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 85% 0%, rgba(74, 140, 255, 0.12), transparent 70%);
}
.idea-num {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--faint); display: block; margin-bottom: 20px;
}
.idea-kairos .idea-num { color: var(--blue); }
.idea-card h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.idea-def { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; margin-bottom: 14px; }
.idea-kairos .idea-def { color: var(--blue-ice); }
.idea-body { color: var(--muted); font-size: 15.5px; max-width: 40ch; }

.manifesto { max-width: 920px; margin-top: clamp(48px, 7vw, 100px); }
.manifesto p {
  font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.16;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.manifesto .m-word { opacity: 0.13; display: inline; }

/* ─── Modes: Partner / Ally / Solo ─── */
.modes { margin-top: clamp(48px, 7vw, 96px); }
.modes-intro { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.modes-intro h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; }
.modes-intro p { color: var(--muted); font-size: 16px; max-width: 52ch; }
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--hair-soft); border-radius: 18px;
  padding: clamp(24px, 2.6vw, 38px);
  background: var(--panel);
}
.mode-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(62% 82% at 88% 0%, var(--acc-glow, transparent), transparent 70%);
}
.mode-card::after {
  content: ''; position: absolute; left: clamp(24px, 2.6vw, 38px); top: 0; width: 34px; height: 2px;
  background: var(--acc, var(--hair)); border-radius: 2px; opacity: 0.85;
}
.mode-tag {
  position: relative; font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc, var(--faint));
}
.mode-card h4 { position: relative; font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; letter-spacing: -0.015em; margin: 14px 0 12px; }
.mode-card p { position: relative; color: var(--muted); font-size: 14.5px; }
.mode-lean {
  position: relative; display: inline-block; margin-top: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--acc); padding: 7px 13px; border-radius: 100px; background: var(--acc-glow);
}
.mode-partner { --acc: #e8c9a0; --acc-glow: rgba(232, 201, 160, 0.12); }
.mode-ally { --acc: var(--blue-ice); --acc-glow: rgba(74, 140, 255, 0.13); }
.mode-solo { --acc: var(--silver); --acc-glow: rgba(205, 210, 221, 0.09); }

/* ═══ SIGNALS ═══ */
.signals {
  position: relative; z-index: 1;
  padding: clamp(90px, 11vw, 160px) 0;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 24, 0.7) 18%, rgba(8, 10, 24, 0.7) 82%, transparent);
}
.wave { margin: clamp(36px, 5vw, 64px) 0; overflow: hidden; }
.wave svg { width: 100%; height: clamp(90px, 13vw, 150px); display: block; }
.wave-a { filter: drop-shadow(0 0 9px rgba(74, 140, 255, 0.45)); }
.wave-b { filter: drop-shadow(0 0 9px rgba(232, 201, 160, 0.3)); }
.wave-a-move { animation: waveScroll 13s linear infinite; }
.wave-b-move { animation: waveScroll 19s linear infinite reverse; }
@keyframes waveScroll { to { transform: translateX(-1200px); } }

.sig-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.sig-model {
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
  max-width: 32ch;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.sig-chip {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--hair); border-radius: 100px; padding: 11px 20px;
}
.sig-chip-hl { color: var(--blue-ice); border-color: rgba(74, 140, 255, 0.45); background: rgba(74, 140, 255, 0.08); }

/* ── The read: one live panel ── */
.read-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--hair-soft); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.008));
  padding: clamp(28px, 4vw, 56px);
  margin: clamp(40px, 5vw, 68px) 0 clamp(24px, 3vw, 40px);
}
.read-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 62% at 18% 0%, rgba(74, 140, 255, 0.11), transparent 70%);
}
.read-panel-top {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px); align-items: end;
  margin-bottom: clamp(38px, 5vw, 60px);
}
.live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-ice); margin-bottom: 16px;
}
.live-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: livePulse 2.2s ease-in-out infinite; }
.read-panel-head h3 { font-size: clamp(25px, 3.1vw, 42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.read-panel-top > p { color: var(--muted); font-size: 15.5px; max-width: 44ch; }
/* the how-to list sits in the panel's top-right slot, opposite the heading */
.read-panel-top.is-howto { align-items: start; }
.howto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; max-width: 46ch; }
.howto-list li {
  position: relative; padding-left: 26px;
  color: var(--muted); font-size: 15px; line-height: 1.5;
}
.howto-list li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--blue); background: var(--state-soft);
}
.howto-list b { color: var(--ink); font-weight: 600; }

/* day timeline */
.daytrack {
  position: relative; display: flex; justify-content: space-between;
  padding: 8px clamp(0px, 2vw, 24px) 0;
  margin-bottom: clamp(38px, 5vw, 56px);
}
.daytrack-line {
  position: absolute; left: 9%; right: 9%; top: 45px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(205, 210, 221, 0.45), rgba(74, 140, 255, 0.6) 30%, rgba(74, 140, 255, 0.6) 55%, rgba(205, 210, 221, 0.45) 72%, rgba(224, 145, 58, 0.55));
  opacity: 0.55;
}
.dnode { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.dnode time { font-size: 12px; font-weight: 600; color: var(--faint); line-height: 16px; height: 16px; font-feature-settings: "tnum"; }
.dnode i { width: 22px; height: 22px; margin: 12px 0 10px; border-radius: 50%; border: 2px solid; background: var(--bg); }
.dnode b { font-size: 13px; font-weight: 600; }
.is-open i { background: var(--blue); border-color: rgba(74, 140, 255, 0.5); box-shadow: 0 0 16px rgba(74, 140, 255, 0.6); }
.is-open b { color: var(--blue-ice); }
.is-neutral i { background: var(--silver); border-color: rgba(205, 210, 221, 0.4); }
.is-neutral b { color: var(--silver); }
.is-overload i { background: var(--amber); border-color: rgba(224, 145, 58, 0.5); box-shadow: 0 0 16px rgba(224, 145, 58, 0.5); }
.is-overload b { color: #f3c896; }
.is-now i { animation: nodePulse 2.4s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 16px rgba(74, 140, 255, 0.6); } 50% { box-shadow: 0 0 28px rgba(74, 140, 255, 0.95); } }

/* feed bar */
.feed { position: relative; }
.feed-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.feed-groups { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: flex-end; }
.fgr { display: flex; flex-direction: column; min-width: 0; }
.fgr-name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--blue-ice); white-space: nowrap;
}
.fgr-rec .fgr-name { color: var(--silver); }
.fgr-sub { font-size: 12px; color: var(--faint); margin-top: 3px; }
.fgr-brace {
  display: block; height: 9px; margin: 11px 0 9px;
  border: 1px solid rgba(74, 140, 255, 0.42); border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.fgr-rec .fgr-brace { border-color: rgba(205, 210, 221, 0.32); }
.fgr-bar { display: flex; gap: 4px; height: 14px; }
.fseg { display: block; border-radius: 100px; }
.f-hrv { background: var(--blue); box-shadow: 0 0 16px rgba(74, 140, 255, 0.5); }
.f-rhr { background: rgba(74, 140, 255, 0.5); }
.f-rr { background: rgba(74, 140, 255, 0.26); }
.f-sleep { background: rgba(205, 210, 221, 0.45); }
.feed-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 22px; margin-top: 18px; }
.feed-note { font-size: 12px; color: var(--faint); margin-top: 16px; }
.fk-set { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.fk { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.fk::before { content: ''; width: 9px; height: 9px; border-radius: 2px; }
.fk-hrv::before { background: var(--blue); }
.fk-rhr::before { background: rgba(74, 140, 255, 0.5); }
.fk-rr::before { background: rgba(74, 140, 255, 0.26); }
.fk-sleep::before { background: rgba(205, 210, 221, 0.45); }
.fk b { color: var(--ink); font-weight: 600; margin-left: 3px; }

.checkin-note { color: var(--muted); font-size: 15px; max-width: 60ch; margin: 0; }
.checkin-note b { color: var(--ink); font-weight: 600; }
.read-foot { color: var(--faint); font-size: 13px; line-height: 1.5; max-width: 64ch; margin-top: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-top: 1px solid var(--hair); padding-top: 18px; }
.stat-n {
  display: block; font-size: clamp(56px, 8vw, 118px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
}
.stat-l { color: var(--muted); font-size: 15px; font-weight: 500; }

/* ═══ PAIR ═══ */
.pair { position: relative; z-index: 1; padding: clamp(90px, 11vw, 170px) 0; }
.pair-stage {
  position: relative;
  height: clamp(360px, 46vw, 560px);
  margin: clamp(36px, 5vw, 72px) 0;
}
.device-pair { position: absolute; top: 50%; height: 88%; }
.device-pair-a { left: clamp(4%, 12vw, 16%); transform: translateY(-53%) rotate(-6deg); }
.device-pair-b { right: clamp(4%, 12vw, 16%); transform: translateY(-47%) rotate(6deg); }
.pair-thread {
  position: absolute; top: 50%; left: 26%; right: 26%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 30%, #9fc1ff 50%, var(--blue) 70%, transparent);
  filter: blur(0.4px) drop-shadow(0 0 8px rgba(74, 140, 255, 0.8));
  opacity: 0.85;
}
.pair-core {
  position: absolute; top: 50%; left: 50%;
  width: clamp(84px, 14vw, 186px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  /* the app's own state ring, over the glow that ties it to the thread */
  background:
    url(state-ring.svg?v=1) center / contain no-repeat,
    radial-gradient(circle, rgba(74, 140, 255, 0.20), transparent 66%);
  animation: corePulse 3.4s ease-in-out infinite;
}
@keyframes corePulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.92; } 50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; } }

.pair-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: clamp(44px, 6vw, 80px); }
.pstep { border-top: 1px solid var(--hair); padding-top: 16px; }
.pstep span { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); }
.pstep p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.h2-sub {
  font-size: clamp(17px, 1.9vw, 22px); font-weight: 600;
  color: var(--blue-ice); letter-spacing: -0.01em;
  margin: -6px 0 20px;
}
.pair-statement {
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  max-width: 24ch;
}

/* ═══ INSIDE ═══ */
.inside { position: relative; z-index: 1; padding: clamp(90px, 11vw, 160px) 0; }
.inside-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 72px);
}
.inside-card { display: flex; flex-direction: column; }
.device-m { width: min(100%, 280px); margin-inline: auto; border-radius: clamp(26px, 2.4vw, 36px); }
.device-m .device-screen { border-radius: clamp(22px, 2.1vw, 32px); }
.inside-card figcaption { margin-top: 22px; text-align: center; }
.inside-card figcaption b {
  display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.inside-card figcaption p { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin-inline: auto; }

/* ═══ SCIENCE ═══ */
.science {
  position: relative; z-index: 1;
  padding: clamp(90px, 12vw, 180px) 0;
  border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft);
  background: rgba(8, 10, 24, 0.45);
}
.research-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: clamp(40px, 5vw, 72px);
}
.research-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--hair-soft); border-radius: 18px;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--panel);
  transition: border-color 0.35s, transform 0.45s var(--ease), background 0.35s;
}
.research-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 140, 255, 0.35);
  background: rgba(74, 140, 255, 0.04);
}
.research-year {
  font-weight: 300; font-size: clamp(44px, 4.6vw, 64px); line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.research-field {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 22px;
}
.research-card h3 {
  font-size: clamp(18px, 1.7vw, 21px); font-weight: 700;
  line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 14px;
}
.research-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.research-cite {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--hair-soft);
  font-size: 12.5px; color: var(--faint);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.research-cite i { font-style: normal; color: var(--blue); }
.research-disclaimer { margin-top: 32px; font-size: 12.5px; color: var(--faint); max-width: 60ch; }

/* ═══ PRIVACY ═══ */
.privacy { position: relative; z-index: 1; padding: clamp(90px, 11vw, 170px) 0; }
.privacy-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: clamp(36px, 5vw, 56px) 0 34px;
}
.ptile { border-top: 1px solid var(--hair); padding-top: 18px; }
.ptile b { font-size: 16px; font-weight: 700; display: block; margin-bottom: 6px; }
.ptile p { color: var(--muted); font-size: 15px; max-width: 40ch; }

/* ═══ FAQ ═══ */
.faq { position: relative; z-index: 1; padding: clamp(90px, 11vw, 160px) 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head .text-link { margin-top: 6px; }
.faq-item { border-bottom: 1px solid var(--hair-soft); }
.faq-item:first-child { border-top: 1px solid var(--hair-soft); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  text-align: left; padding: 22px 0;
  font-size: clamp(16px, 1.6vw, 19px); font-weight: 600;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--blue); }
.faq-x { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-x::before, .faq-x::after { content: ''; position: absolute; background: var(--muted); transition: transform 0.35s var(--ease); }
.faq-x::before { left: 0; top: 6.25px; width: 14px; height: 1.5px; }
.faq-x::after { left: 6.25px; top: 0; width: 1.5px; height: 14px; }
.faq-item.open .faq-x::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; }
.faq-a p { color: var(--muted); font-size: 15.5px; padding-bottom: 24px; max-width: 58ch; }

/* ═══ CTA ═══ */
.cta { position: relative; z-index: 1; padding: clamp(130px, 18vw, 260px) 0; overflow: hidden; }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(36% 44% at 50% 56%, rgba(74, 140, 255, 0.16), transparent 70%),
    radial-gradient(18% 22% at 50% 56%, rgba(120, 170, 255, 0.12), transparent 70%);
}
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); }
.cta-echo {
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 500;
  color: var(--muted); letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.cta-title {
  font-size: clamp(46px, 8vw, 128px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  margin-bottom: 22px;
}
.cta .lead { margin-bottom: 40px; }
.cta-actions { margin-bottom: 26px; }
.store-badge { display: inline-block; transition: transform 0.35s var(--ease), opacity 0.3s; }
.store-badge:hover { transform: translateY(-3px); opacity: 0.92; }
.store-badge img { height: 54px; width: auto; }

/* ═══ FOOTER ═══ */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--hair-soft);
  padding: clamp(52px, 7vw, 90px) 0 36px;
  background: var(--bg);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-bottom: 56px; }
.footer-brand p { color: var(--faint); font-size: 14px; max-width: 30ch; margin-top: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 6px;
}
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color 0.25s; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--hair-soft); padding-top: 26px; }
.footer-base p { font-size: 12.5px; color: var(--faint); max-width: 60ch; }

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-head { position: static; margin-bottom: 4px; }
  .research-grid { grid-template-columns: 1fr; }
  .privacy-tiles { grid-template-columns: 1fr; gap: 0; }
  .privacy-tiles .ptile { padding-bottom: 18px; }
  .inside-grid { grid-template-columns: 1fr; gap: 56px; }
  .read-panel-top { grid-template-columns: 1fr; align-items: start; }
  .howto-list { max-width: none; gap: 11px; }
  .howto-list li { font-size: 14.5px; }
}

/* rail progress dots: created by JS on mobile, decoration only */
.rail-dots { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-right .btn-small { display: none; }

  /* film becomes a lower panel: copy owns the top on solid bg */
  .film { top: auto; bottom: 0; height: 60%; }

  /* Short phones only. The film's baked caption is anchored to the film box
     (bottom:0, height:60%) so it slides UP as the viewport shortens, while this
     strip is anchored to the copy block (top: nav + 2vh) and barely moves. They
     collide for viewport heights ~629-704px, which is iPhone SE / 8 and 360x640
     Androids: the caption lands straight on top of the strip. Taller phones are
     clear by 50px or more. The same line appears again further down the page. */
  @media (max-height: 720px) {
    .film-copy .dock-meta { display: none; }
  }
  .film-copy {
    left: 50%; transform: translateX(-50%); bottom: auto;
    top: calc(var(--nav-h) + 2vh);
    width: min(92vw, 480px); text-align: center;
  }
  .film-title { font-size: clamp(38px, 10.5vw, 56px); }
  .film-sub { margin-inline: auto; margin-bottom: 18px; }
  .film-cta { justify-content: center; }
  .film-shade {
    background:
      linear-gradient(180deg, var(--bg) 32%, rgba(4, 5, 14, 0.35) 42%, transparent 56%),
      linear-gradient(0deg, rgba(4, 5, 14, 0.55), transparent 20%);
  }

  .device-model { height: clamp(340px, 48vh, 520px); }
  /* the ghost word fights the phone for 375px; the ring carries the drama alone */
  .ghost-word { display: none; }
  .dock { width: 100%; max-width: 420px; }
  .dock-pills { width: 100%; justify-content: center; }

  /* ── idea: the two words sit side by side, the contrast is the point ── */
  .idea-split { grid-template-columns: 1fr 1fr; gap: 10px; }
  .idea-card { padding: 20px 16px; }
  .idea-card h3 { font-size: 22px; }
  .idea-def { font-size: 13.5px; margin-bottom: 10px; }
  .idea-body { font-size: 13px; }
  .idea-num { margin-bottom: 12px; }
  .manifesto { margin-top: 44px; }

  /* ── swipe rails: one idea per viewport, thumb browses sideways ── */
  .inside-grid, .research-grid, .modes-grid {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .inside-grid::-webkit-scrollbar, .research-grid::-webkit-scrollbar, .modes-grid::-webkit-scrollbar { display: none; }
  .inside-card, .research-card, .mode-card {
    scroll-snap-align: start;
    flex: 0 0 min(80vw, 340px);
  }
  .inside-card figcaption p { max-width: none; }
  .rail-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(205, 210, 221, 0.22); transition: background 0.3s, transform 0.3s; }
  .rail-dots i.on { background: var(--blue); transform: scale(1.2); }

  .stats { grid-template-columns: 1fr; gap: 28px; }

  /* ── pair: steps become a compact spec list ── */
  .pair-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }
  .pstep { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--hair-soft); padding: 11px 0; }
  .pstep span { flex: 0 0 56px; }
  .pstep p { margin-top: 0; font-size: 13.5px; }
  .pair-stage { height: clamp(300px, 62vw, 420px); }
  .device-pair-a { left: 2%; }
  .device-pair-b { right: 2%; }
  .pair-thread { left: 30%; right: 30%; }
  .modes { margin-top: 44px; }

  /* feed families: names stay, sublines would crowd 375px */
  .feed-groups { gap: 12px; }
  .fgr-name { font-size: 11px; letter-spacing: 0; }
  .fgr-rec .fgr-name { text-align: right; }
  .fgr-sub { display: none; }
  .fgr-brace { margin: 8px 0 7px; }
  .feed-key { display: block; }
  .fk-set { margin-bottom: 12px; }

  /* ── signals: the day timeline stays horizontal, compressed to fit ── */
  .daytrack { padding: 4px 0 0; margin-bottom: 32px; }
  .dnode time { font-size: 10px; }
  .dnode i { width: 15px; height: 15px; margin: 8px 0 7px; }
  .dnode b { font-size: 10.5px; }
  .daytrack-line { left: 4%; right: 4%; top: 33px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 480px) {
  .film-cta .btn { padding: 13px 22px; font-size: 13.5px; }
}

/* ─── Reduced motion / static ─── */
body.reduced-motion .manifesto .m-word { opacity: 1; }
body.reduced-motion .wave-a-move,
body.reduced-motion .wave-b-move,
body.reduced-motion .dock-live,
body.reduced-motion .pair-core,
body.reduced-motion .grain { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
