:root {
  --black:      #0E0C09;
  --deep:       #1A1610;
  --parchment:  #F2EBD9;
  --cream:      #EDE3CC;
  --gold:       #C9A84C;
  --gold-dim:   #8A6F2E;
  --terracotta: #8B3A2A;
  /* Text sibling: the base terracotta is 2.35:1 on --deep. Borders and fills
     keep the original; labels use this at 5.32:1. */
  --terracotta-label: #CE7261;
  --ink:        #2A2010;
  /* Text. Was #7A6A50 — 3.43:1 on --deep and 3.86:1 on --black, under the
     4.5:1 AA floor everywhere it was used, and it is used for text only
     (18 colour uses, no borders, no backgrounds). #A89478 is 6.15:1. */
  --muted:      #A89478;
  /* Small-caps labels. --gold-dim is 3.77:1 and cannot carry text, but it
     is also 16 borders and backgrounds, so it keeps its value and text
     moves here: 5.46:1 on --deep, 5.92:1 on --black. */
  --gold-label: #A88A3C;
  /* Control boundaries. The old --muted value: too weak for text, but over
     the 3:1 WCAG asks of a control's edge. */
  --edge:       #7A6A50;
  --rule:       #3D2B1A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background: var(--black);
  color: var(--parchment);
  font-family: 'Cormorant Garamond', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Top bar ── */
.topbar {
  border-bottom: 1px solid var(--gold-dim);
  padding: 0.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--deep);
}
.topbar-series {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gold-label);
  text-transform: uppercase;
}
/* The mark, beside the series name. currentColor, so it takes --gold-label
   from the text it sits with and needs no second colour to keep in step.
   Sized in em off that text, so it tracks the responsive font-size rules
   below instead of needing its own. */
.topbar-mark {
  /* The SVG is a mask, not an <img>. `currentColor` inside an SVG loaded
     through <img> resolves against that file's own document rather than
     this page, so it renders black; a mask also lets the mark take a
     palette token and stay in step with the wordmark beside it.
     The file carries width/height as well as a viewBox -- with only a
     viewBox it has a ratio but no intrinsic size, and mask-size: contain
     then resolves to nothing and the mark silently disappears. */
  width: 2.3em;
  height: 2.3em;
  flex: none;
  display: block;
}
/* The colour lives here so that a browser without masks gets an empty box
   rather than a solid gold square. */
@supports (mask-image: url(#m)) or (-webkit-mask-image: url(#m)) {
  .topbar-mark {
    background-color: var(--gold);
    -webkit-mask: url(/assets/images/lic-mark.svg) center / contain no-repeat;
            mask: url(/assets/images/lic-mark.svg) center / contain no-repeat;
  }
}
.topbar-series {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.topbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.topbar-nav a {
  font-family: 'Cinzel', serif;
  /* was 0.6rem — 9.6px in a 13px-tall box, the smallest target on the site
     and the one every visitor needs first. */
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
}
.topbar-nav a:hover,
.topbar-nav a[aria-current="page"] { color: var(--gold); }

/* ── Arc progress strip ── */
.arc-strip {
  background: var(--deep);
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 3rem;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  overflow-x: auto;
}
.arc-pip {
  width: 20px;
  height: 3px;
  background: var(--rule);
  flex-shrink: 0;
  position: relative;
  cursor: default;
}
.arc-pip.active { background: var(--gold); }
.arc-pip.done   { background: var(--gold-dim); }
.arc-pip-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--gold-label);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}
.arc-pip:hover .arc-pip-label { opacity: 1; }
.arc-pip-gap {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 0.1rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--deep);
  overflow: hidden;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem 4rem;
}
.hero-watermark {
  position: absolute;
  right: -0.05em;
  top: -0.15em;
  font-family: 'Cinzel', serif;
  font-size: 22rem;
  font-weight: 600;
  /* Was 0.04 -- 1.06:1 against the ground, which is barely there. 0.16 reads
     clearly and still sits behind the title on the bridge pages, where "III·IV"
     runs under it; 0.24 began to compete. Text only ever overlaps the numeral in
     parchment (the bridge titles, and the eyebrow line on a phone), and
     parchment over it is still 11.3:1, so contrast set no limit here. */
  color: rgba(201,168,76,0.16);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--parchment);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  max-width: 700px;
}
.hero-subtitle {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-label);
  margin-bottom: 2.5rem;
}
.hero-rule {
  width: 4rem;
  height: 1px;
  background: var(--gold-dim);
  margin-bottom: 2rem;
}
.hero-thesis {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cream);
  max-width: 640px;
}
/* The crossing to the other way into the collection: this arc's gallery in
   the Museum. The gallery links back with "Read the arc". */
.hero-museum { margin-top: 1.75rem; }
.hero-museum a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-museum a:hover, .hero-museum a:focus-visible { color: var(--parchment); }
.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-meta-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-label);
  text-transform: uppercase;
}
.hero-meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--muted);
}
.hero-divider {
  width: 1px;
  height: 2rem;
  background: var(--rule);
  align-self: center;
}

/* ── Main content area ── */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── Narrative ── */
.narrative {
  margin-bottom: 5rem;
}
.narrative-text {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--cream);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

/* ── Still being built ── */
.arc-progress { margin-bottom: 5rem; }
.arc-progress-text {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  max-width: 680px;
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.25rem;
}

/* ── Coin grid ── */
.coin-section {
  margin-bottom: 5rem;
}
.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.coin-card {
  background: var(--deep);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
  cursor: default;
}
.coin-card:hover { background: #211d14; }
.coin-position {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);            /* was --gold-label, 5.46:1 -> 7.88:1 */
  text-transform: uppercase;
  align-self: flex-start;
}
.coin-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.coin-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #2A2418;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.coin-placeholder svg { opacity: 0.25; }
.coin-info {
  text-align: center;
  flex: 1;
}
.coin-name {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--parchment);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.coin-identity {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.coin-role {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  line-height: 1.5;
}
.coin-photos { width: 100%; }
.coin-photo-pair {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.coin-photo-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 50%;
}
.coin-photo-side .coin-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
.coin-side-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.coin-details {
  width: 100%;
  margin-top: 0.5rem;
}
.coin-details-toggle {
  background: none;
  /* --rule is 1.34:1: the outline of a button you cannot see is not an
     outline. --edge is 3.43:1, over the 3:1 a control's boundary needs. */
  border: 1px solid var(--edge);
  /* was --gold-label, 5.46:1 — this button was the dimmest thing on the card,
     below even the passive identity line beside it at 6.15:1. Now 7.88:1. */
  color: var(--gold);
  font-family: 'Cinzel', serif;
  /* was 0.5rem — 8px on a full-width button people are meant to press. */
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  min-height: 44px;
  cursor: pointer;
  width: 100%;
  transition: color 0.2s, border-color 0.2s;
}
.coin-details-toggle:hover,
.coin-details-toggle:focus-visible {
  color: var(--cream);
  border-color: var(--gold);
}
.coin-details-body {
  display: none;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
}
.coin-details.open .coin-details-body {
  display: block;
}
.coin-details.open .coin-details-toggle {
  color: var(--cream);
  border-color: var(--gold);
}
.coin-detail-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  line-height: 1.4;
}
.coin-detail-label {
  color: var(--muted);
  min-width: 5rem;
  flex-shrink: 0;
  text-align: right;
}
.coin-detail-value {
  color: var(--parchment);
}

/* ── Coin web copy (Read More) ── */
.coin-essay-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.coin-essay-text:last-child { margin-bottom: 0; }

/* ── Closing / Series Context ── */
.display-closing {
  padding: 2.5rem 2rem;
  background: var(--deep);
  border-top: 1px solid var(--rule);
}
.closing-section {
  margin-bottom: 2rem;
}
.closing-section:last-child { margin-bottom: 0; }
.closing-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.closing-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream);
  max-width: 680px;
  margin-bottom: 1rem;
}
.closing-text:last-child { margin-bottom: 0; }
/* Series context links to the displays it leads to, in the "Also in" gold. */
.closing-text a { color: var(--gold-label); text-underline-offset: 3px; }
.closing-text a:hover { color: var(--gold); }

/* ── Companion displays ── */
.companion-section {
  margin-bottom: 5rem;
}
.companion-type-group {
  margin-bottom: 3rem;
}
.companion-display-full {
  border: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.companion-full-header {
  background: var(--deep);
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.companion-full-title {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--parchment);
  line-height: 1.3;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}
.companion-full-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
/* The display's own page, by its permanent /d/ alias. Quiet: this section
   already holds the whole display, so the link is an address to keep, not a
   route to the content. */
.companion-permalink {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* --gold-label, not --gold-dim: this is text. #8A6F2E measures 3.77:1 on
     --deep, and the contrast pass that moved every other label to the text
     sibling missed this one. */
  color: var(--gold-label, #A88A3C);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 138, 60, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.companion-permalink:hover,
.companion-permalink:focus {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.companion-full-desc {
  padding: 1.75rem 2rem;
  background: var(--deep);
  border-bottom: 1px solid var(--rule);
}
.companion-full-desc p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream);
  max-width: 680px;
  margin-bottom: 1rem;
}
.companion-full-desc p:last-child { margin-bottom: 0; }
.companion-display-full .coin-grid {
  border: none;
  border-top: none;
}
.companion-type-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.companion-type-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.companion-type-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.companion-type-rule {
  flex: 1;
  height: 1px;
  background: #2A2010;
}
.companion-card-type {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.companion-card-type.battle   { color: var(--terracotta-label); }  /* 2.35:1 -> 5.32:1 */
.companion-card-type.regional { color: #6BA37F; }  /* 4.53:1 -> 5.9:1, matching its siblings */
.companion-card-type.temporal { color: #6E8FA8; }  /* 3.31:1 -> 5.28:1 */
.companion-card-type.thread   { color: #C8AC7C; }
.companion-card-gloss { text-transform: none; letter-spacing: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.05rem; }
.display-index-type .companion-card-gloss { font-size: 0.95em; }
.coin-also-in { margin-top: 0.6rem; font-style: italic; font-size: 0.95rem; color: var(--muted); }
.coin-also-in a { color: var(--gold-label); }
/* ── Image gallery ── */
.gallery-section {
  margin-bottom: 5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.gallery-item {
  background: #1E1A12;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.3;
}
.gallery-placeholder-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gold-label);
  text-transform: uppercase;
}

/* ── Videos ── */
.video-section {
  margin-bottom: 5rem;
}
.video-tier {
  margin-bottom: 3.5rem;
}
.video-tier-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.video-tier-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.video-tier-rule {
  flex: 1;
  height: 1px;
  background: #2A2010;
}

/* Flagship */
.video-flagship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.video-flagship-card {
  background: var(--deep);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.video-flagship-embed {
  background: #1A1610;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-flagship-embed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #2A2010 0%, #0E0C09 70%);
}
.video-flagship-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-play-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--gold-dim);
  margin-left: 3px;
}
.video-flagship-meta {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  border-left: 1px solid var(--rule);
}
.video-title {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--parchment);
  line-height: 1.3;
}
.video-thesis {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}
.video-meta-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.video-meta-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-label);
  border: 1px solid var(--rule);
  padding: 0.2rem 0.45rem;
  text-transform: uppercase;
}
.video-meta-tag.battle {
  color: var(--terracotta-label);
  border-color: rgba(139,58,42,0.3);
}
.video-supporting-play {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-supporting-play::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid var(--gold-dim);
  margin-left: 2px;
}

/* Shorts — cards carry their own border and the grid paints nothing, so a short
   row leaves plain page rather than a filled empty cell. 16:9 because Arc III's
   Shorts are 16:9 films; a vertical Short's thumbnail sits in it without cropping. */
.video-shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 1rem;
}
.video-short-card {
  background: var(--deep);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.video-short-embed {
  background: #1A1610;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-short-embed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #221e14 0%, #0E0C09 70%);
}
.video-short-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-short-play {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-short-play::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--gold-dim);
  margin-left: 2px;
}
.video-short-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  line-height: 1.4;
}

/* ── Footer ── */
.page-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--deep);
}
.footer-series {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--parchment);
  text-transform: uppercase;
}
.footer-arc-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-arc-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 0.4rem;
  transition: color 0.2s;
}
.footer-arc-nav a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first overrides
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* ── Layout padding ── */
  .topbar          { padding: 0.5rem 1.25rem; }
  .arc-strip       { padding: 0.6rem 1.25rem; gap: 0.2rem; }
  .hero-content    { padding: 3rem 1.25rem 2.5rem; }
  .content         { padding: 2.5rem 1.25rem; }
  .page-footer     { padding: 1.5rem 1.25rem; flex-direction: column; gap: 1rem; text-align: center; }

  /* ── Hero ── */
  .hero-watermark  { font-size: 10rem; }
  .hero-eyebrow    { font-size: 0.8rem; }
  .hero-subtitle   { font-size: 1.15rem; margin-bottom: 1.5rem; }
  .hero-thesis     { font-size: 1.1rem; line-height: 1.7; }
  .hero-meta       { flex-wrap: wrap; gap: 1.5rem; }
  .hero-meta-label { font-size: 0.7rem; }
  .hero-meta-value { font-size: 1.05rem; }

  /* ── Section headers ── */
  .section-label   { font-size: 0.75rem; }

  /* ── Narrative ── */
  .narrative-text  { font-size: 1.05rem; line-height: 1.8; }

  /* ── Coin grid: 1 column on mobile ── */
  .coin-grid       { grid-template-columns: 1fr; }
  .coin-card       { padding: 1.75rem 1.25rem; }
  .coin-photo      { width: 140px; height: 140px; }
  .coin-placeholder { width: 140px; height: 140px; }
  .coin-name       { font-size: 1.2rem; }
  .coin-identity   { font-size: 0.95rem; }
  .coin-role       { font-size: 1.05rem; }
  .coin-position   { font-size: 0.7rem; }
  .coin-side-label { font-size: 0.78rem; }
  .coin-details-toggle { font-size: 0.8rem; padding: 0.7rem 1rem; }
  .coin-detail-row { font-size: 1rem; }
  .coin-detail-label { min-width: 4.5rem; font-size: 0.9rem; }

  /* ── Companion displays ── */
  .companion-card-type  { font-size: 0.78rem; }
  .companion-full-header { padding: 1.5rem 1.25rem 1.25rem; }
  .companion-full-title  { font-size: 1.25rem; }
  .companion-full-desc   { padding: 1.25rem; }
  .companion-full-desc p { font-size: 1rem; }
  .coin-essay-text       { font-size: 1rem; }
  .display-closing       { padding: 2rem 1.25rem; }
  .closing-label         { font-size: 0.7rem; }
  .closing-text          { font-size: 1rem; }

  /* ── Gallery ── */
  .gallery-grid    { grid-template-columns: 1fr; grid-template-rows: 200px 150px 150px; }
  .gallery-item:first-child { grid-row: auto; }

  /* ── Videos ── */
  .video-flagship-card       { grid-template-columns: 1fr; }
  .video-flagship-meta       { border-left: none; border-top: 1px solid var(--rule); padding: 1.25rem; }
  .video-shorts-grid         { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-short-title         { font-size: 0.85rem; }

  /* ── Topbar ── */
  .topbar-series   { font-size: 0.8rem; }
  .topbar-nav a    { font-size: 0.8rem; }

  /* ── Footer ── */
  .footer-arc-nav  { justify-content: center; }
  .footer-series   { font-size: 0.8rem; }
  .footer-arc-nav a { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-watermark    { font-size: 7rem; }
  .hero-title        { font-size: 1.8rem; }
  .hero-meta         { gap: 1rem; }
  .hero-divider      { height: 1.5rem; }

  .topbar-nav        { gap: 0.55rem; }
  /* Two nav items plus the wordmark will not fit a phone: at 375px the brand
     and both labels each broke mid-word. Below 480 the mark alone carries the
     link home. The words stay in the DOM for screen readers, just unrendered. */
  .topbar-series     { font-size: 0; gap: 0; }
  .topbar-mark       { width: 28px; height: 28px; }
  /* The labels used to shrink to 0.5rem here — smallest on the narrowest
     screen, which is backwards. Hold the desktop size. */
  .topbar-nav a      { font-size: 0.8rem; }
  /* Four items since Threads joined the nav (All Arcs, Threads, About, search):
     tighter tracking and a label that never breaks, at nearly full size. */
  .topbar-nav a      { font-size: 0.72rem; letter-spacing: 0.06em; white-space: nowrap; padding: 0 0.15rem; }

  .arc-pip           { width: 14px; }

  .video-shorts-grid { grid-template-columns: 1fr; }

  .coin-photo-pair   { gap: 0.5rem; }
}

/* ── Display photo (physical display as hero image) ── */
.hero-photo-wrapper {
  width: 100%;
  background: var(--black);
}
.hero-display-photo {
  width: 100%;
  max-height: 52vh;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid var(--rule);
}

/* ── Media tabs (Timeline / Map) ── */
.media-tabs {
  margin-bottom: 3rem;
}
.media-tab-strip {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.media-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.7rem 2rem;
  min-height: 44px;          /* was 40px */
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.media-tab-btn:hover { color: var(--parchment); }
.media-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.media-tab-panel { }
.media-tab-panel.hidden { display: none; }
/* 882 = the 880px the timeline needs plus its own 1px border top and bottom;
   box-sizing is border-box, so anything less puts a 2px scrollbar inside the
   frame. The timeline fills whatever box it is given and lays its navigation
   band out at a fixed 656px, so this is the height at which the band, the era
   strip and the date axis are all on screen without scrolling inside it. */
.media-tab-iframe {
  width: 100%;
  height: 882px;
  border: none;
  border: 1px solid var(--rule);
  display: block;
  background: var(--black);
}

/* ── Display index (in the arc header) ── */
/* Which displays the arc holds, straight after Period/Coins/Theme. A down
   arrow means the display is further down this page; a right arrow means the
   link leaves for the display's own page. */
.display-index {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 46rem;
}
.display-index-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-label);
  margin-bottom: 0.35rem;
}
.display-index-list { list-style: none; }
.display-index-link {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0.45rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.display-index-link:hover,
.display-index-link:focus-visible { border-bottom-color: var(--edge); }
.display-index-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.display-index-type {
  flex: none;
  width: 10.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.display-index-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--cream);
}
.display-index-link:hover .display-index-title,
.display-index-link:focus-visible .display-index-title { color: var(--gold); }
.display-index-arrow {
  margin-left: auto;
  flex: none;
  color: var(--gold-label);
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  /* The type label stacks over the title rather than reserving a fixed
     column, which at 375px left the title about eight characters of room. */
  .display-index-link {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "type arrow" "title arrow";
    align-items: center;
    gap: 0.1rem 0.85rem;
    padding: 0.6rem 0;
  }
  .display-index-type  { grid-area: type;  width: auto; }
  .display-index-title { grid-area: title; font-size: 1.05rem; }
  .display-index-arrow { grid-area: arrow; }
}

/* ── Timeline spine (homepage) ── */
.lic-spine {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 0 10px;
  background: var(--deep);
  border-bottom: 1px solid var(--rule);
}
.lic-spine-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-label);
  margin-bottom: 10px;
}
.lic-spine-row {
  display: flex;
  width: 100%;
  height: 80px;
}
.lic-segment {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 8px;
  box-sizing: border-box;
  overflow: hidden;
  text-decoration: none;
  border-right: 1px solid rgba(0,0,0,0.2);
  transition: filter 140ms ease, transform 140ms ease;
  cursor: pointer;
}
.lic-segment:last-child { border-right: none; }
.lic-segment:hover { filter: brightness(1.2); transform: translateY(-2px); z-index: 2; }
.lic-segment-number {
  color: rgba(255,255,255,0.65);
  font-family: 'Cinzel', serif;
  font-size: 0.42rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.lic-segment-name {
  color: #fff;
  font-family: 'IM Fell English', serif;
  font-size: 0.65rem;
  font-style: italic;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lic-spine-dates {
  display: flex;
  width: 100%;
  margin-top: 4px;
  padding-bottom: 4px;
  background: var(--deep);
}
.lic-date-label {
  color: var(--muted);
  font-family: 'Cinzel', serif;
  font-size: 0.38rem;
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow: hidden;
  padding-left: 6px;
}
.lic-segment .lic-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--deep);
  color: var(--parchment);
  border: 1px solid var(--rule);
  padding: 6px 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  z-index: 10;
}
.lic-segment:hover .lic-tooltip { opacity: 1; }
@media (max-width: 768px) {
  .lic-spine-row    { height: 56px; }
  .lic-segment-name { font-size: 0.55rem; }
  .lic-segment-number { display: none; }
  /* The timeline needs 880px of height and the map its filter strip; neither
     is usable on a phone. The display index that briefly lived here has moved
     into the arc header, so there is nothing left worth keeping. */
  .media-tabs { display: none; }
}

/* ── Companion display videos (single tier) ── */
.companion-videos {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.companion-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.companion-video-card {
  background: var(--deep);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.companion-videos .video-tier-header { margin: 1.75rem 0 1.25rem; }
.companion-video-embed {
  background: #1A1610;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.companion-video-embed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #221e14 0%, #0E0C09 70%);
}
.companion-video-embed video,
.companion-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.companion-video-body {
  padding: 0.9rem 1.1rem 1.1rem;
}
.companion-video-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.4;
}
.companion-video-thesis {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .companion-video-grid { grid-template-columns: 1fr; }
}

/* Click-to-play facade — the YouTube iframe replaces this on click */
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  background-color: #1A1610;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.25s ease;
}
.video-facade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,12,9,0.15), rgba(14,12,9,0.55));
}
.video-facade:hover,
.video-facade:focus-visible { filter: brightness(1.12); }
.video-facade:focus-visible { outline: 2px solid var(--gold, #C9A84C); outline-offset: -2px; }

/* ── Companion display images ── */
.companion-images {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.companion-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.companion-image-item {
  background: #1E1A12;
  display: flex;
  flex-direction: column;
}
.companion-image-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.companion-image-cap {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
  padding: 0.6rem 0.75rem 0.75rem;
}

@media (max-width: 768px) {
  .companion-image-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ── The interactive panel, embedded in its display's section ── */
.panel-embed {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.panel-frame {
  width: 100%;
  height: 620px;           /* replaced by the frame's reported height */
  border: 0;
  display: block;
  overflow: hidden;
}
