:root {
  --ink: #07070a;
  --ink-2: #0f0f15;
  --ink-3: #17171f;
  --line: rgba(255, 255, 255, 0.09);
  --ivory: #f3efe6;
  --mute: #8d8a96;
  --signal: #c6ff3d;
  --violet: #7a5cff;
  --ember: #ff6a3d;
  --gold: #ffd84a;
  --grad: linear-gradient(100deg, var(--signal), #5effc8 40%, var(--violet) 75%, var(--ember));
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }
a { color: inherit; text-decoration: none; }
::selection { background: var(--signal); color: var(--ink); }

/* grain overlay */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- cursor ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 100;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor { width: 8px; height: 8px; background: var(--signal); mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(243, 239, 230, 0.5);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s;
  display: grid; place-items: center;
  font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.cursor-ring.hover { width: 70px; height: 70px; border-color: var(--signal); background: rgba(198, 255, 61, 0.08); }
.cursor-ring.label { width: 92px; height: 92px; background: var(--signal); border-color: var(--signal); }
@media not ((hover: hover) and (pointer: fine)) { .cursor, .cursor-ring { display: none; } }

/* ---------- progress + nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 80; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.scrolled { background: rgba(7, 7, 10, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  font: 500 15px/1 var(--mono);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--ink-2);
  position: relative; overflow: hidden;
}
.brand-mark span { display: inline-block; transition: transform .5s var(--ease); }
.brand:hover .brand-mark span { transform: rotateX(360deg); }
.brand-mark .gap { width: .5em; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; color: var(--mute); transition: color .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ivory); }
.nav-links a.active::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 1px solid var(--line); background: var(--ink-3); z-index: -1;
}
.status-pill {
  display: flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); color: var(--mute);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ivory); border-radius: 999px; padding: 8px 16px; font: 500 13px var(--sans); }
@media (max-width: 760px) {
  .status-pill { display: none; }
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 10px;
    background: rgba(7, 7, 10, 0.96);
    clip-path: circle(0 at calc(100% - 50px) 40px);
    transition: clip-path .7s var(--ease);
  }
  .nav-links a { font-size: 34px; color: var(--ivory); }
  .nav.open .nav-links { clip-path: circle(150% at calc(100% - 50px) 40px); }
}

/* ---------- page transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 95; pointer-events: none;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.curtain span { background: var(--ink-2); transform-origin: top; transform: scaleY(1); transition: transform .7s var(--ease); border-right: 1px solid var(--line); }
.curtain span:nth-child(2) { transition-delay: .05s; } .curtain span:nth-child(3) { transition-delay: .1s; }
.curtain span:nth-child(4) { transition-delay: .15s; } .curtain span:nth-child(5) { transition-delay: .2s; }
.curtain.lift span { transform: scaleY(0); transform-origin: bottom; }
.curtain.drop span { transform: scaleY(1); transform-origin: top; }

/* ---------- layout ---------- */
main { position: relative; z-index: 1; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--signal); }
.display {
  font-size: clamp(44px, 8.4vw, 132px);
  line-height: .92; letter-spacing: -0.045em; font-weight: 500;
}
.display em, .h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.h2 { font-size: clamp(34px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.lede { color: var(--mute); font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 48px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 2; pointer-events: none; }
.hero .wrap a, .hero .wrap button { pointer-events: auto; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero-side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-hint { position: absolute; top: 120px; right: clamp(16px, 4vw, 48px); z-index: 2; font: 500 11px/1.6 var(--mono); color: var(--mute); text-align: right; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-hint { display: none; } }

.page-hero { min-height: 78svh; display: flex; align-items: flex-end; padding: 140px 0 70px; overflow: hidden; }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .wrap { position: relative; z-index: 2; pointer-events: none; }

/* split letters */
.split .ch { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.split .word { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
/* italic serif letters lean past their box; pad so the slide-up mask doesn't clip them */
.split em .word { padding-inline: .12em; margin-inline: -.12em; }
.split.in .ch { transform: none; opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ink-3); color: var(--ivory);
  font: 500 15px/1 var(--sans); overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--x, 50%); top: var(--y, 50%);
  width: 0; height: 0; border-radius: 50%; background: var(--signal);
  transform: translate(-50%, -50%); transition: width .55s var(--ease), height .55s var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--signal); }
.btn:hover::before { width: 320px; height: 320px; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn.primary { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.magnetic { display: inline-block; transition: transform .5s var(--ease); }

/* ---------- 11:11 clock ---------- */
.clock-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
  background: rgba(15, 15, 21, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); min-width: 270px;
}
.clock-card small { display: block; color: var(--mute); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.clock-card .time { font-size: 30px; letter-spacing: -0.02em; margin: 4px 0 2px; }
.clock-card .until { font-size: 12px; color: var(--signal); }
.clock-card.aligned { border-color: var(--signal); box-shadow: 0 0 60px rgba(198, 255, 61, .25); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; will-change: transform; }
.marquee-track span { font-size: clamp(30px, 4.5vw, 64px); font-weight: 500; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; font-size: .45em; color: var(--signal); }
.marquee-track span:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--mute); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- sections ---------- */
.block { padding: clamp(90px, 14vw, 180px) 0; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; perspective: 1400px; }
.card {
  position: relative; border-radius: 26px; overflow: hidden; min-height: 520px;
  border: 1px solid var(--line); background: var(--ink-2);
  padding: 30px; display: flex; flex-direction: column; justify-content: space-between;
  transform-style: preserve-3d; transition: transform .6s var(--ease), border-color .4s;
  isolation: isolate;
}
.card:hover { border-color: rgba(255, 255, 255, .2); }
.card::after { /* glare */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .12), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::after { opacity: 1; }
.card canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.card-top { display: flex; justify-content: space-between; align-items: start; transform: translateZ(40px); }
.card-code { font-size: clamp(90px, 12vw, 160px); line-height: .8; font-weight: 500; letter-spacing: -0.06em; transform: translateZ(80px); }
.card-bottom { transform: translateZ(50px); }
.card-bottom h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.card-bottom p { color: var(--mute); font-size: 15px; max-width: 380px; }
.tag { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 7, 10, .5); color: var(--ivory); }
.tag.live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); margin-right: 7px; vertical-align: 1px; animation: pulse 1.6s infinite; }
.card.future { border-style: dashed; background: transparent; align-items: center; justify-content: center; text-align: center; }
.card.future .plus { font-size: 120px; line-height: 1; font-weight: 300; color: var(--mute); transition: transform .8s var(--ease), color .4s; }
.card.future:hover .plus { transform: rotate(180deg) scale(1.1); color: var(--signal); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat b { display: block; font-size: clamp(44px, 6vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat span { color: var(--mute); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } }

/* big CTA */
.cta { text-align: center; padding: clamp(110px, 16vw, 220px) 0; overflow: hidden; }
.cta .h2 { font-size: clamp(48px, 10vw, 160px); line-height: .9; }
.cta { background: var(--signal); color: var(--ink); }
.cta .eyebrow { color: rgba(7, 7, 10, .65); }
.cta .eyebrow::before { background: var(--ink); }
.cta .btn.primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.cta .btn.primary::before { background: var(--ivory); }
.cta .btn.primary:hover { color: var(--ink); border-color: var(--ink); }
.cta ::selection { background: var(--ink); color: var(--signal); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- orbit system (projects page) ---------- */
.orbit-stage { position: relative; height: min(92vh, 900px); min-height: 560px; overflow: hidden; border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 60%); }
.orbit-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-hud { position: absolute; inset: 22px; pointer-events: none; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.hud-corner { position: absolute; width: 22px; height: 22px; border: 0 solid color-mix(in srgb, var(--signal) 70%, transparent); }
.hud-corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud-corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud-corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud-title { position: absolute; top: 4px; left: 36px; display: flex; align-items: center; gap: 10px; }
.hud-title i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); animation: pulse 1.4s infinite; }
.hud-readout { position: absolute; bottom: 4px; right: 36px; font-variant-numeric: tabular-nums; }
.orbit-label {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 7px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 75%, transparent);
  border: 1px solid var(--line); color: var(--ivory); text-align: left; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, background-color .3s, box-shadow .3s; will-change: transform;
}
.orbit-label b { font: 600 13px/1 var(--mono); padding: 7px 8px; border-radius: 6px; background: var(--signal); color: var(--ink); }
.orbit-label:nth-of-type(2) b { background: var(--violet); color: var(--ivory); }
.orbit-label.ghost b { background: transparent; color: var(--mute); border: 1px dashed var(--mute); }
.orbit-label span { font-size: 13px; font-weight: 500; display: flex; flex-direction: column; line-height: 1.25; }
.orbit-label small { font: 500 10px var(--mono); color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.orbit-label.active { border-color: var(--signal); box-shadow: 0 0 24px color-mix(in srgb, var(--signal) 30%, transparent); }
.orbit-info {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font: 500 12px/1.5 var(--mono); color: var(--mute); text-align: center; letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
}
@media (max-width: 700px) { .orbit-label span { display: none; } .orbit-label { padding: 5px; } .hud-title { font-size: 9px; } }

.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.detail-code { position: sticky; top: 120px; }
.detail-code .huge { font-size: clamp(120px, 22vw, 320px); line-height: .8; font-weight: 500; letter-spacing: -0.07em; }
.detail h3, .detail-title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; margin: 14px 0 18px; }
.detail p { color: var(--mute); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .3s, color .3s, transform .3s var(--ease); }
.chip:hover { background: var(--ivory); color: var(--ink); transform: translateY(-3px); }
.meter { margin-top: 30px; }
.meter-row { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.meter-bar { height: 6px; border-radius: 6px; background: var(--ink-3); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width 1.8s var(--ease); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail-code { position: static; } }

/* ---------- about ---------- */
.manifesto p { font-size: clamp(28px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; }
.manifesto .w { color: rgba(243, 239, 230, .14); transition: color .3s; }
.manifesto .w.lit { color: var(--ivory); }
.manifesto .w.em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.manifesto .w.em.lit { color: var(--signal); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principle {
  position: relative; padding: 40px 28px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: color .5s;
}
.principle::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory); transform: translateY(101%); transition: transform .6s var(--ease); }
.principle:hover::before { transform: none; }
.principle:hover { color: var(--ink); }
.principle:hover p { color: #44424b; }
.principle .num { font: 500 12px var(--mono); color: var(--mute); }
.principle h4 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 60px 0 10px; }
.principle p { color: var(--mute); font-size: 15px; transition: color .5s; }

.timeline { position: relative; padding-left: 40px; }
.timeline-line { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-line i { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding: 0 0 70px; }
.step::before { content: ""; position: absolute; left: -40px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--mute); transition: border-color .4s, box-shadow .4s, background .4s; }
.step.in::before { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 20px var(--signal); }
.step small { font: 500 12px var(--mono); color: var(--signal); letter-spacing: .1em; text-transform: uppercase; }
.step h4 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; margin: 6px 0 8px; }
.step p { color: var(--mute); max-width: 560px; }

/* ---------- contact / signal ---------- */
.game {
  position: relative; height: 72vh; min-height: 480px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(122, 92, 255, .22), transparent 60%), var(--ink-2);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-hud {
  position: absolute; top: 18px; left: 22px; right: 22px; display: flex; gap: 22px; flex-wrap: wrap; pointer-events: none;
  font: 500 12px/1.4 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .1em;
}
.game-hud b { color: var(--ivory); font-weight: 500; }
.game-hud .lives { margin-left: auto; color: var(--signal); letter-spacing: .25em; font-size: 15px; }
.game-screen {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center;
  background: rgba(7, 7, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .5s var(--ease);
}
.game-screen.hidden { opacity: 0; pointer-events: none; }
.game-screen h3 { font-size: clamp(44px, 7vw, 92px); line-height: .95; letter-spacing: -0.045em; font-weight: 500; }
.game-screen h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--signal); }
.game-screen p { color: var(--mute); max-width: 460px; }
.game.shake { animation: shake .35s; }
@keyframes shake {
  20% { transform: translate(-8px, 3px); } 40% { transform: translate(7px, -4px); }
  60% { transform: translate(-5px, 2px); } 80% { transform: translate(3px, -1px); }
}
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  padding: 26px 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--ink-2); margin-top: 24px;
}
.notice .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(198, 255, 61, .1); color: var(--signal); font-size: 20px; }
.notice p { color: var(--mute); }
.notice b { color: var(--ivory); font-weight: 500; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 34px; position: relative; z-index: 1; overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; list-style: none; color: var(--mute); font-size: 14px; }
.foot-links a:hover { color: var(--ivory); }
.foot-big {
  font-size: clamp(80px, 24vw, 380px); font-weight: 500; letter-spacing: -0.08em; line-height: .8;
  margin-top: 50px; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(243, 239, 230, .14), transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-base { display: flex; justify-content: space-between; color: var(--mute); font: 500 12px var(--mono); margin-top: 20px; flex-wrap: wrap; gap: 10px; }

/* wish toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 85;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s;
  padding: 14px 22px; border-radius: 999px; background: var(--ivory); color: var(--ink);
  font: 500 14px var(--sans); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .split .ch, .reveal { opacity: 1; transform: none; }
}

/* game controls */
.game-controls { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(7, 7, 10, .6); border: 1px solid var(--line); }
.gc { padding: 8px 16px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--ivory); background: none; border: 0; transition: background-color .3s, color .3s, opacity .3s; }
.gc:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.gc[aria-pressed="true"] { background: var(--signal); color: var(--ink); }
.gc:disabled { opacity: .35; }

/* interface switch: Lab or Lite (this one), top right, the same spot as on the Lab interface */
.iface { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; column-gap: 10px; row-gap: 3px; margin-left: 12px; }
.iface-label { font: 400 10px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 241, 234, .5); }
.iface-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.iface-switch a { padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 500; color: rgba(244, 241, 234, .55); transition: color .3s, background-color .3s; }
.iface-switch a[aria-current] { background: var(--signal); color: var(--ink); }
.iface-switch a[href]:hover { color: var(--ivory); }
.iface small { grid-column: 1 / -1; font: 400 10px "JetBrains Mono", monospace; color: rgba(244, 241, 234, .45); }
@media (max-width: 760px) { .iface { margin-left: auto; margin-right: 10px; } .iface-label, .iface small { display: none; } .iface-switch a { padding: 3px 10px; font-size: 11px; } }
/* small phones: keep the "11 11" mark on one line next to the toggle */
.brand-mark { white-space: nowrap; }
@media (max-width: 440px) { .brand { gap: 8px; font-size: 15px; } .iface { margin-right: 6px; } }

/* contact: a small message form under the notice */
.reach { margin-top: 18px; display: grid; gap: 12px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--ink-2); }
.reach-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.reach-head span { font-size: 13px; color: var(--mute); }
.reach-head b { color: var(--ivory); font-weight: 500; }
.reach-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reach input, .reach textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink); color: var(--ivory); font: inherit; font-size: 15px; resize: none; outline: none; transition: border-color .3s; }
.reach input:focus, .reach textarea:focus { border-color: var(--signal); }
.reach ::placeholder { color: var(--mute); }
@media (max-width: 700px) { .reach-fields { grid-template-columns: 1fr; } .reach { padding: 20px; } }

/* projects: the small cryo bay (it replaced the orbit) */
.bay-stage { position: relative; height: min(80vh, 760px); min-height: 520px; overflow: hidden; border-block: 1px solid var(--line); }
.bay-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bay-label { position: absolute; left: 0; top: 0; }

/* project panels: the DNA helix with the code under it (replaces the big shimmering code) */
.detail-code .dna { display: block; width: 100%; max-width: 360px; height: clamp(300px, 42vh, 440px); margin: 18px 0 10px; }
.dna-tag { display: flex; align-items: baseline; gap: 16px; }
.dna-tag b { font-size: clamp(64px, 8vw, 110px); line-height: .9; font-weight: 500; letter-spacing: -0.06em; color: var(--ivory); }
.dna-tag span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.dna-tag.dim b { color: var(--mute); }

/* real names beside the specimen codes */
.card-spec { display: block; margin-top: 4px; font: 400 10px "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.detail-sub { color: var(--ivory) !important; font-size: 18px; margin-top: -6px; }
