/* =========================================================
   LEPERX / Founder & Story — the chrome is shared with the
   partners wing (command-center HUD), the chapters are new.
   ========================================================= */
:root {
  --obsidian: #050608;
  --ink: #F1F5FA;
  --muted: #AEB8C6;
  --accent: #4E9FD6;
  --accent-2: #7A6CF0;
  --accent-3: #36E0D0;
  --line: rgba(140, 170, 210, 0.18);
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ts: 0 2px 24px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.65);
  --hd-h: 88px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd-h); }
body {
  background: var(--obsidian); color: var(--ink); font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100%;
}
body.lens-on, body.lens-on a, body.lens-on button { cursor: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--obsidian); }
:focus-visible { outline: 2px solid #6db4e6; outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes drift { to { transform: translate3d(3%, -3%, 0) rotate(8deg) scale(1.08); } }

/* ---------- atmosphere ---------- */
/* the moving starfield canvas: behind all content, above the faint colour wash below it */
#webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
/* the old flat wash stays as a subtle colour bloom and the WebGL-off fallback, dimmed so the stars lead */
.iri { position: fixed; inset: -20%; z-index: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: screen;
  background:
    radial-gradient(40% 40% at 28% 30%, rgba(78, 159, 214, 0.32), transparent 60%),
    radial-gradient(45% 45% at 74% 58%, rgba(122, 108, 240, 0.26), transparent 60%),
    radial-gradient(35% 35% at 55% 82%, rgba(54, 224, 208, 0.16), transparent 60%);
  filter: blur(26px); animation: drift 28s ease-in-out infinite alternate; }
.grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.6) 100%); }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 90; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); box-shadow: 0 0 12px rgba(78, 159, 214, 0.6); }

/* airlock: same lens open/close as the command center */
.airlock { position: fixed; inset: 0; z-index: 94; pointer-events: none; background: #05070b; clip-path: circle(0% at 50% 50%); }
.airlock.is-closing { transition: clip-path .42s cubic-bezier(.7, 0, .3, 1); clip-path: circle(75% at 50% 50%); }
.airlock--in { clip-path: circle(75% at 50% 50%); animation: airlockOpen .62s cubic-bezier(.3, .6, .2, 1) .08s forwards; }
@keyframes airlockOpen { to { clip-path: circle(0% at 50% 50%); } }

/* ---------- lens cursor + trail (signature) ---------- */
.lens { position: fixed; top: 0; left: 0; z-index: 9999; width: 56px; height: 56px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  backdrop-filter: blur(0.4px) saturate(1.4) brightness(1.04); -webkit-backdrop-filter: blur(0.4px) saturate(1.4) brightness(1.04);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.1), 0 0 22px rgba(78, 159, 214, 0.16);
  transition: width .5s var(--ease), height .5s var(--ease); }
.lens__rim { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(190, 215, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(122, 108, 240, 0.22); }
.lens__zoom { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; opacity: 0; transition: opacity .4s var(--ease);
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; color: #dff0ff; }
.lens__zoom::after { content: "focus"; }
.lens.is-hover { width: 88px; height: 88px; }
.lens.is-press { width: 38px; height: 38px; }
.lens.is-zoom { width: 132px; height: 132px; box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.16), 0 0 40px rgba(78, 159, 214, 0.4); }
.lens.is-zoom .lens__zoom { opacity: 1; }
#trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
@media (hover: none), (pointer: coarse) { .lens, #trail { display: none; } }

/* ---------- shared type ---------- */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; text-shadow: var(--ts); }
.h-display { font-family: var(--font-display); font-weight: 700; line-height: 1.0; letter-spacing: -0.01em; color: #fff; text-shadow: var(--ts); font-size: clamp(2rem, 4.6vw, 3.5rem); }
.lead { margin-top: 1.4rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.65; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); max-width: 60ch; }

/* ---------- command buttons (identical to the command center home) ---------- */
.cmd-btn { position: relative; display: inline-flex; align-items: center; gap: .75rem; padding: 1.05rem 2.1rem; border-radius: 100px;
  font-family: var(--font-body); font-weight: 600; letter-spacing: .015em; font-size: 1rem; color: #fff; isolation: isolate; overflow: hidden;
  border: 1px solid rgba(190,215,255,0.42);
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
  box-shadow: 0 22px 50px -20px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.cmd-btn[data-magnetic], .hd__cta[data-magnetic] { transition: border-color .5s var(--ease), box-shadow .5s var(--ease); }
.cmd-btn__label { position: relative; z-index: 2; }
.cmd-btn__sweep { position: absolute; inset: 0; z-index: 1; opacity: 0; transform: translateX(-65%); pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(210,232,255,0.20) 45%, rgba(185,210,255,0.26) 55%, transparent);
  transition: opacity .4s var(--ease), transform .9s var(--ease); }
.cmd-btn:hover .cmd-btn__sweep { opacity: 1; transform: translateX(65%); }
.cmd-btn:hover { transform: translateY(-3px); border-color: rgba(205,225,255,0.8);
  box-shadow: 0 30px 64px -18px rgba(0,0,0,0.92), 0 0 32px rgba(78,159,214,0.28), inset 0 1px 0 rgba(255,255,255,0.26); }
.cmd-btn__tag { position: relative; z-index: 2; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; padding: .3em .65em; border-radius: 100px;
  background: rgba(78,159,214,0.22); color: #dff0ff; text-shadow: none; }
/* primary = the one action: obsidian monolith with a beacon light orbiting the rim */
@property --beacon { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.cmd-btn--primary { font-size: clamp(1.04rem, 1.45vw, 1.2rem); padding: 1.25rem 2.7rem; border: none;
  background: none; color: var(--ink);
  box-shadow: 0 26px 58px -18px rgba(0,0,0,0.92), 0 0 34px rgba(78,159,214,0.22); }
.cmd-btn--primary::before { content: ""; position: absolute; inset: 0; border-radius: 100px; z-index: 0; pointer-events: none;
  background:
    conic-gradient(from var(--beacon), transparent 0 62%, rgba(120,190,250,0.9) 74%, rgba(215,240,255,1) 78%, rgba(120,190,250,0.9) 82%, transparent 94%),
    linear-gradient(120deg, rgba(210,235,255,0.5), rgba(78,159,214,0.18) 45%, rgba(78,159,214,0.12) 60%, rgba(210,235,255,0.4));
  animation: beacon-orbit 4.5s linear infinite; }
.cmd-btn--primary::after { content: ""; position: absolute; inset: 1px; border-radius: 100px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 150% at 50% 118%, rgba(78,159,214,0.55), rgba(78,159,214,0.14) 55%, transparent 78%),
    linear-gradient(170deg, rgba(24,44,66,0.97), rgba(10,20,32,0.99));
  box-shadow: inset 0 1px 0 rgba(160,205,250,0.22), inset 0 -8px 24px rgba(78,159,214,0.30); }
.cmd-btn--primary:hover { box-shadow: 0 34px 74px -16px rgba(0,0,0,0.95), 0 0 56px rgba(78,159,214,0.45); }
.cmd-btn--primary:hover::before { animation-duration: 1.4s; }
.cmd-btn--primary .cmd-btn__tag { background: rgba(78,159,214,0.16); color: #cfe8ff; border: 1px solid rgba(78,159,214,0.35); }
.cmd-btn--primary .cmd-btn__sweep { background: linear-gradient(100deg, transparent, rgba(180,220,255,0.14) 45%, rgba(150,200,255,0.18) 55%, transparent); }
@keyframes beacon-orbit { to { --beacon: 360deg; } }
.cmd-btn--ghost .navtrigger__ring { position: relative; z-index: 2; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(120,170,230,0.5); border-top-color: var(--accent); animation: spin 4.5s linear infinite; }
.cmd-btn--ghost:hover .navtrigger__ring { animation-duration: 1.4s; border-top-color: #fff; }

/* ---------- HUD frame ---------- */
.hudframe { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.hud__bracket { position: fixed; width: 26px; height: 26px; border: 1px solid rgba(140, 175, 220, 0.45); }
.hud__bracket--tl { top: 26px; left: 26px; border-right: 0; border-bottom: 0; }
.hud__bracket--tr { top: 26px; right: 26px; border-left: 0; border-bottom: 0; }
.hud__bracket--bl { bottom: 26px; left: 26px; border-right: 0; border-top: 0; }
.hud__bracket--br { bottom: 26px; right: 26px; border-left: 0; border-top: 0; }
.hud__bot { position: fixed; left: 0; right: 0; bottom: 2.2rem; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 clamp(2.4rem, 6vw, 4rem); }
.hud__id { display: flex; flex-direction: row; align-items: center; gap: 1.1rem; }
.hud__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.32em; padding: .15em .4em .15em 0; color: #fff; text-shadow: var(--ts); transition: color .4s, text-shadow .4s; }
.hud__brand:hover { color: var(--accent); text-shadow: 0 0 18px rgba(78, 159, 214, 0.6), var(--ts); }
.hud__status, .hud__coord, .hud__sig { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; color: var(--muted); text-shadow: var(--ts); display: flex; align-items: center; gap: .5rem; }
.hud__status { border-left: 1px solid rgba(140, 175, 220, 0.28); padding-left: 1.1rem; white-space: nowrap; }
.hud__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); animation: pulse 2.4s infinite; }
.hud__nav { position: relative; z-index: 84; pointer-events: auto; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .7rem; padding: .68rem 1.3rem; border-radius: 100px;
  border: 1px solid rgba(160, 190, 225, 0.4); background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #d4dde9; text-shadow: var(--ts);
  transition: color .5s, border-color .5s, box-shadow .5s; }
.hud__nav-icon { position: relative; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--accent); flex: 0 0 auto; }
.hud__nav-icon::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: inset .4s var(--ease); }
.hud__nav-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed rgba(120, 170, 230, 0.55); animation: spin 9s linear infinite; }
.hud__nav:hover { color: #fff; border-color: rgba(200, 222, 255, 0.7); box-shadow: 0 18px 40px -16px rgba(78, 159, 214, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.hud__nav.is-open { color: #fff; border-color: rgba(120, 180, 235, 0.8); }
.hud__nav.is-open .hud__nav-icon::before { inset: 6px; }
@media (max-width: 860px) { .hud__status, .hud__sig, .hud__coord, .hud__bracket { display: none; } }
@media (max-width: 600px) {
  .hud__brand { font-size: .92rem; letter-spacing: .2em; }
  .hud__nav { padding: .58rem 1rem; font-size: .62rem; letter-spacing: .14em; gap: .5rem; }
}

/* ---------- header ---------- */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--hd-h); pointer-events: none; }
.hd__grad { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.5) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 100%); mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 100%); }
.hd__inner { position: relative; pointer-events: auto; height: var(--hd-h); max-width: 1320px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; }
.hd__actions { display: flex; align-items: center; gap: .7rem; z-index: 82; }
.hd__cta { display: inline-flex; align-items: center; font-family: var(--font-body); font-weight: 600; font-size: .86rem; color: #fff; padding: .55rem 1.1rem; border-radius: 100px;
  border: 1px solid rgba(120, 180, 235, 0.5); background: linear-gradient(160deg, rgba(78, 159, 214, 0.26), rgba(78, 159, 214, 0.08)); box-shadow: 0 10px 30px -16px rgba(78, 159, 214, 0.6); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.hd__cta:hover { transform: translateY(-2px); border-color: rgba(190, 220, 255, 0.85); box-shadow: 0 16px 38px -14px rgba(78, 159, 214, 0.75); }

/* ---------- fullscreen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 79; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.menu.is-open { opacity: 1; pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: rgba(5, 6, 8, 0.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.menu__list { position: relative; height: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 7rem clamp(1.4rem, 6vw, 5rem) 3rem; overflow-y: auto; }
.menu__link { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateY(18px); }
.menu.is-open .menu__link { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu__n { font-family: var(--font-mono); font-size: .74rem; color: rgba(255, 255, 255, 0.25); width: 1.7rem; }
.menu__t { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; color: rgba(255, 255, 255, 0.55); text-transform: lowercase; transition: color .25s, transform .35s var(--ease); }
.menu__link:hover .menu__t { color: #fff; transform: translateX(8px); }
.menu__dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.menu__foot { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.menu__foot a:hover { color: #fff; }
.menu__sig { color: rgba(174, 184, 198, 0.6); letter-spacing: .14em; }

/* ---------- reveal base (only when JS is on) ---------- */
body.js .reveal { opacity: 0; transform: translateY(26px); }
body.js .reveal.is-shown { opacity: 1; transform: none; }

/* hero entrance: transform-only so the headline paints as plain DOM */
.hero-rise { animation: heroRise .85s var(--ease) both; }
.hero__in > .hero-rise:nth-child(1) { animation-delay: .02s; }
.hero__in > .hero-rise:nth-child(2) { animation-delay: .10s; }
.hero__in > .hero-rise:nth-child(3) { animation-delay: .18s; }
@keyframes heroRise { from { transform: translateY(22px); } to { transform: none; } }

/* ---------- layout ---------- */
.band { position: relative; z-index: 3; padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 5vw, 3rem); }
.wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 3; min-height: 92svh; display: grid; place-items: center; padding: var(--hd-h) clamp(1.2rem, 5vw, 3rem) 4rem; overflow: hidden; }
/* hero background is now just the moving starfield + faint iri wash, like the home page (no colour blobs) */
.hero__in { position: relative; max-width: 860px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
.hero__em { color: var(--accent); }
.hero__lead { margin-left: auto; margin-right: auto; max-width: 640px; color: #d7dee8; }
.hero__scrollwrap { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.hero__scrolltxt { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(174, 184, 198, 0.75); text-shadow: var(--ts); animation: pulse 3.2s infinite; }
.hero__scroll { width: 22px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 14px; display: grid; place-items: start center; padding-top: 6px; }
.hero__scroll span { width: 3px; height: 7px; border-radius: 3px; background: var(--accent); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* ---------- chapter 1: the name deck ---------- */
.name-deck { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.frag { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 1.9rem 1.7rem 1.6rem; border-radius: 18px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease), background .5s var(--ease); }
.frag:hover { border-color: rgba(205, 225, 255, 0.5); transform: translateY(-4px); box-shadow: 0 30px 70px -34px rgba(78, 159, 214, 0.7); }
.frag__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); line-height: .95; color: #fff; text-shadow: var(--ts); transition: color .5s var(--ease), text-shadow .5s var(--ease); }
.frag__label { margin-top: .7rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.frag__hint { position: absolute; top: 1.3rem; right: 1.3rem; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(174, 184, 198, 0.55);
  border: 1px solid var(--line); padding: .3em .7em; border-radius: 100px; transition: opacity .4s, color .4s, border-color .4s; }
.frag:hover .frag__hint { color: #dff0ff; border-color: rgba(205, 225, 255, 0.45); }
.frag__body { display: grid; grid-template-rows: 0fr; width: 100%; transition: grid-template-rows .6s var(--ease); }
.frag__in { overflow: hidden; display: block; color: var(--muted); line-height: 1.6; font-size: .97rem; }
.frag.is-open { border-color: rgba(120, 180, 235, 0.55); background: linear-gradient(160deg, rgba(78, 159, 214, 0.12), rgba(122, 108, 240, 0.04)); }
.frag.is-open .frag__word { color: var(--accent); text-shadow: 0 0 26px rgba(78, 159, 214, 0.45), var(--ts); }
.frag.is-open .frag__label { color: #dff0ff; }
.frag.is-open .frag__hint { opacity: 0; }
.frag.is-open .frag__body { grid-template-rows: 1fr; }
.frag.is-open .frag__in { padding-top: 1rem; }
.name__final { margin-top: 2.2rem; max-width: 60ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.25; color: #d7dee8; text-shadow: var(--ts);
  opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.name__final.is-in { opacity: 1; transform: none; }
.name__mark { color: var(--accent); }
@media (max-width: 860px) { .name-deck { grid-template-columns: 1fr; } }

/* ---------- chapter 3: the work deck ---------- */
/* overflow-x clip: hidden deck cards sit translated 34px right, which would
   otherwise widen the page on phones */
.workch { overflow-x: clip; }
.deck { margin-top: 2.6rem; max-width: 780px; outline-offset: 6px; }
/* the deck now lives in 3D: incoming/outgoing cards sit behind the current one, tilted, so
   the swap reads as depth rather than a flat slide. founder.js only toggles the classes below. */
.deck__stage { position: relative; min-height: 21rem; perspective: 1500px; }
.deck__card { position: absolute; inset: 0; padding: 1.9rem 1.8rem; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  opacity: 0; transform: translateX(46px) translateZ(-120px) rotateY(-18deg) scale(.985); transform-origin: center; pointer-events: none;
  transition: opacity .55s var(--ease), transform .6s var(--ease), border-color .5s var(--ease); }
.deck__card.is-current { position: relative; opacity: 1; transform: none; pointer-events: auto; border-color: rgba(120, 180, 235, 0.4); }
.deck__card.is-left { transform: translateX(-46px) translateZ(-120px) rotateY(18deg) scale(.985); }
.deck__no { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; color: var(--accent); }
.deck__ind { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; margin: .6rem 0 1.2rem; }
.deck__row { display: grid; grid-template-columns: 7.2rem 1fr; gap: .4rem 1.2rem; padding: .8rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.deck__k { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-3); }
.deck__v { color: var(--muted); line-height: 1.55; font-size: .97rem; }
.deck__ctrl { margin-top: 1.3rem; display: flex; align-items: center; gap: 1rem; }
.deck__btn { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; font-size: 1.05rem; color: #fff; border-radius: 50%;
  border: 1px solid rgba(190, 215, 255, 0.35); background: rgba(255, 255, 255, 0.04); transition: border-color .3s, background .3s, box-shadow .3s; }
.deck__btn:hover { border-color: rgba(205, 225, 255, 0.8); background: rgba(78, 159, 214, 0.22); box-shadow: 0 0 22px rgba(78, 159, 214, 0.35); }
.deck__dots { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.deck__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(174, 184, 198, 0.3); padding: 0; transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.deck__dot:hover { background: rgba(205, 225, 255, 0.6); }
.deck__dot.is-on { background: var(--accent); box-shadow: 0 0 10px rgba(78, 159, 214, 0.7); transform: scale(1.25); }
@media (max-width: 640px) {
  .deck__stage { min-height: 27rem; }
  .deck__row { grid-template-columns: 1fr; padding: .7rem 0; }
}

/* ---------- chapter 3: in public — story on the left, an organized 3D photo wall on the right ---------- */
.proofch { overflow-x: clip; }
.proofch__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
@media (min-width: 1024px) {
  .proofch__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.4rem, 4vw, 4rem); align-items: start; }
  .proofch__text { position: sticky; top: calc(var(--hd-h) + 2.2rem); }   /* the story holds while the wall drifts past */
}
.proofch__text .bio { margin-top: 2rem; }

/* the gallery is ONE premium card: a glass panel holding a clean, aligned grid of captioned press tiles.
   every tile is a uniform 4:3 crop + a caption, so the rows line up and the whole thing reads as a single card. */
.proofch__gallery { display: none; }
@media (min-width: 1024px) {
  .proofch__gallery { display: block; padding: clamp(.85rem, 1.3vw, 1.2rem); border-radius: 20px;
    border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    box-shadow: 0 44px 100px -55px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
}
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pgrid .orb { position: static; display: block; width: 100%; margin: 0; padding: 0;
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.proofch__gallery.is-shown .pgrid .orb { opacity: 1; transform: none; }
.pgrid .orb:nth-child(2) { transition-delay: .04s; }
.pgrid .orb:nth-child(3) { transition-delay: .08s; }
.pgrid .orb:nth-child(4) { transition-delay: .12s; }
.pgrid .orb:nth-child(5) { transition-delay: .16s; }
.pgrid .orb:nth-child(6) { transition-delay: .2s; }
.pgrid .orb:nth-child(7) { transition-delay: .24s; }
.pgrid .orb:nth-child(8) { transition-delay: .28s; }
.pgrid .orb:nth-child(9) { transition-delay: .32s; }
.pgrid .orb:nth-child(n+10) { transition-delay: .36s; }
.pgrid .orb__in { display: block; }
.pgrid .orb img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center top;
  border-radius: 9px; border: 1px solid rgba(190, 215, 255, 0.1); background: #070a0f;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); }
.pgrid .orb:hover { z-index: 5; }
.pgrid .orb:hover img { transform: translateY(-3px) scale(1.02); border-color: rgba(120, 180, 235, 0.7);
  box-shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.95), 0 0 26px rgba(78, 159, 214, 0.28); }
/* one caption per tile, clamped to two lines so every tile is the same height and the grid stays aligned */
.orb__cap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin: .5rem 0 .2rem; min-height: 2.5em; font-family: var(--font-mono); font-size: .55rem; letter-spacing: .08em;
  line-height: 1.3; text-transform: uppercase; color: rgba(174, 184, 198, 0.72); }

/* ---------- chapter 3: the mobile filmstrip (a moving slideshow of every photo, above the story) ---------- */
.pstrip { display: none; }
@media (max-width: 1023px) {
  .pstrip { display: block; margin: 0 0 2.4rem; overflow: hidden; position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
}
.pstrip__track { display: flex; align-items: center; gap: 12px; width: max-content; will-change: transform;
  animation: pstripScroll 26s linear infinite; }
.pstrip__item { flex: 0 0 auto; height: 168px; padding: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(190, 215, 255, 0.16); background: #070a0f; box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.9); }
.pstrip__item img { display: block; height: 100%; width: auto; object-fit: cover; }
.pstrip:active .pstrip__track { animation-play-state: paused; }
@keyframes pstripScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- chapter 4: bio ---------- */
.bio { margin-top: 2.8rem; max-width: 780px; padding: 1.7rem 1.8rem; border-radius: 18px; border: 1px solid rgba(120, 180, 235, 0.3);
  background: linear-gradient(160deg, rgba(78, 159, 214, 0.09), rgba(122, 108, 240, 0.03)); }
.bio__p { color: #d7dee8; line-height: 1.7; font-size: clamp(1rem, 1.3vw, 1.12rem); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.bio__sign { margin-top: 1.2rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* ---------- chapter 5: today ---------- */
.todaych__wrap { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.todaych .lead { margin-left: auto; margin-right: auto; text-align: center; }
.todaych__cta { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(5, 6, 8, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lightbox__body { position: relative; max-width: min(1240px, 94vw); max-height: 88vh; display: flex; flex-direction: column; transform: scale(.96) translateY(10px); transition: transform .45s var(--ease); }
.lightbox.is-open .lightbox__body { transform: none; }
.lightbox__img { max-width: 100%; max-height: calc(88vh - 3.4rem); object-fit: contain; border-radius: 14px; border: 1px solid rgba(190, 215, 255, 0.28);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 60px rgba(78, 159, 214, 0.18); background: #070a0f; }
.lightbox__cap { margin-top: .9rem; display: flex; align-items: center; gap: .55rem; justify-content: center; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: #cdd8e6; }
.lightbox__cap #lbName { color: #fff; }
.lightbox__sep { color: var(--muted); }
.lightbox__count { color: var(--muted); margin-left: .4rem; }
.lightbox__close { position: absolute; top: -0.4rem; right: -0.2rem; transform: translateY(-100%); width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1; color: #fff; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); transition: border-color .3s, background .3s, transform .3s; }
.lightbox__close:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.12); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.7rem; height: 2.7rem; display: grid; place-items: center; font-size: 1.05rem; color: #fff;
  border-radius: 50%; border: 1px solid rgba(190, 215, 255, 0.35); background: rgba(5, 6, 8, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .3s, background .3s, box-shadow .3s; }
.lightbox__nav:hover { border-color: rgba(205, 225, 255, 0.8); background: rgba(78, 159, 214, 0.25); box-shadow: 0 0 22px rgba(78, 159, 214, 0.4); }
.lightbox__nav--prev { left: .6rem; }
.lightbox__nav--next { right: .6rem; }
.lightbox__nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .lightbox__nav { width: 2.2rem; height: 2.2rem; } }

/* ---------- footer ---------- */
.ft { position: relative; z-index: 3; border-top: 1px solid rgba(140, 175, 220, 0.28); padding: 2.4rem clamp(2.4rem, 6vw, 4rem) 4.6rem; }
.ft__wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: none; }
.ft__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .32em; padding-left: .32em; color: #fff; transition: color .4s, text-shadow .4s; }
.ft__brand:hover { color: var(--accent); text-shadow: 0 0 18px rgba(78, 159, 214, 0.6); }
.ft__sig { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.ft__sig::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); animation: pulse 2.4s infinite; }
.ft__links { display: flex; gap: 1.4rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ft__links a:hover { color: #fff; }
@media (min-width: 861px) { .ft__sig { display: none; } }
@media (max-width: 860px) { .ft { padding-bottom: 2.4rem; } }

/* ---------- responsive header ---------- */
@media (max-width: 600px) {
  :root { --hd-h: 64px; }
  .hd__cta { display: none; }
}

/* =========================================================
   ATMOSPHERE + MOTION (added): the name cards live in 3D, the
   chapters gain a drifting HUD/dashboard foreground plane.
   All additive — no existing interaction is touched.
   ========================================================= */

/* ---------- chapter 1: the name cards enter in 3D ---------- */
/* clip so a tilted card can never widen the page on a narrow screen */
.name { overflow-x: clip; }
.name-deck { perspective: 1100px; }
/* rest state only exists when JS runs (matches the no-JS safety of .reveal); once the
   deck reveals, cards settle flat and hover/open behave exactly as before */
body.js .name-deck .frag { opacity: 0; transform: translateY(34px) translateZ(-70px) rotateY(-14deg);
  transition: opacity .8s var(--ease), transform .95s var(--ease); }
body.js .name-deck .frag:nth-child(1) { transition-delay: .05s; }
body.js .name-deck .frag:nth-child(2) { transition-delay: .16s; }
body.js .name-deck .frag:nth-child(3) { transition-delay: .27s; }
body.js .name-deck.is-shown .frag { opacity: 1; transform: none; }

/* (the ambient HUD/dashboard fragment layer was removed: the home page has no such floaters,
   and they read as background noise. The moving starfield is the whole atmosphere now.) */

/* ---------------------------------------------------------
   Fullscreen menu = the home command center, verbatim.
   .module rules are copied 1:1 from css/style.css (the hub);
   the dock-slot math lives in this page's JS (same as app.js).
   --------------------------------------------------------- */
/* the scene dims behind the open navigation exactly like the home hub (no heavy blur wall) */
.menu .menu__bg { background: radial-gradient(120% 120% at 50% 50%, rgba(4,6,9,0.34), rgba(4,6,9,0.6)); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* the list is just a container now; the cards position themselves fixed, like the orbit */
.menu .menu__list { position: static; display: block; height: auto; max-width: none; padding: 0; overflow: visible; }

.menu .module { position: fixed; top: 0; left: 0; width: clamp(128px, 16vw, 244px); height: clamp(128px, 16vw, 244px); border-radius: 20px;
  padding: 1.3rem 1.4rem; text-align: left; display: flex; flex-direction: column; justify-content: space-between; will-change: transform; opacity: 0;
  border: 1px solid rgba(165,195,230,0.32); background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 36px 74px -26px rgba(0,0,0,0.96), inset 0 1px 0 rgba(255,255,255,0.18); transition: border-color .6s var(--ease), box-shadow .6s var(--ease); overflow: hidden; }
.menu .module::after { content: ""; position: absolute; inset: 0; border-radius: 20px; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(120% 90% at 20% 0%, rgba(78,159,214,0.28), transparent 60%); }
.menu .module:hover { border-color: rgba(205,225,255,0.75); box-shadow: 0 46px 100px -28px rgba(78,159,214,0.8), inset 0 1px 0 rgba(255,255,255,0.25); }
.menu .module:hover::after { opacity: 1; }
.module__no { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .2em; color: var(--accent); position: relative; text-shadow: var(--ts); }
.module__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 0.98; position: relative; color: #fff; text-shadow: var(--ts); }
.module__sub { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--muted); position: relative; text-shadow: var(--ts); }
.menu .module--cta { background: linear-gradient(160deg, rgba(78,159,214,0.24), rgba(122,108,240,0.12)); border-color: rgba(120,160,220,0.5); }
.menu .module.is-current { border-color: rgba(120,190,245,0.85); box-shadow: 0 36px 74px -26px rgba(78,159,214,0.7), 0 0 26px rgba(78,159,214,0.28), inset 0 1px 0 rgba(255,255,255,0.22); }
.menu .module.is-current .module__no::after { content: " · you are here"; color: var(--accent-3); letter-spacing: .14em; }

/* the bottom prompt, same as the hub */
.menu__prompt { position: fixed; bottom: clamp(2.2rem, 6vh, 3.6rem); left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity .8s var(--ease); pointer-events: none;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: #cdd8e6; text-shadow: var(--ts); }
.menu.is-open .menu__prompt { opacity: 1; }

/* same mobile behavior as the home hub: the cards become full-width rows */
@media (max-width: 760px) {
  .menu .module { width: min(86vw, 400px); height: auto; min-height: 76px; flex-direction: row; align-items: center; gap: 1rem; justify-content: flex-start; padding: 1rem 1.2rem; border-radius: 16px; }
  .module__name { font-size: 1.3rem; line-height: 1.05; }
  .module__name br { display: none; }
  .module__sub { margin-left: auto; text-align: right; }
  .menu .module.is-current .module__no::after { content: " · here"; }
  .menu__prompt { font-size: .68rem; letter-spacing: .22em; }
}

/* ---------------------------------------------------------
   Cursor = the home lens, verbatim (css/style.css). The page's
   own zoom/focus variant is retired so both feel identical.
   --------------------------------------------------------- */
.lens { position: fixed; top: 0; left: 0; z-index: 9999; width: 58px; height: 58px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  backdrop-filter: blur(0.5px) saturate(1.4) brightness(1.04); -webkit-backdrop-filter: blur(0.5px) saturate(1.4) brightness(1.04);
  box-shadow: inset 0 0 16px rgba(255,255,255,0.10), 0 0 22px rgba(78,159,214,0.16); transition: width .5s var(--ease), height .5s var(--ease); }
.lens__rim { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(190,215,255,0.55); box-shadow: inset 0 0 0 1px rgba(122,108,240,0.22); }
.lens.is-hover { width: 92px; height: 92px; }
.lens.is-press { width: 40px; height: 40px; }
.lens.is-zoom { width: 92px; height: 92px; box-shadow: inset 0 0 16px rgba(255,255,255,0.10), 0 0 22px rgba(78,159,214,0.16); }
.lens__zoom { display: none; }
/* same as home: the page steps aside while the navigation is open (hero is-out equivalent) */
main { transition: opacity .45s var(--ease); }
body.menu-open main { opacity: 0; pointer-events: none; }
