/* ============================================================
   D.A. G.O.A.T. — style.css
   Cinematic minimal system after sample.mp4: near-black stage,
   ultra-light display type, tiny letterspaced micro-labels,
   right-edge section nav, ink transition, spring cursor.
   ============================================================ */

:root {
  --bg: #060608;
  --ink: #07070a;
  --text: #f2f3f5;
  --dim: #a2a4ab;
  --faint: #84868d;
  --hairline: rgba(255, 255, 255, 0.16);
  --font: "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --micro: 500 10px/1.5 var(--font);
  --pad: clamp(20px, 4vw, 56px);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);      /* interactions */
  --ease-io-soft: cubic-bezier(0.45, 0, 0.2, 1);  /* entrances */
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a:focus-visible, button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}
.view:focus { outline: none; }

::selection { background: rgba(255, 255, 255, 0.9); color: #0a0a0c; }

/* ---------- the scene ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.scene-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  background:
    radial-gradient(120% 90% at 50% 0%, #3c4665 0%, transparent 55%),
    radial-gradient(60% 45% at 50% 42%, rgba(170, 185, 220, 0.28) 0%, transparent 60%),
    linear-gradient(#14161d 0%, #0b0c11 55%, #05050a 100%);
}
body.no-webgl #scene { display: none; }
body.no-webgl .scene-fallback { display: block; }

/* The scene is compiled on a worker (see scene-worker.js) and that can take
   many seconds on browsers without KHR_parallel_shader_compile. The gradient
   stands in meanwhile and cross-fades out on the first drawn frame, so the
   page is never held back and never opens onto an empty stage. */
body.scene-pending .scene-fallback {
  display: block;
  opacity: 1;
  transition: opacity 0.9s var(--ease-io-soft);
}

/* ---------- micro-label utility ---------- */
.topnav a, .brand-tag, .learn-btn, .edge-nav span,
.credit-strip .cs-label, .scroll-hint span, .pre-status, .honesty {
  font: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- preloader ----------
   NOTE: the structural half of this block is duplicated in the inline
   <style> in index.html <head>, so the first paint is the preloader even
   before this file applies. Change one, change both. */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  transition: opacity 0.6s var(--ease-io) 0.1s;
}
.preloader.done { opacity: 0; pointer-events: none; }

.pre-word {
  position: absolute;
  left: var(--pad);
  bottom: 64px;
  font-size: clamp(64px, 9vw, 130px);
  font-weight: 200;
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: #c8c9ce;
}

.pre-right {
  position: absolute;
  right: var(--pad);
  bottom: 68px;
  text-align: right;
}
.pre-pct {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 200;
  color: #d6d7db;
  font-variant-numeric: tabular-nums;
}
.pre-status { color: var(--dim); margin-top: 6px; }

.pre-ruler {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 26px;
  height: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.pre-ruler i {
  width: 1px;
  height: 100%;
  background: #3c3d43;
  transition: background 0.15s linear;
}
.pre-ruler i.lit { background: #d8d9dd; }

/* the incoming view starts blurred behind the ink and resolves as it opens */
.view.blur-in { filter: blur(16px); }
.view.blur-in.blur-clear {
  filter: blur(0px);
  transition: filter 1.05s var(--ease-io-soft) 0.08s;
}

/* ---------- ink transition overlay ---------- */
.ink {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  display: none;
}
.ink.active { display: block; }

/* single hairline across the very top */
.topline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 70;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent, rgba(255, 255, 255, 0.55) 16%,
    rgba(255, 255, 255, 0.55) 84%, transparent);
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 65; /* stays visible through preloader + ink, as in the reference video */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad) 0;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
  font: 500 11px/1 var(--font);
  letter-spacing: 0.18em;
  white-space: nowrap;
  opacity: 0.95;
}
.brand-mark { width: 15px; height: 15px; color: var(--text); flex: none; }

.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { white-space: nowrap; }
.brand-tag { color: rgba(160, 162, 170, 0.7); white-space: nowrap; }

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 40px);
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: nowrap;
  padding-top: 2px;
}
.topnav a {
  color: rgba(242, 243, 245, 0.78);
  white-space: nowrap;
  transition: color 0.35s var(--ease-io) 0.04s, opacity 0.35s var(--ease-io);
}
.topnav a:hover { color: #fff; transition-delay: 0s; }

/* top "LEARN MORE" — sample.mp4 outline pill; fill sweeps with lag on leave */
.learn-btn {
  position: relative;
  flex: none;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 10px 16px;
  color: var(--text);
  white-space: nowrap;
  border-radius: 1px;
  transition:
    color 0.42s var(--ease-io) 0.06s,
    border-color 0.42s var(--ease-io) 0.06s,
    transform 0.35s var(--ease-io);
}
.learn-btn .btn-label { position: relative; z-index: 1; }
.learn-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  /* leave lags slightly — css.mp4 “ghost delay” feel */
  transition: transform 0.48s var(--ease-io) 0.08s;
}
.learn-btn:hover {
  color: #0a0a0c;
  border-color: var(--text);
  transition-delay: 0s;
}
.learn-btn:hover::before {
  transform: scaleX(1);
  transition-delay: 0s;
}
.learn-btn:active { transform: scale(0.97); }

/* ---------- right-edge section nav ---------- */
.edge-nav {
  position: fixed;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}
.edge-nav::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 3px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.edge-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(160, 162, 170, 0.72);
  transition: color 0.4s var(--ease-io) 0.04s;
}
.edge-nav a span {
  white-space: nowrap;
  font: 500 9px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.92;
}
.edge-nav a i {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: background 0.4s var(--ease-io), transform 0.4s var(--ease-io);
  background: transparent;
  flex-shrink: 0;
}
.edge-nav a:hover {
  color: rgba(220, 222, 228, 0.9);
  transition-delay: 0s;
}
.edge-nav a.on { color: var(--text); transition-delay: 0s; }
.edge-nav a.on i { background: currentColor; }

/* ---------- views ---------- */
main { position: relative; z-index: 10; height: 100vh; height: 100dvh; }

.view {
  position: absolute;
  inset: 0;
  display: none;
  padding: 96px var(--pad) 56px;
}
.view.active { display: block; }

/* hero — sample.mp4: large ultra-light left stack */
/* line 1: logo sits inline, left of the "D.A. G.O.A.T." wordmark */
.dl-line1 {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
}
.hero-mark {
  flex: none;
  width: clamp(64px, 7vw, 104px);
  height: auto;
}
.display {
  margin-top: clamp(28px, 8vh, 88px);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.012em;
  max-width: 10.5em;
  color: #f4f5f7;
}
.display .dl, .statement .dl { display: block; }

/* the brand expansion under "D.A. G.O.A.T." — quiet, letterspaced */
.display .dl-sub {
  font-size: clamp(14px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: #ccced4;
}
.display .dl-line1 + .dl-sub { margin-top: 18px; }

.goal {
  position: absolute;
  left: var(--pad);
  bottom: 118px;
  max-width: 340px;
}
.goal-label {
  font: 400 12px/1 var(--font);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}
.goal-copy {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(180, 182, 190, 0.92);
  font-weight: 400;
}

.credit-strip {
  position: absolute;
  left: var(--pad);
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 40px);
}
.cs-label { color: var(--faint); }
.cs-mark {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.88;
}

/* easter egg caption — appears beside the goat once the crystal falls */
.egg-line {
  position: absolute;
  right: 16%;
  top: 46%;
  font: 300 15px/1.4 var(--font);
  letter-spacing: 0.08em;
  color: #cfd2d8;
  opacity: 0;
  transition: opacity 1.4s var(--ease-io-soft) 0.2s;
  pointer-events: none;
}
.egg-line.show { opacity: 0.92; }

.scroll-hint {
  position: absolute;
  right: var(--pad);
  bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
  color: var(--dim);
}
.scroll-hint i {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.35);
  animation: hintPulse 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hintPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* centered secondary views — sample.mp4 deep blue top-lit stage */
.view-center {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;   /* centers, but never clips the top when content overflows */
  text-align: center;
  isolation: isolate;
  overflow-y: auto;               /* content taller than the viewport can always scroll */
  overflow-x: hidden;
}
/* the stage gradient lives on an oversized layer so the blur-in never
   reveals a hard edge against the black body behind it; the bottom is
   flush because the gradient already ends on the body colour there */
.view-center::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  right: -80px;
  bottom: 0;
  z-index: -1;
  background:
    radial-gradient(120% 85% at 50% -5%, #6b7a99 0%, #3d4a66 22%, #1c2436 48%, #0c0e14 78%, #060608 100%);
}
.view-center.active { display: flex; }

.statement {
  font-size: clamp(32px, 3.9vw, 56px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.014em;
  color: #f3f4f6;
  max-width: 14em;
}

.lede {
  margin-top: 22px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(210, 212, 218, 0.88);
  font-weight: 400;
}

.detail {
  margin-top: 14px;
  max-width: 580px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
  font-weight: 400;
}

.statrow {
  list-style: none;
  margin-top: 32px;
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  justify-content: center;
}
.statrow li {
  max-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.statrow strong {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.statrow span {
  font: var(--micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- embedded whitepaper (architecture view) ----------
   The document is presented as a window onto a page, not as a page: a bounded
   plate with its own scroll, so the section never grows taller than the stage
   and wheel/swipe stepping between sections stays predictable. main.js yields
   the gesture to [data-inner-scroll] until this box reaches the edge. */
.wp-embed {
  margin-top: 26px;
  width: min(940px, 100%);
  /* the section must not scroll as well as the box, or reaching Status needs a
     second gesture. 440px is the measured height of everything else in this
     view (statement, lede, buttons, honesty line and the view's own padding). */
  height: min(calc(100vh - 440px), 520px);
  min-height: 240px;
  flex: none;            /* a flex child shrinks past its own height without this */
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: start;
  text-align: left;
  background: rgba(6, 7, 10, 0.62);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;      /* the page behind never scroll-chains */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.wp-embed::-webkit-scrollbar { width: 9px; }
.wp-embed::-webkit-scrollbar-track { background: transparent; }
.wp-embed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
.wp-embed:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); background-clip: content-box; }

/* contents rail down the left, mirroring whitepaper.html. It sticks to the top
   of the scrolling window so the section list stays put while the document moves. */
.wpe-toc {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 22px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 10, 14, 0.72);
}
.wpe-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
  font: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
/* pinned to the top-right corner of the window. It lives inside .wpe-doc so its
   containing block is the whole scrolling article: a sticky element cannot
   travel outside its own grid area, so anchoring it to a short header row would
   let it scroll away after the first screen. The strip itself ignores the
   pointer so it never steals a click from the text beneath it. */
.wpe-actions {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  margin: -26px -22px 0 0;
  padding: 12px 22px 10px 0;
  pointer-events: none;
  background: linear-gradient(rgba(10, 11, 15, 0.97) 55%, rgba(10, 11, 15, 0));
}
.wpe-open {
  pointer-events: auto;
  font: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.35s var(--ease-io);
}
.wpe-open:hover { color: #fff; }
.wpe-link {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(162, 164, 171, 0.82);
  transition: color 0.3s var(--ease-io);
}
.wpe-link:hover { color: #fff; }

/* ---- the document itself ---- */
.wpe-doc { padding: 26px 22px 40px; }
.wpe-doc h1 {
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: #f4f5f7;
  margin-bottom: 18px;
}
.wpe-doc h2 {
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.006em;
  color: #f2f3f5;
  scroll-margin-top: 76px;      /* clears the sticky contents rail */
}
.wpe-doc h3 {
  margin: 22px 0 8px;
  font: 500 10px/1.4 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  scroll-margin-top: 76px;
}
.wpe-doc p { margin-bottom: 13px; font-size: 13.5px; line-height: 1.72; color: rgba(224, 226, 232, 0.9); }
.wpe-doc ul, .wpe-doc ol { margin: 0 0 16px 19px; }
.wpe-doc li { margin-bottom: 7px; font-size: 13.5px; line-height: 1.7; color: rgba(224, 226, 232, 0.88); }
.wpe-doc strong { font-weight: 500; color: #fff; }
.wpe-doc em { font-style: italic; }
.wpe-doc a { color: #fff; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35); }
.wpe-doc a:hover { text-decoration-color: #fff; }
.wpe-doc hr { border: 0; height: 1px; background: rgba(255, 255, 255, 0.1); margin: 26px 0; }
.wpe-doc code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  color: #e6e8ee;
}

/* the project's own status vocabulary, made scannable */
.wpe-doc .tag {
  display: inline-block;
  font: 500 8.5px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 5px;
  border-radius: 2px;
  border: 1px solid currentColor;
  vertical-align: 1px;
  white-space: nowrap;
}
.wpe-doc .tag-NOW { color: #7fd8a8; }
.wpe-doc .tag-TARGET { color: #8fb4ff; }
.wpe-doc .tag-INTENT { color: #c3a6ff; }
.wpe-doc .tag-UNCLEAR { color: #ffc46b; }

/* the status matrix scrolls in its own box, never widening the window */
.wpe-doc .tablewrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overscroll-behavior-x: contain;
}
.wpe-doc table { border-collapse: collapse; width: 100%; min-width: 520px; }
.wpe-doc th, .wpe-doc td {
  text-align: left;
  padding: 9px 12px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  line-height: 1.55;
}
.wpe-doc th {
  font: 500 9px/1.5 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.wpe-doc td { color: rgba(212, 214, 220, 0.9); }
.wpe-doc tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  .wp-embed { height: min(58vh, 460px); grid-template-columns: minmax(0, 1fr); }
  .wpe-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px 14px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .wpe-label { flex-direction: row; gap: 12px; width: 100%; }
  .wpe-doc { padding: 20px 16px 32px; }
}


/* ---------- CTA buttons (sample.mp4 pair + css.mp4 delay/tap) ---------- */
.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  --btn-fill: #f4f5f7;
  --btn-ink: #0a0a0c;
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  font: 500 10px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--btn-fill);
  color: var(--btn-ink);
  border: 1px solid var(--btn-fill);
  padding: 12px 20px;
  border-radius: 2px;
  white-space: nowrap;
  /* reverse path lags on leave — delayed settle like css.mp4 ghost trail */
  transition:
    color 0.38s var(--ease-io) 0.05s,
    background 0.38s var(--ease-io) 0.05s,
    border-color 0.38s var(--ease-io) 0.05s,
    transform 0.3s var(--ease-io),
    box-shadow 0.4s var(--ease-io) 0.05s,
    letter-spacing 0.35s var(--ease-io);
}
.btn .btn-label { position: relative; z-index: 1; }

/* solid primary — white fill, dark type (sample LEARN MORE) */
.btn:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 32px rgba(0, 0, 0, 0.32);
  letter-spacing: 0.16em;
  transition-delay: 0s;
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.96);
  transition-duration: 0.12s;
  transition-delay: 0s;
}

/* ghost secondary — dark plate + hairline (sample CONTACT US) */
.btn-ghost {
  --btn-fill: rgba(6, 7, 10, 0.72);
  --btn-ink: #f2f3f5;
  background: var(--btn-fill);
  color: var(--btn-ink);
  border-color: rgba(255, 255, 255, 0.62);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.95);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 32px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.16em;
  transition-delay: 0s;
}

/* css.mp4 tap ripple — scales out then fades after a short hold delay */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.85;
  animation: btnTap 0.72s var(--ease-io-soft) forwards;
  animation-delay: 0.04s; /* deliberate start lag */
}
.btn-ghost .btn-ripple {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 72%);
}
.learn-btn .btn-ripple {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 72%);
}
@keyframes btnTap {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  12%  { opacity: 0.9; }
  55%  { opacity: 0.45; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

.honesty {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 2 * var(--pad)));
  color: rgba(132, 134, 141, 0.75);
  letter-spacing: 0.08em;
  line-height: 1.7;
  font-size: 9px;
}

/* ---------- headline letter reveal ---------- */
.dl .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease-io-soft), transform 0.6s var(--ease-io-soft), filter 0.6s var(--ease-io-soft);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}
.view.revealed .dl .ch {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* soft rise for supporting blocks; CTAs and stats stagger with delay */
.hero-mark, .goal, .credit-strip, .lede, .detail, .statrow li, .honesty {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s var(--ease-io-soft), transform 0.85s var(--ease-io-soft);
}
.view.revealed .hero-mark { transition-delay: 0.1s; }
.view.revealed .hero-mark { opacity: 1; transform: none; }
/* buttons: entrance only opacity/transform (interaction timing restored after is-settled) */
.cta-row .btn {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.85s var(--ease-io-soft),
    transform 0.85s var(--ease-io-soft);
}
.view.revealed .goal      { transition-delay: 0.55s; }
.view.revealed .credit-strip { transition-delay: 0.7s; }
.view.revealed .lede      { transition-delay: 0.35s; }
.view.revealed .detail    { transition-delay: 0.45s; }
.view.revealed .statrow li:nth-child(1) { transition-delay: 0.55s; }
.view.revealed .statrow li:nth-child(2) { transition-delay: 0.67s; }
.view.revealed .statrow li:nth-child(3) { transition-delay: 0.79s; }
/* buttons rise one after another — delayed cascade like css.mp4 */
.view.revealed .cta-row .btn:nth-child(1) { transition-delay: 0.92s; }
.view.revealed .cta-row .btn:nth-child(2) { transition-delay: 1.08s; }
.view.revealed .honesty   { transition-delay: 1.18s; }
.view.revealed .goal, .view.revealed .credit-strip, .view.revealed .lede,
.view.revealed .detail, .view.revealed .statrow li, .view.revealed .cta-row .btn,
.view.revealed .honesty {
  opacity: 1;
  transform: none;
}
.scroll-hint { opacity: 0; transition: opacity 1s ease 1.1s; }
.view.revealed .scroll-hint { opacity: 1; }

/* once entrance cascade finishes, restore hover/press lag timing */
.view.revealed.is-settled .cta-row .btn {
  transition:
    color 0.38s var(--ease-io) 0.05s,
    background 0.38s var(--ease-io) 0.05s,
    border-color 0.38s var(--ease-io) 0.05s,
    transform 0.3s var(--ease-io),
    box-shadow 0.4s var(--ease-io) 0.05s,
    letter-spacing 0.35s var(--ease-io),
    opacity 0.3s ease;
}
.view.revealed.is-settled .cta-row .btn:hover,
.view.revealed.is-settled .cta-row .btn:active {
  transition-delay: 0s;
}

/* ---------- custom spring cursor ---------- */
body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; }
.cur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-200px, -200px, 0);
  transition: opacity 0.14s ease;
  will-change: transform, opacity;
}
.cur-arrow svg { display: block; overflow: visible; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45)); }
.cur-label {
  background: #f1f2f4;
  color: #0a0a0c;
  font: 600 10.5px/1.1 var(--font);
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transform-origin: 0% 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ---------- reduced motion ---------- */
/* honoured unless ?motion=full stamped .force-motion on <body> */
@media (prefers-reduced-motion: reduce) {
  body:not(.force-motion) .dl .ch,
  body:not(.force-motion) .hero-mark,
  body:not(.force-motion) .goal,
  body:not(.force-motion) .credit-strip,
  body:not(.force-motion) .lede,
  body:not(.force-motion) .detail,
  body:not(.force-motion) .statrow li,
  body:not(.force-motion) .cta-row .btn,
  body:not(.force-motion) .honesty,
  body:not(.force-motion) .scroll-hint,
  body:not(.force-motion) .view.blur-in {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  body:not(.force-motion) .scroll-hint i { animation: none; }
  body:not(.force-motion) .preloader { transition: none; }
  body:not(.force-motion) .btn-ripple { animation: none; display: none; }
  body:not(.force-motion) .learn-btn::before { transition: none; }
}

/* ---------- responsive ---------- */
/* Nothing is dropped until it genuinely cannot fit. Measured intrinsic widths
   (Inter loaded): six labels 574px + 5x10px gaps, brand 243px with the tagline
   and 168px without, button 81px, topbar gaps 48px, padding 2 x 4vw. Solving
   for the viewport gives 1083px with the tagline and 1002px without, so the
   thresholds below sit just above each. RE-DERIVE WHEN A LABEL CHANGES:
   adding ARCHITECTURE (06) alone cost ~145px of headroom. */
@media (max-width: 1100px) {
  .brand-tag { display: none; }
}
@media (max-width: 1020px) {
  .tn-thin { display: none; }
}
@media (max-height: 640px) {
  .view { overflow-y: auto; }
  .view-center { overflow-y: auto; justify-content: flex-start; padding-top: 84px; }
  .dl-line1 { gap: 12px; }
  .hero-mark { width: 52px; }
  .display { margin-top: 0; font-size: clamp(24px, 4vw, 40px); }
  .goal { position: static; margin-top: 20px; max-width: 320px; }
  .goal-copy { font-size: 11.5px; }
  .credit-strip { display: none; }
  .honesty { display: none; }
  .statrow { margin-top: 20px; }
  .cta-row { margin-top: 22px; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .edge-nav { right: 8px; gap: 2px; }
  .edge-nav span { display: none; }
  .edge-nav a { padding: 11px 10px; }  /* >=24px touch target around the 8px diamond */
  .edge-nav::before { display: none; }
  .dl-line1 { gap: 12px; }
  .hero-mark { width: 60px; }
  .display { margin-top: 6vh; }
  .goal { bottom: 150px; max-width: 300px; }
  .credit-strip { bottom: 84px; flex-wrap: wrap; gap: 14px; }
  .scroll-hint { display: none; }
  .statrow { flex-direction: column; gap: 20px; align-items: center; }
  .statrow li { max-width: 260px; }
  .honesty { position: static; transform: none; width: auto; margin-top: 28px; }
  .view-center { padding-top: 80px; overflow-y: auto; justify-content: flex-start; }
}

