/* Helmroom: a night gallery. Tokens from brand/helmroom/tokens.css. */
:root {
  --ground: #0D1B2A;   /* Midnight: the wall */
  --deep: #091420;     /* the floor under the footer */
  --surface: #16283B;  /* Deep Navy: mats, plinths, panels */
  --rule: #2A4057;
  --muted: #8FA9C2;    /* Harbor */
  --ink: #E6E8EA;      /* Fog */
  --brass: #C9A24B;
  --signal: #E8C33A;   /* Ironkeel signal yellow */
  --frame: #4A3F27;    /* Brass hairline at rest */
  --steel-room: #111B25;
  --accent: var(--brass);
  --accent-ink: #0D1B2A;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --measure: 66ch;
  --max: 1280px;
  --gutter: clamp(18px, 4.2vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-plate: 0 38px 70px -28px rgb(2 6 11 / .9), 0 10px 22px -12px rgb(2 6 11 / .7);
  --shadow-panel: 0 24px 40px -22px rgb(2 6 11 / .85);
  color-scheme: dark;
}
/* Ironkeel's room: steel mat and signal yellow in place of Brass. */
.iron { --surface: #18242F; --rule: #2E3D4B; --accent: var(--signal); --frame: #5A4E1F; }

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--rule) var(--deep); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
/* Grain: an inline SVG noise tile laid over everything at 7%. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, p, a { overflow-wrap: break-word; }
ol, ul { padding: 0; list-style: none; }
[id] { scroll-margin-top: 128px; }
main { overflow-x: clip; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; z-index: 60; left: .75rem; top: -10rem; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; font-weight: 500; }
.skip:focus { top: .75rem; }

/* Catalogue voice: Archivo 500 capitals, tracked, tabular. */
.caps, .no { font: 500 .75rem/1.5 var(--font-body); letter-spacing: .13em; text-transform: uppercase; font-variant-numeric: tabular-nums lining-nums; color: var(--muted); }
.no { color: var(--accent); }
.arrow { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease), color .3s; }
a:hover > .arrow, a:focus-visible > .arrow { transform: translate(3px, -3px); color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; color: var(--accent); font-weight: 500; }
.text-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .45s var(--ease); }
.text-link:hover span { background-size: 0 1px; background-position: 100% 100%; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 22px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .95rem; box-shadow: 0 16px 28px -16px rgb(2 6 11 / .9); transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); background: #D8B562; box-shadow: 0 22px 32px -16px rgb(2 6 11 / .9); }

/* Plates: a Deep Navy mat inside a Brass hairline, hung with a soft shadow. */
.plate { position: relative; padding: clamp(6px, .8vw, 12px); background: var(--surface); outline: 1px solid var(--frame); outline-offset: -1px; box-shadow: var(--shadow-plate); overflow: hidden; transition: outline-color .45s var(--ease); }
.plate img { width: 100%; object-fit: cover; filter: saturate(.88) brightness(.92); transition: transform .9s var(--ease), filter .45s var(--ease); }
a:hover .plate, a:focus-visible .plate { outline-color: var(--accent); }
a:hover .plate img, a:focus-visible .plate img { filter: none; transform: scale(1.035); }
.hang { position: relative; margin: 0; }
.hang .plate img { filter: none; }
.reg { position: absolute; width: 14px; height: 14px; border: 0 solid var(--accent); opacity: .8; }
.reg.tl { top: -9px; left: -9px; border-top-width: 1px; border-left-width: 1px; }
.reg.tr { top: -9px; right: -9px; border-top-width: 1px; border-right-width: 1px; }
.reg.bl { bottom: -9px; left: -9px; border-bottom-width: 1px; border-left-width: 1px; }
.reg.br { bottom: -9px; right: -9px; border-bottom-width: 1px; border-right-width: 1px; }
.tomb { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; padding: 13px 16px 14px; background: var(--surface); outline: 1px solid var(--frame); outline-offset: -1px; box-shadow: var(--shadow-panel); }
.tomb p + p { text-align: right; }
.tomb em { display: block; margin-top: 3px; font: italic 400 1.05rem/1.3 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* Masthead */
.mast { position: sticky; top: 0; z-index: 20; background: rgb(13 27 42 / .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--rule); }
.mast-inner { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 400 2rem/1 var(--font-display); letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.brand svg { width: 32px; height: 32px; color: var(--brass); transition: transform 1.2s var(--ease); }
.brand:hover svg { transform: rotate(45deg); }
.mast-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 30px); margin-left: auto; font-size: .95rem; font-weight: 500; color: var(--muted); }
.mast-nav > a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; transition: color .3s; }
.mast-nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.mast-nav > a:hover, .mast-nav > a[aria-current] { color: var(--ink); }
.mast-nav > a:hover::after, .mast-nav > a[aria-current]::after { transform: scaleX(1); }
.mast-nav .keel svg { width: 15px; height: 15px; color: var(--signal); }
.keel-cut { stroke: var(--ground); }
.mast-tools { display: flex; gap: 4px; align-items: center; padding-left: clamp(8px, 1.2vw, 18px); border-left: 1px solid var(--rule); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; padding: 0; color: var(--ink); transition: background-color .2s; }
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }
.running { border-top: 1px solid rgb(42 64 87 / .6); }
.running .wrap { display: flex; justify-content: space-between; gap: 24px; padding-block: 8px; }
.running b { font-weight: 500; color: var(--ink); }

/* Breadcrumb */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; padding-top: 14px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; transition: color .2s; }
.crumb a:hover { color: var(--ink); }
.crumb span { color: var(--rule); padding-inline: 6px; }

/* Home: cover */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 88px); }
.hero h1 { font-size: clamp(3.1rem, 6.2vw, 5.6rem); line-height: .96; letter-spacing: -.02em; }
.hero h1 em { display: block; color: var(--brass); }
.lede { margin-top: 26px; max-width: 34ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.exhibits { margin-top: clamp(32px, 4vw, 52px); max-width: 30rem; border-top: 1px solid var(--rule); }
.exhibits a { display: grid; grid-template-columns: 9.5rem 1fr auto; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); transition: padding .45s var(--ease), background-color .3s; }
.exhibits a:hover { padding-inline: 10px; background: var(--surface); }
.exhibits strong { font: 400 1.3rem/1.2 var(--font-display); }
.exhibits .arrow, .ledger .arrow, .cases .arrow, .rows .arrow, .desks .arrow { color: var(--muted); align-self: center; }
.stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.stage::before { content: ""; position: absolute; inset: -12% -18% 20%; background: radial-gradient(ellipse 50% 46% at 50% 22%, rgb(201 162 75 / .2), transparent 70%); pointer-events: none; }
.dial { position: absolute; inset: -3%; width: 106%; height: 106%; overflow: visible; transform: rotate(var(--turn, 0deg)); transition: transform 1.4s var(--ease); }
.dial .ring, .dial .tick, .dial .major { fill: none; }
.dial .ring { stroke: var(--rule); }
.dial .tick { stroke: var(--muted); opacity: .55; }
.dial .major { stroke: var(--brass); }
.dial text { font: 500 11px var(--font-body); letter-spacing: .14em; fill: var(--muted); text-anchor: middle; }
.dial .spoke { stroke: var(--rule); stroke-width: 1; fill: none; }
.dial .knob { fill: var(--ground); stroke: var(--frame); stroke-width: 1.5; }
.stage .hang { width: 78%; }
.stage .plate img { aspect-ratio: 3 / 2; }

/* Desk strip */
.desks { border-block: 1px solid var(--rule); }
.desks ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.desks a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 6px 16px; height: 100%; padding: 26px clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); transition: background-color .3s; }
.desks li:first-child a { border-left: 0; padding-left: 0; }
.desks a:hover { background: var(--surface); }
.desks li:first-child a:hover { box-shadow: -28px 0 0 var(--surface); }
.desks h2 { display: flex; align-items: center; gap: 10px; font-size: 1.7rem; line-height: 1.1; }
.desks h2 svg { width: 18px; height: 18px; color: var(--signal); }
.desks .arrow { font-size: 1.1rem; margin-top: 6px; }
.desks .keel-cut { stroke: var(--ground); }
.desks p { grid-column: 1 / -1; max-width: 26ch; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.desks .caps { grid-column: 1 / -1; margin-top: 10px; color: var(--accent); }

/* Bands */
.band { padding-top: clamp(64px, 8vw, 112px); }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.band-head h2 { font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -.01em; }
.mini-wheel { display: inline-block; width: .5em; height: .5em; color: var(--brass); margin-right: .32em; vertical-align: .18em; }

/* Ledgers: the profile book, desk indexes and every list of links */
.ledger-cols, .ledger a { display: grid; gap: 0 24px; align-items: baseline; }
.ledger-cols { padding: 0 16px 12px; border-bottom: 1px solid var(--rule); }
.ledger a { position: relative; padding: 22px 16px; border-bottom: 1px solid var(--rule); transition: background-color .3s, padding .45s var(--ease); }
.ledger a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%); opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.ledger a:hover { background: var(--surface); padding-left: 26px; }
.ledger a:hover::before { opacity: 1; }
.ledger .no { font-size: .85rem; letter-spacing: .12em; }
.ledger .name { font: 400 clamp(1.7rem, 2.5vw, 2.3rem)/1.1 var(--font-display); }
.ledger .name.caps { font: 500 .8rem/1.5 var(--font-body); letter-spacing: .13em; color: var(--accent); }
.ledger .call { color: var(--muted); }
.ledger .call h2 { font: 600 1.125rem/1.35 var(--font-body); color: var(--ink); transition: color .2s; }
.ledger .call p { margin-top: 6px; max-width: 62ch; font-size: 1rem; line-height: 1.55; }
.ledger a:hover .call h2 { color: var(--accent); }
.ledger .arrow { font-size: 1.15rem; }
.ledger-cols.book, .ledger.book a { grid-template-columns: 4.5rem minmax(0, 1.15fr) minmax(0, .6fr) minmax(0, 1.3fr) 2rem; }
.ledger-cols.titles, .ledger.titles a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 2rem; }
.ledger.titles .name { font-size: clamp(1.6rem, 2.2vw, 2rem); }
.ledger-cols.cases-index, .ledger.cases-index a { grid-template-columns: minmax(0, .55fr) minmax(0, 1.6fr) 2rem; }
.rows { border-top: 1px solid var(--rule); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--rule); transition: padding .45s var(--ease), background-color .3s; }
.rows a:hover { padding-inline: 10px; background: var(--surface); }
.rows .caps { grid-column: 1; }
.rows .t { grid-column: 1; font: 400 1.4rem/1.2 var(--font-display); }
.rows .arrow { grid-column: 2; grid-row: 1 / span 2; }

/* Home: editor's desk */
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button { min-height: 44px; padding: 0 14px; font: 500 .75rem var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--brass); }
.picks { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.picks > .pick:only-child { grid-column: 1 / -1; }
.pick a { display: block; }
.pick .plate img { aspect-ratio: 5 / 3; }
.pick .caps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px; }
.pick .caps span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 14px; background: var(--rule); vertical-align: middle; }
.pick .caps svg { width: 13px; height: 13px; color: var(--signal); }
.pick h3 { margin-top: 8px; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.04; letter-spacing: -.01em; transition: color .3s; }
.pick a:hover h3 { color: var(--accent); }
.pick .dek { margin-top: 12px; max-width: 52ch; color: var(--muted); }
.pick-stack { display: grid; grid-auto-rows: 1fr; }
.pick-stack .pick { display: grid; align-items: center; border-top: 1px solid var(--rule); }
.pick-stack .pick:first-child { border-top: 0; align-items: start; }
.pick-stack .pick:last-child { align-items: end; }
.pick-stack .pick a { display: grid; grid-template-columns: minmax(120px, 236px) 1fr; gap: 26px; align-items: center; padding-block: 28px; }
.pick-stack .pick:first-child a { padding-top: 0; }
.pick-stack .pick:last-child a { padding-bottom: 0; }
.pick-stack .plate { padding: 8px; }
.pick-stack .plate img { aspect-ratio: 1; }
.pick-stack .caps { display: block; margin-top: 0; }
.pick-stack .caps svg { display: inline-block; vertical-align: -2px; margin-right: 8px; }
.pick-stack .caps span + span::before { content: "·"; width: auto; height: auto; margin: 0 .55em; background: none; }
.pick-stack h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.1; }
.pick-stack .dek { font-size: .95rem; line-height: 1.5; }

/* For discussion: the Deep Navy band with the faint helm wheel */
.question { position: relative; margin-top: clamp(64px, 8vw, 112px); background: var(--surface); border-block: 1px solid var(--rule); overflow: hidden; }
.question .wrap { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.question .wheel { position: absolute; right: -9%; top: 50%; width: min(60vw, 660px); transform: translateY(-50%) rotate(calc(var(--turn, 0deg) * -1.6)); color: var(--rule); opacity: .75; transition: transform 1.4s var(--ease); }
.question .q { position: relative; max-width: 20ch; font: italic 400 clamp(2.1rem, 4.3vw, 4.1rem)/1.06 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.question .q::before { content: ""; display: block; width: 56px; height: 2px; margin-bottom: 30px; background: var(--accent); }
.question .q-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 34px; }

/* Reading paths drawn as three-stop routes */
.path { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: 30px; border-top: 1px solid var(--rule); }
.paths .path:last-child { border-bottom: 1px solid var(--rule); }
.path h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; }
.path h3 a { display: inline-block; min-height: 44px; transition: color .3s; }
.path h3 a:hover { color: var(--brass); }
.path p { margin-top: 4px; max-width: 40ch; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.course { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.course::before { content: ""; position: absolute; left: 6px; right: 12%; top: 6px; border-top: 1px dashed var(--frame); }
.course li { position: relative; padding: 18px 16px 0 0; }
.course li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--brass); transition: background-color .3s; }
.course li:hover::before { background: var(--brass); }
.course a { display: flex; align-items: center; min-height: 44px; font-weight: 500; line-height: 1.35; }
.course a:hover { color: var(--brass); }
.course .caps { display: block; }

/* Ironkeel: the steel room */
.keel-room, .room { background-color: var(--steel-room); background-image: linear-gradient(rgb(232 195 58 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(232 195 58 / .045) 1px, transparent 1px); background-size: 40px 40px; background-position: center top; }
.keel-room .keel-cut, .room .keel-cut { stroke: var(--steel-room); }
.keel-room { margin-top: clamp(64px, 8vw, 112px); border-top: 2px solid var(--signal); }
.keel-room .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(190px, .72fr); gap: clamp(24px, 4vw, 60px); align-items: start; padding-block: clamp(56px, 7vw, 96px); }
.keel-sign { display: flex; align-items: center; gap: 12px; font: 600 .95rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.keel-sign svg { width: 26px; height: 26px; }
.keel-room h2, .iron .hub-title, .iron .article-title { font-family: var(--font-body); font-weight: 650; font-stretch: 66%; letter-spacing: -.01em; text-transform: uppercase; }
.keel-room h2 { font-size: clamp(3rem, 5.6vw, 5.2rem); line-height: .9; }
.keel-room .copy p { margin-top: 20px; max-width: 34ch; color: var(--muted); }
.keel-room .copy .text-link { margin-top: 14px; }
.cases-note { padding-bottom: 14px; font-size: .75rem; font-weight: 500; letter-spacing: .13em; }
.cases-note svg { width: 18px; height: 18px; }
.cases-note { flex-wrap: wrap; gap: 4px 10px; letter-spacing: .1em; }
.cases-note span { white-space: nowrap; }
.cases-note span + span { color: var(--muted); }
.cases { border-top: 1px solid var(--rule); }
.cases a { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); transition: padding .45s var(--ease), background-color .3s; }
.cases a:hover { padding-inline: 10px; background: var(--surface); }
.cases .caps { color: var(--signal); }
.keel-room > .wrap > .plate img { aspect-ratio: 4 / 5; }
.room { border-top: 2px solid var(--signal); }

/* Desk index pages */
.hub-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(24px, 3vw, 40px) clamp(48px, 5vw, 72px); }
.hub-title, .info-title { font-size: clamp(3rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.015em; }
.iron .hub-title { font-size: clamp(3.4rem, 7vw, 6rem); line-height: .9; }
.intro { margin-top: 20px; max-width: 58ch; color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; }
.hub-note { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 22px; color: var(--accent); }
.hub-note svg { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; }
.hub-note span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-inline: 14px; background: var(--rule); vertical-align: middle; }
.hub-hero .plate img { aspect-ratio: 4 / 3; }
.hub-list { padding-bottom: clamp(56px, 7vw, 96px); }
.hub-list + .paths { padding-top: 0; padding-bottom: clamp(56px, 7vw, 96px); }

/* Articles */
.article-header { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: clamp(24px, 3vw, 44px) clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--rule); }
.article-title { font-size: clamp(2.75rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -.015em; max-width: 16em; }
.iron .article-title { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: .92; }
.toc { margin-top: 32px; max-width: 36rem; }
.toc .caps { padding-bottom: 10px; color: var(--accent); }
.toc ol { border-top: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--rule); line-height: 1.35; transition: padding .45s var(--ease), color .2s; }
.toc a:hover { padding-left: 8px; color: var(--accent); }

.tombstone { padding: 20px 22px 8px; background: var(--surface); border-top: 2px solid var(--accent); box-shadow: var(--shadow-panel); }
.tomb-no { color: var(--accent); }
.tomb-name { margin-top: 6px; font: 400 2rem/1.1 var(--font-display); }
.tombstone dl { margin-top: 14px; }
.tombstone > dl:first-child { margin-top: 0; }
.tombstone > dl:first-child > div:first-child { border-top: 0; padding-top: 2px; }
.tombstone dl > div, .colophon-block dl > div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; align-items: baseline; padding-block: 11px; border-top: 1px solid var(--rule); }
.tombstone dd, .colophon-block dd { font-size: 1rem; line-height: 1.45; }
.tombstone dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 80px); padding-block: clamp(36px, 4.5vw, 60px) 0; }
.prose { max-width: var(--measure); }
.prose section + section { margin-top: 44px; }
.prose h2 { font-size: clamp(1.875rem, 2.6vw, 2.375rem); line-height: 1.12; margin-bottom: 14px; }
.prose p { font-size: 1.125rem; line-height: 1.72; }
.prose .text-link { margin-top: 8px; }
.sources { margin-top: 52px; }
.prose h2.caps { margin: 0; font-size: .75rem; line-height: 1.5; }
.sources .caps, .related .caps { padding-bottom: 10px; color: var(--accent); }
.sources ol { border-top: 1px solid var(--rule); }
.sources li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; padding-block: 6px; border-bottom: 1px solid var(--rule); }
.sources a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.sources a:hover { text-decoration-color: currentColor; }
.wrap > .article-layout:last-child { padding-bottom: clamp(64px, 8vw, 112px); }
.rail { position: sticky; top: 128px; align-self: start; }
.rail .plate img { aspect-ratio: 1; }
.related { margin-top: 36px; }

/* About, sitemap, 404 */
.info-head { padding-block: clamp(24px, 3vw, 44px) clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--rule); }
.info-head > :first-child, .info-head > .intro { max-width: 56rem; }
.info-head .hero-actions { margin-top: 28px; }
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.about-head .wheel { width: clamp(140px, 22vw, 300px); color: var(--frame); }
.colophon-block { margin-top: 52px; padding: clamp(24px, 3vw, 36px); background: var(--surface); border-top: 2px solid var(--accent); box-shadow: var(--shadow-panel); }
.prose .colophon-block h2 { margin-bottom: 12px; }
.colophon-block p { color: var(--ink); }
.colophon-block dl { margin-top: 20px; }
.map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.map h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.1; }
.map h2 .caps { color: var(--accent); }
.map .rows .t { font: 400 1.0625rem/1.4 var(--font-body); }
main > .desks { margin-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 112px); }

/* Footer */
.foot { background: var(--deep); border-top: 1px solid var(--rule); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .7fr)); gap: clamp(24px, 4vw, 56px); padding-block: clamp(48px, 6vw, 80px) 40px; }
.foot .brand { font-size: 2.3rem; }
.foot .brand svg { width: 38px; height: 38px; }
.foot .tagline { margin-top: 16px; max-width: 18ch; font: italic 400 1.35rem/1.3 var(--font-display); color: var(--muted); }
.foot nav .caps { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); }
.foot nav a { display: flex; align-items: center; min-height: 44px; font-size: .95rem; transition: color .3s, padding .45s var(--ease); }
.foot nav a:hover { color: var(--brass); padding-left: 6px; }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-top: 1px solid var(--rule); }
.wordmark { margin: 18px 0 -.1em; font: 400 clamp(5rem, 22vw, 20rem)/.8 var(--font-display); letter-spacing: -.02em; color: #12202F; white-space: nowrap; text-align: center; user-select: none; }

/* Search */
dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--rule); width: min(620px, calc(100% - 32px)); max-height: 80dvh; padding: 0; border-radius: 4px; box-shadow: 0 38px 80px -24px rgb(2 6 11 / .9), 0 12px 28px -12px rgb(2 6 11 / .7); }
dialog::backdrop { background: rgb(5 11 18 / .72); }
.search-inner { padding: 20px 22px 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog-head h2 { font-size: 2rem; }
.search-input { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--muted); background: var(--ground); color: var(--ink); border-radius: 2px; font-size: 1.0625rem; }
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-input:focus-visible { outline-offset: 2px; }
.search-status { margin: 18px 0 8px; }
.results { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.results a { position: relative; display: block; padding: 12px 36px 12px 6px; border-top: 1px solid var(--rule); transition: background-color .2s, padding .45s var(--ease); }
.results a::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--muted); -webkit-mask: var(--arrow-mask) center / contain no-repeat; mask: var(--arrow-mask) center / contain no-repeat; transition: transform .45s var(--ease), background-color .3s; }
.results a:hover, .results a:focus-visible { background: var(--ground); padding-left: 12px; }
.results a:hover::after, .results a:focus-visible::after { background: var(--accent); transform: translate(3px, -3px); }
.results strong { display: block; font: 400 1.35rem/1.2 var(--font-display); }
.results small { display: block; margin-top: 2px; font: 500 .75rem/1.5 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
:root { --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M8.5 6H18v9.5'/%3E%3C/svg%3E"); }

/* Tablet */
@media (max-width: 1080px) {
  .keel-room .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .keel-room > .wrap > .plate { display: none; }
  .ledger-cols.book, .ledger.book a { grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, .55fr) minmax(0, 1.1fr) 1.5rem; }
  .article-header, .article-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 860px) {
  .mast-tools { margin-left: auto; border: 0; padding: 0; }
  .mobile-menu { display: grid; }
  .mast-nav { display: none; }
  .mast-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 5; padding: 8px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-panel); font-size: 1.0625rem; }
  .mast-nav.open > a { min-height: 52px; border-bottom: 1px solid var(--rule); color: var(--ink); }
  .mast-nav.open > a:last-child { border-bottom: 0; }
  .mast-nav.open > a::after { display: none; }
  .mast-nav.open > a[aria-current]::before { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--brass); }
  .running .wrap > :last-child { display: none; }
  .hero { grid-template-columns: 1fr; }
  .stage { max-width: 560px; margin-inline: auto; width: 100%; }
  .desks ul { grid-template-columns: 1fr 1fr; }
  .desks a { padding: 22px 18px; border-top: 1px solid var(--rule); }
  .desks li:nth-child(-n+2) a { border-top: 0; }
  .desks li:nth-child(odd) a { border-left: 0; padding-left: 0; }
  .desks li:first-child a:hover { box-shadow: none; }
  .ledger-cols { display: none; }
  .ledger { border-top: 1px solid var(--rule); }
  .ledger a, .ledger.book a, .ledger.titles a, .ledger.cases-index a { grid-template-columns: minmax(0, 1fr) 1.4rem; padding: 18px 0; }
  .ledger.book a { grid-template-columns: 2.6rem minmax(0, 1fr) 1.4rem; }
  .ledger a:hover { padding-left: 8px; }
  .ledger a > :not(.no):not(.arrow) { grid-column: 1; }
  .ledger.book a > :not(.no):not(.arrow) { grid-column: 2; }
  .ledger a > .name ~ * { margin-top: 6px; }
  .ledger .arrow { grid-column: -2; grid-row: 1; }
  .band-head { flex-direction: column; align-items: flex-start; }
  .filters { margin-left: -14px; }
  .picks, .path, .keel-room .wrap { grid-template-columns: 1fr; }
  .pick-stack { grid-auto-rows: auto; }
  .pick-stack .pick, .pick-stack .pick:first-child, .pick-stack .pick:last-child { align-items: start; }
  .pick-stack .pick a, .pick-stack .pick:last-child a { padding-block: 24px; }
  .pick-stack .pick:first-child { border-top: 1px solid var(--rule); }
  .course { grid-template-columns: 1fr; gap: 0; }
  .course::before { left: 6px; right: auto; top: 6px; bottom: 30px; border-top: 0; border-left: 1px dashed var(--frame); }
  .course li { padding: 0 0 12px 30px; }
  .course li::before { top: 15px; }
  .course a { min-height: 44px; }
  .question .wheel { right: -38%; width: 110vw; opacity: .5; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div { grid-column: 1 / -1; }
  .hub-hero { grid-template-columns: minmax(0, 1fr) 220px; }
  .article-header, .article-layout { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail .hang { display: none; }
  .related { margin-top: 0; }
  .map { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .mast-inner { min-height: 64px; }
  .brand { font-size: 1.75rem; gap: 10px; }
  .brand svg { width: 28px; height: 28px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.75rem, 12.5vw, 3.5rem); }
  .hub-hero { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hub-hero .plate img { aspect-ratio: 2 / 1; }
  .hub-title, .info-title, .article-title { font-size: clamp(2.375rem, 10.5vw, 3rem); }
  .iron .hub-title, .iron .article-title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .prose p { font-size: 1.0625rem; }
  .about-head { grid-template-columns: 1fr; }
  .about-head .wheel { display: none; }
  .desks h2 { font-size: 1.45rem; }
}
@media (max-width: 520px) {
  .pick-stack .pick a { grid-template-columns: 104px 1fr; gap: 16px; }
  .exhibits a { grid-template-columns: 7.6rem 1fr auto; gap: 10px; }
  .cases a { grid-template-columns: 1fr auto; }
  .cases a > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .cases .arrow { grid-column: 2; grid-row: 1 / span 2; }
  .cases-note span { white-space: normal; }
  .tomb { flex-direction: column; gap: 8px; }
  .tomb p + p { text-align: left; }
  .tombstone dl > div, .colophon-block dl > div { grid-template-columns: 6rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .dial, .question .wheel { transform: none; }
  .question .wheel { transform: translateY(-50%); }
}

@media print {
  body::before, .mast-tools, .mast-nav, .running, .foot nav, .wordmark, .hero-actions, .filters, .rail, .toc, .skip, .dial, .question .wheel { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { width: auto; }
  .article-layout, .article-header, .hub-hero { display: block; }
  .foot, .tombstone, .question, .room, .keel-room, .colophon-block { background: none; color: #000; box-shadow: none; }
  .plate { box-shadow: none; }
  .question { break-inside: avoid; }
}
