:root {
  --ink: #071018;
  --navy: #10192e;
  --panel: #16233c;
  --line: rgba(228, 177, 90, 0.45);
  --gold: #e7c27a;
  --gold-hot: #f6e2b3;
  --blush: #d27a86;
  --paper: #f3ecdf;
  --body: #efe4d4;
  --muted: #d5c8b2;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--body);
  font-family: var(--sans);
  font-weight: 360;
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(210, 122, 134, 0.18), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(231, 194, 122, 0.12), transparent 50%),
    linear-gradient(180deg, #0b1426 0%, var(--ink) 42%, #08111d 100%);
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(246, 226, 179, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(231, 194, 122, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 74%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 40%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 88%, rgba(231, 194, 122, 0.55) 50%, transparent 51%);
  opacity: 0.7;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-hot); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: white; }
:focus-visible { outline: 2px solid var(--gold-hot); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }

.mast {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 0.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.mark {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.mark img { width: 42px; height: 42px; }
nav[aria-label="Primary"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}
nav[aria-label="Primary"] a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
nav[aria-label="Primary"] a[aria-current="page"] {
  color: var(--gold-hot);
  box-shadow: inset 0 -1px 0 var(--gold);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.kicker, .eyebrow {
  font-family: var(--cond);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.92rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; color: var(--paper); }
h1 { font-size: clamp(3.4rem, 9vw, 7.6rem); line-height: 0.84; margin: 0.2rem 0 0.8rem; }
h1 em { font-style: italic; font-weight: 500; color: var(--gold-hot); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 0.95; margin: 0 0 0.6rem; }
h3 { font-size: 1.7rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.72fr);
  gap: 2rem 2.5rem;
  align-items: end;
  padding: 1.4rem 0 2.2rem;
}
.hero-copy { padding-bottom: 0.4rem; }
.tagline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  margin: 0.4rem 0 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--gold-hot);
}
.lede { font-size: 1.15rem; max-width: 40rem; color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }
.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a1308;
  font-family: var(--cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1rem;
}
.btn.ghost { background: transparent; color: var(--gold-hot); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.portrait {
  position: relative;
  margin: 0;
}
.portrait img, .portrait svg { width: 100%; height: auto; box-shadow: var(--shadow); }
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.stage { padding: 0.5rem 0 2.5rem; }
.stage-frame {
  border: 1px solid var(--line);
  background: rgba(8, 14, 26, 0.72);
  padding: 0.8rem;
}
.stage-meta, .player-bar, .strip, .fact-row, .socials li, .pager {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}
.stage-meta {
  font-family: var(--cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.player { position: relative; background: #050910; min-height: 220px; overflow: hidden; }
.player video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #050910; }
.player-poster {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
}
.player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-poster p {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(5, 9, 16, 0.92));
  max-width: none;
}
.player[data-state="playing"] .player-poster { display: none; }
.player-bar { margin-top: 0.7rem; }
.player-bar button {
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold-hot);
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.pillars {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
}
.pillar {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(22, 35, 60, 0.92), rgba(10, 16, 30, 0.92));
  border: 1px solid rgba(231, 194, 122, 0.22);
  padding: 1.2rem 1.2rem 1.1rem;
  min-height: 100%;
}
.pillar:hover { border-color: var(--gold); color: inherit; }
.pillar-expand { grid-row: span 2; background:
  linear-gradient(160deg, rgba(210, 122, 134, 0.16), transparent 40%),
  linear-gradient(180deg, #1a2742, #0d1628);
  padding: 1.5rem;
}
.pillar .index {
  font-family: var(--cond);
  letter-spacing: 0.16em;
  color: var(--gold);
  font-size: 0.9rem;
}
.band {
  margin: 0.2rem 0 2.5rem;
  padding: 1.4rem 1.3rem;
  background:
    linear-gradient(90deg, rgba(210, 122, 134, 0.2), transparent 30%),
    #0c1424;
  border-left: 4px solid var(--blush);
}
.band a { font-family: var(--cond); letter-spacing: 0.14em; text-transform: uppercase; }

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-family: var(--cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.page-hero { padding: 1.6rem 0 1rem; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.stack { display: grid; gap: 1rem; padding-bottom: 2.5rem; }
article.note, .sheet, .boilerplate, .keyart {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 0.4rem;
}
.note a.title-link { color: var(--paper); text-decoration: none; }
.note a.title-link:hover { color: var(--gold-hot); }
time, .status {
  color: var(--muted);
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.88rem;
}
.pager { justify-content: flex-start; flex-wrap: wrap; padding: 0.4rem 0 2.5rem; }
.pager a, .pager span {
  min-width: 2.4rem;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--gold-hot);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  font-family: var(--cond);
  letter-spacing: 0.08em;
}
.pager [aria-current="page"] { background: var(--gold); color: #1a1308; }
.notice { border: 1px solid var(--line); padding: 1rem; color: var(--paper); }

.devnote-video {
  position: relative;
  margin: 1.2rem 0 1.4rem;
  border: 1px solid var(--line);
  background: #050910;
  overflow: hidden;
}
.devnote-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.devnote-code {
  margin: 1rem 0 1.2rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border: 1px solid rgba(231, 194, 122, 0.28);
  background: #0c1422;
  color: var(--gold-hot);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
}
.devnote-pullquote {
  margin: 1.3rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
}
.devnote-pullquote p { margin: 0; }
.devnote-callout {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(22, 35, 60, 0.55);
}
.devnote-callout-title {
  margin: 0 0 0.35rem;
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.88rem;
}
.devnote-figure {
  margin: 1.2rem 0;
  border: 1px solid rgba(231, 194, 122, 0.22);
  background: #0b1220;
}
.devnote-figure img { width: 100%; height: auto; }
.devnote-figure figcaption {
  padding: 0.75rem 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1.4rem; }
.facts th, .facts td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem 0.7rem 0;
  border-bottom: 1px solid rgba(231, 194, 122, 0.2);
}
.facts th { width: 12rem; color: var(--gold); font-family: var(--cond); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.art-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0.8rem; }
.art-grid figure { margin: 0; background: #0b1220; border: 1px solid rgba(231, 194, 122, 0.22); }
.art-grid figcaption { padding: 0.7rem 0.8rem 0.9rem; color: var(--muted); }
.about-visuals { margin: 0 0 2rem; }
.note-copy { color: var(--muted); max-width: 42rem; }
.note-copy code {
  font-size: 0.92em;
  color: var(--gold-hot);
  word-break: break-word;
}
.about-visuals-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: start;
  margin-top: 0.8rem;
}
.about-gallery {
  display: grid;
  gap: 0.75rem;
}
.about-gallery figure,
.portrait-stub {
  margin: 0;
  background: #0b1220;
  border: 1px solid rgba(231, 194, 122, 0.22);
}
.about-gallery figcaption,
.portrait-stub figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.75rem 0.8rem;
  color: var(--muted);
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.about-gallery figcaption code,
.portrait-stub figcaption code {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--gold-hot);
  word-break: break-all;
}
.contact-line {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  max-width: 38rem;
  background: rgba(8, 14, 26, 0.55);
}
.contact-line a { font-size: 1.05rem; }
.socials { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.socials li { border-bottom: 1px solid rgba(231, 194, 122, 0.2); padding: 0.65rem 0; }
.unavail { color: var(--muted); font-family: var(--cond); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.88rem; }
form.contact { display: grid; gap: 0.7rem; max-width: 38rem; }
label { font-family: var(--cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-size: 0.9rem; }
input, textarea {
  width: 100%;
  background: #0c1422;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  font: inherit;
}
textarea { min-height: 8rem; resize: vertical; }
.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .hero, .pillars, .art-grid, .about-visuals-grid { grid-template-columns: 1fr; }
  .pillar-expand { grid-row: auto; }
  .mast { align-items: flex-start; flex-direction: column; }
  nav[aria-label="Primary"] { justify-content: flex-start; }
  h1 { font-size: clamp(3.2rem, 18vw, 4.8rem); }
  .facts th { width: 7.5rem; }
  .tagline { letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { display: none; }
}
