/* Stillplace, v3 "The Hour".
   Night Sanctuary tokens over the app's own forest. One tint, Inter Light,
   0.5px hairlines, the breathing orb. The page is one session: the bar at
   the top keeps its time. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}

:root {
  /* Vertical rhythm. --half is half the gap between two sections, so two
     neighbours always add up to one even interval; --block separates a
     section's heading group from its content. */
  --half: clamp(56px, 7vw, 96px);
  --block: clamp(40px, 5vw, 64px);
  --surface: #0c0e11;
  --surface-lowest: #000000;
  --surface-low: #111418;
  --surface-container: #161a1f;
  --surface-high: #1b2027;
  --surface-highest: #20262e;
  --surface-bright: #2a3240;
  --on-surface: #e0e6f1;
  --on-surface-variant: #a5abb6;
  --outline-variant: #424851;
  --primary: #b7c8db;
  --primary-container: #384858;

  --p: 183, 200, 219;
  --o: 224, 230, 241;
  --ol: 66, 72, 81;

  /* The Readable Whisper ladder: nothing readable sits under 0.58 */
  --t-strong: 0.92;
  --t-body: 0.78;
  --t-read: 0.68;
  --t-quiet: 0.6;
  --t-tint: 0.84;

  --ease-deep: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-atmo: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-ritual: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.85, 0);

  --bar-h: 56px;
  --gutter: 24px;
  --wide: 1180px;
  --shade: 0.62;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  overflow-x: clip;
  scrollbar-color: rgba(var(--p), 0.22) var(--surface);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--surface);
  color: rgba(var(--o), var(--t-read));
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss03";
  overflow-x: clip;
  min-height: 100vh;
}

::selection { background: rgba(var(--p), 0.26); color: var(--on-surface); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: rgba(var(--p), 0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--p), 0.3); }

:focus { outline: none; }
:focus-visible {
  outline: 1.5px solid rgba(var(--p), 0.72);
  outline-offset: 4px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
em { font-style: normal; color: rgba(var(--p), var(--t-tint)); }
strong { font-weight: 400; color: rgba(var(--o), var(--t-body)); }

/* The hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--surface-highest);
  color: rgba(var(--o), var(--t-body));
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-deep);
}
.skip:focus-visible { transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 16px; height: 16px; flex: none; }

/* ============================================================
   Atmosphere: forest, shade, grain, motes, arrival
   ============================================================ */

.forest {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;
  background: var(--surface);
  pointer-events: none;
}
.forest-layer {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: 50% 42%;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(0.85);
  transition: opacity 2.2s var(--ease-atmo), transform 6s var(--ease-atmo);
}
.forest-layer.is-on { opacity: 1; transform: scale(1); }

.forest-layer[data-bg="mixer"] { background-image: url("img/bg-mixer-853.jpg"); }
.js .forest-layer[data-bg="focus"].is-loaded { background-image: url("img/bg-focus-853.jpg"); }
.js .forest-layer[data-bg="onboarding2"].is-loaded { background-image: url("img/bg-onboarding2-853.jpg"); }
.js .forest-layer[data-bg="sleep"].is-loaded { background-image: url("img/bg-sleep-853.jpg"); }
.js .forest-layer[data-bg="onboarding1"].is-loaded { background-image: url("img/bg-onboarding1-853.jpg"); }
@media (max-width: 560px) {
  .forest-layer[data-bg="mixer"] { background-image: url("img/bg-mixer-480.jpg"); }
  .js .forest-layer[data-bg="focus"].is-loaded { background-image: url("img/bg-focus-480.jpg"); }
  .js .forest-layer[data-bg="onboarding2"].is-loaded { background-image: url("img/bg-onboarding2-480.jpg"); }
  .js .forest-layer[data-bg="sleep"].is-loaded { background-image: url("img/bg-sleep-480.jpg"); }
  .js .forest-layer[data-bg="onboarding1"].is-loaded { background-image: url("img/bg-onboarding1-480.jpg"); }
}

/* Dark overlay over the photograph: a fixed vignette, plus a flat veil
   whose weight (--shade) moves with the phase */
.forest::before, .forest::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.forest::before {
  background: radial-gradient(ellipse 120% 90% at 50% 40%, rgba(8, 10, 13, 0) 30%, rgba(4, 5, 7, 0.8) 100%);
  z-index: 2;
}
.forest::after {
  background: #080a0d;
  opacity: var(--shade);
  transition: opacity 2s var(--ease-atmo);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

.motes {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.arrival { display: none; }
.js .arrival {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  pointer-events: none;
  animation: arrive 1.6s var(--ease-atmo) 0.1s forwards;
}
.js.is-returning .arrival { display: none; }
@keyframes arrive {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

/* ============================================================
   The session bar
   ============================================================ */

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: var(--bar-h);
  background: linear-gradient(rgba(4, 5, 7, 0.9), rgba(4, 5, 7, 0.74));
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  backdrop-filter: blur(18px) saturate(0.9);
  border-bottom: 0.5px solid rgba(var(--ol), 0.34);
}
.bar-in {
  height: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: rgba(var(--o), var(--t-body));
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  justify-self: start;
  padding: 6px 0;
}
.brand-orb {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--p), 0.95) 0 28%, rgba(var(--p), 0.25) 60%, transparent 72%);
  box-shadow: 0 0 12px rgba(var(--p), 0.45);
  animation: brandBreath 3.5s var(--ease-atmo) infinite alternate;
}
@keyframes brandBreath {
  from { transform: scale(0.86); opacity: 0.7; }
  to { transform: scale(1.04); opacity: 1; }
}

/* The board: one grid that never moves */
.board {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--p), var(--t-tint));
  white-space: nowrap;
}
.board-phase { display: inline-flex; min-width: calc(var(--cells, 8) * 1.02em); }
.board-cell {
  display: inline-block;
  width: 1.02em;
  text-align: center;
  letter-spacing: 0;
}
.board-sep {
  width: 1px;
  height: 14px;
  background: rgba(var(--p), 0.28);
  transform: scaleX(0.5);
}
.board-time {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--o), var(--t-body));
  min-width: 5ch;
}
.board-cycles { display: inline-flex; gap: 4px; }
.board-cycles i {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: rgba(var(--p), 0.22);
  transition: background-color 0.8s var(--ease-atmo);
}
.board-cycles i.is-on { background: rgba(var(--p), 0.85); }

.bar-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}
.bar-links { display: flex; gap: 20px; list-style: none; }
.bar-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(var(--o), var(--t-quiet));
  transition: color 0.3s var(--ease-atmo);
  padding: 8px 0;
  position: relative;
}
.bar-links a:hover { color: rgba(var(--o), var(--t-body)); }
.bar-links a[aria-current="page"] { color: rgba(var(--o), var(--t-body)); }
.bar-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 3px; height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: rgba(var(--p), 0.8);
}
.bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: rgba(var(--p), 0.08);
  border: 0.5px solid rgba(var(--p), 0.22);
  color: rgba(var(--p), 0.9);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.3s var(--ease-atmo), color 0.3s var(--ease-atmo), transform 0.15s var(--ease-ritual);
}
.bar-cta .ico { width: 13px; height: 13px; }
.bar-cta:hover { background: rgba(var(--p), 0.16); color: rgb(var(--p)); }
.bar-cta:active { transform: scale(0.97); }
.bar-cta .short { display: none; }

@media (max-width: 900px) {
  .bar-links li.wide { display: none; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; --bar-h: 52px; }
  .bar-in { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand-word { display: none; }
  .board { justify-self: center; gap: 9px; }
  .board-cycles { display: none; }
  .bar-end { gap: 14px; }
  .bar-cta .long { display: none; }
  .bar-cta .short { display: inline; }
  .bar-cta { padding: 0 12px; }
}
@media (max-width: 360px) {
  .board-sep { display: none; }
}

/* ============================================================
   Shared type and layout
   ============================================================ */

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

h1, h2, h3 {
  font-weight: 300;
  color: rgba(var(--o), var(--t-strong));
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(var(--o), var(--t-strong));
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(var(--o), var(--t-body));
  max-width: 34em;
  text-wrap: pretty;
}
.prose { max-width: 34em; text-wrap: pretty; }
.prose + .prose { margin-top: 14px; }
.small { font-size: 14px; line-height: 1.7; }
.quiet { color: rgba(var(--o), var(--t-quiet)); }

.chip {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 1px 8px 2px;
  border-radius: 9px;
  border: 0.5px solid rgba(var(--p), 0.3);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--p), 0.8);
  transform: translateY(-2px);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 14px;
  color: rgba(var(--p), var(--t-tint));
  text-decoration: none;
  border-bottom: 0.5px solid rgba(var(--p), 0.3);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease-atmo), border-color 0.3s var(--ease-atmo), gap 0.4s var(--ease-deep);
}
.more .ico { width: 14px; height: 14px; }
.more:hover { color: rgb(var(--p)); border-color: rgba(var(--p), 0.6); gap: 12px; }

/* The App Store action: a tinted wash, never a white slab */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 28px 0 22px;
  border-radius: 26px;
  background: rgba(var(--p), 0.12);
  border: 0.5px solid rgba(var(--p), 0.26);
  color: rgba(var(--p), 0.95);
  text-decoration: none;
  transition: background-color 0.3s var(--ease-atmo), color 0.3s var(--ease-atmo), transform 0.15s var(--ease-ritual), box-shadow 0.5s var(--ease-atmo);
}
.store .ico { width: 22px; height: 22px; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-text small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--p), 0.78);
}
.store-text span { font-size: 18px; font-weight: 400; letter-spacing: -0.01em; }
.store:hover {
  background: rgba(var(--p), 0.18);
  color: rgb(var(--p));
}
.store:active { transform: scale(0.97); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--o), var(--t-quiet));
}
.meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  margin: 0 11px;
  border-radius: 50%;
  background: rgba(var(--p), 0.5);
  vertical-align: middle;
}

/* Section headings emerge from mist, only when JS can reveal them */
.js .mist {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease-atmo), filter 1.6s var(--ease-atmo), transform 1.4s var(--ease-deep);
}
.js .mist.is-in { opacity: 1; filter: blur(0); transform: none; }

/* ============================================================
   Phases (index)
   ============================================================ */

.phase {
  position: relative;
  padding: var(--half) 0;
}

/* The minute this phase begins, set in the gutter (desktop only) */
/* ---------- Settle: the first viewport ---------- */

.hero {
  min-height: min(100vh, 880px);
  min-height: min(100svh, 880px);
  padding: calc(var(--bar-h) + 28px) var(--gutter) var(--half);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero .lede { margin: 16px auto 0; font-size: 17px; max-width: 36em; }
.hero-act {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero h1 { max-width: 14em; font-size: clamp(40px, 5.2vw, 66px); margin-top: 18px; }
.hero-status {
  min-height: 1.6em;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(var(--o), var(--t-quiet));
  max-width: 40em;
}
.hero-status.is-error { color: rgba(var(--o), var(--t-body)); }

/* The room */
.room {
  --R: 0.4;
  position: relative;
  width: min(460px, 84vw, 46svh);
  width: round(down, min(460px, 84vw, 46svh), 4px);
  aspect-ratio: 1;
  flex: none;
  container-type: inline-size;
  touch-action: pan-y;
}
.room-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 0.5px solid rgba(var(--o), 0.14);
  pointer-events: none;
}
.room-ring--outer { width: round(80%, 2px); height: round(80%, 2px); }
.room-ring--mid { width: round(56%, 2px); height: round(56%, 2px); border-color: rgba(var(--o), 0.08); }
.room-ring--inner { width: round(42%, 2px); height: round(42%, 2px); border-color: rgba(var(--o), 0.07); }
.room-cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.room-cross span {
  position: absolute;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--o), 0.6);
}
.room-cross .c-ahead { top: 3%; left: 50%; translate: -50% 0; }
.room-cross .c-behind { bottom: 3%; left: 50%; translate: -50% 0; }

/* The listener orb: the play control */
.orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 29cqw;
  width: round(29cqw, 4px);
  height: 29cqw;
  height: round(29cqw, 4px);
  translate: -50% -50%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
}
.orb-ring, .orb-glow, .orb-core {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  translate: -50% -50%;
  pointer-events: none;
}
.orb-ring { border: 1px solid rgba(var(--p), 0.55); }
.orb-ring--a { width: 100%; height: 100%; animation: breathA 8.4s var(--ease-atmo) infinite; }
.orb-ring--b { width: 74%; height: 74%; animation: breathB 8.4s var(--ease-atmo) -1.2s infinite; }
.orb-glow {
  width: 90%; height: 90%;
  background: radial-gradient(circle, rgba(var(--p), 0.34), rgba(var(--p), 0.08) 55%, transparent 72%);
  animation: breathGlow 8.4s var(--ease-atmo) -0.6s infinite;
}
.orb-core {
  width: 22%; height: 22%;
  background: radial-gradient(circle, rgba(var(--o), 0.95), rgba(var(--p), 0.55) 55%, rgba(var(--p), 0) 72%);
  box-shadow: 0 0 22px rgba(var(--p), 0.55);
  transition: transform 1.2s var(--ease-deep), box-shadow 1.2s var(--ease-atmo);
}
.orb-glyph {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 18%;
  height: 18%;
  color: rgba(12, 14, 17, 0.8);
  opacity: 0;
  transition: opacity 0.4s var(--ease-atmo);
  pointer-events: none;
}
.orb-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--p), 0.86);
  transition: color 0.4s var(--ease-atmo);
}
.orb:hover .orb-core { transform: scale(1.18); box-shadow: 0 0 34px rgba(var(--p), 0.7); }
.orb:hover .orb-label { color: rgb(var(--p)); }
.orb:active { transform: scale(0.97); }
.orb:focus-visible { outline-offset: 10px; border-radius: 50%; }
.orb[aria-busy="true"] .orb-core { animation: loadPulse 1.2s var(--ease-atmo) infinite alternate; }
.room.is-playing .orb-core { transform: scale(1.3); box-shadow: 0 0 44px rgba(var(--p), 0.8); }
.room.is-playing .orb-ring--a { animation-duration: 6s; }
.room.is-playing .orb-glow { animation-duration: 6s; }

@keyframes breathA {
  0%, 100% { opacity: 0.14; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.04); }
}
@keyframes breathB {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.04); }
}
@keyframes breathGlow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.04); }
}
@keyframes loadPulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* A placed sound: a button you can drag */
.snd {
  --r: calc(var(--R) * 100cqw);
  position: absolute;
  top: 50%; left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: grab;
  touch-action: none;
  transform: translate(
    calc(sin(var(--a, 0) * 1deg) * var(--d, 0.6) * var(--r)),
    calc(cos(var(--a, 0) * 1deg) * var(--d, 0.6) * var(--r) * -1)
  );
}
.snd-dot {
  width: var(--dot, 12px);
  height: var(--dot, 12px);
  border-radius: 50%;
  background: rgba(var(--p), 0.5);
  box-shadow: 0 0 10px rgba(var(--p), 0.25);
  transition: background-color 1.4s var(--ease-atmo), box-shadow 1.4s var(--ease-atmo), transform 0.5s var(--ease-deep);
}
.snd-name {
  position: absolute;
  top: calc(50% + 14px);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(var(--o), var(--t-read));
  pointer-events: none;
  transition: color 1s var(--ease-atmo);
}
.snd-wave {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 0.5px solid rgba(var(--p), 0.8);
  opacity: 0;
  pointer-events: none;
}
.snd:hover .snd-dot, .snd:focus-visible .snd-dot { transform: scale(1.25); }
.snd:focus-visible { outline-offset: 0; border-radius: 50%; }
.snd.is-dragging { cursor: grabbing; }
.snd.is-dragging .snd-dot { transform: scale(1.35); }
.snd.is-sounding .snd-dot {
  background: rgba(var(--p), 0.95);
  box-shadow: 0 0 22px rgba(var(--p), 0.7), 0 0 4px rgba(var(--o), 0.6);
}
.snd.is-sounding .snd-name { color: rgba(var(--o), var(--t-body)); }
.snd.is-arriving .snd-wave { animation: arriveWave 2.4s var(--ease-deep) forwards; }
@keyframes arriveWave {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(7); }
}

.route {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(var(--o), var(--t-quiet));
  max-width: 38em;
}

/* ---------- Two-column phase ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}
.split--rev > :first-child { order: 2; }
.split h2 { margin-bottom: 22px; }

.facts { list-style: none; margin-top: 34px; display: grid; gap: 18px; max-width: 34em; }
.facts li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(var(--p), 0.7);
}
.facts strong { display: block; font-weight: 400; color: rgba(var(--o), var(--t-body)); }

/* Moonlit hairline diagrams */
.diagram { color: rgba(var(--o), var(--t-read)); }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.d-ring { fill: none; stroke: rgba(var(--p), 0.32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.d-ring--in { stroke: rgba(var(--p), 0.16); stroke-dasharray: 2 5; }
.d-tick { fill: none; stroke: rgba(var(--p), 0.34); stroke-width: 1; vector-effect: non-scaling-stroke; }
.d-dot { fill: rgba(var(--p), 0.9); filter: drop-shadow(0 0 6px rgba(var(--p), 0.7)); }
.d-name { fill: rgba(var(--o), 0.8); font-size: 20px; font-weight: 300; }
.d-cap, .d-lbl {
  fill: rgba(var(--p), 0.86);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.d-meas { fill: none; stroke: rgba(var(--p), 0.7); stroke-width: 1; vector-effect: non-scaling-stroke; }
.d-meas--dash { stroke: rgba(var(--p), 0.3); stroke-dasharray: 3 5; }
.d-you-ring { fill: none; stroke: rgba(var(--p), 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.d-you-glow { fill: url(#youGlow); }

.diagram figcaption, .fig-cap {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(var(--o), var(--t-quiet));
  max-width: 36em;
}
.noise-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(var(--ol), 0.6);
  font-size: 14px;
  max-width: 34em;
}

/* ---------- Head tracking ---------- */

.tracking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "dial text";
  column-gap: 72px;
  align-items: center;
}
.t-text { grid-area: text; }

.t-head h2 { margin-bottom: 22px; }

.dial-wrap { grid-area: dial; position: relative; width: 100%; max-width: 470px; justify-self: center; align-self: center; }
.dial { max-width: 470px; margin: 0 auto; }
.dial svg { width: 100%; height: auto; overflow: visible; }
.k-ring { fill: none; stroke: rgba(var(--p), 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.k-ring--faint { stroke: rgba(var(--p), 0.12); stroke-dasharray: 2 6; }
.k-tick { fill: none; stroke: rgba(var(--p), 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.k-facing { stroke: rgba(var(--p), 0.55); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.k-head { fill: rgba(12, 14, 17, 0.7); stroke: rgba(var(--p), 0.8); stroke-width: 1; vector-effect: non-scaling-stroke; }
.k-nose { fill: none; stroke: rgba(var(--p), 0.9); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.k-pod { fill: rgba(var(--p), 0.85); }
.k-dot { fill: rgba(var(--p), 0.95); filter: drop-shadow(0 0 7px rgba(var(--p), 0.75)); }
.k-ray { stroke: rgba(var(--p), 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.k-name { fill: rgba(var(--o), 0.78); font-size: 17px; font-weight: 300; }
.k-cap {
  fill: rgba(var(--p), 0.8);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.k-sounds, .k-headg { transition: transform 0.9s var(--ease-deep); }

.controls { margin-top: 28px; display: grid; gap: 18px; }
.heading-row { display: grid; gap: 10px; }
.heading-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--o), var(--t-quiet));
}
.heading-label output { color: rgba(var(--p), 0.9); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--p), 0.2), rgba(var(--p), 0.55) 50%, rgba(var(--p), 0.2));
}
input[type="range"]::-moz-range-track { height: 1px; background: rgba(var(--p), 0.35); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--o), 0.95) 0 25%, rgba(var(--p), 0.6) 50%, rgba(var(--p), 0.2) 70%);
  border: 0.5px solid rgba(var(--p), 0.8);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(var(--p), 0.7);
  border: 0.5px solid rgba(var(--p), 0.9);
}
input[type="range"]:focus-visible { outline-offset: 2px; }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  height: 44px;
  padding: 0 18px 0 12px;
  border-radius: 26px;
  border: 0.5px solid rgba(var(--p), 0.24);
  background: rgba(var(--p), 0.06);
  font-size: 14px;
  color: rgba(var(--o), var(--t-body));
  transition: background-color 0.3s var(--ease-atmo);
}
.toggle:hover { background: rgba(var(--p), 0.12); }
.toggle:active { transform: scale(0.97); }
.toggle-track {
  width: 34px; height: 20px;
  border-radius: 10px;
  background: rgba(var(--ol), 0.8);
  position: relative;
  transition: background-color 0.4s var(--ease-atmo);
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(var(--o), 0.7);
  transition: transform 0.4s var(--ease-ritual), background-color 0.4s var(--ease-atmo);
}
.toggle[aria-pressed="true"] .toggle-track { background: var(--primary-container); }
.toggle[aria-pressed="true"] .toggle-track::after { transform: translateX(14px); background: rgb(var(--p)); }
.readout-say { margin-top: 8px; font-size: 18px; line-height: 1.6; color: rgba(var(--o), var(--t-body)); min-height: 3.4em; max-width: 26em; }

/* ---------- Break ---------- */

.break { text-align: center; padding: calc(var(--half) * 1.5) 0; }
.break .wrap { max-width: 860px; }
.break h2 { margin: 0 auto; }
.break .lede { margin: 22px auto 0; }
.left-out {
  list-style: none;
  margin: 54px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  max-width: 720px;
}
.left-out li {
  position: relative;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(var(--o), 0.62);
}
.left-out li::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  top: 55%;
  height: 1px;
  background: rgba(var(--p), 0.5);
  transform: scaleX(1);
  transform-origin: left;
}
.js .left-out li::after { transform: scaleX(0); transition: transform 1.4s var(--ease-deep); }
.js .left-out.is-in li::after { transform: scaleX(1); }
.break-orb {
  width: 120px; height: 120px;
  margin: 0 auto 56px;
  position: relative;
}
.break-orb .orb-ring--a, .break-orb .orb-ring--b, .break-orb .orb-glow { animation-duration: 12s; }
.break-orb .orb-core { width: 14%; height: 14%; }

/* ---------- The session chart ---------- */

.hour-chart {
  margin-top: var(--block);
  padding: 30px 0 0;
  position: relative;
}
.hc-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 56px;
}
.hc-lab {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--o), var(--t-quiet));
}
.hc-track {
  position: relative;
  height: 38px;
  display: flex;
  align-items: stretch;
}
.hc-track--line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--p), 0.1), rgba(var(--p), 0.6) 6%, rgba(var(--p), 0.6) 94%, rgba(var(--p), 0.1));
}
.hc-track--line span {
  position: relative;
  margin: auto;
  padding: 0 12px;
  background: rgba(10, 12, 15, 0.92);
  font-size: 15px;
  color: rgba(var(--o), var(--t-read));
}
.seg {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
}
.seg--focus {
  flex: 25;
  background: rgba(var(--p), 0.13);
  border: 0.5px solid rgba(var(--p), 0.34);
  border-radius: 9px;
  color: rgba(var(--o), var(--t-body));
}
.seg--break {
  flex: 5;
  justify-content: center;
  padding: 0;
  color: rgba(var(--o), var(--t-quiet));
}
.hc-scale {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  margin-top: 10px;
}
.hc-ticks {
  position: relative;
  height: 22px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--o), var(--t-quiet));
}
.hc-ticks span { position: absolute; left: calc(var(--at) * 100%); translate: -50% 0; }
.hc-ticks span:first-child { translate: 0 0; }
.hc-ticks span:last-child { translate: -100% 0; }
.hc-body { position: relative; }
.hour-chart figcaption { margin-top: 22px; font-size: 15px; color: rgba(var(--o), var(--t-quiet)); max-width: 44em; }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
.feature h3 { margin-bottom: 14px; }
.feature p { font-size: 17px; line-height: 1.7; }
.feature p + p { margin-top: 12px; }

/* A phone, seated in the dark */
.phone {
  --pw: 250px;
  width: calc(var(--pw) + 16px);
  padding: 8px;
  border-radius: 46px;
  background: var(--surface-lowest);
  border: 0.5px solid rgba(var(--p), 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(183, 200, 219, 0.04);
  flex: none;
}
.phone-screen {
  position: relative;
  width: var(--pw);
  aspect-ratio: 880 / 1912;
  border-radius: 37px;
  overflow: hidden;
  background: var(--surface-low);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone--sm { --pw: 200px; }

/* ---------- Rest ---------- */

.fade-chart svg { width: 100%; height: auto; overflow: visible; }
.f-axis { fill: none; stroke: rgba(var(--p), 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-light { fill: none; stroke: rgba(var(--p), 0.9); stroke-width: 1.4; stroke-dasharray: 1 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.f-area { fill: url(#lightFill); }
.f-txt { fill: rgba(var(--o), 0.72); font-size: 16px; font-weight: 300; }
.f-orb { fill: rgb(var(--p)); }
.f-lead { fill: none; stroke: rgba(var(--p), 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }

.rest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 80px;
  align-items: center;
  margin-top: 56px;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 36px; }
.faq-list { border-top: 0.5px solid rgba(var(--ol), 0.6); }
.faq details { border-bottom: 0.5px solid rgba(var(--ol), 0.6); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 17px;
  color: rgba(var(--o), var(--t-body));
  transition: color 0.3s var(--ease-atmo);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: rgba(var(--o), var(--t-strong)); }
.faq summary .ico { color: rgba(var(--p), 0.7); transition: transform 0.5s var(--ease-deep); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; font-size: 15px; max-width: 38em; }
.faq a, .foot a, .prose a { text-decoration-color: rgba(var(--p), 0.4); text-underline-offset: 3px; text-decoration-thickness: 0.5px; }

/* ---------- Complete ---------- */

.complete { text-align: center; padding: var(--half) 0; }

.done-orb { width: 150px; height: 150px; position: relative; margin: 0 auto 44px; }
.done-orb .orb-core { width: 38%; height: 38%; background: radial-gradient(circle, rgba(var(--p), 0.16), rgba(var(--p), 0.06) 70%); border: 0.5px solid rgba(var(--p), 0.34); box-shadow: none; }
.done-check { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; translate: -50% -50%; color: rgba(var(--p), 0.9); }
.complete h2 { font-size: clamp(48px, 7vw, 84px); letter-spacing: -0.04em; }
.complete .lede { margin: 22px auto 0; }
.close-act {
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.qr {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.qr img {
  width: 92px; height: 92px;
  padding: 8px;
  border-radius: 12px;
  border: 0.5px solid rgba(var(--p), 0.24);
  background: rgba(8, 10, 13, 0.6);
}
.qr figcaption { font-size: 13px; color: rgba(var(--o), var(--t-quiet)); max-width: 9em; }
.complete .meta { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */

.foot {
  border-top: 0.5px solid rgba(var(--ol), 0.5);
  background: rgba(0, 0, 0, 0.5);
  padding: 40px 0 44px;
  font-size: 13px;
  color: rgba(var(--o), var(--t-quiet));
}
.foot-in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot ul a { text-decoration: none; color: rgba(var(--o), var(--t-quiet)); transition: color 0.3s var(--ease-atmo); }
.foot ul a:hover { color: rgba(var(--o), var(--t-body)); }
.foot-note { flex-basis: 100%; font-size: 12px; line-height: 1.7; max-width: 60em; }

/* ============================================================
   Guide
   ============================================================ */

.g-head { padding: calc(var(--bar-h) + 110px) 0 60px; }
.g-head h1 { max-width: 11em; }
.g-head .lede { margin-top: 20px; }

.g-index {
  list-style: none;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  counter-reset: g;
  border-top: 0.5px solid rgba(var(--ol), 0.6);
}
.g-index li { border-bottom: 0.5px solid rgba(var(--ol), 0.6); }
.g-index a {
  display: grid;
  grid-template-columns: 4.2em 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  text-decoration: none;
  transition: color 0.3s var(--ease-atmo);
}
.g-index .n {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--p), 0.78);
}
.g-index .t { font-size: 18px; color: rgba(var(--o), var(--t-body)); }
.g-index .s { display: block; font-size: 13px; color: rgba(var(--o), var(--t-quiet)); margin-top: 2px; }
.g-index .ico { color: rgba(var(--p), 0.6); transition: transform 0.4s var(--ease-deep); }
.g-index a:hover .t { color: rgba(var(--o), var(--t-strong)); }
.g-index a:hover .ico { transform: translateX(4px); }

.chapter { padding: 120px 0 40px; position: relative; }
.chapter-grid {
  display: grid;
  grid-template-columns: 700px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.chapter h2 { margin-bottom: 18px; }
.chapter .prose { font-size: 16px; }


.annot {
  position: relative;
  width: 700px;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}
.annot .phone { --pw: 300px; }
.annot .phone-screen { overflow: visible; }
.annot .phone-screen img { border-radius: 37px; }

/* A hotspot: number on the screen, leader line, callout in the tint.
   The whole thing is one button; its label is the callout. */
.hs {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 0; height: 0;
  z-index: 2;
  list-style: none;
  --lw: calc((100 - var(--x)) * var(--pw) / 100 + 34px);
}
.hs[data-side="l"] { --lw: calc(var(--x) * var(--pw) / 100 + 34px); }
.hs-btn {
  position: absolute;
  left: -13px; top: -13px;
  width: 26px; height: 26px;
  border-radius: 50%;
}
.hs-btn:focus-visible { outline-offset: 3px; border-radius: 50%; }
.hs-n {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--o), 0.95);
  background: rgba(12, 14, 17, 0.84);
  border: 0.5px solid rgba(var(--p), 0.7);
  transition: background-color 0.35s var(--ease-atmo), box-shadow 0.35s var(--ease-atmo), transform 0.35s var(--ease-deep);
}
.hs-lead {
  position: absolute;
  top: 13px;
  height: 0.5px;
  width: calc(var(--lw) - 13px);
  background: rgba(var(--p), 0.45);
  pointer-events: none;
  transition: background-color 0.35s var(--ease-atmo);
}
.hs[data-side="r"] .hs-lead { left: 26px; }
.hs[data-side="l"] .hs-lead { right: 26px; }
.hs-lead::after {
  content: "";
  position: absolute;
  top: -1.75px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(var(--p), 0.8);
}
.hs[data-side="r"] .hs-lead::after { right: -2px; }
.hs[data-side="l"] .hs-lead::after { left: -2px; }
.hs-label {
  position: absolute;
  top: 3px;
  width: 168px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(var(--p), 0.88);
  transition: color 0.35s var(--ease-atmo);
}
.hs[data-side="r"] .hs-label { left: calc(var(--lw) + 21px); text-align: left; }
.hs[data-side="l"] .hs-label { right: calc(var(--lw) + 21px); text-align: right; }
.hs.is-active .hs-n {
  background: rgba(56, 72, 88, 0.97);
  border-color: rgb(var(--p));
  box-shadow: 0 0 0 6px rgba(var(--p), 0.14);
  transform: scale(1.12);
}
.hs.is-active .hs-lead { background: rgba(var(--p), 0.95); }
.hs.is-active .hs-label { color: rgb(var(--o)); }
.hs.is-active { z-index: 4; }

/* On wide screens the screen stays readable: a small target ring marks the
   spot, and the number rides at the outer end of the leader */
.hs-btn::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(var(--p), 0.9);
  box-shadow: 0 0 0 3px rgba(8, 10, 13, 0.45);
  transition: transform 0.35s var(--ease-deep), box-shadow 0.35s var(--ease-atmo);
  pointer-events: none;
}
.hs.is-active .hs-btn::after { transform: scale(1.35); background: rgba(var(--p), 0.3); }
@media (min-width: 761px) {
  .hs { --lw: calc((100 - var(--x)) * var(--pw) / 100 + 24px); }
  .hs[data-side="l"] { --lw: calc(var(--x) * var(--pw) / 100 + 24px); }
  .hs-n { inset: auto; top: 2px; width: 22px; height: 22px; font-size: 11px; }
  .hs[data-side="r"] .hs-n { left: calc(var(--lw) + 17px); }
  .hs[data-side="l"] .hs-n { right: calc(var(--lw) + 17px); }
  .hs[data-side="r"] .hs-lead { left: 19px; width: calc(var(--lw) - 4px); }
  .hs[data-side="l"] .hs-lead { right: 19px; width: calc(var(--lw) - 4px); }
  .hs-lead::after { display: none; }
  /* Faint where it crosses the screen, clear once it leaves it */
  .hs[data-side="r"] .hs-lead { background: linear-gradient(90deg, rgba(var(--p), 0.2) calc(100% - 28px), rgba(var(--p), 0.6) calc(100% - 28px)); }
  .hs[data-side="l"] .hs-lead { background: linear-gradient(270deg, rgba(var(--p), 0.2) calc(100% - 28px), rgba(var(--p), 0.6) calc(100% - 28px)); }
  .hs.is-active .hs-lead { background: rgba(var(--p), 0.9); }
  .hs-label { width: 150px; top: 4px; }
  .hs[data-side="r"] .hs-label { left: calc(var(--lw) + 47px); }
  .hs[data-side="l"] .hs-label { right: calc(var(--lw) + 47px); }
}
@media (max-width: 760px) {
  .hs-btn::after { display: none; }
  .hs-btn { left: -11px; top: -11px; width: 22px; height: 22px; }
  .hs-n { font-size: 11px; }
}

.hs-list { position: absolute; inset: 0; list-style: none; }
.annot figcaption { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 12px; margin: 0; }
.step-t:focus-visible { outline-offset: 3px; }
.steps { list-style: none; margin-top: 30px; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 14px 14px 14px 10px;
  border-radius: 16px;
  border: 0.5px solid transparent;
  transition: background-color 0.35s var(--ease-atmo), border-color 0.35s var(--ease-atmo);
}
.step-n {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--o), 0.9);
  border: 0.5px solid rgba(var(--p), 0.5);
  transition: background-color 0.35s var(--ease-atmo), border-color 0.35s var(--ease-atmo);
}
.step-t {
  display: block;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  color: rgba(var(--o), var(--t-body));
  padding: 2px 0 4px;
}
.step p { font-size: 14px; line-height: 1.65; color: rgba(var(--o), var(--t-read)); }
.step.is-active {
  background: rgba(var(--p), 0.08);
  border-color: rgba(var(--p), 0.22);
}
.step.is-active .step-n { background: rgba(56, 72, 88, 0.96); border-color: rgb(var(--p)); }
.step.is-active .step-t { color: rgba(var(--o), var(--t-strong)); }

.g-note {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(27, 32, 39, 0.55);
  border: 0.5px solid rgba(var(--ol), 0.5);
  font-size: 14px;
  line-height: 1.7;
}
.g-note strong { display: block; margin-bottom: 4px; }

.g-end { padding: 150px 0 140px; text-align: center; }
.g-end h2 { margin: 0 auto; max-width: 12em; }
.g-end .lede { margin: 20px auto 0; }
.g-end .close-act { margin-top: 40px; }
.g-end .meta { justify-content: center; margin-top: 26px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1240px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .annot { margin: 0 auto; }
  .chapter-text { max-width: 640px; margin: 0 auto; }
}

@media (max-width: 1000px) {
  .split, .faq { grid-template-columns: 1fr; gap: 56px; }
  .tracking-grid { grid-template-columns: 1fr; }
  .dial-wrap { position: static; }
  .split--rev > :first-child { order: 0; }
  .rest-grid { grid-template-columns: 1fr; gap: 56px; }
  .rest-grid .phone { margin: 0 auto; }
  .diagram--ring { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .annot { width: 100%; }
  .annot .phone { --pw: min(280px, 70vw); }
  .hs-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hs { --lw: 0px; }
  .hs-lead { display: none; }
  .g-index { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hc-row, .hc-scale { grid-template-columns: 1fr; gap: 8px; }
  .hc-row { margin-bottom: 12px; }
  .hc-scale > :first-child { display: none; }
  .seg--focus { padding: 0 8px; font-size: 13px; }
  .seg--focus .long { display: none; }
  .feature { grid-template-columns: 1fr; justify-items: start; gap: 28px; }
  .feature .phone { margin: 0 auto; }
  .g-head { padding-top: calc(var(--bar-h) + 70px); }
  .chapter { padding-top: 90px; }
}

@media (max-width: 620px) {
  .d-name { font-size: 23px; }
  .d-cap, .d-lbl { font-size: 17px; }
  .k-name { font-size: 23px; }
  .k-cap { font-size: 16px; }
  .f-txt { font-size: 27px; }
  .hero { padding-top: calc(var(--bar-h) + 12px); padding-bottom: 28px; }
  .hero h1 { font-size: 38px; margin-top: 14px; }
  .hero .lede { font-size: 15px; margin-top: 12px; }
  .hero-act { margin-top: 22px; }
  .room { width: min(84vw, 44svh); }
  .orb { width: 31cqw; height: 31cqw; }
  .orb-label { font-size: 11px; }
  .snd-name { font-size: 11px; }
  .lede { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .arrival { display: none; }
  .motes { display: none; }
  .js .mist { opacity: 1; filter: none; transform: none; transition: none; }
  .js .left-out li::after { transform: scaleX(1); transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .forest-layer { transition: opacity 0.6s linear; transform: none; }
  .k-sounds, .k-headg { transition: none; }
}


/* ==========================================================================
   v4: play control, essentials-first type, Protect Focus, both stores
   ========================================================================== */

/* The play control is a lens at the heart of the orb: lit from within by the
   same tint, edged with light rather than a stroke, and breathing a soft halo
   until the room is first played. */
.orb-play {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--p), 0.16), rgba(var(--p), 0.04) 52%, transparent 74%),
    radial-gradient(circle, rgba(10, 13, 17, 0.9) 58%, rgba(10, 13, 17, 0.72) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--p), 0.24),
    inset 0 1px 0 rgba(var(--p), 0.18),
    0 0 26px rgba(var(--p), 0.16);
  color: rgba(var(--p), 0.96);
  pointer-events: none;
  transition: transform 0.5s var(--ease-deep), box-shadow 0.6s var(--ease-atmo), background-color 0.6s var(--ease-atmo);
}
/* The invitation: one hairline halo that slowly widens and dissolves */
.orb-play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(var(--p), 0.4);
  opacity: 0;
  animation: invite 4.2s var(--ease-atmo) infinite;
}
@keyframes invite {
  0% { transform: scale(1); opacity: 0; }
  18% { opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
.orb-play svg { position: relative; width: 40%; height: 40%; fill: currentColor; transition: transform 0.4s var(--ease-deep); }
.orb-play .pg-play, .orb-play .pg-pause { transition: opacity 0.35s var(--ease-atmo); }
.orb-play .pg-pause { opacity: 0; }
.orb:hover .orb-play {
  transform: scale(1.04);
  box-shadow:
    inset 0 0 0 1px rgba(var(--p), 0.25),
    inset 0 1px 0 rgba(var(--p), 0.24),
    0 0 36px rgba(var(--p), 0.26);
}
.orb:hover .orb-play svg { transform: scale(1.04); }
.orb .orb-core { opacity: 0; }
/* Playing: the lens clears, the orb's own light shows through, play becomes pause */
.room.is-playing .orb-play {
  background: radial-gradient(circle, rgba(10, 13, 17, 0.42) 40%, rgba(10, 13, 17, 0.18) 100%);
  box-shadow: inset 0 0 0 1px rgba(var(--p), 0.16), 0 0 30px rgba(var(--p), 0.22);
}
.room.is-playing .orb-play::after { animation: none; opacity: 0; }
.room.is-playing .orb-play .pg-play { opacity: 0; }
.room.is-playing .orb-play .pg-pause { opacity: 1; }
.room.is-playing .orb .orb-core { opacity: 1; }

/* Two stores, side by side */
.stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.store { min-width: 196px; }

/* Essentials: a few lines, set large enough to read in the dark */
.facts--lg { gap: 20px; margin-top: 30px; }
.facts--lg li { font-size: 17px; line-height: 1.6; }

/* An honest platform marker, used only where a feature is iPhone-only */
.only { margin-top: 16px; font-size: 15px; color: rgba(var(--o), var(--t-read)); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.only-tag {
  display: inline-block;
  padding: 2px 10px 3px;
  border-radius: 9px;
  border: 0.5px solid rgba(var(--p), 0.25);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--p), 0.9);
  white-space: nowrap;
  vertical-align: 1px;
}
.hc-lab small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(var(--p), 0.8);
}

/* Head tracking, simplified: dial on one side, words on the other */
.tracking-grid .t-body .more { margin-top: 20px; }

/* Protect Focus: its own moment in the session */
.shield-halo { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.sh, .sh-glow { position: absolute; border-radius: 50%; }
.sh { border: 1px solid rgba(var(--p), 0.55); }
.sh--a { width: min(520px, 100%); aspect-ratio: 1; animation: breathA 11s var(--ease-atmo) infinite; }
.sh--b { width: min(410px, 82%); aspect-ratio: 1; animation: breathB 11s var(--ease-atmo) -1.6s infinite; }
.sh-glow {
  width: min(360px, 72%); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--p), 0.16), transparent 70%);
  animation: breathGlow 11s var(--ease-atmo) -0.8s infinite;
}

/* The close: both stores, both codes, and what each phone gets */
.close-act { gap: 40px 56px; align-items: flex-start; }
.get { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.get .qr {
  width: 96px; height: 96px;
  padding: 8px;
  border-radius: 12px;
  border: 0.5px solid rgba(var(--p), 0.24);
  background: rgba(8, 10, 13, 0.6);
}
.platforms {
  margin: 56px auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  text-align: left;
  padding-top: 32px;
  border-top: 0.5px solid rgba(var(--ol), 0.6);
}
.platforms h3 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--p), 0.9);
  margin-bottom: 10px;
}
.platforms p { font-size: 16px; line-height: 1.65; color: rgba(var(--o), var(--t-read)); }

@media (max-width: 900px) {
    }
@media (max-width: 620px) {
  .platforms { grid-template-columns: 1fr; }
  .stores { flex-direction: column; align-items: center; }
  .store { min-width: 220px; justify-content: flex-start; }
  .readout-say { font-size: 17px; }
  }
@media (prefers-reduced-motion: reduce) {
  .orb-play::after { animation: none; }
}

/* ==========================================================================
   Reading pages: privacy, terms (Read mode inside the same night)
   ========================================================================== */

.legal-head { padding: calc(var(--bar-h) + 104px) 0 48px; }
.legal-head h1 { font-size: clamp(40px, 5.6vw, 68px); max-width: 12em; }
.legal-updated {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--p), 0.86);
}
.legal-head .lede { margin-top: 26px; max-width: 36em; font-size: 18px; }

.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 37em);
  gap: 72px;
  align-items: start;
  padding-bottom: 140px;
}
.legal-toc { position: sticky; top: calc(var(--bar-h) + 32px); }
.legal-toc-t {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--o), var(--t-quiet));
  margin-bottom: 14px;
}
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(var(--o), var(--t-quiet));
  text-decoration: none;
  transition: color 0.3s var(--ease-atmo);
}
.legal-toc a::before {
  content: counter(toc);
  font-variant-numeric: tabular-nums;
  color: rgba(var(--p), 0.7);
}
.legal-toc a:hover, .legal-toc a[aria-current="true"] { color: rgba(var(--o), var(--t-strong)); }

/* Comfortable reading on dark: a touch more leading, 16-17px, 65ch measure */
.legal-body { font-size: 17px; line-height: 1.75; color: rgba(var(--o), var(--t-read)); }
.legal-body h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 64px 0 18px;
  padding-top: 26px;
  border-top: 0.5px solid rgba(var(--ol), 0.6);
  color: rgba(var(--o), var(--t-strong));
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 32px 0 10px;
  color: rgba(var(--o), var(--t-body));
}
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 16px; }
.legal-body ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.legal-body li { position: relative; padding-left: 22px; }
.legal-body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.75em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(var(--p), 0.7);
}
.legal-body strong { color: rgba(var(--o), var(--t-body)); }
.legal-body a, .contact a:not(.more):not(.store) {
  color: rgba(var(--p), 0.92);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}
.legal-body a:hover, .contact a:not(.more):not(.store):hover { color: rgb(var(--p)); }
.legal-contact { margin-top: 56px; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; padding-bottom: 28px; border-bottom: 0.5px solid rgba(var(--ol), 0.6); }
  .legal-body { font-size: 16px; }
}

/* ==========================================================================
   Contact: one calm card, a form that says what happens
   ========================================================================== */

.contact { padding: calc(var(--bar-h) + 104px) 0 140px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}
.contact-intro h1 { font-size: clamp(40px, 5.6vw, 68px); }
.contact-intro .lede { margin-top: 22px; font-size: 18px; max-width: 26em; }
.contact-note { margin-top: 28px; font-size: 15px; color: rgba(var(--o), var(--t-quiet)); }

.contact-card {
  position: relative;
  padding: 40px;
  border-radius: 20px;
  background: rgba(17, 20, 24, 0.72);
  border: 0.5px solid rgba(var(--ol), 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.form { display: grid; gap: 26px; }
.topics { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topics legend {
  width: 100%;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--o), var(--t-quiet));
}
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topics span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 16px;
  border: 0.5px solid rgba(var(--ol), 0.9);
  font-size: 14px;
  color: rgba(var(--o), var(--t-read));
  transition: background-color 0.3s var(--ease-atmo), border-color 0.3s var(--ease-atmo), color 0.3s var(--ease-atmo);
}
.topics label:hover span { color: rgba(var(--o), var(--t-body)); border-color: rgba(var(--p), 0.25); }
.topics input:checked + span {
  background: rgba(var(--p), 0.14);
  border-color: rgba(var(--p), 0.25);
  color: rgb(var(--p));
}
.topics input:focus-visible + span { outline: 1.5px solid rgba(var(--p), 0.72); outline-offset: 3px; }

.field { display: grid; gap: 10px; }
.field label { font-size: 15px; color: rgba(var(--o), var(--t-body)); }
.field-opt { margin-left: 8px; font-size: 13px; color: rgba(var(--o), var(--t-quiet)); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 0.5px solid rgba(var(--ol), 0.9);
  background: rgba(8, 10, 12, 0.6);
  color: rgba(var(--o), var(--t-strong));
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  caret-color: rgb(var(--p));
  transition: border-color 0.3s var(--ease-atmo), background-color 0.3s var(--ease-atmo);
}
.field textarea { resize: vertical; min-height: 168px; }
.field input:hover, .field textarea:hover { border-color: rgba(var(--p), 0.22); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(var(--p), 0.25); background: rgba(8, 10, 12, 0.8); box-shadow: 0 0 0 3px rgba(var(--p), 0.12); }
.field [aria-invalid="true"] { border-color: rgba(var(--p), 0.25); box-shadow: 0 0 0 3px rgba(var(--p), 0.16); }
.field-err { min-height: 0; font-size: 14px; color: rgba(var(--o), var(--t-body)); }
.field-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.send {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: 26px;
  border: 0.5px solid rgba(var(--p), 0.25);
  background: rgba(var(--p), 0.14);
  color: rgb(var(--p));
  font: inherit;
  font-size: 15px;
  transition: background-color 0.3s var(--ease-atmo), transform 0.15s var(--ease-ritual), opacity 0.3s var(--ease-atmo);
}
.send:hover { background: rgba(var(--p), 0.2); }
.send:active { transform: scale(0.97); }
.send[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.send[aria-busy="true"] .send-label::after { content: "…"; }
.form-legal { font-size: 13px; line-height: 1.6; color: rgba(var(--o), var(--t-quiet)); }
.form-status { font-size: 15px; color: rgba(var(--o), var(--t-body)); }
.form-status:empty { display: none; }

.sent { text-align: center; padding: 24px 0 8px; }
.sent:focus { outline: none; }
.sent h2 { margin-top: 26px; font-size: clamp(34px, 4vw, 44px); }
.sent p { margin: 14px auto 0; max-width: 26em; color: rgba(var(--o), var(--t-read)); }
.sent .more { margin-top: 22px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: inherit; font-size: 14px; }
.sent-orb { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.sent-check {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 28px; height: 28px;
  color: rgb(var(--p));
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 560px) {
  .contact-card { padding: 26px 20px; }
  .send { justify-self: stretch; justify-content: center; }
}


/* ==========================================================================
   v4.1: one clock, an audible dial, a lighter session, 44px targets
   ========================================================================== */

/* The hero's instruction is its second voice, not its quietest */
.hero-status { font-size: 15px; color: rgba(var(--o), var(--t-body)); }
.nojs-note { display: none; }
html:not(.js) .nojs-note { display: block; margin-top: 6px; font-size: 15px; color: rgba(var(--o), var(--t-body)); }
html:not(.js) .orb-play, html:not(.js) .orb-label, html:not(.js) .hero-status, html:not(.js) .hear { display: none; }

.lede--gap { margin-top: 22px; }

/* Hear the dial: play the room from here, then turn */
.hear { margin-top: 24px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; font-size: 16px; line-height: 1.5; color: rgba(var(--o), var(--t-read)); max-width: 30em; }
.hear span { flex: 1 1 14em; }
.hear-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  flex: none;
  border-radius: 22px;
  border: 0.5px solid rgba(var(--p), 0.25);
  background: rgba(var(--p), 0.12);
  color: rgb(var(--p));
  font-size: 15px;
  transition: background-color 0.3s var(--ease-atmo), transform 0.15s var(--ease-ritual);
}
.hear-btn:hover { background: rgba(var(--p), 0.18); }
.hear-btn:active { transform: scale(0.97); }
.fine { margin-top: 18px; font-size: 13px; line-height: 1.6; color: rgba(var(--o), var(--t-quiet)); max-width: 32em; }
/* The meaning sits under the dial, before the controls */
.dial-wrap .readout-say { margin: 4px auto 0; text-align: center; max-width: 24em; min-height: 3.2em; }

/* Larger hit areas without moving the hairline underlines */
.more, .foot ul a, .bar-links a, .legal-toc a, .brand, .bar-cta { position: relative; }
.more::before, .foot ul a::before, .bar-links a::before, .brand::before, .bar-cta::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}
.more--up .ico { transform: rotate(-90deg); }
.complete .more--up { margin-top: 44px; }

/* Phones: no QR codes for the phone already in your hand */
@media (max-width: 620px), (pointer: coarse) {
  .get .qr { display: none; }
  .close-act { gap: 12px; flex-direction: column; align-items: center; }
}
@media (max-width: 620px) {
  }

#faq { padding-bottom: calc(var(--half) * 1.5); }


/* ==========================================================================
   v4.2: the session pair and one rhythm
   ========================================================================== */
.pair {
  margin-top: var(--block);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}
.pane {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 36px;
  padding: 44px 40px 40px;
  border-radius: 20px;
  border: 0.5px solid rgba(var(--ol), 0.6);
  background: rgba(12, 14, 17, 0.42);
}
.pane-shot { position: relative; display: grid; place-items: center; min-height: 420px; }
.pane-shot .phone { position: relative; z-index: 1; --pw: 190px; }
.pane-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(var(--o), var(--t-strong));
}
.pane-lede { margin-top: 12px; font-size: 18px; line-height: 1.55; color: rgba(var(--o), var(--t-body)); max-width: 26em; }
.pane .facts { margin-top: 24px; gap: 14px; }
.pane .facts li { font-size: 16px; }
.pane .more { margin-top: 24px; }
/* Protect Focus carries the accent: a warmer lit field and the shield's breath */
.pane--protect {
  border-color: rgba(var(--p), 0.25);
  background:
    radial-gradient(ellipse 80% 60% at 50% 28%, rgba(var(--p), 0.09), transparent 70%),
    rgba(12, 14, 17, 0.5);
}
.pane--protect .sh--a { width: min(400px, 100%); }
.pane--protect .sh--b { width: min(310px, 80%); }
.pane--protect .sh-glow { width: min(280px, 70%); }

@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; gap: 28px; }
  .pane { padding: 32px 24px 28px; }
  .pane-shot { min-height: 0; padding: 12px 0; }
  .pane-shot .phone { --pw: min(200px, 52vw); }
  .tracking-grid { grid-template-areas: "text" "dial"; row-gap: 40px; }
}

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--bar-h) + 40px) 0 80px; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); }
.lost .lede { margin: 20px auto 0; }
.lost-links { margin-top: 28px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }


/* ==========================================================================
   Mobile adaptation (tier-one landing): one store, a dock, exact circles
   ========================================================================== */

/* Inside the hero orb every layer shares one grid cell, so all the circles
   centre on the same pixel; sizes are even so the halves never round apart. */
#orb > .orb-ring, #orb > .orb-glow, #orb > .orb-core, #orb > .orb-play {
  position: relative;
  top: auto; left: auto;
  translate: none;
  grid-area: 1 / 1;
}
#orb > .orb-ring--a { width: 100%; height: 100%; }
#orb > .orb-ring--b { width: round(74%, 2px); height: round(74%, 2px); }
#orb > .orb-glow { width: round(90%, 2px); height: round(90%, 2px); }
#orb > .orb-core { width: round(22%, 2px); height: round(22%, 2px); }
#orb > .orb-play { width: round(42%, 2px); height: round(42%, 2px); }

/* Store buttons: one line, the mark and the store's name */
.store {
  min-width: 0;
  height: 52px;
  padding: 0 24px 0 20px;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
  box-shadow: inset 0 1px 0 rgba(var(--p), 0.14);
}
.store .ico { width: 20px; height: 20px; flex: none; }
.store--play .ico { width: 19px; height: 19px; }
.store-label { white-space: nowrap; }
.store-pre { color: rgba(var(--p), 0.72); }
.alt-store { display: none; font-size: 14px; color: rgba(var(--o), var(--t-quiet)); }
.alt-store a { color: rgba(var(--p), 0.92); text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 3px; }
.qrs { display: flex; gap: 56px; justify-content: center; width: 100%; }
.qrs .qr {
  width: 96px; height: 96px; padding: 8px;
  border-radius: 12px;
  border: 0.5px solid rgba(var(--p), 0.24);
  background: rgba(8, 10, 13, 0.6);
}
.close-act { flex-direction: column; align-items: center; gap: 22px; }

/* On a phone that can install it, offer that phone's store; the other one
   stays one quiet link away */
@media (max-width: 760px) {
  .is-ios .store--play, .is-android .store--apple { display: none; }
  .is-ios .alt-store--ios, .is-android .alt-store--android { display: block; }
}

/* The dock: a quiet way to get the app while reading on a phone */
.dock { display: none; }
@media (max-width: 760px) {
  .js .dock {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 14px;
    border-radius: 24px;
    background: rgba(14, 17, 21, 0.78);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 0.5px solid rgba(var(--p), 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    color: rgba(var(--o), var(--t-strong));
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    pointer-events: none;
    transition: transform 0.5s var(--ease-deep), opacity 0.4s var(--ease-atmo);
  }
  .js .dock.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .dock-orb {
    flex: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, rgba(var(--o), 0.95) 0 10%, rgba(var(--p), 0.55) 26%, rgba(var(--p), 0.08) 62%, transparent 72%), #0b0e12;
    box-shadow: inset 0 0 0 1px rgba(var(--p), 0.22);
  }
  .dock-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
  .dock-text strong { font-weight: 400; font-size: 15px; }
  .dock-text span { font-size: 13px; color: rgba(var(--o), var(--t-quiet)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock-cta {
    flex: none;
    display: inline-flex; align-items: center;
    height: 40px; padding: 0 20px;
    border-radius: 20px;
    background: rgba(var(--p), 0.2);
    border: 0.5px solid rgba(var(--p), 0.25);
    color: rgb(var(--p));
    font-size: 15px;
  }
  .dock:active { transform: scale(0.98); }
  /* the footer isn't hidden behind the dock */
  .js body { padding-bottom: 0; }
  .js .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Phones: a calmer header with the name, a tighter hero, one primary action */
@media (max-width: 620px) {
  .bar-in { gap: 8px; }
  .board { gap: 8px; font-size: 11px; }
  .board-cell { width: 0.86em; }
  .bar-links { display: none; }
  .bar-cta { height: 36px; padding: 0 14px; font-size: 14px; }

  .hero { min-height: 0; padding: calc(var(--bar-h) + 12px) var(--gutter) 40px; }
  .room { width: min(84vw, 40svh); width: round(down, min(84vw, 40svh), 4px); }
  .hero h1 { font-size: clamp(32px, 9vw, 38px); margin-top: 14px; }
  .hero .lede { display: none; }
  .hero-status { font-size: 16px; line-height: 1.5; margin-top: 12px; max-width: 22em; }
  .hero-act { margin-top: 22px; gap: 12px; width: 100%; }
  .stores { flex-direction: column; align-items: stretch; width: min(100%, 320px); margin: 0 auto; gap: 10px; }
  .store { justify-content: center; }
  .qrs { display: none; }
  .complete .stores { width: min(100%, 320px); }
}
@media (max-width: 360px) {
  .board-sep, .board-time { display: none; }
}

/* Desktop close: each QR sits under its own store */
@media (min-width: 761px) {
  .close-act .stores { display: grid; grid-template-columns: repeat(2, 268px); gap: 16px; }
  .close-act .store { justify-content: center; }
  .qrs { display: grid; grid-template-columns: repeat(2, 268px); gap: 16px; justify-items: center; width: auto; }
}
@media (max-width: 620px) {
  .only { flex-wrap: nowrap; font-size: 14px; }
  .hear { flex-direction: column; align-items: flex-start; }
  #faq { padding-bottom: var(--half); }
}
@media (max-width: 360px) {
  .room-cross { display: none; }
}


/* ==========================================================================
   Phone vision: six scenes you can hold
   ========================================================================== */

/* The dial: a dot on the ring you can take hold of */
.k-knob { pointer-events: none; fill: rgb(var(--p)); filter: drop-shadow(0 0 8px rgba(var(--p), 0.6)); transition: r 0.3s var(--ease-deep); }
.k-knob-hit { fill: transparent; cursor: grab; touch-action: none; }
#dial-svg.is-dragging .k-knob-hit { cursor: grabbing; }
#dial-svg.is-dragging .k-knob { r: 14; }
/* one quiet nudge so the dot reads as something to move */
@keyframes knobHint { 0%, 100% { transform: rotate(0deg); } 40% { transform: rotate(14deg); } 70% { transform: rotate(-6deg); } }
.js #k-head.is-hinting { animation: knobHint 1.6s var(--ease-atmo) 1; }

/* Play and motion, directly under the dial */
.dial-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hear-btn, .motion-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 14px;
  border-radius: 22px;
  border: 0.5px solid rgba(var(--p), 0.25);
  background: rgba(var(--p), 0.1);
  color: rgb(var(--p));
  font-size: 15px;
  transition: background-color 0.3s var(--ease-atmo), transform 0.15s var(--ease-ritual);
}
.hear-btn .ico, .motion-btn .ico { width: 18px; height: 18px; }
.hear-btn:hover, .motion-btn:hover { background: rgba(var(--p), 0.16); }
.hear-btn:active, .motion-btn:active { transform: scale(0.97); }
.hear-btn.is-playing .pg-play { d: path("M7.6 6.5h2.8v11H7.6zM13.6 6.5h2.8v11h-2.8z"); }
.motion-btn[aria-pressed="true"], .hear-btn.is-playing { background: rgba(var(--p), 0.2); }
.dial-wrap .readout-say { margin-top: 14px; }

/* Phones: a headline you can read the moment it arrives */
@media (max-width: 760px) {
  .js .mist { filter: none; transform: translateY(8px); transition: opacity 0.45s var(--ease-atmo), transform 0.45s var(--ease-deep); }
  .js .mist.is-in { transform: none; }
}

@media (max-width: 760px) {
  /* Scene 1, the room: the room fills the screen; play sits on the orb */
  .room { width: min(88vw, 50svh); width: round(down, min(88vw, 50svh), 4px); }
  .orb-label {
    top: calc(100% + 6px);
    padding: 5px 12px;
    border-radius: 14px;
    border: 0.5px solid rgba(var(--p), 0.22);
    background: rgba(10, 13, 17, 0.6);
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .snd-name { font-size: 12px; }

  /* Scene 2, turn your head: idea, then the dial with its controls, then the fine print */
  .tracking-grid { display: flex; flex-direction: column; gap: 28px; }
  .tracking-grid .t-text { display: contents; }
  .tracking-grid .t-head { order: 1; }
  .tracking-grid .dial-wrap { order: 2; max-width: none; }
  .tracking-grid .t-body { order: 3; }
  .tracking-grid .dial { max-width: min(92vw, 420px); }
  .dial-wrap .controls { margin-top: 16px; }
  /* the slider stays for keyboards and screen readers; touch has the dot and the phone */
  .heading-row { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .controls { justify-items: center; }

  /* Scene 4, the session: two cards you swipe between */
  .pair {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: var(--block) calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .pair::-webkit-scrollbar { display: none; }
  .pane { flex: 0 0 84%; scroll-snap-align: center; padding: 26px 22px 24px; gap: 22px; }
  .pane .facts { display: none; }
  .pane-shot { min-height: 0; padding: 4px 0; }
  .pane-shot .phone { --pw: min(132px, 36vw); border-radius: 30px; padding: 6px; }
  .pane-shot .phone-screen { border-radius: 25px; }
  .pane-lede { font-size: 17px; }
  .seg--break span { font-size: 12px; color: rgba(var(--o), var(--t-quiet)); }

  /* Scene 5, night: the curve leads, the phone steps back */
  .phone--sm { --pw: 150px; }

  /* Scene 6, well done: one store, the rest folds away */
  .platforms-d { margin-top: 36px; }
}

/* The platform comparison as a quiet fold */
.platforms-d { max-width: 760px; margin: 48px auto 0; text-align: left; border-top: 0.5px solid rgba(var(--ol), 0.6); }
.platforms-d summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; font-size: 16px; color: rgba(var(--o), var(--t-body));
}
.platforms-d summary::-webkit-details-marker { display: none; }
.platforms-d summary .ico { width: 16px; height: 16px; color: rgba(var(--p), 0.7); transition: transform 0.5s var(--ease-deep); }
.platforms-d[open] summary .ico { transform: rotate(45deg); }
.platforms-d .platforms { margin-top: 4px; padding-top: 8px; border-top: 0; }

/* The header on phones: the hour, legible, with a thread of progress */
.bar::after {
  content: "";
  position: absolute; left: 0; bottom: -0.5px;
  width: 100%; height: 1px;
  background: rgba(var(--p), 0.55);
  transform-origin: left;
  transform: scaleX(var(--hour, 0));
  transition: transform 0.4s var(--ease-atmo);
  pointer-events: none;
}
@media (max-width: 620px) {
  .board { font-size: 12px; }
  .board-cell { width: 0.9em; }
  .brand { padding: 10px; margin-left: -10px; }
  .bar-cta { height: 40px; }
}
@media (max-width: 360px) {
  .board-time { display: inline; }
  .board-sep { display: none; }
}
