/* FORGE Studio 2026 · shared stylesheet
   Brand: General Sans · Heated Gold #FFC247 · Ember Orange #FF8A00 · Forged Steel #2B2B2B
   Gradients live inside the mark only, never on body text (brand rule). */

/* General Sans (Fontshare), hosted with the site so the type never depends on another server */
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0A0908;
  --ink-2: #121110;
  --steel: #2B2B2B;
  --steel-2: #3A3936;
  --bone: #F4EFE6;
  --dim: #A8A196;
  --mute: #8A8378;
  --gold: #FFC247;
  --ember: #FF8A00;
  --line: rgba(244, 239, 230, 0.12);
  --line-2: rgba(244, 239, 230, 0.22);
  --heat: linear-gradient(115deg, #FFE7A6 0%, #FFC247 30%, #FF8A00 65%, #7A3510 100%);

  --f: 'General Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --nav-h: 72px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px;
  --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px; --s-48: 192px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: "ss01";
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 12px 18px; background: var(--gold); color: var(--ink);
  font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

/* Film grain · one quiet texture layer across the site */
.grain {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  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); }
}

/* ---------- Type ---------- */
.label {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); display: inline-flex; align-items: center; gap: 10px;
}
.label b { color: var(--gold); font-weight: 600; }
.display {
  font-weight: 600; letter-spacing: -0.045em; line-height: .9;
  font-size: clamp(48px, 9vw, 168px);
}
.h2 {
  font-weight: 600; letter-spacing: -0.04em; line-height: .95;
  font-size: clamp(40px, 6.4vw, 112px);
  text-wrap: balance;
}
.h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-size: clamp(28px, 3.2vw, 52px); }
.lede { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--dim); max-width: 46ch; text-wrap: pretty; }
.gold { color: var(--gold); }
.ember { color: var(--ember); }
.tnum { font-variant-numeric: tabular-nums; }

/* Masked line reveal wrapper (JS adds inner spans) */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-mask > span { display: block; }
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word-mask > span { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ember); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn .arr { transition: transform .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .arr { transform: translateX(4px); }
  .btn.ghost:hover { border-color: var(--gold); }
}
.btn:active { transform: scale(.97); }
.btn.ghost { --bg: transparent; --fg: var(--bone); border: 1px solid var(--line-2); }
.btn.ghost::before { background: rgba(255, 194, 71, .1); }

.link-u {
  position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
}
.link-u::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(.3); opacity: .5;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-u:hover::after { transform-origin: left; transform: scaleX(1); opacity: 1; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--nav-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background-color .5s var(--ease-out), backdrop-filter .5s var(--ease-out), transform .5s var(--ease-out);
}
.nav.is-scrolled { background: rgba(10, 9, 8, .62); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: auto; }
.brand-word { display: flex; flex-direction: column; line-height: .9; }
.brand-word b { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-word span { font-size: 12px; font-weight: 500; color: var(--dim); }
.nav-links { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 9, 8, .35); }
.nav-links a {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--dim);
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--bone); background: rgba(244, 239, 230, .07); } }
.nav-links a.is-active { color: var(--ink); background: var(--bone); }
.nav-status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  transition: border-color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav-status:hover { border-color: var(--gold); } }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
/* Menu button: two bars slanted at the mark's -15° angle and offset like its shards.
   Hover aligns them; open strikes them into a cross on a heated disc with a spark burst. */
.menu-btn {
  display: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2);
  position: relative; isolation: isolate; overflow: visible;
  transition: border-color .4s var(--ease-out);
}
.menu-btn::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 30%, #FFE7A6, var(--gold) 45%, var(--ember));
  clip-path: circle(0% at 50% 50%); transition: clip-path .55s var(--ease-io);
}
.mb-bar {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; border-radius: 2px;
  background: var(--bone);
  transition: transform .55s var(--ease-out), background-color .35s var(--ease-out), width .45s var(--ease-out);
}
.mb-bar:nth-child(1) { transform: translate(3px, -4px) rotate(-15deg); }
.mb-bar:nth-child(2) { transform: translate(-3px, 4px) rotate(-15deg); width: 14px; }
@media (hover: hover) and (pointer: fine) {
  .menu-btn:hover { border-color: var(--gold); }
  .menu-btn:hover .mb-bar { background: var(--gold); }
  .menu-btn:hover .mb-bar:nth-child(1) { transform: translate(0, -4px) rotate(-15deg); }
  .menu-btn:hover .mb-bar:nth-child(2) { transform: translate(0, 4px) rotate(-15deg); width: 20px; }
}
.menu-open .menu-btn { border-color: transparent; }
.menu-open .menu-btn::before { clip-path: circle(51% at 50% 50%); }
.menu-open .menu-btn .mb-bar { background: var(--ink); width: 20px; }
.menu-open .menu-btn .mb-bar:nth-child(1) { transform: translate(0, 0) rotate(45deg); }
.menu-open .menu-btn .mb-bar:nth-child(2) { transform: translate(0, 0) rotate(-45deg); }
.mb-spark { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; opacity: 0; pointer-events: none; }
.menu-open .mb-spark { animation: mbSpark .7s var(--ease-out); }
@keyframes mbSpark {
  0% { opacity: 1; box-shadow: 0 0 0 0 #FFF4D6, 0 0 0 0 #FFC247, 0 0 0 0 #FF8A00, 0 0 0 0 #FFC247, 0 0 0 0 #FF8A00, 0 0 0 0 #FFF4D6, 0 0 0 0 #FFC247, 0 0 0 0 #FF8A00; }
  100% { opacity: 0; box-shadow: 0 -40px 0 -1px #FFF4D6, 28px -28px 0 -1px #FFC247, 40px 0 0 -1px #FF8A00, 28px 28px 0 -1px #FFC247, 0 40px 0 -1px #FF8A00, -28px 28px 0 -1px #FFF4D6, -40px 0 0 -1px #FFC247, -28px -28px 0 -1px #FF8A00; }
}

/* Menu overlay: a heat layer and an ink layer wipe in on the mark's slant, one after the other */
.menu { position: fixed; inset: 0; z-index: 110; visibility: hidden; pointer-events: none; transition: visibility 0s linear 1s; }
.menu-open .menu { visibility: visible; pointer-events: auto; transition: none; }
.menu-heat, .menu-panel {
  position: absolute; inset: 0;
  clip-path: polygon(0% 0%, 0% 0%, -45% 100%, -45% 100%);
}
.menu-heat {
  background: linear-gradient(115deg, #FFE7A6, var(--gold) 35%, var(--ember) 70%, #7A3510);
  transition: clip-path .65s var(--ease-io) .22s;
}
.menu-panel {
  background: var(--ink); overflow: hidden;
  padding: calc(var(--nav-h) + 32px) var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: clip-path .6s var(--ease-io) 0s;
}
.menu-open .menu-heat { clip-path: polygon(0% 0%, 145% 0%, 100% 100%, -45% 100%); transition-delay: 0s; }
.menu-open .menu-panel { clip-path: polygon(0% 0%, 145% 0%, 100% 100%, -45% 100%); transition: clip-path .7s var(--ease-io) .16s; }
.menu ul { position: relative; z-index: 1; }
.menu ul li { overflow: hidden; }
.menu ul a { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(44px, 13vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; }
.menu ul a span { color: var(--gold); font-size: 14px; letter-spacing: 0; padding-top: .9em; opacity: 0; transition: opacity .4s var(--ease-out); }
.menu ul a b { display: inline-block; font-weight: 600; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform .5s var(--ease-io), color .3s var(--ease-out); }
.menu-open .menu ul a b { transform: none; transition: transform .8s var(--ease-out) calc(.42s + var(--i, 0) * .07s), color .3s var(--ease-out); }
.menu-open .menu ul a span { opacity: 1; transition-delay: calc(.55s + var(--i, 0) * .07s); }
.menu ul li:nth-child(2) { --i: 1; } .menu ul li:nth-child(3) { --i: 2; } .menu ul li:nth-child(4) { --i: 3; } .menu ul li:nth-child(5) { --i: 4; }
@media (hover: hover) and (pointer: fine) {
  .menu ul:hover a b { color: rgba(244, 239, 230, .3); }
  .menu ul a:hover b { color: var(--gold); }
}
.menu-mark {
  position: absolute; right: -12vw; bottom: -10vh; width: min(92vw, 760px); height: auto; z-index: 0;
  fill: none; stroke: var(--gold); stroke-width: 10; stroke-linejoin: round;
  stroke-dasharray: 12500; stroke-dashoffset: 12500; opacity: .5;
  transform: rotate(-6deg) scale(.94); transform-origin: 60% 60%;
  transition: stroke-dashoffset .4s var(--ease-io), transform .6s var(--ease-out);
}
.menu-open .menu-mark { stroke-dashoffset: 0; transform: none; transition: stroke-dashoffset 1.6s var(--ease-io) .45s, transform 1.4s var(--ease-out) .35s; }
.menu-foot { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; color: var(--dim); opacity: 0; transition: opacity .3s; }
.menu-open .menu-foot { opacity: 1; transition: opacity .6s var(--ease-out) .8s; }
.menu-foot a { color: var(--bone); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--gold); mix-blend-mode: difference;
  display: grid; place-items: center; opacity: 0;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), opacity .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; mix-blend-mode: normal; background: var(--gold); }
.cursor-label { font-size: 13px; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .25s; }
.cursor.is-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Heat meter (scroll thermometer) ---------- */
.heat-meter {
  position: fixed; right: var(--pad); bottom: 22px; z-index: 100; flex-direction: row-reverse;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  pointer-events: none;
}
.heat-meter .bar { width: 64px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.heat-meter .bar i { position: absolute; inset: 0; background: var(--heat); transform-origin: left; transform: scaleX(var(--heat, 1)); }
.heat-meter .temp { color: var(--bone); min-width: 7ch; }

/* ---------- Sections ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sec { position: relative; padding: var(--s-32) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: var(--s-16); flex-wrap: wrap; }
.sec-head .label { margin-bottom: 20px; }
.rule { height: 1px; background: var(--line); }

/* =========================================================
   01 IGNITE · hero: weld the mark, then open it onto the archive
   ========================================================= */
.ignite { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.ignite-wall {
  position: absolute; inset: -10% -4%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  transform-origin: 50% 50%; pointer-events: none;
}
.ignite-wall.is-live { pointer-events: auto; }
.wall-col { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.wall-col:nth-child(even) { margin-top: -18vh; }
.poster {
  position: relative; display: block; width: 100%; border-radius: 6px; overflow: hidden;
  background: var(--steel); aspect-ratio: 2 / 3;
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .8s var(--ease-out); filter: saturate(.92) brightness(.9); }
.poster .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; text-align: left;
  background: linear-gradient(to top, rgba(10, 9, 8, .92), transparent);
  font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.poster .cap b { font-weight: 600; }
.poster .cap span { color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .poster:hover img { transform: scale(1.05); filter: none; }
  .poster:hover .cap, .poster:focus-visible .cap { opacity: 1; transform: none; }
}
.ignite-shade {
  position: absolute; inset: 0 0 -3px 0; pointer-events: none;   /* past the bottom edge, so no sliver of the wall shows on fractional heights */
  background: radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(10, 9, 8, .75) 100%),
              /* the wall melts fully into the page colour at the bottom, so the archive never ends on a cut line */
              linear-gradient(to bottom, rgba(10, 9, 8, .5), transparent 22%, transparent 62%, rgba(10, 9, 8, .82) 84%, var(--ink) 97%);
  opacity: 0;
}
/* the section after the hero overlaps its bottom edge by a few pixels: on fractional heights the moving
   poster columns could otherwise show as a bright hairline just under the archive */
.heat::before { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 6px; background: var(--ink); pointer-events: none; }
.ignite-veil, .ignite-mark, .ignite-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ignite-veil { color: var(--ink); }
/* Furnace backdrop: WebGL fire + 2D grid and embers. The still gradient is the no-WebGL / no-JS fallback. */
.ignite-bg {
  --furnace: radial-gradient(75% 48% at 52% 112%, rgba(255, 138, 0, .5), rgba(122, 53, 16, .22) 55%, transparent 82%),
             radial-gradient(42% 34% at 12% 104%, rgba(255, 110, 0, .22), transparent 72%),
             radial-gradient(42% 34% at 90% 104%, rgba(255, 110, 0, .2), transparent 72%);
  position: absolute; inset: 0; pointer-events: none; background: var(--ink);
}
.ignite-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ignite-bg .bg-fx { mix-blend-mode: screen; }
.ignite-bg.no-gl { background: var(--furnace), var(--ink); animation: furnace 6s ease-in-out infinite; }
.ignite-bg.no-gl .bg-fire { display: none; }
@keyframes furnace { 50% { filter: brightness(1.25); } }
.ignite-mark .seam { stroke: #FFF4D6; stroke-linecap: round; fill: none; opacity: 0; }
.ignite-mark .glow { filter: url(#bloom); }

.ignite-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 var(--pad) clamp(28px, 5vh, 56px);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end;
}
.ignite-copy h1 { font-size: clamp(34px, 4.4vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: .95; max-width: 15ch; text-wrap: balance; }
.ignite-copy .kicker { display: block; margin-bottom: 18px; }
.ignite-side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; justify-self: end; max-width: 440px; }
.ignite-side p { color: var(--dim); font-size: 16px; text-shadow: 0 1px 2px rgba(10, 9, 8, .9), 0 0 22px rgba(10, 9, 8, .85); }
.ignite-copy .kicker { text-shadow: 0 0 18px rgba(10, 9, 8, .9); }
.ignite-side p strong { color: var(--bone); font-weight: 500; }
.ignite-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; z-index: 3; right: var(--pad); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue i { display: block; width: 48px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--gold); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.strike-hud {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(28px, 7vh, 64px); transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 10px; opacity: 0; visibility: hidden; pointer-events: none;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
.strike-hud .strike-n { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; color: var(--gold); line-height: 1; }
html:not(.has-motion) .strike-hud { display: none; }

.archive-cap {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 48px);
  display: flex; justify-content: space-between; align-items: end; gap: 24px; pointer-events: none;
  visibility: hidden;
}
.archive-cap .h2 { font-size: clamp(44px, 8vw, 140px); text-shadow: 0 10px 60px rgba(0, 0, 0, .55); }
.archive-cap p { max-width: 30ch; color: var(--bone); font-weight: 500; text-shadow: 0 2px 24px rgba(0, 0, 0, .8); }

/* Static / reduced-motion fallback for the hero */
html:not(.has-motion) .ignite { height: auto; min-height: 100svh; overflow: visible; padding-top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; }
html:not(.has-motion) .ignite-mark { order: 1; }
html:not(.has-motion) .ignite-copy { order: 2; }
html:not(.has-motion) .archive-cap { order: 3; }
html:not(.has-motion) .ignite-wall { order: 4; }
html:not(.has-motion) .ignite-shade { display: none; }
html:not(.has-motion) .ignite-veil, html:not(.has-motion) .ignite-sparks { display: none; }
html:not(.has-motion) .ignite { isolation: isolate; }
html:not(.has-motion) .ignite-bg {
  bottom: auto; height: 100vh; height: 100svh; z-index: -1; background: var(--furnace), var(--ink);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
html:not(.has-motion) .ignite-bg canvas { display: none; }
html:not(.has-motion) .ignite-mark { position: relative; height: 46vh; }
html:not(.has-motion) .ignite-copy { position: relative; padding-top: 24px; }
html:not(.has-motion) .ignite-wall { position: relative; inset: auto; margin-top: 64px; padding: 0 var(--pad); pointer-events: auto; }
html:not(.has-motion) .wall-col:nth-child(even) { margin-top: 0; }
html:not(.has-motion) .archive-cap { position: relative; visibility: visible; padding: 64px 0 0; left: auto; right: auto; bottom: auto; margin: 0 var(--pad); }
html:not(.has-motion) .ignite-mark .whole { opacity: 1; }
html:not(.has-motion) .scroll-cue { display: none; }

/* =========================================================
   02 HEAT · manifesto + numbers
   ========================================================= */
.manifesto {
  font-size: clamp(30px, 4.3vw, 72px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.06;
  max-width: 22ch; text-wrap: pretty;
}
.manifesto .w { color: var(--bone); }
.has-motion .manifesto .w { color: rgba(244, 239, 230, .16); }
.manifesto .w.gold { color: var(--gold); }
.has-motion .manifesto .w.gold { color: rgba(255, 194, 71, .18); }
.heat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16) var(--s-24); align-items: end; }
.numbers { margin-top: var(--s-24); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.num { padding: var(--s-8) var(--s-6) 0 0; border-right: 1px solid var(--line); }
.num + .num { padding-left: var(--s-6); }
.num:last-child { border-right: 0; }
.num-v { font-size: clamp(56px, 7vw, 120px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; display: flex; align-items: flex-start; }
.num-v sup { font-size: .32em; color: var(--gold); margin: .2em 0 0 .1em; letter-spacing: 0; }
.num p { margin-top: 18px; color: var(--dim); font-size: 15px; max-width: 24ch; }

/* =========================================================
   03 PROOF · on air + first place
   ========================================================= */
.proof-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s-16); align-items: start; }
.proof-sticky { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 28px; }
.proof-cards { display: flex; flex-direction: column; gap: var(--s-12); }
.proof-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.proof-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.proof-media img, .proof-media video { width: 100%; height: 100%; object-fit: cover; }
.proof-media.tall { aspect-ratio: 4 / 3; }
.proof-media.tall img { object-position: 50% 40%; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  background: radial-gradient(circle at 50% 50%, rgba(10, 9, 8, .1), rgba(10, 9, 8, .55));
}
.play span {
  width: 92px; height: 92px; border-radius: 50%; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; transition: transform .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .play:hover span { transform: scale(1.08); } }
.play.is-hidden { display: none; }
.proof-body { padding: 28px clamp(20px, 3vw, 36px) 32px; display: grid; grid-template-columns: clamp(110px, 12vw, 168px) 1fr; gap: 8px clamp(20px, 2.4vw, 36px); align-items: start; }
.proof-text { display: flex; flex-direction: column; gap: 10px; }
.proof-body .yr { font-size: 14px; font-weight: 600; color: var(--gold); }
.proof-body h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.proof-body p { color: var(--dim); max-width: 52ch; }
.proof-text a { color: var(--gold); width: fit-content; }
/* Poster thumbnail lifts out of the card and overlaps the media above it */
.proof-thumb {
  position: relative; z-index: 3; display: block; margin-top: calc(-1 * clamp(70px, 8vw, 120px));
  border-radius: 8px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--steel);
  border: 3px solid var(--ink-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
  transform: rotate(-4deg); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proof-thumb span {
  position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 8px; border-radius: 999px; text-align: center;
  background: rgba(10, 9, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
@media (hover: hover) and (pointer: fine) {
  .proof-card:hover .proof-thumb { transform: rotate(0deg) translateY(-8px) scale(1.04); box-shadow: 0 34px 80px rgba(0, 0, 0, .75), 0 0 0 1px var(--gold); }
}

/* =========================================================
   04 STRIKE · selected work, horizontal on desktop
   ========================================================= */
.work { position: relative; }
.work-pin { position: relative; }
.work-track { display: flex; gap: clamp(20px, 2.4vw, 40px); padding: 0 var(--pad); will-change: transform; }
.work-intro { flex: 0 0 clamp(300px, 30vw, 480px); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-right: 2vw; }
.case { flex: 0 0 clamp(320px, 58vw, 940px); display: flex; flex-direction: column; gap: 22px; }
.case-media { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--steel); }
.case-media img { width: 116%; max-width: none; height: 100%; object-fit: cover; margin-left: -8%; transition: filter .8s var(--ease-out); filter: brightness(.88); }
@media (hover: hover) and (pointer: fine) { .case:hover .case-media img { filter: none; } }
.case-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 8px 14px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
/* Fixed rhythm so every card lines up: number | meta, title, description (3 lines), tags */
.case-row { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "n meta" "n title" "n desc" "n tags"; gap: 10px 18px; align-items: start; }
.case-n { grid-area: n; font-size: 14px; font-weight: 600; color: var(--gold); padding-top: 2px; }
.case h3 { grid-area: title; font-size: clamp(26px, 2.6vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.case h3 span { color: var(--dim); font-weight: 500; }
.case-meta { grid-area: meta; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-desc { grid-area: desc; color: var(--dim); max-width: 60ch; }
.tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.work-horizontal .case h3 { min-height: 2.04em; }
.work-horizontal .case-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.55em); }
.tags li { font-size: 12px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--dim); }
.work-horizontal .work { padding: 0; }
.work-horizontal .work-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work-horizontal .work-track { align-items: flex-start; }
.work-horizontal .work-intro { align-self: stretch; }
.work-horizontal .case { flex-basis: min(58vw, calc((100vh - 330px) * 1.6)); }
.work-horizontal .work-track::after { content: ''; flex: 0 0 1px; }
.work-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; height: 2px; background: var(--line); overflow: hidden; }
.work-progress i { position: absolute; inset: 0; background: var(--heat); transform-origin: left; transform: scaleX(0); }
html:not(.has-motion) .work-progress { display: none; }

/* =========================================================
   05 PRACTICE · disciplines with cursor-follow preview
   ========================================================= */
.disc { border-top: 1px solid var(--line); }
.disc li { border-bottom: 1px solid var(--line); }
.disc a {
  position: relative; display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 40px) 0;
}
.disc .n { font-size: 14px; font-weight: 600; color: var(--mute); transition: color .4s var(--ease-out); }
.disc .t {
  font-size: clamp(34px, 5.6vw, 96px); font-weight: 600; letter-spacing: -0.045em; line-height: .95;
  transition: color .5s var(--ease-out), transform .6s var(--ease-out);
}
.disc .d { color: var(--dim); max-width: 42ch; justify-self: end; }
.disc .thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .disc a:hover .t { color: var(--gold); transform: translateX(18px); }
  .disc a:hover .n { color: var(--gold); }
  .disc:hover a:not(:hover) .t { color: rgba(244, 239, 230, .3); }
}
.disc-preview {
  position: fixed; left: 0; top: 0; z-index: 90; width: 300px; aspect-ratio: 3 / 4; pointer-events: none;
  border-radius: 10px; overflow: hidden; opacity: 0; transform: scale(.85);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.disc-preview.is-on { opacity: 1; transform: scale(1); }
.disc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease-out); }
.disc-preview img.is-on { opacity: 1; }

/* =========================================================
   06 THE MARK · identity exploded view
   ========================================================= */
.mark-sec { overflow: hidden; }
.mark-stage { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-16); align-items: center; min-height: 100vh; min-height: 100svh; padding-block: var(--s-24); }
.mark-copy { display: flex; flex-direction: column; gap: 28px; }
.mark-art { position: relative; aspect-ratio: 1 / 1; }
.mark-art svg { width: 100%; height: 100%; overflow: visible; }
.mark-art .grid line { stroke: rgba(244, 239, 230, .14); stroke-width: 6; stroke-dasharray: 18 22; }
.cv-hero-mark path, .mark-art .mk-s { stroke: url(#heatG); stroke-width: 8; stroke-linejoin: round; }
.mark-art .tag-l { font: 600 64px var(--f); fill: var(--dim); letter-spacing: 4px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch { border-radius: 10px; padding: 64px 14px 12px; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.swatch span { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.swatch.g { background: var(--gold); color: var(--ink); }
.swatch.o { background: var(--ember); color: var(--ink); }
.swatch.s { background: var(--steel); color: var(--bone); border: 1px solid var(--line); }
.type-chip { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.type-chip b { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.type-chip span { color: var(--dim); font-size: 14px; }

/* =========================================================
   07 TEMPER · about + timeline
   ========================================================= */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-16); align-items: start; }
.portrait { position: sticky; top: calc(var(--nav-h) + 32px); border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--steel); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 9, 8, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 500;
}
.about-copy { display: flex; flex-direction: column; gap: 28px; }
.about-copy .h2 { font-size: clamp(36px, 4.6vw, 80px); }
.about-copy p { color: var(--dim); font-size: 18px; max-width: 56ch; }
.about-copy p strong { color: var(--bone); font-weight: 500; }
/* The maker's signature under the statement */
.sig { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); margin: 4px 0 8px; }
.sig-mark { flex: none; width: clamp(132px, 15vw, 196px); height: auto; overflow: visible; }
.sig-stroke { fill: none; stroke: #fff; stroke-width: 66; stroke-linecap: round; stroke-linejoin: round; }
.sig-ink { fill: var(--bone); transition: fill 2.2s var(--ease-out); }
.sig-mark { transition: filter 2.2s var(--ease-out); }
.sig-tip { fill: #FFF4D6; opacity: 0; filter: drop-shadow(0 0 18px #FFC247) drop-shadow(0 0 44px #FF8A00); }
.sig.is-hot .sig-ink { fill: var(--gold); transition: none; }
.sig.is-hot .sig-mark { filter: drop-shadow(0 0 7px rgba(255, 150, 40, .7)); transition: none; }
.sig-cap { display: flex; flex-direction: column; gap: 4px; padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.sig-cap b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.sig-cap span:last-child { color: var(--dim); font-size: 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fact { background: var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.fact .label { font-size: 11px; }
.fact b { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.fact span { color: var(--dim); font-size: 14px; }

.timeline { position: relative; margin-top: var(--s-8); padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-fill { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, #FFE7A6, var(--gold), var(--ember)); transform-origin: top; transform: scaleY(0); }
html:not(.has-motion) .tl-fill { transform: none; }
.tl { position: relative; padding: 0 0 36px; }
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: ''; position: absolute; left: -40px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--steel-2); transition: border-color .5s var(--ease-out), background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tl.is-lit::before, html:not(.has-motion) .tl::before { border-color: var(--gold); background: var(--ember); box-shadow: 0 0 22px rgba(255, 138, 0, .6); }
.tl .y { font-size: 14px; font-weight: 600; color: var(--gold); }
.tl h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 4px; }
.tl p { color: var(--dim); font-size: 15px; }

/* =========================================================
   08 QUENCH · contact + footer
   ========================================================= */
.quench { padding: var(--s-32) 0 0; position: relative; overflow: hidden; }
.quench-head { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.quench .display { font-size: clamp(56px, 12vw, 220px); }
.quench-mail {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: clamp(22px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em;
  border-bottom: 2px solid var(--line-2); padding-bottom: 8px; transition: border-color .4s var(--ease-out), color .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .quench-mail:hover { color: var(--gold); border-color: var(--gold); } }
.quench-cols { margin-top: var(--s-24); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.quench-cols h4 { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.quench-cols li + li { margin-top: 6px; }
.quench-cols a, .quench-cols li { color: var(--dim); transition: color .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .quench-cols a:hover { color: var(--gold); } }
.quench-cols p { color: var(--dim); max-width: 34ch; }
/* End credits: a short window the credits roll through, fading at both edges */
.credits {
  position: relative; height: clamp(190px, 27vh, 250px); overflow: hidden; margin-top: var(--s-12);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
}
.credits-roll { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-block: 8px; text-align: center; will-change: transform; }
.credits-title { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.credits dl { display: flex; flex-direction: column; gap: 18px; width: min(100%, 620px); }
.credits dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: baseline; }
.credits dt { text-align: right; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.credits dd { text-align: left; font-size: 15px; font-weight: 500; color: var(--bone); line-height: 1.45; }
.credits-end { font-size: 14px; color: var(--dim); }
html:not(.has-motion) .credits { height: auto; -webkit-mask-image: none; mask-image: none; }
.foot-mark { position: relative; margin-top: 16px; }
.foot-word {
  display: block; font-weight: 700; letter-spacing: -0.06em; line-height: .78;
  font-size: clamp(90px, 24.5vw, 470px); color: var(--steel); user-select: none;
  transition: color .8s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .foot-mark:hover .foot-word { color: #3a2410; } }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  background: rgba(10, 9, 8, .94); color: var(--bone);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); gap: 16px; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--pad); }
.lb-stage img { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); max-width: 100%; width: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 120px rgba(0, 0, 0, .7); }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { border-color: var(--gold); background: rgba(255, 194, 71, .08); } }
.lb-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.lb-count { color: var(--mute); font-size: 14px; }

/* ---------- Reveal defaults (JS sets initial state only when motion is on) ---------- */
.has-motion [data-reveal], .has-motion [data-reveal-item], .has-motion [data-lines], .has-motion [data-hero] { visibility: hidden; }

/* =========================================================
   RESUME PAGE
   ========================================================= */
.cv-hero { padding: calc(var(--nav-h) + var(--s-16)) 0 var(--s-16); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.cv-hero .display { font-size: clamp(64px, 14vw, 250px); }
.cv-hero-mark { position: absolute; right: -6vw; top: 8vh; width: min(52vw, 760px); opacity: .9; pointer-events: none; }
.cv-role { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.cv-role li { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; font-size: 15px; background: rgba(10, 9, 8, .5); }
.cv-contact { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 48px; }
.cv-contact div { display: flex; flex-direction: column; gap: 4px; }
.cv-contact a, .cv-contact b { font-weight: 500; font-size: 16px; }
.cv-contact a { color: var(--gold); }
.cv-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-16); padding-block: var(--s-16) var(--s-24); }
.cv-rail { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 6px; }
.cv-rail a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--mute); font-weight: 500; transition: color .3s var(--ease-out); }
.cv-rail a i { width: 18px; height: 2px; background: var(--line-2); transition: width .4s var(--ease-out), background-color .4s var(--ease-out); }
.cv-rail a.is-active { color: var(--bone); }
.cv-rail a.is-active i { width: 36px; background: var(--gold); }
.cv-rail .btn { margin-top: 24px; justify-content: center; }
.cv-main { display: flex; flex-direction: column; }
.cv-sec { padding: var(--s-12) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.cv-sec:first-child { border-top: 0; padding-top: 0; }
.cv-sec > h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(30px, 3.4vw, 52px); font-weight: 600; letter-spacing: -0.035em; margin-bottom: 28px; }
.cv-sec > h2 span { font-size: 14px; color: var(--gold); letter-spacing: 0; }
.cv-summary { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; color: var(--dim); max-width: 60ch; }
.cv-summary strong { color: var(--bone); font-weight: 500; }
.cv-awards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-award { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.cv-award img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; filter: brightness(.85); }
.cv-award div { padding: 22px; }
.cv-award .yr { color: var(--gold); font-weight: 600; font-size: 14px; }
.cv-award h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 8px; line-height: 1.15; }
.cv-award p { color: var(--dim); font-size: 15px; }
.skill-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.skill-group h3 { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.meter-row b { font-weight: 500; font-size: 17px; }
.meter-row span { font-size: 14px; color: var(--dim); }
.meter { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.meter i { height: 4px; border-radius: 2px; background: var(--steel); position: relative; overflow: hidden; }
.meter i.on::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--fill, 1)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--dim); }
.skill-note { margin-top: 14px; color: var(--mute); font-size: 14px; }
.cv-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cv-item:last-child { border-bottom: 0; }
.cv-item .when { color: var(--gold); font-weight: 600; font-size: 14px; padding-top: 4px; font-variant-numeric: tabular-nums; }
.cv-item h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.cv-item h3 small { display: block; font-size: 14px; font-weight: 500; color: var(--mute); margin-top: 4px; letter-spacing: 0; }
.cv-item ul { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cv-item li { color: var(--dim); padding-left: 18px; position: relative; max-width: 66ch; }
.cv-item li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--ember); }
.cv-item p { color: var(--dim); margin-top: 6px; }
.cv-item a.link-u { margin-top: 10px; color: var(--gold); font-size: 14px; }
.lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lang div { padding: 20px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.lang b { font-size: 20px; font-weight: 600; }
.lang span { color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-status { display: none; }
  .ignite-wall { grid-template-columns: repeat(4, 1fr); }
  .ignite-wall .wall-col:nth-child(5) { display: none; }
  .ignite-copy { grid-template-columns: 1fr; gap: 24px; }
  .ignite-side { justify-self: start; }
  .heat-grid, .proof-grid, .about-grid, .mark-stage { grid-template-columns: 1fr; }
  .proof-sticky, .portrait { position: relative; top: 0; }
  .portrait { max-width: 560px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(3) { padding-left: 0; }
  .num:nth-child(n+3) { margin-top: var(--s-8); }
  .disc a { grid-template-columns: 56px 1fr; }
  .disc .d { grid-column: 2; justify-self: start; }
  .quench-cols { grid-template-columns: 1fr 1fr; }
  .cv-body { grid-template-columns: 1fr; }
  .cv-rail { display: none; }
  .cv-contact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .sec { padding: var(--s-24) 0; }
  .ignite-wall { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wall-col { gap: 8px; }
  .ignite-wall .wall-col:nth-child(4) { display: none; }
  .scroll-cue, .heat-meter { display: none; }
  .ignite-actions .btn { height: 48px; padding: 0 20px; }
  .archive-cap { flex-direction: column; align-items: flex-start; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num { padding-right: var(--s-4); }
  .num + .num { padding-left: var(--s-4); }
  .num:nth-child(3) { padding-left: 0; }
  .num p { font-size: 14px; }
  .proof-body { grid-template-columns: 96px 1fr; }
  .proof-thumb span { display: none; }
  .proof-thumb { margin-top: -64px; }
  .case-row { grid-template-columns: 34px 1fr; gap: 8px 12px; }
  .disc .thumb { display: block; grid-column: 2; width: 100%; max-width: 260px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
  .facts { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr 1fr; }
  .swatch { padding-top: 44px; font-size: 12px; }
  .quench-cols { grid-template-columns: 1fr; }
  .cv-contact { grid-template-columns: 1fr; }
  .cv-awards, .skill-groups, .lang { grid-template-columns: 1fr; }
  .cv-item { grid-template-columns: 1fr; gap: 6px; }
  .cv-hero-mark { width: 90vw; right: -30vw; top: 4vh; opacity: .35; }
}

/* Work track becomes a vertical list when not pinned (mobile / reduced motion / no JS) */
@media (max-width: 900px) {
  .work-track { flex-direction: column; gap: var(--s-16); }
  .work-intro, .case { flex: none; width: 100%; }
  .work-progress { display: none; }
}
html:not(.has-motion) .work-track { flex-direction: column; gap: var(--s-16); }
html:not(.has-motion) .work-intro, html:not(.has-motion) .case { flex: none; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
}

/* ---------- Print (resume) ---------- */
@media print {
  .nav, .menu, .grain, .cursor, .heat-meter, .cv-rail, .cv-hero-mark, .quench, .no-print { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .cv-hero { padding: 0 0 12pt; border-color: #ccc; }
  .cv-hero .display { font-size: 40pt; color: #111; }
  .cv-role li { border-color: #bbb; background: none; padding: 2pt 8pt; font-size: 10pt; }
  .cv-contact a { color: #111; }
  .cv-body { display: block; padding: 0; }
  .cv-sec { padding: 12pt 0; border-color: #ccc; break-inside: avoid; }
  .cv-summary, .cv-item li, .cv-item p, .meter-row span, .cv-award p, .lang span, .chips li { color: #333; }
  .cv-award img { display: none; }
  .meter { display: none; }
  .has-motion [data-reveal] { visibility: visible !important; opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   CASE STUDY PAGES · shared components
   ========================================================= */
.cs-hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 48px) 0 64px; display: flex; align-items: center; overflow: hidden; }
.cs-hero::before {
  content: ''; position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -18vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 0, .16), rgba(255, 194, 71, .05) 40%, transparent 68%); pointer-events: none;
}
.cs-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-16); align-items: center; }
.cs-hero-grid > *, .cs-split > *, .cs-head > *, .proof-grid > *, .about-grid > * { min-width: 0; }
.cs-hero h1 { font-size: clamp(38px, 7.4vw, 132px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; margin: 22px 0 26px; text-wrap: balance; }
.cs-hero h1 .gold { display: inline; }
.cs-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cs-badge { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); color: var(--bone); }
.cs-badge.hot { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cs-meta { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cs-meta div { background: var(--ink); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.cs-meta .label { font-size: 11px; }
.cs-meta b { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.cs-hero-visual { position: relative; }
.cs-hero-visual figure { position: relative; border-radius: 16px; overflow: hidden; background: var(--steel); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.cs-hero-visual figure img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero-visual.is-poster figure { aspect-ratio: 2 / 3; max-height: 78vh; margin-left: auto; }
.cs-hero-visual .tag-float {
  position: absolute; left: -18px; bottom: 28px; z-index: 2; padding: 12px 16px; border-radius: 12px;
  background: rgba(10, 9, 8, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; display: flex; flex-direction: column; gap: 2px;
}
.cs-hero-visual .tag-float b { color: var(--gold); font-weight: 600; }
.cs-stack { position: relative; aspect-ratio: 1 / 1; }
.cs-stack figure { position: absolute; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.cs-stack .s1 { inset: 0 18% 22% 0; }
.cs-stack .s2 { width: 46%; right: 0; top: 18%; aspect-ratio: 3 / 4; }
.cs-stack .s3 { width: 52%; left: 12%; bottom: 0; aspect-ratio: 16 / 10; }
.cs-phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 70vh; }
.cs-phones figure { width: 31%; aspect-ratio: 390 / 844; border-radius: 28px; border: 6px solid #1b1a18; background: #000; }
.cs-phones figure:nth-child(1) { transform: translateX(14%) rotate(-7deg) translateY(4%); }
.cs-phones figure:nth-child(2) { z-index: 2; width: 36%; }
.cs-phones figure:nth-child(3) { transform: translateX(-14%) rotate(7deg) translateY(4%); }

.cs-sec { position: relative; padding: var(--s-24) 0; }
.cs-sec + .cs-sec { padding-top: var(--s-12); }
.cs-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-12); align-items: end; margin-bottom: var(--s-12); }
.cs-head .h2 { font-size: clamp(36px, 5vw, 88px); margin-top: 18px; }
.cs-head p { color: var(--dim); font-size: 17px; max-width: 52ch; }
.cs-prose { display: flex; flex-direction: column; gap: 18px; max-width: 64ch; }
.cs-prose p { color: var(--dim); font-size: 18px; }
.cs-prose strong { color: var(--bone); font-weight: 500; }
.cs-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: center; }
.cs-split.flip > :first-child { order: 2; }

.cs-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; }
.cs-card {
  position: relative; padding: 28px 26px 30px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: border-color .5s var(--ease-out), transform .5s var(--ease-out);
}
.cs-card::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 40px; background: var(--heat); transition: width .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cs-card:hover { border-color: rgba(255, 194, 71, .45); transform: translateY(-4px); }
  .cs-card:hover::before { width: 100%; }
}
.cs-card .k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.cs-card h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.cs-card p { color: var(--dim); font-size: 15px; }
.cs-card .big { font-size: clamp(48px, 5vw, 80px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; color: var(--bone); }

.cs-figure { position: relative; margin: 0; }
.cs-figure .frame { position: relative; overflow: hidden; border-radius: 14px; background: var(--steel); }
.cs-figure .frame.light { background: #F2EFE9; }
.cs-figure img { width: 100%; height: auto; }
.cs-figure .frame.cover img { height: 100%; object-fit: cover; }
.cs-figure figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 13px; color: var(--mute); }
.cs-figure figcaption b { color: var(--bone); font-weight: 500; }
[data-zoom] { cursor: zoom-in; }
.cs-gallery { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 18px; }
.cs-gallery .wide { grid-column: 1 / -1; }

.cs-steps { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); position: relative; }
.cs-steps .tl-fill-x { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--heat); transform-origin: left; transform: scaleX(0); }
html:not(.has-motion) .cs-steps .tl-fill-x { transform: none; }
.cs-step { padding: 28px 22px 0 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.cs-step::before { content: ''; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
.cs-step .k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.cs-step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.cs-step p { color: var(--dim); font-size: 15px; }

.cs-statement { padding: var(--s-24) 0; }
.cs-statement .manifesto { max-width: 26ch; }

.cs-quote { font-size: clamp(30px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; max-width: 22ch; }
.cs-quote::before { content: '“'; color: var(--gold); }
.cs-quote::after { content: '”'; color: var(--gold); }

.cs-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cs-list > div { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cs-list .n { font-size: 14px; font-weight: 600; color: var(--gold); padding-top: 4px; }
.cs-list h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.cs-list p { color: var(--dim); }

.cs-swatches { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; }
.cs-swatches div { border-radius: 12px; padding: 90px 14px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); }
.cs-swatches span { font-weight: 500; opacity: .75; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Before / after compare */
.compare { position: relative; max-width: 760px; margin: 0 auto; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; --pos: 50%; background: var(--steel); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--gold); transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 20px rgba(255, 138, 0, .6); }
.compare .handle::after {
  content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-size: 22px; font-weight: 600;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 16px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(10, 9, 8, .75); font-size: 13px; font-weight: 600; pointer-events: none; }
.compare .tag.l { left: 16px; } .compare .tag.r { right: 16px; }
.compare input:focus-visible ~ .handle::after { outline: 2px solid var(--bone); outline-offset: 3px; }

/* Horizontal screen rail (drag / swipe) */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 24px; scrollbar-width: thin; scrollbar-color: var(--steel-2) transparent; cursor: grab; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.screen { width: clamp(200px, 19vw, 260px); display: flex; flex-direction: column; gap: 10px; }
.screen .ph { aspect-ratio: 390 / 844; border-radius: 26px; overflow: hidden; border: 5px solid #1b1a18; background: #000; }
.screen .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.screen h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.screen p { color: var(--dim); font-size: 14px; }
.rail-hint { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 13px; margin-bottom: 18px; }
.rail-hint i { width: 36px; height: 1px; background: var(--gold); }

/* Next project */
.next-case { position: relative; display: block; padding: var(--s-24) 0; border-top: 1px solid var(--line); overflow: hidden; }
.next-case .label { margin-bottom: 18px; }
.next-case .t { display: block; font-size: clamp(48px, 10vw, 180px); font-weight: 600; letter-spacing: -0.055em; line-height: .88; transition: color .5s var(--ease-out); }
.next-case .t span { color: var(--gold); }
.next-case .sub { display: block; margin-top: 18px; color: var(--dim); font-size: 17px; }
.next-case .peek {
  position: absolute; right: var(--pad); top: 50%; width: min(34vw, 460px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  transform: translateY(-50%) rotate(4deg) scale(.9); opacity: 0; transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6); pointer-events: none;
}
.next-case .peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .next-case:hover .peek { opacity: 1; transform: translateY(-50%) rotate(0) scale(1); }
  .next-case:hover .t { color: var(--gold); }
}
.back-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .cs-hero-grid, .cs-head, .cs-split { grid-template-columns: 1fr; }
  .cs-split.flip > :first-child { order: 0; }
  .cs-hero-visual.is-poster figure { max-height: none; max-width: 520px; margin: 0; }
  .cs-cards { --cols: 2 !important; }
  .cs-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-phones { min-height: 0; }
}
@media (max-width: 760px) {
  .cs-hero { min-height: 0; }
  .cs-cards, .cs-gallery { grid-template-columns: 1fr !important; }
  .cs-steps { grid-template-columns: 1fr; }
  .cs-hero-visual .tag-float { left: 12px; bottom: 12px; }
  .cs-stack { aspect-ratio: 4 / 5; }
  .cs-swatches { grid-template-columns: 1fr 1fr; }
  .cs-list > div { grid-template-columns: 44px 1fr; }
  .next-case .peek { display: none; }
}

/* ---------- Touch comfort: generous tap targets on touch / narrow screens ---------- */
@media (max-width: 1100px), (pointer: coarse) {
  .quench-cols a, .menu-foot a, .back-row .link-u, .proof-text .link-u, .cv-item .link-u, .cv-contact a, .foot-bottom .link-u, .mark-copy .link-u {
    display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px;
  }
  /* the taller tap target must not drag the underline away from the words */
  .back-row .link-u::after, .proof-text .link-u::after, .cv-item .link-u::after, .foot-bottom .link-u::after, .mark-copy .link-u::after {
    bottom: calc(50% - 0.775em - 4px);
  }
  .quench-cols li + li { margin-top: 0; }
  .cv-item ul .link-u { min-height: 40px; }
  .brand { min-height: 44px; }
}
/* Tablets and phones have no hover preview, so the practice list shows its images inline */
@media (hover: none), (max-width: 760px) {
  .disc .thumb { display: block; grid-column: 2; width: 100%; max-width: 300px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
}

/* =========================================================
   INTERACTION LAYER · toast, brief builder, detail hunt, transitions, sound, share
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 600; transform: translate(-50%, 20px);
  padding: 14px 20px; border-radius: 999px; background: var(--bone); color: var(--ink);
  font-size: 15px; font-weight: 600; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Copy-email pill next to the big mail link */
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--bone);
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { border-color: var(--gold); background: rgba(255, 194, 71, .08); } }
.copy-btn:active { transform: scale(.97); }

/* Commission brief */
.brief {
  margin-top: var(--s-16); display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8);
  padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2);
}
.brief fieldset { border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brief legend { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; padding: 0; }
.brief-fields { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--dim);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: var(--gold); color: var(--bone); } .chip:hover input:checked + span { color: var(--ink); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--bone); background: var(--ink); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; min-height: 48px; transition: border-color .3s var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.brief-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.brief-preview {
  flex: 1; min-height: 220px; margin: 0; padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--ink);
  font: 14px/1.6 var(--f); color: var(--dim); white-space: pre-wrap; overflow-wrap: anywhere;
}
.brief-side .btn { justify-content: center; }
.brief-note { font-size: 13px; color: var(--mute); }

/* Find the hidden details */
.hunt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: var(--s-12); align-items: start; }
.hunt-stage { position: relative; border-radius: 16px; overflow: hidden; background: var(--steel); }
.hunt-stage img { width: 100%; height: auto; }
.hunt-spot {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center;
}
.hunt-spot::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 194, 71, .7); animation: huntPulse 1.8s var(--ease-out) infinite;
}
.hunt-spot.is-found::before { background: var(--bone); animation: none; box-shadow: 0 0 0 4px rgba(255, 194, 71, .5); }
.hunt-spot[aria-pressed="true"]::before { background: var(--ember); box-shadow: 0 0 0 6px rgba(255, 138, 0, .45); }
@keyframes huntPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 71, .7); } 100% { box-shadow: 0 0 0 18px rgba(255, 194, 71, 0); } }
.hunt-panel { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.hunt-count { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--dim); }
.hunt-count b { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; color: var(--gold); line-height: 1; }
.hunt-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.hunt-card img { width: 100%; height: auto; max-height: 280px; object-fit: cover; }
.hunt-card div { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.hunt-card .k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hunt-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hunt-card p { color: var(--dim); }
.hunt-hint { color: var(--mute); font-size: 15px; }
.hunt-done { padding: 16px 20px; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 600; }

/* Page transition */
.pt { position: fixed; inset: 0; z-index: 500; pointer-events: none; visibility: hidden; }
.pt i { position: absolute; inset: 0; clip-path: polygon(0% 0%, 0% 0%, -45% 100%, -45% 100%); }
.pt-heat { background: linear-gradient(115deg, #FFE7A6, var(--gold) 35%, var(--ember) 70%, #7A3510); }
.pt-ink { background: var(--ink); }
.pt-mark { position: absolute; left: 50%; top: 50%; width: 110px; height: auto; transform: translate(-50%, -50%) scale(.7); opacity: 0; }
.pt.is-in, .pt.is-cover { visibility: visible; pointer-events: auto; }
.pt.is-in .pt-heat { clip-path: polygon(0% 0%, 145% 0%, 100% 100%, -45% 100%); transition: clip-path .5s var(--ease-io); }
.pt.is-in .pt-ink { clip-path: polygon(0% 0%, 145% 0%, 100% 100%, -45% 100%); transition: clip-path .5s var(--ease-io) .1s; }
.pt.is-in .pt-mark { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity .3s var(--ease-out) .35s, transform .5s var(--ease-out) .35s; }
.pt.is-cover i { clip-path: polygon(0% 0%, 145% 0%, 100% 100%, -45% 100%); }
.pt.is-cover .pt-mark { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pt.is-cover.is-out .pt-ink { clip-path: polygon(145% 0%, 145% 0%, 100% 100%, 100% 100%); transition: clip-path .7s var(--ease-io); }
.pt.is-cover.is-out .pt-heat { clip-path: polygon(145% 0%, 145% 0%, 100% 100%, 100% 100%); transition: clip-path .7s var(--ease-io) .1s; }
.pt.is-cover.is-out .pt-mark { opacity: 0; transform: translate(-50%, -50%) scale(1.2); transition: opacity .3s var(--ease-out), transform .5s var(--ease-out); }
/* First paint after a transition: cover the page until the script takes over (auto-clears after 3s as a safety net) */
html.pt-in::before { content: ''; position: fixed; inset: 0; z-index: 499; background: var(--ink); animation: ptSafety 0s linear 3s forwards; }
@keyframes ptSafety { to { visibility: hidden; } }

/* Sound switch (assets/js/forge-sound.js): bottom-left corner, mirroring the heat meter */
.snd {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 9, 8, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  cursor: pointer; transition: border-color .3s var(--ease-out), color .3s var(--ease-out), transform .16s var(--ease-out);
}
.snd.is-floating { position: fixed; left: var(--pad); bottom: 16px; z-index: 100; }
.snd:active { transform: scale(.97); }
.snd-bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.snd-bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .4s var(--ease-out); }
.snd[aria-pressed="true"] { color: var(--gold); border-color: rgba(255, 194, 71, .45); }
.snd[aria-pressed="true"] .snd-bars i { animation: sndEq 1.3s ease-in-out infinite alternate; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(2) { animation-duration: .9s; animation-delay: -.3s; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(3) { animation-duration: 1.6s; animation-delay: -.7s; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(4) { animation-duration: 1.1s; animation-delay: -.5s; }
@keyframes sndEq { from { height: 3px; } to { height: 14px; } }
/* Sound is on but the page is waiting for a first click or tap before it may play */
.snd.is-waiting { animation: sndWait 2.2s ease-in-out infinite; }
.snd.is-waiting .snd-bars i { animation-play-state: paused; }
@keyframes sndWait { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 194, 71, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 194, 71, .14); } }
.snd-hint {
  position: absolute; left: 0; bottom: calc(100% + 10px); padding: 9px 13px; border-radius: 10px; white-space: nowrap;
  background: var(--bone); color: var(--ink); font-size: 12px; letter-spacing: .02em; text-transform: none;
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.snd.has-hint .snd-hint { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .snd:hover { border-color: var(--gold); color: var(--bone); } }
@media (max-width: 760px) {
  .snd { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .snd-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .snd[aria-pressed="true"] .snd-bars i { animation: none; height: 9px; }
  .snd.is-waiting { animation: none; box-shadow: 0 0 0 2px rgba(255, 194, 71, .3); }
}

/* Lightbox share */
.lb-share { width: auto; padding: 0 18px; gap: 8px; display: inline-flex; font-size: 14px; font-weight: 600; }
.lb-share[hidden] { display: none; }
/* Doors to the Foundry: quiet on purpose, only inside the archive */
.lb-foundry { width: auto; padding: 0 18px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--dim); text-decoration: none; white-space: nowrap; }
.lb-foundry[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .lb-foundry:hover { color: var(--bone); } }
@media (max-width: 520px) { .lb-foundry { padding: 0 14px; font-size: 13px; } .lb-share { padding: 0 14px; } }
.archive-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foundry-door {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 14px; font-weight: 500; color: var(--dim); text-decoration: none; text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
  background: linear-gradient(var(--ember), var(--ember)) 0 calc(100% - 8px) / 0 1px no-repeat; transition: color .4s, background-size .6s var(--ease-out);
}
.foundry-door .fd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 138, 0, .6); animation: fd-pulse 2.6s ease-out infinite; }
.foundry-door .arr { transition: transform .4s var(--ease-out); }
.foundry-door:hover, .foundry-door:focus-visible { color: var(--bone); background-size: 100% 1px; }
.foundry-door:hover .arr { transform: translateX(4px); }
@keyframes fd-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 0, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 138, 0, 0); } }
.lb-top-actions { display: flex; gap: 10px; }

@media (max-width: 1100px) {
  .brief, .hunt { grid-template-columns: 1fr; }
  .hunt-panel { position: relative; top: 0; }
}
@media (max-width: 760px) {
  .brief-preview { min-height: 160px; }
  .hunt-spot::before { width: 16px; height: 16px; }
}
