/* ============================================================
   MAZE · The Generative Atelier (PART 5 — Hard Mode)
   ============================================================ */
:root {
  --ink: #0A0A0B; --ink-2: #0d0d10; --paper: #F4F1EA;
  --paper-dim: rgba(244,241,234,.62); --paper-faint: rgba(244,241,234,.32);
  --accent: #C8A96A; --accent-2: #E4CE9C; --line: rgba(244,241,234,.13); --line-soft: rgba(244,241,234,.07);
  --font-display: "Fraunces", Georgia, serif; --font-text: "Inter Tight", system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1); --margin: clamp(1.5rem,6vw,9rem);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--ink); color: var(--paper); font-family: var(--font-text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.display { font-family: var(--font-display); font-weight: 360; line-height: .96; letter-spacing: -.015em; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .28em; color: var(--accent); font-weight: 500; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -120%; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--ink); padding: .6rem 1.2rem; z-index: 1000; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.skip-link:focus { top: .6rem; }
body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on input { cursor: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .8rem; letter-spacing: .06em; }
.btn--solid { background: var(--accent); color: var(--ink); padding: .85rem 1.7rem; border-radius: 100px; font-size: .82rem; text-transform: uppercase; font-weight: 600; transition: background .4s var(--ease), transform .3s var(--ease); }
.btn--solid:hover { background: var(--accent-2); }

/* ---- cursor ---- */
.cursor { position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none; transform: translate(-50%,-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-sizing: border-box; border: 1.5px solid transparent; box-shadow: 0 0 0 1px rgba(10,10,11,.22), 0 0 10px rgba(200,169,106,.45); display: none; align-items: center; justify-content: center; transition: width .32s var(--ease), height .32s var(--ease), background .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease); }
body.cursor-on .cursor { display: flex; }
.cursor.is-hover { width: 42px; height: 42px; background: transparent; border-color: var(--accent); box-shadow: 0 0 18px rgba(200,169,106,.3); }
.cursor__label { font-size: .56rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; opacity: 0; transition: opacity .25s var(--ease); }
.cursor.is-hover .cursor__label { opacity: 1; }

/* ---- nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 820; display: flex; align-items: center; justify-content: space-between; padding: clamp(1rem,2.4vw,1.8rem) var(--margin); mix-blend-mode: difference; }
.nav__logo { font-family: var(--font-display); font-size: 1.4rem; display: inline-flex; align-items: center; gap: .5rem; }
.nav__mark { color: var(--accent); font-size: .7em; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem,2.4vw,2.4rem); }
.nav__links a:not(.btn) { font-size: .82rem; }
@media (max-width: 680px) { .nav__links a:not(.btn) { display: none; } }

/* ---- the WebGL particle field ---- */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: none; }
body.gl-on .gl { display: block; }

/* ============================================================
   THE EXPERIENCE (only when the engine runs)
   ============================================================ */
.exp { display: none; }
body.gl-on .exp { display: block; position: relative; z-index: 2; }
.exp__scene { height: 100svh; position: relative; }
.exp__overlay { position: fixed; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--margin); pointer-events: none; opacity: 0; transition: opacity .7s var(--ease); }
.exp__overlay.is-active { opacity: 1; }
.exp__overlay.is-active .mood { pointer-events: auto; }
.exp__overlay--side { align-items: flex-start; max-width: 46ch; }
.exp__overlay--center { align-items: center; text-align: center; }
.exp__overlay[data-scene] { }
.exp__title { font-size: clamp(3rem,11vw,11rem); margin: 1.2rem 0; }
.exp__h { font-size: clamp(2.2rem,6vw,5rem); margin: 1rem 0; }
.exp__sub { color: var(--paper-dim); max-width: 42ch; font-size: clamp(1rem,1.2vw,1.2rem); margin-top: .4rem; }
.exp__cue { position: fixed; bottom: clamp(2rem,5vh,3.5rem); left: 50%; transform: translateX(-50%); z-index: 4; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--paper-faint); }
.exp__reveal { font-size: clamp(2.4rem,8vw,7rem); }
.exp__cta { margin-top: 2rem; pointer-events: auto; }
.exp__voice { font-variation-settings: "opsz" 80, "wght" 360, "SOFT" 0; }

/* scene 2 grid */
.exp__grid { position: fixed; inset: 8vh var(--margin); width: auto; height: 84vh; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); }
.exp__overlay.is-active ~ .exp__grid, .exp__grid.is-active { opacity: 1; }
.exp__grid line { stroke: var(--accent); stroke-width: 1; opacity: .5; }

/* scene 3 mood control */
.mood { margin-top: 2rem; display: flex; flex-direction: column; gap: .8rem; width: min(100%, 360px); }
.mood__val { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent-2); }
.mood__range { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line); outline: none; }
.mood__range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 4px rgba(200,169,106,.18); }
.mood__range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
.mood__hint { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--paper-faint); }

/* ============================================================
   THE RESULT / static editorial home (reveal + fallback)
   ============================================================ */
.home { position: relative; z-index: 5; background: var(--ink); }
body.gl-on .home { opacity: 0; transition: opacity 1s var(--ease); }
body.gl-on .home.is-revealed { opacity: 1; }
.home__hero { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding: 8rem var(--margin) 4rem; max-width: 1500px; margin-inline: auto; }
.home__title { font-size: clamp(3rem,11vw,11rem); margin: 1.4rem 0; }
.home__sub { max-width: 44ch; color: var(--paper-dim); font-size: clamp(1rem,1.3vw,1.25rem); }
.home__work { max-width: 1500px; margin: 0 auto; padding: 0 var(--margin); border-top: 1px solid var(--line); }
.home__row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1rem; align-items: baseline; padding: clamp(1.4rem,3vh,2.4rem) 0; border-bottom: 1px solid var(--line-soft); transition: padding-left .5s var(--ease); }
.home__row:hover { padding-left: 1rem; }
.home__client { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.home__name { font-size: clamp(1.4rem,3vw,2.4rem); }
.home__metric { text-align: right; color: var(--paper-dim); font-size: .9rem; font-variant-numeric: tabular-nums; }
.home__metric b { font-family: var(--font-display); font-size: 1.5em; color: var(--paper); font-weight: 400; margin-right: .3em; }
.home__cta { text-align: center; padding: clamp(6rem,16vh,12rem) var(--margin); }
.home__ctah { font-size: clamp(2rem,6vw,4.5rem); max-width: 18ch; margin: 0 auto 2.4rem; }
.home__credit { margin-top: 3rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-faint); }
.home__credit a { color: var(--paper-dim); }
.home__credit a:hover { color: var(--accent); }

/* default (no JS / static): show home, hide experience */
body.is-static .gl, body.is-static .exp, body.is-static .exp__cue { display: none !important; }

[data-fx] { opacity: 0; transform: translateY(20px); }
.is-static [data-fx], .fx-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  [data-fx] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
