/* ═══════════════════════════════════════════════════════════════
   PHOSFOLD STUDIO — premium geometric minimalism
   palette: ink #02040c · ivory #fff2d1 · gold #f4b51d
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted) ─────────────────────────────────────── */
@font-face { font-family: 'Outfit'; font-weight: 200; font-style: normal; font-display: swap; src: url('../assets/fonts/outfit-latin-200-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 300; font-style: normal; font-display: swap; src: url('../assets/fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('../assets/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url('../assets/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('../assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --ink: #02040c;
  --ink-2: #05070f;
  --ink-3: #090c17;
  --ivory: #fff2d1;
  --ivory-70: rgba(255, 242, 209, .70);
  --ivory-55: rgba(255, 242, 209, .55);
  --ivory-35: rgba(255, 242, 209, .35);
  --gold: #f4b51d;
  --gold-soft: rgba(244, 181, 29, .55);
  --gold-faint: rgba(244, 181, 29, .14);
  --hairline: rgba(255, 242, 209, .10);
  --hairline-soft: rgba(255, 242, 209, .06);

  --font-display: 'Outfit', 'Avenir Next', 'Futura', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --gutter: clamp(24px, 6vw, 96px);
  --section-gap: clamp(110px, 16vh, 190px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }

::selection { background: var(--gold); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #1b1e2b; border-radius: 5px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input { font: inherit; }

:focus-visible { outline: 1px dashed var(--gold); outline-offset: 4px; }

.star { color: var(--gold); font-style: normal; }

/* Hide custom cursor elements by default */
.cursor-dot, .cursor-ring { display: none; }

/* ── Grain ───────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 150;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.6%, -1%); }
  75% { transform: translate(-1%, -1.8%); }
  100% { transform: translate(0, 0); }
}

/* ── Preloader ───────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.no-js #preloader { display: none; }
.pre-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.pre-spark { width: 56px; height: 56px; }
.pre-spark-path { fill: var(--gold); transform-origin: 50% 50%; }
.pre-word { display: flex; overflow: hidden; }
.pre-word span {
  display: inline-block;
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.05rem; letter-spacing: .55em; margin-right: -.35em;
  color: var(--ivory);
}
.js .pre-word span { transform: translateY(120%); }
.pre-line { width: 148px; height: 1px; background: var(--hairline); overflow: hidden; }
.pre-line-fill { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* ── Reveal initial states (JS only) ─────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js [data-split] { visibility: hidden; }
.js .hero .line { overflow: hidden; }
.js .hero .line-inner { display: block; transform: translateY(118%); }
.hero .line { display: block; }
.hero .line-inner { display: block; }

/* [data-split] word structure added by JS */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split] .wi { display: inline-block; will-change: transform; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  transition: padding .45s var(--ease-out), background .45s, backdrop-filter .45s;
}
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--hairline); transform: scaleX(0); transition: transform .6s var(--ease-out);
}
.nav.scrolled { padding: 14px var(--gutter); background: rgba(2, 4, 12, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav.scrolled::after { transform: scaleX(1); }

.nav-brand { display: flex; align-items: center; gap: 13px; }
.nav-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(244, 181, 29, .35)); transition: transform .5s var(--ease-out); }
.nav-brand:hover .nav-mark { transform: rotate(8deg) scale(1.06); }
.nav-word { font-weight: 400; font-size: 1.02rem; letter-spacing: .05em; }
.nav-word em { font-style: normal; color: var(--gold); font-family: var(--font-mono); font-size: .58em; letter-spacing: .38em; text-transform: uppercase; margin-left: .7em; }

.nav-links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-link {
  position: relative;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory-55); transition: color .35s;
  padding: 4px 0;
}
.nav-link sup { color: var(--gold); font-size: .78em; margin-right: .6em; letter-spacing: 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--ivory); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-burger { display: none; position: relative; z-index: 130; width: 40px; height: 40px; }
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: var(--ivory); transition: transform .4s var(--ease-out), top .4s;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 24px; }
.nav-burger.open span:nth-child(1) { top: 19.5px; transform: rotate(45deg); background: var(--gold); }
.nav-burger.open span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); background: var(--gold); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(2, 4, 12, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: 0 clamp(28px, 9vw, 64px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility .5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 8px; }
.mobile-link {
  font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 200; letter-spacing: .02em;
  padding: 10px 0; color: var(--ivory);
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), color .3s;
}
.mobile-menu.open .mobile-link { opacity: 1; transform: none; }
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: .08s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: .16s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: .24s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: .32s; }
.mobile-link sup { font-family: var(--font-mono); font-size: .4em; color: var(--gold); margin-right: 1em; letter-spacing: .1em; }
.mobile-link:active { color: var(--gold); }
.mobile-menu-foot { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--ivory-35); opacity: 0; transition: opacity .6s .4s; }
.mobile-menu.open .mobile-menu-foot { opacity: 1; }

/* ── Side dots ───────────────────────────────────────────────── */
.dots {
  position: fixed; right: 30px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 18px; z-index: 90;
}
.dot { padding: 4px; }
.dot i {
  display: block; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--ivory-35); background: transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, transform .4s;
}
.dot:hover i { border-color: var(--gold); transform: scale(1.25); }
.dot.active i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(244, 181, 29, .65); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 34px; overflow: hidden;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  border-radius: 2px; transition: color .4s var(--ease-out), border-color .4s;
  white-space: nowrap;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid::before { background: var(--ivory); }

.btn-ghost { border: 1px solid var(--hairline); color: var(--ivory-70); }
.btn-ghost::before { background: var(--gold-faint); }
.btn-ghost:hover { color: var(--ivory); border-color: var(--gold-soft); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px var(--gutter) 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; left: 50%; top: 38%;
  width: min(1100px, 130vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 181, 29, .085) 0%, rgba(244, 181, 29, .028) 38%, transparent 68%);
  pointer-events: none;
}
#dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Shards */
.shards { position: absolute; inset: 0; pointer-events: none; }
.shard { position: absolute; overflow: visible; }
.shard polygon, .shard path { fill: none; stroke: var(--gold); vector-effect: non-scaling-stroke; }
.shard-1 { top: 14%; left: 7%; width: 150px; stroke-opacity: .30; transform: rotate(-14deg); animation: float-a 11s ease-in-out infinite; }
.shard-2 { top: 60%; left: 13%; width: 90px; stroke-opacity: .18; filter: blur(1.5px); transform: rotate(18deg); animation: float-b 14s ease-in-out infinite; }
.shard-3 { top: 20%; right: 9%; width: 110px; stroke-opacity: .38; transform: rotate(10deg); animation: float-b 9.5s ease-in-out infinite; }
.shard-4 { top: 68%; right: 16%; width: 54px; animation: float-a 8s ease-in-out infinite; }
.shard-4 path { fill: var(--gold); stroke: none; opacity: .5; }
.shard-5 { top: 34%; left: 22%; width: 30px; animation: float-b 7s ease-in-out infinite; }
.shard-5 path { fill: var(--ivory); stroke: none; opacity: .3; }
.shard-6 { bottom: -6%; right: -3%; width: 300px; stroke-opacity: .10; filter: blur(2.5px); transform: rotate(24deg); animation: float-a 17s ease-in-out infinite; }
.shard-6 polygon { stroke: var(--ivory); }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 13px; } }

.hero-inner {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 1080px;
}

.hero-mark { position: relative; margin-bottom: clamp(20px, 3.5vh, 40px); }
.hero-mark img {
  width: clamp(96px, 15vh, 150px); height: auto;
  filter: drop-shadow(0 6px 30px rgba(244, 181, 29, .28));
  animation: levitate 7s ease-in-out infinite;
}
.hero-mark-halo {
  position: absolute; inset: -46%;
  background: radial-gradient(circle, rgba(244, 181, 29, .16) 0%, transparent 62%);
  animation: halo-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes halo-pulse { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }

.hero-eyebrow {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-55);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.hero-eyebrow .star { margin-right: .9em; }

.hero-title {
  font-size: clamp(3.2rem, 10.5vw, 8.2rem);
  font-weight: 200; line-height: 1.02; letter-spacing: -.015em;
  margin-bottom: clamp(22px, 3.5vh, 36px);
}
.hero-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  color: var(--gold); letter-spacing: 0; padding-right: .06em;
}

.hero-sub {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.3vw, 1.5rem); line-height: 1.55;
  color: var(--ivory-70);
  margin-bottom: clamp(30px, 5vh, 48px);
}

.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px;
  display: flex; align-items: flex-end; justify-content: space-between; z-index: 5;
}
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-cue-label { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ivory-35); }
.scroll-cue-line { position: relative; width: 1px; height: 52px; background: var(--hairline); overflow: hidden; }
.scroll-cue-line i { position: absolute; left: 0; top: -30%; width: 100%; height: 30%; background: var(--gold); animation: cue-drop 2.2s var(--ease-in-out) infinite; }
@keyframes cue-drop { 0% { top: -30%; } 60%, 100% { top: 105%; } }
.hero-coord { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-35); }

/* ── Sections shared ─────────────────────────────────────────── */
.section { position: relative; padding: var(--section-gap) var(--gutter); max-width: 1560px; margin: 0 auto; }

.section-head { display: flex; align-items: center; gap: 22px; margin-bottom: clamp(52px, 9vh, 96px); }
.section-num { font-family: var(--font-mono); font-size: .72rem; color: var(--gold); letter-spacing: .1em; }
.section-rule { flex: 1; height: 1px; background: var(--hairline); }
.section-name { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory-55); }

/* ── Manifesto ───────────────────────────────────────────────── */
.manifesto-big {
  font-size: clamp(2.1rem, 5.4vw, 4.7rem);
  font-weight: 200; line-height: 1.14; letter-spacing: -.01em;
  max-width: 21ch;
  margin-bottom: clamp(64px, 11vh, 120px);
}
.manifesto-big .wi { color: var(--ivory); }

.manifesto-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(44px, 7vw, 110px); align-items: start;
}
.etym { display: flex; flex-direction: column; gap: 44px; }
.etym-item { padding-left: 26px; border-left: 1px solid var(--gold-faint); }
.etym-word {
  display: block; font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--gold); margin-bottom: 10px;
}
.etym-word em { font-size: .72em; color: var(--ivory-55); }
.etym-def { font-size: .95rem; line-height: 1.75; color: var(--ivory-55); max-width: 40ch; }

.manifesto-copy { display: flex; flex-direction: column; gap: 22px; max-width: 56ch; }
.manifesto-copy p { font-size: 1.06rem; font-weight: 300; line-height: 1.8; color: var(--ivory-55); }
.manifesto-copy b { font-weight: 400; color: var(--ivory); }
.manifesto-sign { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem !important; color: var(--ivory-70) !important; }

/* ── Games ───────────────────────────────────────────────────── */
.game {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(44px, 6.5vw, 100px); align-items: center;
  margin-bottom: clamp(110px, 18vh, 200px);
}
.game:last-child { margin-bottom: 0; }
.game-flip .game-art { order: 2; }
.game-flip .game-info { order: 1; }

.game-art { position: relative; aspect-ratio: 4 / 5; max-height: 74vh; overflow: hidden; }
.game-art-inner { position: absolute; inset: -9% 0; transition: transform .8s var(--ease-out); }
.game-art-inner svg { width: 100%; height: 100%; display: block; }
.game-art:hover .game-art-inner { transform: scale(1.025); }

.game-art-frame { position: absolute; inset: 0; pointer-events: none; border: 1px solid var(--hairline-soft); }
.game-art-frame::before, .game-art-frame::after {
  content: ''; position: absolute; width: 26px; height: 26px;
  border-color: var(--gold); border-style: solid; opacity: .85;
  transition: width .45s var(--ease-out), height .45s var(--ease-out);
}
.game-art-frame::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.game-art-frame::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }
.game-art:hover .game-art-frame::before, .game-art:hover .game-art-frame::after { width: 44px; height: 44px; }

.game-status {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.pulse::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold); animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

.game-title {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 200; line-height: 1; letter-spacing: .01em;
  margin-bottom: 20px;
}
.game-pitch {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5;
  color: var(--ivory); opacity: .92; margin-bottom: 20px; max-width: 30ch;
}
.game-desc { font-size: .98rem; line-height: 1.8; color: var(--ivory-55); max-width: 46ch; margin-bottom: 30px; }

.game-meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-bottom: 36px; }
.game-meta li {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory-55); border: 1px solid var(--hairline); padding: 8px 14px; border-radius: 2px;
}

.game-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 6px; position: relative;
}
.game-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold-soft); transform: scaleX(.28); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.game-link:hover::after { transform: scaleX(1); }
.game-link .star { transition: transform .6s var(--ease-out); }
.game-link:hover .star { transform: rotate(180deg) scale(1.25); }

/* SVG art micro-animations */
.lan { animation: lan-flicker 3.2s ease-in-out infinite; }
.v-lanterns .lan:nth-of-type(2) { animation-delay: .7s; }
.v-lanterns .lan:nth-of-type(3) { animation-delay: 1.3s; }
.v-lanterns .lan:nth-of-type(4) { animation-delay: .4s; }
.v-lanterns .lan:nth-of-type(5) { animation-delay: 1.9s; }
.v-lanterns .lan:nth-of-type(6) { animation-delay: 2.4s; }
@keyframes lan-flicker { 0%, 100% { opacity: 1; } 42% { opacity: .55; } 58% { opacity: .85; } 70% { opacity: .5; } }

.tw { transform-box: fill-box; transform-origin: center; animation: twinkle 4s ease-in-out infinite; }
.s-stars .tw:nth-of-type(2) { animation-delay: .6s; }
.s-stars .tw:nth-of-type(3) { animation-delay: 1.4s; }
.s-stars .tw:nth-of-type(4) { animation-delay: 2s; }
.s-stars .tw:nth-of-type(5) { animation-delay: .9s; }
.s-stars .tw:nth-of-type(6) { animation-delay: 2.6s; }
.s-stars .tw:nth-of-type(7) { animation-delay: 1.8s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.78); } }

.h-halo { transform-box: fill-box; transform-origin: center; animation: halo-pulse 4.4s ease-in-out infinite; }
.spark { transform-box: fill-box; animation: spark-rise 5s linear infinite; }
.spark.s2 { animation-delay: 1.2s; animation-duration: 6s; }
.spark.s3 { animation-delay: 2.6s; animation-duration: 5.4s; }
.spark.s4 { animation-delay: 3.8s; animation-duration: 6.6s; }
@keyframes spark-rise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .9; }
  70% { opacity: .5; }
  100% { transform: translateY(-130px); opacity: 0; }
}

/* ── Studio ──────────────────────────────────────────────────── */
.studio-big {
  font-size: clamp(2.1rem, 5.4vw, 4.7rem);
  font-weight: 200; line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 30px;
}
.studio-intro { font-size: 1.06rem; line-height: 1.8; color: var(--ivory-55); max-width: 54ch; margin-bottom: clamp(56px, 9vh, 90px); }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}
.pillar {
  position: relative; background: var(--ink);
  padding: clamp(36px, 4.5vw, 56px) clamp(26px, 3vw, 44px);
  transition: background .55s var(--ease-out);
  overflow: hidden;
}
.pillar::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.pillar:hover { background: var(--ink-2); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon { width: 38px; height: 38px; margin-bottom: 28px; }
.pillar-icon [fill='none'] { stroke: var(--gold-soft); }
.pillar-icon path[d], .pillar-icon circle[r='5'] { fill: var(--gold); }
.pillar-icon polygon[fill='none'], .pillar-icon circle[fill='none'], .pillar-icon line { fill: none; stroke: var(--gold-soft); }
.pillar:hover .pillar-icon { filter: drop-shadow(0 0 8px rgba(244, 181, 29, .5)); }
.pillar-num { display: block; font-family: var(--font-mono); font-size: .62rem; color: var(--gold); letter-spacing: .3em; margin-bottom: 8px; }
.pillar-name { font-size: 1.45rem; font-weight: 400; letter-spacing: .01em; margin-bottom: 14px; }
.pillar-copy { font-size: .92rem; line-height: 1.75; color: var(--ivory-55); }

/* ── Marquee ─────────────────────────────────────────────────── */
.marquee { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); padding: clamp(20px, 3vh, 30px) 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-track span {
  font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 200;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 242, 209, .30);
  padding-right: .5em;
}
.marquee-track i { font-style: normal; color: var(--gold); -webkit-text-stroke: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-big {
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  font-weight: 200; line-height: 1.04; letter-spacing: -.015em;
  margin-bottom: 26px;
}
.contact-copy { font-size: 1.06rem; line-height: 1.8; color: var(--ivory-55); max-width: 50ch; margin-bottom: clamp(44px, 7vh, 64px); }

.signal-form { max-width: 620px; margin-bottom: clamp(60px, 9vh, 90px); }
.signal-field { display: flex; gap: 20px; align-items: flex-end; }
.signal-field input {
  flex: 1; background: transparent; border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 16px 4px; color: var(--ivory); font-size: 1.02rem; font-weight: 300;
  letter-spacing: .02em; border-radius: 0;
  transition: border-color .4s;
}
.signal-field input::placeholder { color: var(--ivory-35); }
.signal-field input:focus { outline: none; border-color: var(--gold); }
.signal-note { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--gold); margin-top: 18px; min-height: 1.5em; }

.contact-rows { border-top: 1px solid var(--hairline-soft); }
.contact-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--hairline-soft);
  transition: padding-left .45s var(--ease-out);
}
a.contact-row:hover { padding-left: 14px; }
a.contact-row:hover .contact-row-value { color: var(--gold); }
.contact-row-label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory-35); }
.contact-row-value { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 300; color: var(--ivory); transition: color .35s; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
.socials a { color: var(--ivory-70); transition: color .3s; position: relative; }
.socials a:hover { color: var(--gold); }
.socials i { font-style: normal; color: var(--gold-soft); font-size: .8em; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--hairline-soft); padding: clamp(80px, 13vh, 130px) var(--gutter) 46px; }
.footer-watermark {
  position: absolute; left: 50%; bottom: -.24em; transform: translateX(-50%);
  font-size: clamp(6rem, 19vw, 19rem); font-weight: 600; letter-spacing: .04em;
  color: rgba(255, 242, 209, .026);
  pointer-events: none; user-select: none; white-space: nowrap; line-height: 1;
}
.footer-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-mark { width: 52px; height: 52px; filter: drop-shadow(0 0 14px rgba(244, 181, 29, .4)); }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: 1.18rem; color: var(--ivory-70); }
.footer-links { display: flex; gap: clamp(20px, 4vw, 40px); margin-top: 8px; }
.footer-links a {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ivory-55); transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-fine { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; color: var(--ivory-35); margin-top: 26px; }

/* ── Custom cursor (fine pointers, wide screens) ─────────────── */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .js body { cursor: none; }
  .js a, .js button, .js input { cursor: none; }
  .js .cursor-dot {
    display: block; position: fixed; z-index: 400; pointer-events: none;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); left: 0; top: 0;
    transform: translate(-50%, -50%);
  }
  .js .cursor-ring {
    display: block; position: fixed; z-index: 399; pointer-events: none;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--gold-soft); left: 0; top: 0;
    transform: translate(-50%, -50%);
    transition: width .3s var(--ease-out), height .3s var(--ease-out), border-color .3s, background .3s;
  }
  .js .cursor-ring.is-hover { width: 52px; height: 52px; border-color: var(--gold); background: rgba(244, 181, 29, .07); }
  .js .cursor-dot.is-down { transform: translate(-50%, -50%) scale(2); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dots { display: none; }
}

@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 56px; }
  .game { grid-template-columns: 1fr; gap: 40px; margin-bottom: 110px; }
  .game-flip .game-art { order: 0; }
  .game-flip .game-info { order: 1; }
  .game-art { aspect-ratio: 4 / 3.4; max-height: 60vh; }
  .pillars { grid-template-columns: 1fr; }
  .hero-coord { display: none; }
  .hero-foot { justify-content: center; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-word em { display: none; }
  .hero { padding-top: 100px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 340px; }
  .btn { width: 100%; }
  .signal-field { flex-direction: column; align-items: stretch; gap: 24px; }
  .contact-row { flex-direction: column; gap: 10px; }
  .section-name { letter-spacing: .18em; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal, .js [data-split], .js .hero .line-inner, .js .pre-word span { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .marquee-track { animation: none; }
  .grain { animation: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .js body, .js a, .js button, .js input { cursor: auto; }
}
