/* boleh.ai landing page: a Gaussian-splat scene with the copy set inside it.
   Layers, back to front: the far scene (.stage) → titles (.st--deep) → the near scene
   (#scene-front) → grading (.fx-layer) → readable copy and buttons (.st--ui) → nav.
   Narrow screens and reduced motion let the copy flow down the page instead (.flow). */

:root {
  /* one page margin: the logo, the nav button, the chapter index, the copy and the footer all sit on it */
  --edge: clamp(24px, 5vw, 80px);
  /* one bottom line: the chapter index and the footer sign-off both end on it */
  --foot: clamp(28px, 4.5vh, 44px);
  --ink: #f1f4f7;
  --ink-dim: rgba(231, 238, 245, 0.78);
  --ink-muted: rgba(231, 238, 245, 0.52);
  --hud: #a9e6ff;
  --hud-dim: rgba(169, 230, 255, 0.3);
  --gold: #e6c68a;
  --gold-dim: rgba(230, 198, 138, 0.38);
  --panel: rgba(6, 11, 18, 0.6);
  --line: rgba(255, 255, 255, 0.12);
  /* driven from home.js as the weekend clock moves */
  --sky-top: #1a2140;
  --sky-horizon: #f2a066;
  --tint: rgba(242, 160, 102, 0.3);
  --display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #05080d; color: var(--ink); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; font-size: 10.5px; }

/* ---------- stage + effects ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--sky-top), var(--sky-horizon) 62%, #05080d); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.is-ready #scene { opacity: 1; }
#scene-front { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.is-ready #scene-front { opacity: 1; }
.fx-layer { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.fx { position: absolute; inset: 0; }
.fx-tint { background: var(--tint); mix-blend-mode: soft-light; }
.fx-vignette { background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 50%, rgba(2, 4, 8, 0.6) 100%); }
.fx-grain {
  inset: -50%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}


/* ---------- nav + HUD ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--edge);
  transition: background 0.4s, backdrop-filter 0.4s;
}
/* progressive blur: each layer blurs more and reaches less far down, so the blur fades out
   instead of ending on a hard edge; a two-tone shade sits behind it */
.nav-blur { position: fixed; top: 0; left: 0; right: 0; height: 150px; z-index: 19; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; }
.nav.is-scrolled + .nav-blur { opacity: 1; }
.nav-blur::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3, 6, 12, 0.78) 0%, rgba(8, 14, 26, 0.42) 40%, rgba(12, 20, 36, 0.12) 72%, transparent 100%); }
.nav-blur i { position: absolute; inset: 0; }
.nav-blur i:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); -webkit-mask: linear-gradient(to bottom, #000 0 55%, transparent 100%); mask: linear-gradient(to bottom, #000 0 55%, transparent 100%); }
.nav-blur i:nth-child(2) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); -webkit-mask: linear-gradient(to bottom, #000 0 42%, transparent 82%); mask: linear-gradient(to bottom, #000 0 42%, transparent 82%); }
.nav-blur i:nth-child(3) { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); -webkit-mask: linear-gradient(to bottom, #000 0 30%, transparent 66%); mask: linear-gradient(to bottom, #000 0 30%, transparent 66%); }
.nav-blur i:nth-child(4) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); -webkit-mask: linear-gradient(to bottom, #000 0 20%, transparent 50%); mask: linear-gradient(to bottom, #000 0 20%, transparent 50%); }
.nav-blur i:nth-child(5) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); -webkit-mask: linear-gradient(to bottom, #000 0 10%, transparent 34%); mask: linear-gradient(to bottom, #000 0 10%, transparent 34%); }
.nav-brand { font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; text-decoration: none; }
.nav-brand span { color: var(--hud); }
.nav-links { display: flex; gap: 32px; list-style: none; margin-left: auto; }
.nav-links a, .nav-cta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ink-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.4); padding: 9px 16px; transition: background 0.2s, color 0.2s; }
.nav-cta:hover { background: var(--ink); color: #05080d; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-lang { background: none; cursor: pointer; border-color: rgba(255, 255, 255, 0.22); color: var(--ink-dim); }

.loader { position: fixed; z-index: 6; top: 90px; left: var(--edge); color: var(--ink-muted); transition: opacity 0.6s; }
.is-ready .loader { opacity: 0; }


/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; padding: 14px 24px; transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn-light { background: var(--ink); color: #0a0d12; }
.btn-light:hover { background: #fff; box-shadow: 0 0 24px rgba(169, 230, 255, 0.45); }
.btn-line { border: 1px solid rgba(255, 255, 255, 0.45); color: var(--ink); background: rgba(6, 10, 16, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-line:hover { border-color: var(--hud); box-shadow: 0 0 18px rgba(169, 230, 255, 0.25); }
.btn-gold { background: var(--gold); color: #17120a; }
.btn-gold:hover { background: #f0d6a2; box-shadow: 0 0 24px rgba(230, 198, 138, 0.5); }

/* ---------- chapters ---------- */
/* each chapter is only scroll length; its text is fixed to the screen and scrubbed by home.js */
main { position: relative; }
.chapter { position: relative; height: 125vh; }
.chapter--hero { height: 100vh; }
.chapter--long { height: 150vh; }
.chapter--end { height: 115vh; }

/* ---------- text in the scene ---------- */
.st {
  position: fixed; inset: 0; z-index: 2;
  display: grid; align-content: center; justify-items: start;
  padding: 120px var(--edge) 8vh;
  pointer-events: none; visibility: hidden;
}
.st.is-on { visibility: visible; }
.st--ui { z-index: 5; }
/* one layout, two layers: the title lives behind the near scene, everything else above it */
.st--deep > :not(.st-title) { visibility: hidden !important; }
.st--ui .st-title { visibility: hidden !important; }
.st--ui a, .st--ui .logo { pointer-events: auto; }

.st--center { justify-items: center; text-align: center; }
/* right-aligned layouts keep clear of the timeline rail */
.st--right, .st--body-right { padding-right: clamp(200px, 17vw, 260px); }
.st--right { justify-items: end; text-align: right; }
.st--top { align-content: start; padding-top: 17vh; }
.st--top.has-cols { align-content: stretch; grid-template-rows: auto auto 1fr; }
.st--top.has-cols .st-body { align-self: end; }
/* side layouts: title held mid-frame, supporting copy at the foot */
.st--left, .st--right { align-content: stretch; grid-template-rows: 1fr auto auto 1fr; }
.st--left .st-kicker, .st--right .st-kicker { grid-row: 2; }
.st--left .st-title, .st--right .st-title { grid-row: 3; }
.st--left .st-body, .st--right .st-body { grid-row: 4; align-self: end; }
/* split: title in the middle of the frame, where the scene can pass in front of it */
.st--split { align-content: stretch; grid-template-rows: 1fr auto auto 1fr; justify-items: center; text-align: center; }
.st--split .st-kicker { grid-row: 2; }
.st--split .st-title { grid-row: 3; }
.st--split .st-body { grid-row: 4; align-self: end; text-align: left; }
.st--body-left .st-body { justify-self: start; }
.st--body-right .st-body { justify-self: end; text-align: right; }
.st--body-bottom .st-body { justify-self: center; }

.st-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--hud); margin-bottom: 24px; text-shadow: 0 0 16px rgba(169, 230, 255, 0.45), 0 1px 12px rgba(0, 0, 0, 0.6); }
.st-kicker--gold { color: var(--gold); text-shadow: 0 0 16px rgba(230, 198, 138, 0.45), 0 1px 12px rgba(0, 0, 0, 0.6); }
.st-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--ink);
  font-size: clamp(26px, 3.4vw, 54px); line-height: 1.12; letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(169, 230, 255, 0.22), 0 2px 34px rgba(0, 0, 0, 0.35);
}
#scene-front { transition: opacity 1.6s ease, visibility 0s; }
.st-title--xl { font-size: clamp(30px, 4.6vw, 80px); line-height: 1.05; }
.st-title--xxl { font-size: clamp(36px, 6vw, 108px); line-height: 1.02; letter-spacing: 0.01em; }
.st-line { white-space: nowrap; }
.st--hero .st-title { font-size: clamp(26px, 3.7vw, 60px); line-height: 1.16; }
.st-line { display: block; }
.st-word { display: inline-block; will-change: transform, opacity, filter; }
.st--deep .st-kicker, .st--deep .st-word, .st--ui .st-body > *, .st--ui .st-col, .st--ui .logo { will-change: transform, opacity, filter; }

.st-body { margin-top: 28px; max-width: 470px; }
.st--center .st-body { margin-inline: auto; }
.st-body p { color: var(--ink-dim); font-size: 16.5px; line-height: 1.6; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.75); }
.st-body p + p { margin-top: 10px; }
.st-body strong { color: var(--ink); font-weight: 500; }
.st--hero .st-body { max-width: 600px; }
.st--hero .st-body > p { font-weight: 400; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 34px rgba(30, 14, 6, 0.75); }
.st-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.st--center .st-cta { justify-content: center; }
/* HRD Corp certification, under the hero buttons */
.st-cert { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.st-cert-logo { display: block; width: 104px; height: 30px; background-color: var(--ink); -webkit-mask: url(/img/logos/hrdcorp.png) center / contain no-repeat; mask: url(/img/logos/hrdcorp.png) center / contain no-repeat; filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.45)); }
.st-cert-text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); text-align: left; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.st-note { font-family: var(--mono); font-size: 10.5px !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted) !important; margin-top: 18px !important; }
.st-foot { font-family: var(--mono); font-size: 10.5px !important; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 26px; }
.st-foot strong { color: var(--gold); }
.st-body a:not(.btn) { color: var(--hud); text-decoration: none; }

/* ---------- supporting type ----------
   Big titles sit bare in the scene. Supporting copy is set like the credits of a film:
   no boxes, just type at the foot of the frame over a soft shade and blur (.veil), with
   hairlines between columns. Hierarchy comes from size, weight and space. */
.has-cols .st-body { max-width: none; }
.st-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1180px, 88vw); text-align: left; row-gap: 40px; }
.st-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(900px, 88vw); }
.st-col { padding: 2px 36px 4px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.st-cols > .st-col:nth-child(3n + 1), .st-cols--2 > .st-col:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
.st-cols--2 > .st-col:nth-child(2n) { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 36px; }
.st-col-kicker { font-family: var(--mono); font-size: 10px !important; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(235, 240, 246, 0.5) !important; }
.st-col h3 { margin: 14px 0 10px; font-family: var(--sans); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -0.022em; color: #fff; }
.st-body .st-col p { font-size: 15px; line-height: 1.6; color: rgba(235, 240, 246, 0.68); text-shadow: none; max-width: 34ch; }
.st-cols--dense .st-col h3 { font-size: 20px; margin-top: 10px; }
.st-cols--dense .st-col p { font-size: 14px; }
.st-col ul { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.st-col li { color: rgba(235, 240, 246, 0.72); font-size: 15px; padding-left: 22px; position: relative; }
.st-col li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: rgba(235, 240, 246, 0.5); }
.st-col .st-cta { margin-top: 22px; }
.st-tag { font-family: var(--mono); font-size: 10px !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold) !important; margin-top: 12px !important; }
.st-col--gold h3, .st-col--gold .st-col-kicker { color: var(--gold) !important; }
.st-col--gold li::before { background: var(--gold); }
.st-col--dim h3 { color: rgba(235, 240, 246, 0.42); }
.st-col--dim s { text-decoration-thickness: 1px; }
.st-body .st-col--dim p { color: rgba(235, 240, 246, 0.4); }
.st-foot { margin-top: 30px; font-family: var(--mono); font-size: 10.5px !important; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(235, 240, 246, 0.55) !important; text-shadow: none !important; }
.st-foot strong { color: var(--gold); font-weight: 500; }

/* the line under a big title: plain, larger, at the foot of the frame */
.st--ui:not(.st--hero):not(.has-cols):not(.st--wall) .st-body { max-width: 500px; text-align: left; }
.st--ui:not(.st--hero):not(.has-cols):not(.st--wall) .st-body p { font-size: 18px; line-height: 1.55; color: rgba(245, 247, 250, 0.9); text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5); }
.st--ui.st--right .st-body, .st--ui.st--body-right .st-body { text-align: right; }
.st--ui.st--center:not(.st--hero):not(.has-cols) .st-body { max-width: 660px; text-align: center; }

/* the shade behind it: a dark gradient that fades out as it rises */
.veil { position: fixed; left: 0; right: 0; bottom: 0; height: 56vh; z-index: 4; pointer-events: none; opacity: var(--veil, 0); }
/* a shade only: a live blur over the moving scene costs a full-width blur every frame */
.veil::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 5, 9, 0.9), rgba(3, 5, 9, 0.62) 34%, rgba(3, 5, 9, 0.22) 64%, rgba(3, 5, 9, 0) 92%); }

.st--ui.st--wall::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--o, 0);
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(3, 6, 10, 0.6), transparent 75%);
}

/* ---------- section timeline: a rail down the right edge ---------- */
/* sits low on the right, below the band where the headlines live */
.tl {
  position: fixed; right: var(--edge); bottom: var(--foot); z-index: 21;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px; padding: 12px 0 0 48px;
}
:where(.tl button) { all: unset; cursor: pointer; }
.tl-item { --k: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; height: 14px; }
.tl-item--first:not(:first-child) { margin-top: 12px; }
.tl-item:focus-visible .tl-label { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.tl-label {
  font-family: var(--sans); font-size: 13px; line-height: 1; letter-spacing: -0.005em; white-space: nowrap;
  color: rgba(245, 247, 250, 0.62); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateX(6px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}
/* the tick: 12px at rest, reaching 28px on the chapter you're in, following the scroll */
.tl-tick {
  display: block; height: 1px; width: calc(12px + var(--k) * 16px);
  background: rgb(245 247 250 / calc(0.32 + var(--k) * 0.6));
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.tl-item.is-current .tl-label { opacity: 1; transform: none; color: #fff; }
.tl:hover .tl-label, .tl:focus-within .tl-label { opacity: 1; transform: none; }
.tl-item:hover .tl-label { color: #fff; }
.tl-item:hover .tl-tick { background: #fff; }

/* the client wall */
.st--wall { justify-items: center; text-align: center; }
.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: min(860px, 88vw); }
.logo { height: 84px; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; transition: border-color 0.35s ease, background-color 0.35s ease; }
.logo-mark {
  display: block; width: var(--w); height: var(--h);
  background-color: var(--ink-dim);
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
  transition: background-color 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.logo-wall:hover .logo-mark { background-color: rgba(231, 238, 245, 0.3); }
.logo-wall .logo:hover { border-color: var(--hud-dim); background-color: rgba(169, 230, 255, 0.06); }
.logo-wall .logo:hover .logo-mark { background-color: #fff; transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 10px rgba(169, 230, 255, 0.6)); }

.scarcity strong { color: var(--ink); font-weight: 500; }
/* the next session: one calm, factual line beside the buttons */
.st-next { font-family: var(--mono); font-size: 10.5px !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink) !important; margin-top: 22px !important; }
.st-next .scarcity-dot { vertical-align: 1px; }
.st-cta + .st-next { margin-top: 18px !important; }
/* the trainer's clients: one quiet row instead of a wall */
.logo-strip-label { font-family: var(--mono); font-size: 10px !important; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(235, 240, 246, 0.5) !important; margin-top: 28px !important; }
.logo-strip { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 14px; max-width: 720px; }
.logo-strip .logo-mark { background-color: rgba(235, 240, 246, 0.6); }
/* the sheen: every mark paints the same strip-sized light at its own offset (set in home.js),
   so one soft band sweeps the row with the scroll and a faint glow trails the pointer */
.logo-strip { position: relative; --sx: -300px; --gx: 0px; --gy: 0px; --glow: 0; }
.js .logo-strip .logo-mark {
  background-image:
    radial-gradient(150px 110px at var(--gx) var(--gy), rgb(255 255 255 / calc(var(--glow) * 0.5)), transparent),
    linear-gradient(105deg,
      transparent calc(var(--sx) - 150px),
      rgb(214 236 255 / 0.4) calc(var(--sx) - 50px),
      rgb(255 255 255 / 0.95) var(--sx),
      rgb(214 236 255 / 0.4) calc(var(--sx) + 50px),
      transparent calc(var(--sx) + 150px));
  background-size: var(--sw, 100%) var(--sh, 100%);
  background-position: calc(var(--ox, 0px) * -1) calc(var(--oy, 0px) * -1);
  background-repeat: no-repeat;
}
/* both layers must share one layout, or the hidden copy wraps differently and shifts the title */
.st-body:has(.logo-strip), .st--ui:not(.st--hero):not(.has-cols):not(.st--wall) .st-body:has(.logo-strip) { max-width: 720px; }
.st-body:has(.logo-strip) > p:not(.logo-strip-label) { max-width: 500px; }
/* the trainer's profile: one composed column, name, lead and clients, with room to breathe.
   Set on both layers so the hidden copy keeps the same height and the name stays put. */
#record .st { align-content: center; grid-template-rows: none; }
#record .st-kicker, #record .st-title, #record .st-body { grid-row: auto; align-self: auto; }
#record .st-body { margin-top: clamp(36px, 6.5vh, 68px); max-width: 760px; }
#record .st-body p.st-lead { max-width: 46ch; font-size: 17px; line-height: 1.7; letter-spacing: -0.003em; color: rgba(235, 240, 246, 0.66); text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5); }
#record .st-body p.st-lead strong { display: block; max-width: 24ch; margin-bottom: 14px; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.35; font-weight: 400; color: #fff; letter-spacing: -0.015em; }
#record .logo-strip-label { margin-top: clamp(40px, 7vh, 76px) !important; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); max-width: 760px; }
#record .logo-strip { gap: 22px 30px; margin-top: 24px; max-width: 760px; }
.scarcity-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6ef0a0; margin-right: 8px; box-shadow: 0 0 0 0 rgba(110, 240, 160, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(110, 240, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 240, 160, 0); } }

/* the sign-off: set like the chapter index, on the same bottom line */
.footer { position: relative; z-index: 6; display: flex; justify-content: space-between; padding: 80px var(--edge) var(--foot); color: rgba(245, 247, 250, 0.5); }
.footer p { font-family: var(--sans); font-size: 13px; line-height: 14px; letter-spacing: -0.005em; }
/* the header's progressive blur, mirrored: strongest at the foot, fading out as it rises */
.footer-blur { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-blur::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 6, 12, 0.82) 0%, rgba(8, 14, 26, 0.45) 40%, rgba(12, 20, 36, 0.12) 72%, transparent 100%); }
.footer-blur i { position: absolute; inset: 0; }
.footer-blur i:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); -webkit-mask: linear-gradient(to top, #000 0 55%, transparent 100%); mask: linear-gradient(to top, #000 0 55%, transparent 100%); }
.footer-blur i:nth-child(2) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); -webkit-mask: linear-gradient(to top, #000 0 42%, transparent 82%); mask: linear-gradient(to top, #000 0 42%, transparent 82%); }
.footer-blur i:nth-child(3) { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); -webkit-mask: linear-gradient(to top, #000 0 30%, transparent 66%); mask: linear-gradient(to top, #000 0 30%, transparent 66%); }
.footer-blur i:nth-child(4) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); -webkit-mask: linear-gradient(to top, #000 0 20%, transparent 50%); mask: linear-gradient(to top, #000 0 20%, transparent 50%); }
.footer-blur i:nth-child(5) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); -webkit-mask: linear-gradient(to top, #000 0 10%, transparent 34%); mask: linear-gradient(to top, #000 0 10%, transparent 34%); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- flow layout: narrow screens, reduced motion, no JS ---------- */
.flow .chapter, html:not(.js) .chapter { height: auto; min-height: 90vh; }
.flow .st, html:not(.js) .st { position: relative; inset: auto; visibility: visible; min-height: 90vh; padding: 110px var(--edge) 60px; }
.flow .st--ui { display: none; }
.flow .st--deep > * { visibility: visible !important; }
.flow .st--split, .flow .st--top.has-cols { grid-template-rows: none; align-content: center; }
.flow .st--split > *, .flow .st--top.has-cols .st-body { grid-row: auto; align-self: auto; justify-self: center; }
.flow .st-cols, html:not(.js) .st-cols { grid-template-columns: 1fr; width: 100%; }
.flow .st--left, .flow .st--right { grid-template-rows: none; align-content: center; }
.flow .st--left > *, .flow .st--right > * { grid-row: auto; align-self: auto; }
.flow .st-col, .flow .st-cols > .st-col:nth-child(n), .flow .st-cols--2 > .st-col:nth-child(n) { border-left: 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.flow .st { background: linear-gradient(to bottom, transparent, rgba(3, 5, 9, 0.6) 22%, rgba(3, 5, 9, 0.6) 78%, transparent); }
.flow .veil { display: none; }
.flow .st-title--xxl { font-size: clamp(34px, 11vw, 64px); }
.flow .st-title--xl { font-size: clamp(30px, 9vw, 54px); }
/* titles are split into lines for the scroll animation; in the flow they must wrap */
.flow .st > * { max-width: 100%; min-width: 0; }
.flow .st-line { white-space: normal; }
.flow .st--hero .st-title { font-size: clamp(24px, 7.2vw, 44px); }
.flow .st-title { overflow-wrap: break-word; }
.flow #scene-front { display: none; }
.no-webgl .sky { background: radial-gradient(120% 80% at 50% 0%, #3a4f78, transparent 60%), linear-gradient(to bottom, #1a2140, #6d5a52 55%, #05080d); }

@media (prefers-reduced-motion: reduce) {
  .fx-grain, .scarcity-dot { animation: none; }
  .logo, .logo-mark { transition: none; }
  .logo:hover .logo-mark { transform: none; }
}

@media (max-width: 899.98px) {
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo { height: 66px; }
  :root { --edge: 28px; }
  .nav { padding: 20px var(--edge); }
  .footer { flex-wrap: wrap; gap: 12px; }

  /* the rail is for wide screens; on phones the page simply scrolls */
  .tl { display: none; }
}
