:root {
  --navy: #0b2947;
  --blue: #163d67;
  --gold: #8a6120;
  --gold-line: #a77a2f;
  --gold-soft: #e7d3a8;
  --paper: #fafaf7;
  --foam: #f7f4ec;
  --muted: #4e5b66;
  --line: #d9ddd9;
  --sage: #eef1eb;
  --sapphire: #1c4e9e;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold-line); outline-offset: 4px; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--foam);
  padding: 0.75rem 1rem;
  z-index: 80;
}
.skip:focus { transform: none; }

.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
@media (min-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 4rem)); }
}

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.soft { color: var(--gold-soft); }
.gold { color: var(--gold); }
.italic { font-style: italic; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; }
.brand svg { width: 2.75rem; height: 2.75rem; flex: none; color: var(--navy); }
.brand-name { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1; letter-spacing: -0.03em; }
.brand-domain { display: block; margin-top: 0.35rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.desktop-nav { display: none; align-items: center; gap: 1.4rem; font-size: 0.92rem; }
.desktop-nav a { padding: 0.5rem 0; }
.desktop-nav a:hover { color: var(--gold); }
.nav-note { min-height: 2.75rem; display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 0 1rem; }
.nav-note:hover { border-color: var(--navy); }
.menu-toggle { min-height: 2.75rem; min-width: 2.75rem; border: 1px solid var(--line); background: transparent; padding: 0 0.8rem; }
.mobile-nav { border-top: 1px solid var(--line); }
.mobile-nav a { display: flex; align-items: center; min-height: 2.75rem; border-bottom: 1px solid var(--line); }
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.4rem 0 0.6rem; }
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .brand-name { font-size: 1.5rem; }
}

.hero { display: grid; gap: 2.5rem; align-items: center; padding: 3rem 0; }
.hero h1 { margin-top: 1.4rem; font-size: clamp(2.7rem, 6vw, 4.6rem); letter-spacing: -0.04em; }
.lede { margin-top: 1.4rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.7rem 1.2rem; border: 1px solid transparent; background: transparent; text-decoration: none;
}
.button-primary { background: var(--navy); color: var(--foam); font-size: 0.92rem; font-weight: 500; }
.button-primary:hover { background: var(--blue); }
.button-text { font-size: 0.92rem; font-weight: 500; padding-inline: 0.7rem; }
.button-text:hover { color: var(--gold); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.motto { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.motto-mark { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-line); }
.motto p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--gold-line); display: inline-block; }
.eyebrow.row { display: flex; align-items: center; gap: 0.7rem; }

.plate { position: relative; background: var(--foam); border: 1px solid var(--line); padding: 0.85rem; width: 100%; text-align: left; }
.plate::before, .plate::after {
  content: ""; position: absolute; width: 1.35rem; height: 1.35rem; pointer-events: none;
  border-color: var(--gold-line); border-style: solid;
}
.plate::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.plate::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
figcaption { margin-top: 0.75rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--serif); font-style: italic; }
figcaption span:last-child { font-family: var(--sans); font-style: normal; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); flex: none; }
.latin { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold); }
.latin + .fine { margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted); }

@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; padding: 5rem 0; }
  .split { grid-template-columns: 1fr 1fr; }
  .emblem { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .band-head, .section-head { grid-template-columns: 1fr 1.2fr; align-items: end; }
  .note-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.movements { border-block: 1px solid var(--line); background: var(--sage); }
.movements-label { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); }
.cards li { background: var(--sage); padding: 2rem 0; }
.cards h2 { margin-top: 1rem; font-size: 1.8rem; }
.cards p { margin-top: 1rem; font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
.index { font-family: var(--serif); color: var(--gold); }
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards li { padding: 2rem 1.5rem; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards li { padding: 2rem 1.6rem; }
}

.section { padding: 4rem 0; }
.split, .emblem, .kinship, .section-head, .band-head, .note-grid { display: grid; gap: 2.5rem; }
.section h2, .band h2, .kinship h2 { margin-top: 1rem; font-size: clamp(2.1rem, 4vw, 3rem); }
.prose { display: grid; gap: 1.15rem; color: var(--muted); }
.prose .lead { font-size: 1.25rem; line-height: 1.65; color: var(--navy); }
@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
  .split { gap: 5rem; }
}

.parts { list-style: none; margin: 2rem 0 0; padding: 0; border-block: 1px solid var(--line); }
.parts li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.parts li:last-child { border-bottom: 0; }
.parts p { font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
.parts strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--navy); }
@media (min-width: 640px) { .parts li { grid-template-columns: 7rem 1fr; } }

.band { background: var(--navy); color: var(--foam); }
.band .section { padding: 4rem 0; }
@media (min-width: 1024px) { .band .section { padding: 6rem 0; } }
.foam-copy { max-width: 38rem; color: color-mix(in srgb, var(--foam) 82%, transparent); }
.instruments { margin-top: 3rem; border-block: 1px solid color-mix(in srgb, var(--foam) 18%, transparent); }
.instruments article {
  display: grid; gap: 0.6rem; padding: 1.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--foam) 18%, transparent);
}
.instruments article:last-child { border-bottom: 0; }
.instruments h3 { font-size: 1.8rem; }
.instruments .refuses { font-size: 0.92rem; color: var(--gold-soft); }
.instruments .ask { font-size: 0.92rem; line-height: 1.7; color: color-mix(in srgb, var(--foam) 82%, transparent); }
@media (min-width: 720px) {
  .instruments article { grid-template-columns: 10rem 1fr 1.3fr; gap: 2rem; align-items: baseline; padding: 1.7rem 0; }
}

.kin-grid { margin-top: 2rem; display: grid; gap: 1px; background: var(--line); }
.kin-card { display: block; background: var(--paper); padding: 1.25rem; }
.kin-card:hover { background: var(--sage); }
.kin-card h3 { margin-top: 0.7rem; font-size: 1.5rem; }
.kin-card p { margin-top: 0.8rem; font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
.kin-card .go { margin-top: 1rem; color: var(--navy); }
@media (min-width: 640px) { .kin-grid { grid-template-columns: 1fr 1fr; } }

.still {
  border: 1px solid var(--line);
  background: var(--foam);
}
.still-bar {
  display: flex; flex-direction: column; gap: 0.8rem;
  border-bottom: 1px solid var(--line); padding: 1.25rem 1.25rem 1.1rem;
}
.still-bar h3 { margin-top: 0.45rem; font-size: 1.45rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tabs button, .stage-list button, .still-actions button {
  border: 1px solid var(--line); background: var(--paper);
}
.tabs button { min-height: 2.75rem; padding: 0 0.8rem; font-size: 0.92rem; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--foam); border-color: var(--navy); }
.still-body { display: grid; }
.stage-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.stage-list button {
  display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 3.5rem;
  padding: 0.7rem 1.25rem; text-align: left; border: 0; border-bottom: 1px solid transparent; background: transparent;
}
.stage-list button[aria-current="step"] { background: var(--sage); }
.stage-no { width: 2rem; font-family: var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.stage-kicker { display: block; }
.stage-title { display: block; font-size: 0.92rem; }
.stage-panel { min-width: 0; padding: 1.5rem 1.25rem 1.6rem; }
.meter { height: 0.4rem; background: var(--sage); margin-bottom: 1.2rem; }
.meter span { display: block; height: 100%; background: var(--sapphire); }
.stage-panel h3 { margin-top: 0.7rem; font-size: 1.8rem; }
.stage-panel .body { margin-top: 1rem; max-width: 42rem; color: var(--muted); }
.code {
  margin-top: 1.4rem; border: 1px solid var(--line); background: var(--foam);
}
.code.refusal { border-color: var(--gold-line); }
.code.distillate { background: var(--navy); color: var(--foam); border-color: var(--navy); }
.code header {
  display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 0.45rem 0.9rem; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.code pre { margin: 0; padding: 1rem; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.55; }
.still-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.4rem; }
.ghost { border: 0 !important; background: transparent !important; min-height: 2.75rem; padding: 0 0.6rem; }
.ghost:hover { color: var(--gold); }
.caveat { margin-top: 1.4rem; max-width: 42rem; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 960px) {
  .still-bar { flex-direction: row; align-items: end; justify-content: space-between; padding: 1.3rem 1.7rem; }
  .still-body { grid-template-columns: 16rem minmax(0, 1fr); }
  .stage-list { border-bottom: 0; border-right: 1px solid var(--line); }
  .stage-panel { padding: 2rem; }
}

.programme { list-style: none; margin: 2.5rem 0 0; padding: 0; border-block: 1px solid var(--line); }
.programme li {
  display: grid; gap: 0.4rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.programme li:last-child { border-bottom: 0; }
.programme h3 { font-size: 1.5rem; }
.programme p { margin-top: 0.45rem; max-width: 40rem; font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
.symbol { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
@media (min-width: 720px) {
  .programme li { grid-template-columns: 3rem 1fr 2rem; gap: 1.4rem; }
}

.note-form { border: 1px solid var(--line); background: var(--foam); padding: 1.25rem; }
.note-head { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.note-head .index { font-size: 1.8rem; }
.note-form label { display: block; margin-top: 1.4rem; }
textarea {
  width: 100%; margin-top: 0.7rem; resize: vertical; min-height: 9rem;
  border: 1px solid var(--line); background: var(--paper); padding: 0.8rem 0.9rem;
}
.note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1rem; }
.link-line { min-height: 2.75rem; display: inline-flex; align-items: center; border-bottom: 1px solid var(--gold-line); }
.note-form .fine { margin-top: 1.2rem; max-width: 36rem; font-size: 0.9rem; color: var(--muted); }
.place-line { margin-top: 2rem; font-family: var(--serif); font-size: 1.25rem; }
@media (min-width: 640px) { .note-form { padding: 2rem; } }

.site-footer { border-top: 1px solid var(--line); background: var(--sage); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; }
.footer-grid p, .footer-grid a { font-size: 0.92rem; }
.footer-grid .muted { margin-top: 0.7rem; line-height: 1.7; }
.footer-grid ul { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  border-top: 1px solid var(--line); padding: 0.8rem 0 1rem; font-size: 0.75rem; color: var(--muted);
}
.footer-bottom a { min-height: 2.75rem; display: inline-flex; align-items: center; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr; } }

dialog {
  border: 0; padding: 0; background: transparent; max-width: none; width: 100%; height: 100%;
}
dialog::backdrop { background: color-mix(in srgb, var(--navy) 88%, transparent); }
.lightbox {
  width: min(64rem, calc(100% - 2rem)); margin: auto; color: var(--foam);
}
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; background: white; }
.lightbox-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-top: 1rem; }
.lightbox-bar p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.lightbox-bar button { min-height: 2.75rem; background: transparent; color: var(--foam); border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meter span { transition: none; }
}
