/* ── mycelium · site ──
 *
 * Two worlds, one page. The top and the bottom live on the cobalt field of the
 * Midjourney plates (drawn live by glass.js); everything between sits on the
 * product's night surface, where the app screenshots belong. The converge
 * story is the dusk between them.
 *
 * Type: IBM Plex Sans carries the voice; Cormorant Garamond italic is the
 * brand's second voice, used only for the emphasised half of a headline;
 * Geist Mono for anything a machine would say.
 */

:root {
  --night: #0b0d12;
  --night-2: #11141a;
  --night-3: #171b22;
  --ink: #eaecef;
  --ink-2: #a9afb7;
  --ink-3: #8b929b;   /* 5.9:1 on --night; the floor for any readable text */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  --cobalt: #1f62d6;
  --cobalt-deep: #134cd1;
  --cyan: #5dd4e0;
  --green: #4fc296;
  --yellow: #e0b25a;
  --violet: #b99af0;

  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'Geist Mono', 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  /* Left edge of .wrap content, for full-bleed sections that align to it. */
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --glass-alpha: 1;
  --dusk: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: rgba(93, 212, 224, 0.3); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code, pre { font-family: var(--mono); }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── The glass scene ── */
#glass, .glass-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: var(--glass-alpha);
  pointer-events: none;
}
.glass-fallback { display: none; }
.no-webgl #glass { display: none; }
.no-webgl .glass-fallback {
  display: block;
  background:
    radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(to bottom, #134cd1, #2c7ad8 55%, #4aa4dc);
}
.no-webgl .glass-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--night);
  opacity: var(--dusk);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 13, 18, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
}
.nav-brand img { width: 22px; height: 22px; transform: translateY(2px); }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-gh { color: rgba(255, 255, 255, 0.8); display: flex; padding: 6px; transition: color 0.2s; }
.nav-gh:hover { color: #fff; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-light { background: #fff; color: #0b1a3c; }
.btn-light:hover { box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.6); }
.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px var(--gutter) 90px var(--edge);
}
.hero-inner { max-width: 800px; }
.hero-inner > :not(.hero-title) { max-width: 580px; }

.hero-title {
  font-weight: 600;
  font-size: clamp(50px, 8vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
  margin-bottom: 28px;
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.1s var(--ease);
}
.line + .line > span { transition-delay: 0.12s; }
.is-ready .line > span { transform: none; }
.line--serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.14em;
  letter-spacing: -0.025em;
  line-height: 0.92;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34em;
  margin-bottom: 34px;
}
.hero-sub, .hero .install, .hero-meta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.is-ready .hero-sub { opacity: 1; transform: none; transition-delay: 0.3s; }
.is-ready .hero .install { opacity: 1; transform: none; transition-delay: 0.42s; }
.is-ready .hero-meta { opacity: 1; transform: none; transition-delay: 0.54s; }

.hero-meta { display: flex; align-items: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.hero-scroll svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.hero-works { font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.02em; }

/* ── INSTALL (glass, used on both cobalt sections) ── */
.install {
  max-width: 580px;
  border-radius: 18px;
  padding: 8px;
  background: rgba(6, 22, 70, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 80px -40px rgba(4, 16, 60, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.install-tabs { display: flex; gap: 2px; padding: 2px 2px 8px; }
.install-tab {
  font: 500 13px var(--sans);
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.install-tab:hover { color: #fff; }
.install-tab.is-active { color: #0b1a3c; background: #fff; }
.install-cmd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px 14px 16px;
  border-radius: 12px;
  background: rgba(3, 10, 36, 0.42);
}
.install-caret { font-family: var(--mono); color: #7ee6f0; line-height: 1.55; }
.install-cmd code {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
  word-break: break-word;
}
.copy {
  flex: none;
  width: 34px;
  height: 34px;
  margin: -6px 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.copy:hover { background: rgba(255, 255, 255, 0.2); }
.copy svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.2s, transform 0.3s var(--ease); }
.copy .i-check { opacity: 0; transform: scale(0.6); color: #7cf0c2; }
.copy.is-copied .i-copy { opacity: 0; transform: scale(0.6); }
.copy.is-copied .i-check { opacity: 1; transform: none; }

/* ── CONVERGE · the pinned story ── */
.converge { position: relative; height: 330vh; }
.converge-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter) 0 var(--edge);
}
.converge-beats { position: relative; width: min(520px, 100%); height: 360px; }
.beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
  pointer-events: none;
}
.beat.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.beat-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}
.beat h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 20px;
}
.beat h2 em, .h2 em, .cta-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1em;
  letter-spacing: -0.02em;
}
.beat p { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.84); max-width: 30em; }
.beat-progress {
  position: absolute;
  left: 0;
  bottom: -28px;
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.beat-progress span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

/* The room readout: glass over glass. */
.hud {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 5vh, 48px);
  width: 370px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(8, 18, 48, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6);
}
.hud-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hud-live { width: 7px; height: 7px; border-radius: 50%; background: #7cf0c2; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hud-room { color: #fff; }
.hud-task { margin-left: auto; color: rgba(255, 255, 255, 0.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-status, .hud-foot { position: relative; min-height: 18px; margin: 10px 0 6px; color: rgba(255, 255, 255, 0.75); }
.hud-foot { margin: 8px 0 0; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.1); min-height: 62px; }
.hud-agents { list-style: none; display: grid; gap: 5px; }
.hud-agents li { display: grid; grid-template-columns: 58px 1fr; position: relative; min-height: 18px; }
.hud-agents b { font-weight: 500; color: #9fe9f1; }
.hud .s { grid-column: 2; grid-row: 1; opacity: 0; transform: translateY(4px); transition: opacity 0.45s, transform 0.45s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-status .s, .hud-foot .s { position: absolute; left: 0; right: 0; top: 0; }
.hud-foot .s { top: 9px; white-space: normal; }
.hud[data-stage="0"] .s0, .hud[data-stage="1"] .s1, .hud[data-stage="2"] .s2 { opacity: 1; transform: none; }
.hud-agents li:nth-child(2) .s { transition-delay: 0.05s; }
.hud-agents li:nth-child(3) .s { transition-delay: 0.1s; }
.hud-agents li:nth-child(4) .s { transition-delay: 0.15s; }
.hud-agents li:nth-child(5) .s { transition-delay: 0.2s; }
.hud .dim { color: rgba(255, 255, 255, 0.66); }
.hud .ok { color: #7cf0c2; }
.hud-foot em { color: #fff; display: block; }
.hud-metrics { color: rgba(255, 255, 255, 0.72); }
@media (max-height: 740px), (max-width: 1000px) { .hud { display: none; } }

@media (max-width: 860px) {
  .converge-sticky { align-items: flex-end; padding-bottom: 12vh; }
  .converge-beats { height: 330px; }
  .beat { justify-content: flex-end; }
  .beat p { font-size: 16px; }
}

/* ── NIGHT ── the product side of the page. It has no background of its own:
 * the glass scene paints the night here, and cards are opaque, so the glass
 * lives in the air between them and passes behind them. */
.night { position: relative; }

/* Labels that track the droplets (placed by glass.js), behind page content. */
.glass-labels {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glass-labels span {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  will-change: transform, opacity;
}
.glass-labels span::before {
  content: '';
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: rotate(-38deg);
  transform-origin: right center;
}
.glass-labels .is-you { color: #7cf0c2; }
.glass-labels .is-aligner { color: #e2d2ff; }

/* ── INTERLUDE · the drop splits back into its agents ── */
.interlude { position: relative; height: 240vh; }
.interlude-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter) 0 var(--edge);
}
.interlude-copy { max-width: 540px; }
.interlude-copy .h2 { font-size: clamp(38px, 5vw, 68px); }
@media (max-aspect-ratio: 105/100) {
  .interlude-sticky { align-items: flex-end; padding-bottom: 12vh; }
}

.sec { padding: clamp(96px, 14vh, 160px) 0; position: relative; }
.proof { padding-top: 24vh; }
.yours { padding-bottom: 36vh; }
.sec-head { margin-bottom: clamp(48px, 7vh, 80px); max-width: 820px; }
.sec-head--center { max-width: 1000px; }
.trust .h2 { font-size: clamp(36px, 4.2vw, 58px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .lede { margin-left: auto; margin-right: auto; }
.h2 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.h2 em {
  background: linear-gradient(100deg, #7ee6f0 0%, #8fb4ff 40%, #c7a4ff 70%, #ffc38a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
/* Insurance for text on the night side: the glass can drift behind it. */
.night .h2, .night .lede, .interlude .lede { text-shadow: 0 1px 14px rgba(11, 13, 18, 0.95), 0 0 2px rgba(11, 13, 18, 0.8); }
/* A text-shadow paints beneath gradient-clipped text and muddies it. */
.h2 em { text-shadow: none; }
.lede code { font-size: 0.88em; color: var(--cyan); background: rgba(93, 212, 224, 0.1); padding: 1px 6px; border-radius: 5px; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ── PROOF ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.stat { background: var(--night); padding: 32px 28px 30px; display: flex; flex-direction: column; }
.stat-num {
  font-size: clamp(56px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 0.42em; letter-spacing: -0.02em; color: var(--ink-2); margin-left: 4px; }
.stat-label { margin: 12px 0 28px; color: var(--ink-2); font-size: 15px; line-height: 1.45; min-height: 2.9em; }
.bars { margin-top: auto; display: grid; gap: 10px; }
.bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  padding-bottom: 8px;
}
.bar::before, .bar span {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  border-radius: 3px;
}
.bar::before { right: 0; background: rgba(255, 255, 255, 0.06); }
.bar span {
  width: calc(var(--v) * 100%);
  min-width: 3px;
  background: var(--ink-3);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease) 0.25s;
}
.bar--on { color: var(--ink); }
.bar--on span { background: linear-gradient(90deg, #5dd4e0, #8fb4ff); box-shadow: 0 0 12px rgba(93, 212, 224, 0.5); }
.bar--bad span { background: var(--yellow); }
.bar em { font-style: normal; }
.in .bar span { transform: scaleX(1); }
.fineprint { margin-top: 28px; font-size: 14px; line-height: 1.65; color: var(--ink-3); max-width: 62em; }
.fineprint a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); transition: color 0.2s, border-color 0.2s; }
.fineprint a:hover { color: #fff; border-color: #fff; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stat-label { min-height: 0; } }

/* ── HOW · horizontal rail ── */
.how { position: relative; }
.how-sticky { padding: clamp(80px, 12vh, 120px) 0; }
.how.is-pinned .how-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 40px;
}
.how-head { position: relative; width: 100%; margin-bottom: clamp(28px, 4vh, 48px); }
.how-head .h2 { margin-bottom: 0; }
.how-count {
  position: absolute;
  right: var(--gutter);
  bottom: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}
.how-count span { color: #fff; }
.how-rail {
  display: flex;
  gap: 28px;
  padding: 0 var(--edge);
  width: max-content;
  will-change: transform;
}
.card {
  flex: none;
  width: min(78vw, 1040px);
  height: min(62vh, 580px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  background: var(--night-2);
  border: 1px solid var(--line);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.how.is-pinned .card:not(.is-current) { opacity: 0.4; transform: scale(0.965); }
.card-art { position: relative; overflow: hidden; background: var(--cobalt); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}
.card-step { font-family: var(--mono); font-size: 13px; color: var(--cyan); margin-bottom: 20px; }
.card h3 {
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.card p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin-bottom: 26px; max-width: 30em; }
.cli {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--night);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.cli .p { color: var(--ink-3); user-select: none; }
.cli .s { color: var(--green); }

@media (max-width: 859px) {
  .how-rail { flex-direction: column; width: auto; gap: 20px; }
  .how-count { display: none; }
  .card { width: 100%; height: auto; grid-template-columns: 1fr; }
  .card-art { aspect-ratio: 4 / 3; }
  .card-art img { transform: none; }
}

/* ── PRODUCT ── */
.product { overflow: hidden; }
.product::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 38%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(31, 98, 214, 0.35), transparent);
  pointer-events: none;
}
.tour { position: relative; max-width: 1120px; margin: 0 auto; }
/* A solid bar: the glass ring passes behind this section, and tab labels
 * must never sit on top of it. Every state clears 4.5:1 on --night-2. */
.tour-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--night-2);
  border: 1px solid var(--line);
}
.tour-tab {
  position: relative;
  text-align: left;
  padding: 12px 16px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.tour-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.tour-tab.is-active { color: #fff; background: var(--night-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.tour-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.tour-tab-t { display: block; font-weight: 600; font-size: 16px; }
.tour-tab-d { display: block; font-size: 13.5px; color: var(--ink-3); }
.tour-tab.is-active .tour-tab-d { color: var(--ink-2); }
.tour-tab i {
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.tour-tab i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.window {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--night-2);
  box-shadow: 0 60px 140px -60px rgba(31, 98, 214, 0.55), 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--night-3); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.window-bar em { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.window-stage { position: relative; aspect-ratio: 1440 / 900; }
.shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.shot.is-active { opacity: 1; transform: none; z-index: 1; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
/* Backed, because the glass ring passes behind it. */
.tour-caption {
  display: table;
  margin: 22px auto 0;
  padding: 8px 18px;
  border-radius: 999px;
  text-align: center;
  color: var(--ink-2);
  font-size: 16px;
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 700px) { .tour-caption { border-radius: 14px; font-size: 15px; } }
@media (max-width: 700px) {
  .tour-tabs { grid-template-columns: repeat(2, 1fr); }
  .tour-tab-d { display: none; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 3vmin;
  background: rgba(3, 5, 9, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 12px; border: 1px solid var(--line-2); }

/* ── TRUST ── */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.terms { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin-top: 30px; font-size: 15px; }
.terms dt { font-family: var(--mono); color: var(--cyan); }
.terms dd { color: var(--ink-2); }
.terms em { font-style: italic; }
.readouts { display: grid; gap: 18px; }
.readout {
  padding: 22px 24px 20px;
  border-radius: 20px;
  background: var(--night-2);
  border: 1px solid var(--line);
}
.readout-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-family: var(--mono); font-size: 13px; }
.readout-head b {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
}
.readout--good .readout-head b { color: var(--green); background: rgba(79, 194, 150, 0.12); }
.readout--thin .readout-head b { color: var(--yellow); background: rgba(224, 178, 90, 0.12); }
.meter { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; padding: 5px 0; }
.meter em { color: var(--ink-3); }
.meter b { font-weight: 500; text-align: right; color: var(--ink); }
.meter span { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter span::after {
  content: '';
  position: absolute;
  inset: 0;
  width: calc(var(--v) * 100%);
  border-radius: 6px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.3s var(--ease) 0.3s;
}
.readout--good .meter span::after { background: var(--green); }
.readout--thin .meter span::after { background: var(--yellow); }
.readout--good .meter--inv span::after, .readout--thin .meter--inv span::after { background: var(--violet); }
.readout.in .meter span::after { transform: scaleX(1); }
.readout p { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── FIT ── */
.fit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.fit-col { padding: clamp(28px, 3.5vw, 44px); border-radius: 24px; border: 1px solid var(--line); background: var(--night-2); }
.fit-col--yes {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(31, 98, 214, 0.28), transparent 60%),
    var(--night-2);
  border-color: rgba(93, 212, 224, 0.22);
}
.fit-col h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; }
.fit-col ul { list-style: none; display: grid; gap: 14px; }
.fit-col li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.fit-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(93, 212, 224, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235dd4e0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.fit-col--no li { color: var(--ink-2); }
.fit-col--no li::before {
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d747d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.fit-note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 860px) { .fit-grid { grid-template-columns: 1fr; } }

/* ── YOURS ── */
.yours-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.fact h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.fact p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.tree {
  white-space: pre;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
  padding: 28px 30px;
  border-radius: 20px;
  background: var(--night-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  overflow-x: auto;
}
.t-root { color: var(--cyan); }
.t-dir { color: var(--ink); }
.t-note { color: var(--ink-3); }
.t-file { color: var(--ink-2); }
.t-ok { color: var(--green); }
.t-live { color: var(--cyan); }
@media (max-width: 900px) { .yours-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .tree { font-size: 12px; padding: 20px; } }

/* ── CTA ── */
.cta {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 120px var(--edge);
}
.cta-inner { max-width: 820px; }
.cta-inner > :not(.cta-title) { max-width: 580px; }
.cta-title {
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #fff;
  margin-bottom: 26px;
}
.cta-title em { font-size: 1.12em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── FOOTER ── */
.foot { background: var(--night); border-top: 1px solid var(--line); padding: 44px 0 56px; }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1; }
.foot-brand span { font-size: 12px; color: var(--ink-3); }
.foot-note { font-size: 13.5px; color: var(--ink-3); max-width: 46em; }
.foot-note a, .foot-links a { color: var(--ink-2); transition: color 0.2s; }
.foot-note a:hover, .foot-links a:hover { color: #fff; }
.foot-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
@media (max-width: 960px) { .foot-inner { grid-template-columns: 1fr; } }

/* ── Narrow screens: the glass sits above the copy. ── */
/* Same switch as glass.js (aspect ≤ 1.05), so copy and scene always agree. */
@media (max-aspect-ratio: 105/100) {
  .hero, .cta { align-items: flex-end; padding-top: 40svh; padding-bottom: 64px; }
  .converge-sticky { align-items: flex-end; padding-bottom: 10vh; }
  .beat { justify-content: flex-end; }
  .hud { display: none; }
}
@media (max-width: 560px) { .hero-works { display: none; } }

/* ── Reduced motion: every state shown, nothing pinned or animated. ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span, .hero-sub, .hero .install, .hero-meta, .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
  .converge, .interlude { height: auto; }
  .interlude-sticky { position: relative; min-height: 70vh; }
  .converge-sticky { position: relative; height: auto; min-height: 100vh; padding-top: 120px; padding-bottom: 120px; }
  .converge-beats { height: auto; display: grid; gap: 56px; }
  .beat { position: relative; opacity: 1; transform: none; filter: none; }
  .beat-progress, .hud { display: none; }
  .bar span, .meter span::after { transform: scaleX(1); transition: none; }
  .hero-scroll svg, .hud-live { animation: none; }
}
