/* ==========================================================================
   MOELLER ILLUSTRATION — "A private museum at midnight"
   Dark gallery: the paintings are the light source.
   Type: Cormorant Garamond (display serif) · Jost (museum-label sans)
   ========================================================================== */

:root {
  --ink: #0b0a07;          /* walls of the room */
  --ink-2: #12100b;        /* panels, mats */
  --ink-3: #191510;
  --bone: #eee7d6;         /* primary text — warm gallery light */
  --bone-60: rgba(238, 231, 214, .60);
  --bone-38: rgba(238, 231, 214, .38);
  --gild: #c9a24f;         /* aged gold */
  --gild-bright: #ecd191;
  --gild-dim: rgba(201, 162, 79, .55);
  --line: rgba(201, 162, 79, .16);
  --line-strong: rgba(201, 162, 79, .34);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Century Gothic', sans-serif;
  --ease-out: cubic-bezier(.22, 1, .26, 1);
  --frame-inset: 12px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in .7s ease both;
}
@keyframes page-in { from { opacity: 0; } }

h1, h2, h3 { text-wrap: balance; }
.section-lede, .tile-line, .game-card-line, .plaque-title { text-wrap: pretty; }

/* accessibility: skip link + visible keyboard focus */
.skip {
  position: fixed; top: 18px; left: 18px; z-index: 1000;
  transform: translateY(-300%);
  background: var(--ink); color: var(--gild-bright);
  border: 1px solid var(--gild); padding: .8em 1.4em;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  transition: transform .3s;
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--gild); outline-offset: 3px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }

::selection { background: var(--gild); color: var(--ink); }

/* height:auto is load-bearing: with width/height attributes present, a clamped
   width would otherwise keep the attribute height and stretch the artwork */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* thin gilded scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2318; border-radius: 5px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #45391f; }

/* ---------- atmosphere: grain, plate frame, progress ---------- */
.grain {
  position: fixed; inset: -80px; z-index: 950; pointer-events: none;
  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%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .055;
  animation: grain-shift 1.6s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-22px, 14px); }
  50% { transform: translate(14px, -20px); }
  75% { transform: translate(-10px, -12px); }
  100% { transform: translate(0, 0); }
}

.plate-frame {
  position: fixed; inset: var(--frame-inset); z-index: 940; pointer-events: none;
  border: 1px solid rgba(201, 162, 79, .13);
}
.plate-frame::before, .plate-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px;
}
.plate-frame::before { top: -1px; left: -1px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.plate-frame::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 970; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gild), var(--gild-bright));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- shared: overline, reveal, buttons, sections ---------- */
.overline {
  font-family: var(--sans); font-weight: 400; font-size: .68rem;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gild-dim);
}

.rv { opacity: 0; transform: translateY(22px); filter: blur(2px);
  transition: opacity .76s var(--ease-out), transform .76s var(--ease-out), filter .76s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.rv.in { opacity: 1; transform: none; filter: none; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 400;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  padding: 1.05em 2.4em; border: 1px solid;
  transition: background .35s, color .35s, border-color .35s,
    box-shadow .35s, transform .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-gild { border-color: var(--gild); color: var(--gild-bright); }
.btn-gild:hover { background: var(--gild); color: var(--ink); }
.btn-ghost { border-color: rgba(238, 231, 214, .22); color: var(--bone-60); }
.btn-ghost:hover { border-color: var(--bone); color: var(--bone); }

.section { position: relative; padding: clamp(92px, 11vw, 164px) clamp(20px, 6vw, 96px); }

.section-head { position: relative; max-width: 1200px; margin: 0 auto clamp(48px, 6vw, 88px); }
.section-head .index {
  position: absolute; top: -0.32em; right: -0.05em; z-index: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(7rem, 16vw, 13rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 162, 79, .17);
  user-select: none;
}
.section-head h2 {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 6.5vw, 4.8rem); line-height: 1.04;
  margin-top: .35em; letter-spacing: .01em;
}
.section-head h2 em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, var(--gild-bright), var(--gild) 55%, #9d7c37);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lede {
  position: relative; z-index: 1; max-width: 52ch; margin-top: 1.4em;
  color: rgba(238, 231, 214, .67); font-size: 1.04rem; line-height: 1.78;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(24px, 4vw, 52px);
  transition: background .5s, box-shadow .5s, padding .5s;
}
.site-head.scrolled {
  background: rgba(11, 10, 7, .93);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
/* glass blur only on desktop: backdrop-filter would make the fixed
   mobile nav overlay position itself against the header box */
@media (min-width: 761px) {
  .site-head.scrolled {
    background: rgba(11, 10, 7, .82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
}
.brand {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 178px; gap: 2px; line-height: 1;
}
.brand img { height: 31px; width: auto; opacity: .94; transition: opacity .3s, transform .45s var(--ease-out); }
.brand-name {
  display: block; padding-left: .2em;
  font-family: var(--sans); font-size: .54rem; font-weight: 500;
  letter-spacing: .24em; line-height: 1.2; text-transform: uppercase;
  color: rgba(238, 231, 214, .62); white-space: nowrap;
  transition: color .3s, letter-spacing .45s var(--ease-out);
}
.brand:hover img { opacity: 1; transform: translateX(2px); }
.brand:hover .brand-name { color: var(--bone); letter-spacing: .255em; }

.site-nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-nav a {
  position: relative; font-family: var(--sans); font-weight: 400;
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bone-60); padding: 6px 0; transition: color .3s;
}
.site-nav a span { color: var(--gild-dim); margin-right: .6em; font-size: .62rem; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gild); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out);
}
.site-nav a:hover, .site-nav a.active { color: var(--bone); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 124px clamp(20px, 6vw, 96px) 96px;
}
.hero-bg {
  position: absolute; inset: 0 0 -12% 0; background-size: cover; background-position: center 30%;
  transform: translateY(calc(var(--py, 0) * 1px)); will-change: transform;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0; transform: scale(1.105);
  transition: opacity 1.1s ease .05s, transform 2.6s var(--ease-out) .05s;
  will-change: transform, opacity;
}
.hero-bg img.loaded { opacity: 1; transform: scale(1.025); }
.hero-veil { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 58% at 50% 57%, rgba(6, 5, 3, .46), transparent 78%),
    radial-gradient(ellipse 118% 86% at 50% 28%, transparent 27%, rgba(11, 10, 7, .58) 72%, rgba(11, 10, 7, .94) 100%),
    linear-gradient(180deg, rgba(11, 10, 7, .6) 0%, rgba(11, 10, 7, .2) 26%, rgba(11, 10, 7, .34) 62%, var(--ink) 97%);
}

.hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; width: 100%; text-align: center; }
.hero-inner::after {
  content: ""; position: absolute; z-index: -1; inset: -70px -7vw -62px;
  background: radial-gradient(ellipse at center, rgba(7, 6, 4, .54) 0%, rgba(7, 6, 4, .24) 45%, transparent 73%);
  pointer-events: none;
}
.hero-inner::before {
  content: ""; display: block; width: 44px; height: 1px; margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--gild-bright), transparent);
}

.hero .overline {
  color: rgba(248, 241, 224, .66); font-size: .66rem; font-weight: 400;
  letter-spacing: .32em; text-shadow: 0 2px 18px rgba(0, 0, 0, .95);
}

.hero-title { margin: .48em 0 .27em; line-height: .92; }
.hero-title span { display: block; }
.hl-1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.15rem, 5vw, 4rem); letter-spacing: .1em;
  color: #faf2df; text-shadow: 0 3px 28px rgba(0, 0, 0, .98);
}
.hl-2 {
  font-family: var(--serif); font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(4.4rem, 13.5vw, 11.5rem); letter-spacing: .015em;
  background: linear-gradient(100deg, #fff4d8 4%, #e5c477 40%, #f7e3b2 62%, #c69b47 98%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .35px rgba(255, 247, 226, .25);
  filter: drop-shadow(0 7px 34px rgba(0, 0, 0, .98));
}
.hero-sub {
  width: fit-content; max-width: min(58ch, 90vw); margin: 0 auto;
  padding: .72rem 1.2rem .78rem;
  border-top: 1px solid rgba(236, 209, 145, .24); border-bottom: 1px solid rgba(236, 209, 145, .24);
  background: linear-gradient(90deg, transparent, rgba(7, 6, 4, .62) 12%, rgba(7, 6, 4, .62) 88%, transparent);
  color: rgba(250, 245, 233, .96); font-size: clamp(1rem, 1.4vw, 1.14rem); font-weight: 400; line-height: 1.68;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 1);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.hero-cta { display: flex; gap: 18px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.hero-cta .btn-gild { background: rgba(11, 10, 7, .4); box-shadow: 0 12px 34px rgba(0, 0, 0, .2); }
.hero-cta .btn-gild:hover,
.hero-cta .btn-gild:focus-visible {
  border-color: var(--gild-bright); background: var(--gild-bright); color: #080704;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .38), 0 0 24px rgba(236, 209, 145, .13);
}
.hero-cta .btn-ghost {
  border-color: rgba(248, 241, 224, .42); background: rgba(11, 10, 7, .42);
  color: rgba(248, 241, 224, .86); box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

.hero-credit {
  position: absolute; right: clamp(26px, 4vw, 56px); bottom: 30px; z-index: 2;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(238, 231, 214, .64); text-shadow: 0 2px 12px rgba(0, 0, 0, .95);
}
.hero-credit em { font-family: var(--serif); font-size: .78rem; letter-spacing: .1em; text-transform: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; height: 56px; width: 1px; overflow: hidden; }
.scroll-cue span { position: absolute; top: -100%; left: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gild-bright));
  animation: cue-drop 2.2s var(--ease-out) infinite; }
@keyframes cue-drop { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }

/* ==========================================================================
   COLOPHON MARQUEE
   ========================================================================== */
.colophon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--ink); position: relative; z-index: 3; -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.colophon-track {
  display: flex; align-items: center; gap: 3.2em; width: max-content;
  animation: marquee 46s linear infinite;
  font-family: var(--sans); font-weight: 300; font-size: .78rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--bone-38);
  white-space: nowrap;
}
.colophon:hover .colophon-track { animation-play-state: paused; }
.colophon-track i { font-style: normal; color: var(--gild-dim); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   GALLERY — the salon wall
   ========================================================================== */
.filters {
  position: sticky; top: 64px; z-index: 20;
  display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px);
  max-width: 1200px; margin: 0 auto 54px; padding: 12px 0;
  background: linear-gradient(90deg, rgba(11,10,7,.96), rgba(11,10,7,.9), rgba(11,10,7,.96));
  border-top: 1px solid transparent; border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.filter {
  position: relative; font-family: var(--sans); font-weight: 400;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone-38); padding: 8px 2px; transition: color .35s;
}
.filter sup { color: var(--gild-dim); font-size: .58rem; margin-left: .5em; letter-spacing: .1em; }
.filter::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gild); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .5s var(--ease-out);
}
.filter:hover { color: var(--bone-60); }
.filter.is-active { color: var(--bone); }
.filter.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.wall { position: relative; max-width: 1200px; margin: 0 auto; }

.piece {
  position: absolute; top: 0; left: 0;
  transition: transform .8s var(--ease-out), opacity .55s ease, visibility 0s linear 0s;
  opacity: 0; transform: translateY(34px);
}
.wall.ready .piece { opacity: 1; transform: var(--pos); }
.wall.ready .piece.is-hidden { opacity: 0; transform: var(--pos) scale(.9); visibility: hidden; transition-delay: 0s, 0s, .55s; pointer-events: none; }

.piece-inner {
  background: var(--ink-2); border: 1px solid rgba(201, 162, 79, .13);
  padding: 10px; cursor: pointer;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .85);
  transition: transform .6s var(--ease-out), border-color .45s, box-shadow .6s;
}
.piece-inner:hover {
  transform: translateY(-7px); border-color: rgba(201, 162, 79, .42);
  box-shadow: 0 44px 90px -30px rgba(0, 0, 0, .95), 0 0 44px rgba(201, 162, 79, .09);
}
.piece-inner:focus-visible {
  border-color: var(--gild); outline: 2px solid var(--gild); outline-offset: 4px;
}
.piece-img { position: relative; overflow: hidden; background: #000; }
.piece-img img {
  width: 100%; height: auto;
  filter: brightness(.93); transition: filter .6s ease, transform 1.1s var(--ease-out);
}
.piece-inner:hover .piece-img img { filter: brightness(1.04); transform: scale(1.025); }

.plaque { padding: 13px 4px 5px; }
.plaque-title {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.06rem; line-height: 1.25; color: var(--bone);
  transition: color .4s;
}
.piece-inner:hover .plaque-title { color: var(--gild-bright); }
.plaque-meta {
  margin-top: 3px; font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--bone-38);
}

/* ==========================================================================
   HOME — studio tiles
   ========================================================================== */
.tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.5vw, 44px); max-width: 1200px; margin: 0 auto;
}
.tile {
  display: block; background: var(--ink-2); border: 1px solid rgba(201, 162, 79, .13);
  padding: 10px; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .85);
  transition: transform .6s var(--ease-out), border-color .45s, box-shadow .6s;
}
.tile { position: relative; overflow: hidden; }
.tile::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 10px; right: 10px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gild-dim), transparent);
  opacity: 0; transform: scaleX(.4); transition: opacity .45s, transform .65s var(--ease-out);
}
.tile:hover::before, .tile:focus-visible::before { opacity: 1; transform: scaleX(1); }
.tile:hover {
  transform: translateY(-7px); border-color: rgba(201, 162, 79, .42);
  box-shadow: 0 44px 90px -30px rgba(0, 0, 0, .95), 0 0 44px rgba(201, 162, 79, .09);
}
.tile-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.tile-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(.9); transition: filter .6s ease, transform 1.2s var(--ease-out);
}
.tile:hover .tile-media img { filter: brightness(1.04); transform: scale(1.035); }
.tile-body { display: block; padding: 16px 6px 8px; position: relative; }
.tile-no {
  position: absolute; right: 6px; top: 14px;
  font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gild-dim);
}
.tile-title {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--bone); transition: color .4s;
}
.tile:hover .tile-title { color: var(--gild-bright); }
.tile-line { display: block; margin-top: 5px; font-size: .85rem; color: var(--bone-38); max-width: 40ch; }
.tile-cta {
  display: inline-flex; align-items: baseline; gap: .6em; margin-top: 14px;
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gild);
}
.tile-cta i { font-style: normal; transition: transform .35s var(--ease-out); }
.tile:hover .tile-cta i { transform: translateX(5px); }

/* ==========================================================================
   INTERLUDE QUOTE
   ========================================================================== */
.interlude { position: relative; padding: clamp(110px, 15vw, 210px) clamp(24px, 6vw, 96px); overflow: hidden; }
.interlude-bg {
  position: absolute; inset: 0;
  background-image: url("../assets/img/work/footsteps-of-khione.webp");
  background-size: cover; background-position: center 38%;
  opacity: .16; filter: saturate(.85);
}
.interlude::before, .interlude::after {
  content: ""; position: absolute; left: 0; right: 0; height: 34%; z-index: 1; pointer-events: none;
}
.interlude::before { top: 0; background: linear-gradient(180deg, var(--ink), transparent); }
.interlude::after { bottom: 0; background: linear-gradient(0deg, var(--ink), transparent); }
.interlude-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; text-align: center; }
.interlude blockquote p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.65rem, 3.6vw, 2.9rem); line-height: 1.38; letter-spacing: .01em;
}
.interlude blockquote em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gild-bright), var(--gild));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.interlude figcaption {
  margin-top: 2.2em; font-size: .68rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gild-dim);
}

/* ==========================================================================
   BOOKS
   ========================================================================== */
#books .book {
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px); align-items: center;
  max-width: 1200px; margin: 0 auto clamp(90px, 11vw, 150px);
}
#books .book:last-child { margin-bottom: 0; }
.book-flip .book-art { order: 2; }
.book-flip .book-copy { order: 1; }

.book-art { position: relative; transform: none; transition: transform .7s var(--ease-out); }
.book-flip .book-art { transform: none; }
.book-art:hover { transform: translateY(-6px); }
.book-art img {
  border: 1px solid rgba(201, 162, 79, .16); background: var(--ink-2); padding: 12px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.book-art-credit { margin-top: 12px; text-align: right; font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-38); }

.book-no { font-family: var(--serif); font-weight: 500; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gild-dim); }
.book-copy h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; margin: .3em 0 .5em; }
.book-pub { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gild); margin-bottom: 1.4em; }
.book-copy > p:not(.book-no):not(.book-pub) { color: var(--bone-60); max-width: 52ch; font-size: 1rem; }
.book-copy em { font-family: var(--serif); font-style: italic; font-size: 1.08em; color: var(--bone); }

.text-link {
  display: inline-flex; align-items: baseline; gap: .7em; margin-top: 2em;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gild-bright);
  border-bottom: 1px solid var(--line-strong); padding-bottom: .5em;
  transition: border-color .35s, gap .35s var(--ease-out);
}
.text-link i { font-style: normal; transition: transform .35s var(--ease-out); }
.text-link:hover { border-color: var(--gild-bright); }
.text-link:hover i { transform: translate(4px, -3px); }

/* ==========================================================================
   GAMES — the war room
   ========================================================================== */
#games .game-feature {
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px); align-items: center;
  max-width: 1200px; margin: 0 auto clamp(80px, 10vw, 130px);
}
.game-feature-art { transform: none; }

.game-flag {
  font-size: .64rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gild); margin-bottom: 1em;
}
#games .book-copy h3 { margin-top: 0; }

.game-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 26px; }
.game-facts li {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-60); border: 1px solid var(--line); padding: 7px 13px;
}

.game-quote { margin-top: 1.8em; border-left: 1px solid var(--gild-dim); padding-left: 20px; }
.game-quote p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.18rem; line-height: 1.5; color: var(--bone);
}
.game-quote cite {
  display: block; margin-top: 9px; font-style: normal;
  font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-38);
}

.game-links { display: flex; flex-wrap: wrap; gap: 12px 38px; }

.games-shelf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(30px, 4vw, 48px) 30px; max-width: 1200px; margin: 0 auto;
}
.game-card-art {
  display: block; background: var(--ink-2); border: 1px solid rgba(201, 162, 79, .13);
  padding: 10px; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .85);
  transition: transform .6s var(--ease-out), border-color .45s, box-shadow .6s;
}
.game-card-art img { filter: brightness(.93); transition: filter .6s ease; }
.game-card-art:hover {
  transform: translateY(-7px); border-color: rgba(201, 162, 79, .42);
  box-shadow: 0 44px 90px -30px rgba(0, 0, 0, .95), 0 0 44px rgba(201, 162, 79, .09);
}
.game-card-art:hover img { filter: brightness(1.04); }
.game-card-plaque { padding: 14px 4px 0; }
.game-card-line { margin-top: 9px; font-size: .87rem; line-height: 1.65; color: var(--bone-60); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid {
  display: grid; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 110px); max-width: 1200px; margin: 0 auto; align-items: start;
}
.about-side { position: sticky; top: 110px; }
.portrait img { border: 1px solid rgba(201, 162, 79, .16); background: var(--ink-2); padding: 10px; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .85); }
.portrait figcaption { margin-top: 12px; font-size: .82rem; color: var(--bone-38); line-height: 1.6; }
.portrait figcaption em { font-family: var(--serif); font-style: italic; color: var(--bone-60); }
.portrait .credit { display: block; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }
.portrait-secondary { margin-top: 30px; max-width: 240px; }
.portrait-secondary figcaption { font-size: .74rem; }

.fact-list { list-style: none; margin-top: 38px; }
.fact-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--bone-60); line-height: 1.55; }
.fact-list li span {
  display: block; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gild-dim); margin-bottom: 5px;
}

.about-lead {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.42; margin-bottom: 1.2em;
}
.about-body > p:not(.about-lead) { color: var(--bone-60); max-width: 64ch; margin-bottom: 1.4em; font-size: 1.02rem; line-height: 1.85; }
.about-body em { font-family: var(--serif); font-style: italic; font-size: 1.07em; color: var(--bone); }

.timeline-head {
  margin: 2.6em 0 1em; font-family: var(--sans); font-weight: 400;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gild);
}
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline span { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--gild); }
.timeline div { font-size: .94rem; color: var(--bone-60); line-height: 1.6; }
.timeline strong { font-weight: 500; color: var(--bone); }
.timeline em { font-family: var(--serif); font-style: italic; }

.sig {
  display: inline-flex; flex-direction: column; align-items: center;
  margin-top: 52px; gap: 5px;
}
.sig img { height: 58px; width: auto; opacity: .85; }
.sig figcaption {
  padding-left: .22em; font-family: var(--sans); font-size: .6rem;
  font-weight: 500; letter-spacing: .24em; line-height: 1.2;
  text-transform: uppercase; color: var(--bone-38);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section-contact .section-head { text-align: center; }
.section-contact .section-head .index { right: auto; left: 50%; transform: translateX(-50%); }
.section-contact .section-lede { margin-left: auto; margin-right: auto; }

.contact-form { max-width: 660px; margin: 0 auto; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.field { display: block; margin-bottom: 30px; text-align: left; }
.field span {
  display: block; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gild-dim); margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(238, 231, 214, .18);
  color: var(--bone); font-family: var(--sans); font-weight: 300; font-size: 1.05rem;
  padding: 8px 2px 12px; transition: border-color .4s; border-radius: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gild); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }

.form-foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: .85rem; color: var(--gild-dim); max-width: 46ch; text-align: left; }

.contact-meta { text-align: center; margin-top: clamp(60px, 8vw, 90px); }
.contact-city { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--bone-60); }
.socials { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 16px; }
.socials a {
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-38);
  border-bottom: 1px solid transparent; padding-bottom: 3px; transition: color .3s, border-color .3s;
}
.socials a:hover { color: var(--gild-bright); border-color: var(--gild-dim); }
.socials span { color: var(--gild-dim); font-size: .55rem; }

/* ==========================================================================
   NEXT WING — page-to-page passage
   ========================================================================== */
.next-wing {
  display: block; text-align: center;
  border-top: 1px solid var(--line);
  padding: clamp(70px, 9vw, 120px) 24px;
  position: relative; overflow: hidden;
}
.next-wing::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(201, 162, 79, .07), transparent 70%);
  opacity: 0; transition: opacity .6s;
}
.next-wing:hover::before { opacity: 1; }
.next-overline {
  display: block; font-size: .64rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gild-dim); margin-bottom: .8em;
}
.next-title {
  display: inline-flex; align-items: baseline; gap: .35em;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 4rem); line-height: 1.1; color: var(--bone);
  transition: color .45s;
}
.next-title i { font-style: normal; font-size: .7em; transition: transform .45s var(--ease-out); }
.next-wing:hover .next-title { color: var(--gild-bright); }
.next-wing:hover .next-title i { transform: translateX(12px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot {
  border-top: 1px solid var(--line); padding: 64px clamp(24px, 6vw, 96px) 80px;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.foot-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.foot-sig { height: 38px; width: auto; opacity: .55; transition: opacity .3s; }
.foot-brand span {
  padding-left: .22em; font-family: var(--sans); font-size: .54rem; font-weight: 500;
  letter-spacing: .25em; line-height: 1.2; text-transform: uppercase;
  color: var(--bone-38); transition: color .3s;
}
.foot-brand:hover .foot-sig { opacity: .82; }
.foot-brand:hover span { color: var(--gild-bright); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
.foot-nav a {
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-38);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.foot-nav a:hover { color: var(--gild-bright); border-color: var(--gild-dim); }
.site-foot p { max-width: 68ch; font-size: .78rem; color: var(--bone-38); line-height: 1.9; }
.to-top { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gild-dim); transition: color .3s; }
.to-top:hover { color: var(--gild-bright); }

/* ==========================================================================
   LIGHTBOX — the spotlight room
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: clamp(16px, 4vw, 60px); }
.lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 54% at 50% 42%, rgba(74, 58, 28, .32), transparent 68%),
    rgba(7, 6, 4, .965);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb-stage { position: relative; z-index: 2; text-align: center; max-width: min(1100px, 92vw); }
.lb-img {
  max-height: 76vh; max-width: 100%; width: auto; height: auto; margin: 0 auto;
  background: var(--ink-2); border: 1px solid rgba(201, 162, 79, .22); padding: clamp(8px, 1.2vw, 14px);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 1), 0 0 90px rgba(201, 162, 79, .07);
  animation: lb-in .5s var(--ease-out);
}
@keyframes lb-in { from { opacity: 0; transform: scale(.955) translateY(12px); } }
.lb-plaque { margin-top: 22px; animation: lb-in .5s var(--ease-out) .08s backwards; }
.lb-title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.lb-meta { margin-top: 5px; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-38); }

.lb-btn {
  position: fixed; z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(201, 162, 79, .3); color: var(--bone-60);
  display: grid; place-items: center; font-size: 1.05rem;
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease-out);
  background: rgba(11, 10, 7, .5);
}
.lb-btn:hover { border-color: var(--gild); color: var(--gild-bright); transform: scale(1.08); }
.lb-prev { left: clamp(10px, 3vw, 40px); top: 50%; margin-top: -26px; }
.lb-next { right: clamp(10px, 3vw, 40px); top: 50%; margin-top: -26px; }
.lb-close { top: 26px; right: clamp(10px, 3vw, 40px); }
.lb-count {
  position: fixed; z-index: 3; top: 40px; left: clamp(16px, 3.5vw, 48px);
  font-size: .66rem; letter-spacing: .3em; color: var(--bone-38); text-transform: uppercase;
}

body.lb-open { overflow: hidden; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; max-width: 420px; }
  #books .book { grid-template-columns: 1fr; gap: 40px; }
  .book-flip .book-art { order: 0; }
  .book-flip .book-copy { order: 1; }
  .book-art { max-width: 520px; }
  #games .game-feature { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  :root { --frame-inset: 8px; }
  body.nav-open { overflow: hidden; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column;
    align-items: stretch; justify-content: center; gap: 0; padding: 96px 30px 56px;
    background: rgba(9, 8, 6, .97);
    opacity: 0; pointer-events: none; transition: opacity .45s;
  }
  body.nav-open .site-nav { opacity: 1; pointer-events: auto; z-index: 850; }
  .site-nav a {
    display: flex; align-items: baseline; width: 100%; padding: 14px 0;
    border-bottom: 1px solid var(--line); color: var(--bone);
    font-family: var(--serif); font-size: clamp(2.25rem, 12vw, 3.4rem);
    font-weight: 400; letter-spacing: 0; text-transform: none;
  }
  .site-nav a span {
    flex: 0 0 44px; margin-right: 0; font-family: var(--sans); font-size: .58rem;
    font-weight: 400; letter-spacing: .18em;
  }
  .site-nav a::after { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 7px; padding: 10px; z-index: 860; position: relative;
  }
  .nav-toggle span { display: block; width: 26px; height: 1px; background: var(--bone); transition: transform .4s var(--ease-out), opacity .3s; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .brand { min-width: 145px; align-items: flex-start; gap: 1px; }
  .brand img { height: 27px; }
  .brand-name { font-size: .47rem; letter-spacing: .21em; }

  .hero { min-height: 100svh; padding: 116px 22px 92px; }
  .hero-bg { inset: 0 0 -5% 0; background-position: 63% 30%; }
  .hero-bg img { object-position: 63% 30%; }
  .hero-veil {
    background:
      radial-gradient(ellipse 100% 64% at 50% 57%, rgba(6,5,3,.52), transparent 80%),
      radial-gradient(ellipse 120% 88% at 62% 28%, transparent 18%, rgba(11,10,7,.62) 69%, rgba(11,10,7,.96) 100%),
      linear-gradient(180deg, rgba(11,10,7,.62), rgba(11,10,7,.24) 32%, rgba(11,10,7,.57) 74%, var(--ink) 98%);
  }
  .hero-inner::after { inset: -52px -20px -48px; }
  .hero-inner::before { margin-bottom: 16px; }
  .hero .overline { max-width: 34ch; margin: 0 auto; line-height: 1.8; letter-spacing: .22em; }
  .hl-1 { font-size: clamp(1.9rem, 8.4vw, 2.45rem); }
  .hl-2 { font-size: clamp(3.4rem, 16.5vw, 6.4rem); line-height: .88; }
  .hero-sub { max-width: 32ch; font-size: .96rem; line-height: 1.65; }
  .hero-cta { flex-direction: column; align-items: center; gap: 14px; }
  .hero-cta .btn { width: min(78vw, 300px); text-align: center; }
  .hero-credit { right: 22px; left: 22px; bottom: 20px; font-size: .5rem; line-height: 1.5; text-align: center; }
  .tiles { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-foot { justify-content: center; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; margin-top: 0; }
  .lb-prev { left: 22px; } .lb-next { right: 22px; }
  .filters {
    top: 60px; flex-wrap: nowrap; gap: 24px; margin-right: -20px; margin-left: -20px;
    padding: 12px 20px; overflow-x: auto; scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; min-height: 40px; }
  .lb-stage { max-width: calc(100vw - 28px); }
  .lb-img { max-height: 68vh; }
  .lb-plaque { margin: 14px 48px 0; }
  .lb-count { top: 30px; }
}

@media (max-width: 520px) {
  .section { padding-top: 82px; padding-bottom: 92px; }
  .section-head { margin-bottom: 46px; }
  .section-head h2 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .tiles { gap: 22px; }
  .tile-body { padding-top: 14px; }
  .games-shelf { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 62px 1fr; gap: 14px; }
  .site-foot { padding-bottom: 64px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .grain { animation: none; }
  .colophon-track { animation: none; }
  .scroll-cue { display: none; }
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-bg img { transition: opacity .6s; transform: none; }
  .hero-bg img.loaded { transform: none; }
  .piece, .piece-inner, .piece-img img { transition: none; }
  .lb-img, .lb-plaque { animation: none; }
}
