/* ==========================================================================
   POTOK — landing page
   The page travels through a sunrise: background, fog and text colour are
   driven by scroll progress (see script.js, --dawn / --ink / --sky-*).
   ========================================================================== */

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

/* overflow-x: clip, not hidden — the full-bleed .scene is 100vw, which counts
   the scrollbar and overshoots by a few pixels. `clip` swallows that without
   turning the root into a scroll container the way `hidden` would. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: rgb(var(--ink));
  background: rgb(var(--sky-b));
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

:root {
  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Amber is the light source. It never changes — everything else does. */
  --light: 232 154 76;
  --light-hi: 255 217 160;

  /* Overwritten every frame by script.js. These are the 04:12 values. */
  --dawn: 0;
  --sky-a: 7 11 16;
  --sky-b: 12 18 26;
  --ink: 232 228 220;

  --measure: 46rem;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --pad-x: clamp(1.25rem, 5vw, 3rem);
}

/* --------------------------------------------------------------- sky + fog */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(170deg, rgb(var(--sky-a)) 0%, rgb(var(--sky-b)) 100%);
}

.fog {
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  opacity: calc(0.9 - var(--dawn) * 0.75);
  filter: blur(70px);
}

.fog__cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--ink) / 0.11) 0%, transparent 70%);
  animation: drift 46s ease-in-out infinite alternate;
}
.fog__cloud--a { width: 62vw; height: 48vh; top: 8%;  left: -8%;  animation-duration: 52s; }
.fog__cloud--b { width: 48vw; height: 42vh; top: 46%; right: -6%; animation-duration: 61s; animation-delay: -12s; }
.fog__cloud--c { width: 70vw; height: 38vh; bottom: 4%; left: 18%; animation-duration: 74s; animation-delay: -30s; }
.fog__cloud--d {
  width: 40vw; height: 40vh; top: 22%; left: 42%;
  background: radial-gradient(circle, rgb(var(--light) / 0.10) 0%, transparent 70%);
  animation-duration: 58s; animation-delay: -20s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, -4vh, 0) scale(1.18); }
}

/* ------------------------------------------------------------------- rail */
/* The dawn timeline. A light travels down the page as you read. */

.rail {
  position: fixed;
  left: clamp(1rem, 2.4vw, 2.25rem);
  top: 22vh;
  bottom: 22vh;
  width: 1px;
  z-index: 5;
  display: none;
}

.rail__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgb(var(--ink) / 0.28) 12%, rgb(var(--ink) / 0.28) 88%, transparent);
}

.rail__dot {
  position: absolute;
  left: 50%;
  top: calc(var(--progress, 0) * 100%);
  width: 7px; height: 7px;
  margin: -3px 0 0 -3.5px;
  border-radius: 50%;
  background: rgb(var(--light-hi));
  box-shadow: 0 0 12px 3px rgb(var(--light) / 0.55);
}

.rail__now {
  position: absolute;
  left: 14px;
  top: calc(var(--progress, 0) * 100%);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgb(var(--ink) / 0.5);
  white-space: nowrap;
}

/* The rail only appears once the 76rem content column has centred far enough
   right to clear it. Below this the "04:12" label would sit on the headline. */
@media (min-width: 1360px) { .rail { display: block; } }

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad-x);
}

/* Keeps the bar legible once content starts passing underneath it. */
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(var(--sky-a)) 55%, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.topbar.is-stuck::before { opacity: 0.96; }

.mark {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-decoration: none;
  color: rgb(var(--ink));
}

.topbar__right { display: flex; align-items: center; gap: 0.75rem; }

.topbar__cta {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.topbar__cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* sound toggle */
.sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  border: 1px solid rgb(var(--ink) / 0.18);
  border-radius: 50%;
  background: none;
  color: rgb(var(--ink) / 0.6);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.sound:hover { color: rgb(var(--ink)); border-color: rgb(var(--ink) / 0.4); }
.sound svg { width: 1.125rem; height: 1.125rem; }

/* Muted is the resting state: crossed-out speaker. */
.sound .sound__wave { display: none; }
.sound[aria-pressed="true"] {
  color: rgb(var(--light-hi));
  border-color: rgb(var(--light) / 0.45);
}
.sound[aria-pressed="true"] .sound__wave { display: block; }
.sound[aria-pressed="true"] .sound__cross { display: none; }

/* Breathes only while the track is actually playing. */
.sound.is-playing { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgb(var(--light) / 0); }
  50% { box-shadow: 0 0 0 5px rgb(var(--light) / 0.09); }
}

/* ---------------------------------------------------------------- sections */

/* Every section shares one left edge, aligned with the time rail.
   The reading column is capped on the elements themselves, not the container. */
.section {
  position: relative;
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad-x);
}

.section--hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centred while it fits; on short viewports it falls back to top-aligned
     instead of overflowing upward under the fixed topbar. */
  justify-content: safe center;
  padding-block: clamp(6rem, 10vh, 7.5rem);
}

.section--dawn { text-align: center; }
.section--dawn .actions { justify-content: center; }
.section--dawn .display,
.section--dawn .note { margin-inline: auto; }

/* background video slots (sources arrive from Higgsfield) */
.scene {
  position: absolute;
  /* The section is capped at 76rem, but the scene is a backdrop, not content:
     it breaks out to the full window so no seam shows at the text column edge.
     A video is a replaced element -- with `width: auto` it takes its own
     intrinsic width and ignores the right edge, so the width is set outright.
     max-width undoes the global `img, video { max-width: 100% }`, which would
     otherwise clamp it straight back to the section. */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 100%);
}
.scene--inline { opacity: 0.32; }

/* ------------------------------------------------------------- typography */

.stamp {
  margin: 0 0 clamp(1.5rem, 4vh, 2.75rem);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.58);
}

.display {
  max-width: var(--measure);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display--xl { font-size: clamp(2.6rem, 5vw, 4.5rem); }

.display em {
  font-style: italic;
  font-weight: 300;
  color: rgb(var(--light-hi));
}

.lede {
  max-width: 34rem;
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.3125rem);
  line-height: 1.6;
  color: rgb(var(--ink) / 0.78);
}
.lede--tight { margin-top: 1.5rem; }

.note {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: rgb(var(--ink) / 0.56);
}

.prose { max-width: 34rem; margin-top: clamp(1.75rem, 4vh, 2.5rem); }
.prose p { margin: 0 0 1.1rem; color: rgb(var(--ink) / 0.78); }
.prose p:last-child { margin-bottom: 0; }

.prose__lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.28;
  color: rgb(var(--ink)) !important;
}

.prose--dawn { margin-inline: auto; }

.pull {
  max-width: 36rem;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  padding-left: 1.25rem;
  border-left: 1px solid rgb(var(--light) / 0.5);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
}

/* ---------------------------------------------------------------- buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 100px;
  /* <button> would otherwise fall back to the UA buttonface colour. */
  background: none;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--light {
  background: rgb(240 235 226);
  color: rgb(16 22 30);
  box-shadow: 0 0 0 0 rgb(var(--light) / 0.4), 0 14px 40px -12px rgb(var(--light) / 0.55);
}
/* the warm light that follows the cursor — the same light as underfoot */
.btn--light::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle 90px at var(--mx, 50%) var(--my, 50%), rgb(var(--light-hi) / 0.85), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn--light:hover::after { opacity: 1; }

.btn--dark {
  background: rgb(22 26 32);
  color: rgb(242 238 230);
  box-shadow: 0 14px 40px -14px rgb(22 26 32 / 0.7);
}

.btn--outline {
  border-color: rgb(var(--ink) / 0.28);
  color: rgb(var(--ink));
}
.btn--outline:hover { border-color: rgb(var(--ink) / 0.6); }

.btn--ghost {
  padding: 0.55rem 1.05rem;
  border-color: rgb(var(--ink) / 0.28);
  color: rgb(var(--ink));
  font-size: 0.8125rem;
}
.btn--ghost:hover { border-color: rgb(var(--light) / 0.7); color: rgb(var(--light-hi)); }

.btn--plain {
  padding: 0.9rem 0;
  color: rgb(var(--ink) / 0.72);
  border-bottom: 1px solid rgb(var(--ink) / 0.28);
  border-radius: 0;
}
.btn--plain:hover { color: rgb(var(--ink)); border-bottom-color: rgb(var(--light) / 0.8); }

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  gap: var(--gap);
  max-width: var(--measure);
  margin-top: clamp(2rem, 5vh, 3rem);
}
@media (min-width: 780px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding-top: 1.4rem;
  border-top: 1px solid rgb(var(--ink) / 0.16);
}
.card p { margin: 0; font-size: 0.9375rem; color: rgb(var(--ink) / 0.68); }

.card__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
}

/* ------------------------------------------------------------------ strip */

.strip {
  display: flex;
  gap: var(--gap);
  margin-top: clamp(2.25rem, 5vh, 3.25rem);
  padding-bottom: 1.25rem;
  padding-right: var(--pad-x);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--ink) / 0.25) transparent;
  /* The cut-off tile is the invitation to scroll — fade it, don't crop it. */
  mask-image: linear-gradient(to right, #000 82%, transparent 100%);
}
.strip:focus-visible,
.strip.is-ended { mask-image: none; }
.strip:focus-visible { outline: 2px solid rgb(var(--light-hi)); outline-offset: 6px; }

.tile {
  flex: 0 0 min(21rem, 80vw);
  scroll-snap-align: start;
}

.tile__media {
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.1rem;
  overflow: hidden;
  border: 1px solid rgb(var(--ink) / 0.2);
  border-radius: 2px;
  /* Stays visible under the still while it decodes, and stands in for it
     if the image never arrives. */
  background:
    radial-gradient(ellipse at 50% 118%, rgb(var(--light) / 0.28), transparent 62%),
    linear-gradient(160deg, rgb(var(--ink) / 0.13), rgb(var(--ink) / 0.04));
}

.tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
}

.tile p { margin: 0; font-size: 0.9375rem; color: rgb(var(--ink) / 0.68); }

.tile__tag {
  margin: 0 0 0.4rem !important;
  font-family: var(--font-mono);
  font-size: 0.625rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--light-hi)) !important;
}

/* Only shown while the strip actually has somewhere left to scroll. */
.hint {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgb(var(--ink) / 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hint.is-shown { opacity: 1; }

/* ------------------------------------------------------------ the program */

.track { max-width: var(--measure); margin-top: clamp(2.5rem, 6vh, 3.5rem); }

.track__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.16);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.45);
}
.track__head span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgb(var(--ink));
}

.modules { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.modules li {
  position: relative;
  margin-bottom: 1.1rem;
  padding-left: 2.5rem;
  font-size: 0.9375rem;
  color: rgb(var(--ink) / 0.68);
}
.modules li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgb(var(--light) / 0.85);
}
.modules b { font-weight: 500; color: rgb(var(--ink)); }

.honest {
  max-width: var(--measure);
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding: 1.75rem;
  border: 1px solid rgb(var(--light) / 0.28);
  border-radius: 3px;
  background: rgb(var(--light) / 0.05);
}
.honest h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
}
.honest p { margin: 0; font-size: 0.9375rem; color: rgb(var(--ink) / 0.75); }

/* ------------------------------------------------------------------- form */

.form {
  max-width: 30rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.62);
}
.field input,
.field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgb(var(--ink) / 0.22);
  border-radius: 2px;
  background: rgb(var(--ink) / 0.04);
  color: rgb(var(--ink));
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgb(var(--light) / 0.8);
}
.field select option { color: #16202c; }

.form__submit { margin-top: 0.5rem; }

.form__note {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  color: rgb(var(--ink) / 0.6);
}

.form__status {
  margin: 0.75rem 0 0;
  min-height: 1.2em;
  font-size: 0.875rem;
  color: rgb(var(--light-hi));
}

/* ------------------------------------------------------------------ plans */

.plans {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
}
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.6rem;
  border: 1px solid rgb(var(--ink) / 0.16);
  border-radius: 3px;
}

.plan--lit {
  border-color: rgb(var(--light) / 0.45);
  background: rgb(var(--light) / 0.05);
  box-shadow: 0 24px 70px -34px rgb(var(--light) / 0.6);
}

.plan__badge {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--light-hi));
}

.plan__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.plan__for {
  margin: 0 0 1.4rem;
  font-size: 0.875rem;
  color: rgb(var(--ink) / 0.72);
}

.plan__price {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
}
.plan__old {
  margin-right: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: line-through;
  color: rgb(var(--ink) / 0.5);
}

.plan__list {
  flex: 1;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.plan__list li {
  padding: 0.5rem 0 0.5rem 1.35rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.09);
  font-size: 0.875rem;
  color: rgb(var(--ink) / 0.72);
  position: relative;
}
.plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgb(var(--light) / 0.75);
}

/* Reserves its line up front so a click does not nudge the card taller. */
.plan__status {
  margin: 0.75rem 0 0;
  min-height: 1.2em;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-align: center;
  color: rgb(var(--light-hi));
}

/* Sits right after the plans, where "which one is mine?" peaks. */
.callback {
  display: grid;
  gap: var(--gap);
  align-items: start;
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgb(var(--ink) / 0.16);
  border-radius: 3px;
}
@media (min-width: 900px) { .callback { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); } }

.callback h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}
.callback p { margin: 0 0 0.9rem; font-size: 0.9375rem; color: rgb(var(--ink) / 0.72); }

.callback__alt { font-size: 0.875rem !important; color: rgb(var(--ink) / 0.58) !important; }
.callback__alt a { color: rgb(var(--light-hi)); text-decoration-color: rgb(var(--light) / 0.5); }

.form--callback { max-width: none; margin-top: 0; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--ink) / 0.62);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: rgb(var(--light));
}
.consent a { color: rgb(var(--ink) / 0.85); }

.terms {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgb(var(--ink) / 0.16);
}
@media (min-width: 780px) { .terms { grid-template-columns: 1fr 1fr; } }

.terms h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}
.terms p { margin: 0 0 0.7rem; font-size: 0.9375rem; color: rgb(var(--ink) / 0.7); }
.terms ul { margin: 0; padding-left: 1.1rem; }
.terms li { margin-bottom: 0.4rem; font-size: 0.9375rem; color: rgb(var(--ink) / 0.7); }

/* -------------------------------------------------------------------- faq */

.faq { max-width: var(--measure); margin-top: clamp(2rem, 5vh, 3rem); }

.faq details {
  border-bottom: 1px solid rgb(var(--ink) / 0.14);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  color: rgb(var(--ink) / 0.9);
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: rgb(var(--light) / 0.9);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: rgb(var(--ink)); }

.faq details p {
  margin: 0 0 1.3rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  color: rgb(var(--ink) / 0.68);
}

/* ----------------------------------------------------------------- footer */

.footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 4rem var(--pad-x) 3.5rem;
  border-top: 1px solid rgb(var(--ink) / 0.12);
  text-align: center;
}
.footer p { margin: 0 0 0.5rem; font-size: 0.875rem; color: rgb(var(--ink) / 0.7); }
.mark--foot { margin-bottom: 1rem !important; color: rgb(var(--ink)) !important; }
.footer__legal { font-size: 0.75rem !important; color: rgb(var(--ink) / 0.52) !important; }

.docs { margin: 2.25rem 0 1.75rem; }

.docs__title {
  margin: 0 0 0.75rem !important;
  font-family: var(--font-mono);
  font-size: 0.625rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.45) !important;
}

.docs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs__list a {
  font-size: 0.8125rem;
  color: rgb(var(--ink) / 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--ink) / 0.22);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.docs__list a:hover {
  color: rgb(var(--ink));
  border-bottom-color: rgb(var(--light) / 0.7);
}

/* --------------------------------------------------------------- a11y + fx */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible {
  outline: 2px solid rgb(var(--light-hi));
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Video backgrounds cost battery and data on phones — show the fog instead. */
@media (max-width: 780px) {
  .scene { display: none; }
}
