/* =====================================================================
   THE TIMEWARP RIBBON — David van de Velde legacy experience
   A "web 9.0" diagonal time-travel timeline.
   Design: cosmic crystal + Dutch-master gold, palette warms in the past
   and cools into the future. Built for beauty, simplicity, and SEO.
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
  /* journey progress 0 (past/warm) -> 1 (future/cool); JS updates --t */
  --t: 0;

  /* Warm heritage palette (the past) */
  --warm-1: #f6c667;      /* gold leaf */
  --warm-2: #c8892f;      /* amber */
  --warm-3: #6a2c12;      /* oil-painting umber */

  /* Cool future palette */
  --cool-1: #7af7ff;      /* crystal cyan */
  --cool-2: #6d8bff;      /* electric blue */
  --cool-3: #b06bff;      /* violet plasma */

  /* Blended accent (interpolated in JS via --accent) */
  --accent: #f6c667;
  --accent-soft: rgba(246, 198, 103, 0.16);

  --bg-0: #05060c;        /* deep space */
  --bg-1: #0a0d1a;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-brd: rgba(255, 255, 255, 0.14);
  --ink: #eef2ff;
  --ink-soft: #aab2cc;
  --ink-faint: #6b7391;

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;

  --maxw: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--accent); color: #05060c; }

/* --------------------- Cosmic background layers -------------------- */
#warp-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: -20% -20% -20% -20%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  background:
    radial-gradient(45% 55% at 18% 78%,
      color-mix(in oklab, var(--warm-2) 40%, transparent), transparent 70%),
    radial-gradient(45% 55% at 82% 22%,
      color-mix(in oklab, var(--cool-2) 42%, transparent), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, rgba(8, 10, 22, 0.2), var(--bg-0) 78%);
  transition: opacity 0.6s var(--ease);
  filter: saturate(1.05);
}

/* Diagonal warp guide-line: the "spine" of the timeline */
.warp-guide {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(58deg, transparent 49.85%,
      color-mix(in oklab, var(--accent) 55%, transparent) 50%,
      transparent 50.15%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%);
}

/* ------------------------------ Chrome ---------------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
  mix-blend-mode: normal;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 12px;
}
.brand .mono {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.topbar nav {
  display: flex; gap: 22px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-soft);
}
.topbar nav a { text-decoration: none; opacity: 0.8; transition: opacity .2s, color .2s; }
.topbar nav a:hover { opacity: 1; color: var(--accent); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 24px;
}
.hero-inner { max-width: 900px; }
.eyebrow {
  font-size: 12px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #fff, #c9d2f2 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(180, 200, 255, 0.15);
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 30px);
  color: var(--ink-soft);
  margin-top: 18px;
}
.hero .lede {
  max-width: 620px; margin: 26px auto 0;
  color: var(--ink-soft); font-size: 16px;
}
.enter {
  margin-top: 44px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  text-decoration: none;
}
.enter:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-soft);
}
.enter .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity:.4; transform: scale(1.6);} }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: drop 2s infinite;
}
@keyframes drop { 0% { opacity: 0; transform: scaleY(0); transform-origin: top;} 40%{opacity:1;} 100% { opacity: 0; transform: scaleY(1); transform-origin: top;} }

/* ============================ THE WARP =========================== */
/* The scrollytelling stage: a tall scroll region drives a fixed 3D stage */
.warp {
  position: relative;
  z-index: 5;
}
.warp-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  overflow: hidden;
}
.ribbon {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* Each milestone card — a crystal glass panel */
.node {
  position: absolute;
  top: 50%; left: 50%;
  width: min(460px, 82vw);
  margin-left: calc(min(460px, 82vw) / -2);
  margin-top: -230px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.card {
  position: relative;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
/* prismatic edge */
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 80%, transparent),
    transparent 40%, transparent 60%,
    color-mix(in oklab, var(--cool-3) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
.card .media {
  position: relative;
  height: 210px;
  background: #0c1020;
  overflow: hidden;
}
.card .media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
  transition: transform 0.8s var(--ease);
}
.card:hover .media img { transform: scale(1.06); }
.card .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,8,16,0.85));
}
.card .media .noimg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 100% at 20% 10%, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(58deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px),
    #0b0f1f;
  color: var(--accent);
  font-family: var(--serif); font-size: 60px; opacity: .9;
}
.card .yr {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--sans); font-weight: 700;
  font-size: 13px; letter-spacing: 2px;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(6,8,16,0.55); backdrop-filter: blur(6px);
  border: 1px solid var(--glass-brd);
  color: var(--accent);
}
.card .cat {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 10px; border-radius: 100px;
  background: rgba(6,8,16,0.4); border: 1px solid var(--glass-brd);
}
.card .body { padding: 20px 22px 22px; }
.card .body h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 26px; line-height: 1.1; margin-bottom: 10px;
}
.card .body p { color: var(--ink-soft); font-size: 14.5px; }
.card .more {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); background: none; border: none; cursor: pointer;
  padding: 0;
}
.card .more::after { content: "\2192"; transition: transform .25s; }
.card:hover .more::after { transform: translateX(4px); }
.card .veritag {
  position: absolute; bottom: 14px; right: 16px;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 5px;
}
.card .veritag i { width:6px; height:6px; border-radius:50%; background: #38d39f; display:inline-block; box-shadow:0 0 8px #38d39f;}
.card .veritag.low i { background:#e6a23c; box-shadow:0 0 8px #e6a23c; }

/* ------------------------------ HUD ------------------------------- */
/* Only visible while the timeline is on screen (body.warp-live via JS) */
.hud {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
body.warp-live .hud {
  opacity: 1;
  visibility: visible;
}
.hud-year {
  left: clamp(18px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(64px, 12vw, 190px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
  letter-spacing: -2px;
}
body.warp-live .hud-year { opacity: 0.85; }
.hud-year .live {
  display: block;
  -webkit-text-stroke: 0;
  background: linear-gradient(180deg, #fff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(64px, 12vw, 190px);
}
.hud-rail {
  right: clamp(16px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  height: 52vh;
  width: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  pointer-events: auto;
}
.hud-rail .fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(var(--accent), var(--cool-3));
  border-radius: 4px;
  box-shadow: 0 0 16px var(--accent);
}
.hud-rail .tick {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-0); border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer; transition: transform .2s, background .2s, border-color .2s;
}
.hud-rail .tick:hover { transform: translate(-50%,-50%) scale(1.5); border-color: var(--accent); }
.hud-rail .tick.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hud-rail .tick .lbl {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 10px; letter-spacing: 1px; color: var(--ink-soft);
  opacity: 0; transition: opacity .2s; text-transform: uppercase;
}
.hud-rail .tick:hover .lbl, .hud-rail .tick.active .lbl { opacity: 1; }

.hud-legend {
  left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint);
}
.hud-legend span { display: flex; align-items: center; gap: 7px; }
.hud-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* --------------------------- Detail modal ------------------------- */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(3,4,10,0.7);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.sheet-scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 61;
  top: 50%; left: 50%;
  width: min(760px, 92vw);
  max-height: 86svh; overflow-y: auto;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(18,22,40,0.96), rgba(9,11,22,0.98));
  border: 1px solid var(--glass-brd);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.sheet.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.sheet .hero-img { width: 100%; height: 280px; object-fit: cover; border-radius: 22px 22px 0 0; }
.sheet .sheet-body { padding: 30px clamp(22px, 4vw, 44px) 40px; }
.sheet .sheet-yr { color: var(--accent); font-weight: 700; letter-spacing: 3px; font-size: 13px; }
.sheet h2 { font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); line-height: 1.05; margin: 10px 0 18px; }
.sheet p.lead { font-size: 17px; color: var(--ink); }
.sheet .src { margin-top: 26px; }
.sheet .src h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.sheet .src a {
  display: block; padding: 12px 16px; margin-bottom: 8px;
  border: 1px solid var(--glass-brd); border-radius: 12px;
  color: var(--ink-soft); text-decoration: none; font-size: 13px;
  transition: border-color .2s, color .2s, transform .2s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sheet .src a:hover { border-color: var(--accent); color: var(--ink); transform: translateX(4px); }
.sheet-close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(6,8,16,0.6); border: 1px solid var(--glass-brd);
  color: #fff; font-size: 18px; cursor: pointer; z-index: 2;
  display: grid; place-items: center;
}
.sheet-close:hover { border-color: var(--accent); }

/* ---------------------- Static content sections ------------------- */
.section { position: relative; z-index: 10; max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 10vw, 130px) clamp(20px, 5vw, 48px); }
.section h2.title {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 58px); font-weight: 600;
  margin-bottom: 12px;
}
.section .sub { color: var(--ink-soft); max-width: 620px; margin-bottom: 44px; }

.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.press-card {
  display: block; text-decoration: none;
  padding: 24px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-brd);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.press-card:hover { transform: translateY(-4px); border-color: var(--accent); background: rgba(255,255,255,0.06); }
.press-card .pub { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.press-card h3 { font-family: var(--serif); font-size: 21px; margin: 10px 0; line-height: 1.15; }
.press-card p { font-size: 13.5px; color: var(--ink-soft); }
.press-card .date { font-size: 11px; color: var(--ink-faint); margin-top: 14px; display: block; }

.quotes { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.quote {
  padding: 32px; border-radius: 18px; border: 1px solid var(--glass-brd);
  background: linear-gradient(160deg, var(--accent-soft), transparent);
}
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }

.faq details {
  border-bottom: 1px solid var(--glass-brd); padding: 22px 0;
}
.faq summary { font-family: var(--serif); font-size: 22px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 26px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-soft); margin-top: 14px; max-width: 760px; }

footer {
  position: relative; z-index: 10;
  text-align: center; padding: 80px 24px 60px;
  border-top: 1px solid var(--glass-brd);
}
footer .legacy { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 4vw, 38px); max-width: 800px; margin: 0 auto 24px; }
footer .fine { color: var(--ink-faint); font-size: 12px; }
footer .fine a { color: var(--ink-soft); }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 780px) {
  .topbar nav { display: none; }
  .hud-year { display: none; }
  .node { width: 88vw; margin-left: -44vw; }
}

/* -------- No-JS / crawler fallback: readable vertical timeline ----- */
.no-js .warp-stage { position: static; height: auto; overflow: visible; perspective: none; }
.no-js .ribbon { position: static; transform: none !important; }
.no-js .node {
  position: static; width: min(680px, 92vw); margin: 0 auto 40px; top: auto; left: auto;
  transform: none !important; opacity: 1 !important;
}
.no-js .hud, .no-js #warp-canvas, .no-js .scroll-hint { display: none; }
.no-js .warp { padding: 40px 0; }

/* --------- hero parallax drift (driven by JS --px/--py) --------- */
.aurora { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.warp-guide { transform: translate3d(calc(var(--px, 0px) * -0.6), calc(var(--py, 0px) * -0.6), 0); }

/* ----------------------- cinematic intro ------------------------ */
#intro {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(60% 60% at 50% 45%, #0a0d1a, #05060c 80%);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
#intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-mark { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: clamp(48px, 10vw, 96px); font-weight: 600; color: #fff; }
.intro-mark span { opacity: 0; animation: introIn 0.9s var(--ease) forwards; }
.intro-mark span:last-child { animation-delay: 0.28s; }
.intro-mark i { width: 40px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: center; animation: introLine 0.8s var(--ease) 0.18s forwards; box-shadow: 0 0 12px var(--accent); }
.intro-sub { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--ink-faint); opacity: 0; animation: introIn 0.8s ease 0.5s forwards; }
@keyframes introIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes introLine { to { transform: scaleX(1); } }

/* ------------------------ draft banner -------------------------- */
#draft-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: none; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 18px; font-size: 12.5px;
  background: linear-gradient(90deg, var(--warm-2), var(--cool-2));
  color: #05060c; font-weight: 500;
}
#draft-banner.show { display: flex; }
#draft-banner button { border: 1px solid rgba(0,0,0,0.35); background: rgba(0,0,0,0.12); color: #05060c; padding: 5px 12px; border-radius: 100px; font-size: 11px; cursor: pointer; font-weight: 600; }
#draft-banner button:hover { background: rgba(0,0,0,0.25); }
.js #draft-banner.show ~ .topbar { top: 40px; }

/* --------------------- gallery / archive ------------------------ */
#gallery.empty { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.g-item { margin: 0; cursor: pointer; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-brd); background: var(--glass); transition: transform .3s var(--ease), border-color .3s; }
.g-item:hover, .g-item:focus-visible { transform: translateY(-4px); border-color: var(--accent); outline: none; }
.g-media { aspect-ratio: 4 / 3; background: #0b0f1f; overflow: hidden; }
.g-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.g-item:hover .g-media img { transform: scale(1.06); }
.g-doc { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px;
  background: radial-gradient(120% 100% at 30% 10%, var(--accent-soft), transparent 60%), #0b0f1f; }
.g-item figcaption { padding: 12px 14px; font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 3px; }
.g-date { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); }

/* ------------------------- lightbox ----------------------------- */
#lightbox { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 4vw;
  background: rgba(3,4,10,0.86); backdrop-filter: blur(10px); }
#lightbox.open { display: grid; }
.lb-inner { position: relative; max-width: 92vw; max-height: 90vh; text-align: center; }
.lb-inner img { max-width: 92vw; max-height: 74vh; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
.lb-doc { font-size: 120px; }
.lb-cap { margin-top: 16px; color: var(--ink-soft); font-size: 14px; max-width: 680px; margin-inline: auto; }
.lb-cap strong { color: #fff; font-family: var(--serif); font-size: 20px; }
.lb-cap a { color: var(--accent); }
.lb-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(6,8,16,0.8); border: 1px solid var(--glass-brd); color: #fff; font-size: 18px; cursor: pointer; }
.lb-close:hover { border-color: var(--accent); }

/* --------- pillars (legacy stats) --------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 40px; }
.pillars > div { padding: 26px; border-radius: 16px; border: 1px solid var(--glass-brd); background: linear-gradient(160deg, var(--accent-soft), transparent); text-align: center; }
.pillars b { display: block; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); color: #fff; }
.pillars span { font-size: 12px; letter-spacing: 1px; color: var(--ink-soft); text-transform: uppercase; }

/* --------------------- scroll reveal ---------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------- easter egg: the white button --------- */
#white-button {
  display: inline-block; vertical-align: middle;
  width: 12px; height: 12px; margin-left: 10px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.5);
  background: radial-gradient(circle at 35% 30%, #ffffff, #cfd6e8 70%);
  cursor: pointer; padding: 0;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.35);
  transition: transform .25s var(--ease), box-shadow .4s;
}
#white-button:hover { transform: scale(1.5); box-shadow: 0 0 14px 2px rgba(255,255,255,0.35); }
.wb-secret {
  background: linear-gradient(160deg, rgba(18,22,40,0.97), rgba(9,11,22,0.99));
  border: 1px solid var(--glass-brd); border-radius: 20px;
  padding: 44px clamp(26px, 5vw, 60px); max-width: 520px; margin: 0 auto;
  text-align: center; box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}
.wb-secret .wb-dot {
  display: block; width: 34px; height: 34px; margin: 0 auto 20px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.6);
  background: radial-gradient(circle at 35% 30%, #ffffff, #cfd6e8 70%);
  box-shadow: 0 0 24px rgba(255,255,255,0.35);
  animation: pulse 2.4s infinite;
}
.wb-secret h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 12px; color: #fff; }
.wb-secret p { color: var(--ink-soft); font-size: 15px; }
.wb-secret .wb-soon {
  margin-top: 18px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
}

/* --------- credit list --------- */
.credit-list { list-style: none; margin: 22px auto 0; max-width: 760px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.credit-list li { font-size: 10.5px; color: var(--ink-faint); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter .dot, .scroll-hint::after, .intro-mark span, .intro-mark i, .intro-sub { animation: none; }
  .reveal { opacity: 1; transform: none; }
  #intro { display: none; }
  .intro-mark span, .intro-sub { opacity: 1; }
}
