@font-face {
  font-family: Archivo;
  src: url('assets/fonts/Archivo.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* One type scale and spacing rhythm for the complete site. */
:root {
  --ink: #080a0d;
  --paper: #e8e9e8;
  --text: #27313a;
  --muted: #48535c;
  --line: #080a0d30;
  --silver: #c5c9cd;
  --dark-text: #f1f2ef;
  --dark-muted: #bdc4c8;
  --dark-line: #f1f2f230;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Archivo, Arial, Helvetica, sans-serif;
  --type-body: 1rem;
  --type-ui: .875rem;
  --type-small: .8125rem;
  --type-caption: .75rem;
  --type-label: .6875rem;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --section-space: clamp(48px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .3em; }
button:focus-visible, a:focus-visible, video:focus-visible, summary:focus-visible {
  outline: 3px solid #5477a1;
  outline-offset: 5px;
}
button:disabled { cursor: default; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 {
  font-size: clamp(4.375rem, 6.1vw, 6.5rem);
  line-height: .99;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(2.375rem, 1.75rem + 2.6vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -.042em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
p { line-height: 1.7; }
button, a, summary { touch-action: manipulation; }
.wrap { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 16px;
}
.skip-link:focus { top: 12px; }

/* Header and navigation. */
.site-header { border-bottom: 1px solid var(--line); background: #e9eae9; }
.header-inner {
  width: min(1408px, calc(100% - 64px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { border-radius: 50%; width: 42px; height: 42px; flex-shrink: 0; }
.brand > span {
  font-family: var(--serif);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .045em;
}
.brand small {
  display: block;
  font: 500 .6875rem/1.4 var(--sans);
  margin-top: 4px;
  letter-spacing: .13em;
  color: var(--muted);
}
nav { display: flex; gap: 32px; margin-left: auto; margin-right: 24px; }
nav a { font-size: var(--type-ui); font-weight: 500; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
nav a:hover { text-decoration: underline; }
.buy-control { font-size: var(--type-small); flex-shrink: 0; }
.unavailable, .buy-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #080a0d50;
  padding: 8px 16px;
  text-decoration: none;
  line-height: 1.4;
}
.unavailable { color: var(--muted); background: #dfe1e1; }
.unavailable span { font-size: .6875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.buy-link { background: var(--ink); color: #f5f6f4; }
.buy-link:hover { background: #30363c; }

/* Hero: the approved serif identity and the main clip carry the page. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(110deg, #ebedec, #d8dcde);
}
.hero-map {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #e9ebeaef 10%, #e2e6e58a 55%, #dee2e16b), url('assets/brand/engraved-map.webp') center/cover;
  opacity: .3;
  filter: grayscale(1);
}
.hero-grid {
  display: grid;
  grid-template-columns: .85fr 1.25fr;
  gap: 64px;
  align-items: center;
  padding-block: 56px 48px;
}
.hero-copy { min-width: 0; padding-bottom: 12px; }
.eyebrow, .media-heading, .section-label {
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .11em;
}
.eyebrow { text-transform: uppercase; }
.hero-copy > .eyebrow { margin-bottom: 28px; }
.tiny-cross { font-size: .9375rem; margin-right: 8px; }
.title-period { color: #606b73; }
.hero-identity { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.hero-intro { flex: 1; min-width: 0; max-width: 270px; }
.hero-intro p { font-size: 1rem; line-height: 1.65; }
.hero-intro strong { font-weight: 600; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 10px;
  font-size: var(--type-small);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link span[aria-hidden] { font-size: 1.125rem; }
.hero-intro .text-link { margin-top: 4px; }
.emblem { position: relative; width: 168px; flex-shrink: 0; perspective: 800px; aspect-ratio: 1; }
.emblem-face { position: relative; animation: emblem-sway 8s ease-in-out infinite; filter: drop-shadow(0 12px 10px #080a0d35); will-change: transform; }
.emblem-light { position: absolute; inset: 0; mask: url('assets/brand/emblem.webp') center/contain no-repeat; -webkit-mask: url('assets/brand/emblem.webp') center/contain no-repeat; overflow: hidden; }
.emblem-light::after { content: ''; position: absolute; inset: -20% -110%; background: linear-gradient(110deg, transparent 40%, #fff7 48%, #fff9 50%, transparent 59%); animation: light-pass 8s ease-in-out infinite; mix-blend-mode: screen; }
.emblem-shadow { position: absolute; width: 64%; height: 7%; left: 18%; bottom: -8%; background: #080a0d2e; border-radius: 50%; filter: blur(7px); animation: shadow-drift 8s ease-in-out infinite; }
.hero-feature { min-width: 0; padding-top: 8px; }
.media-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.chapter-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid #080a0d50; padding-block: 20px 24px; }
.chapter-nav a { display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 44px; font-size: var(--type-ui); font-weight: 500; line-height: 1.5; text-decoration: none; }
.chapter-nav a > span:first-child { font-size: var(--type-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter-title { min-width: 0; overflow-wrap: anywhere; }
.chapter-nav a > span:last-child { margin-left: auto; font-size: 1.125rem; }
.chapter-nav a:hover { text-decoration: underline; }

/* Players keep a solid text backing across changing video imagery. */
.video-figure { min-width: 0; }
.player { display: grid; grid-template: auto / minmax(0, 1fr); position: relative; isolation: isolate; background: var(--ink); overflow: hidden; }
.player video { grid-area: 1/1; align-self: center; display: block; width: 100%; height: auto; aspect-ratio: 16/9; min-width: 0; min-height: 0; object-fit: contain; background: var(--ink); }
.hero-player { box-shadow: 0 18px 40px #080a0d20; border: 1px solid #080a0d60; }
.play-overlay { grid-area: 1/1; position: relative; z-index: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; padding: 16px; border: 0; color: #f8f9f6; background: transparent; text-align: left; }
.play-action { display: flex; align-items: center; gap: 16px; min-width: 0; max-width: 100%; padding: 16px 20px; border: 1px solid #f5f6f466; border-radius: 2px; background: #080a0deb; box-shadow: 0 8px 24px #080a0d20; transition: background 180ms ease, border-color 180ms ease; }
.play-disc { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border: 1px solid #f5f6f4a6; border-radius: 50%; background: transparent; font-size: 1rem; padding-left: 3px; }
.play-copy { min-width: 0; font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere; }
.play-overlay small { display: block; margin-top: 4px; font-family: var(--sans); font-size: var(--type-caption); font-weight: 400; line-height: 1.5; letter-spacing: 0; color: #dbe0e2; }
.play-overlay:hover .play-action { background: #080a0d; border-color: #f5f6f4a6; }
.has-started .play-overlay { display: none; }
.media-error { position: absolute; inset: auto 12px 52px; padding: 16px; background: var(--paper); color: var(--ink); font-size: var(--type-small); }
figcaption { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: var(--type-small); line-height: 1.65; }

/* Story: controlled line lengths, balanced headings, repeated spacing. */
.story-section, .archive-section { padding-block: var(--section-space); }
.dark-section { background: var(--ink); color: var(--dark-text); }
.section-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 40px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dark-section .section-label { border-color: var(--dark-line); color: var(--dark-muted); }
.story-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 80px; align-items: center; }
.section-copy { min-width: 0; }
.section-copy h2 { margin-bottom: 24px; }
.section-copy > p { max-width: 48ch; margin-bottom: 20px; color: var(--text); font-size: var(--type-body); }
.section-copy > p:last-child { margin-bottom: 0; }
.dark-section .section-copy > p, .dark-section figcaption { color: var(--dark-muted); }
.control-section { background: #e6e7e5; }
.control-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 96px; margin-bottom: 40px; }
.control-heading p { max-width: 45ch; color: var(--text); font-size: var(--type-body); }
.ledger-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 80px; align-items: center; }
.ledger-note { display: flex; justify-content: center; }
.ledger-note img { width: 220px; filter: drop-shadow(0 16px 14px #080a0d22); }
.origin-section { position: relative; overflow: hidden; isolation: isolate; background: #cdd1d3; }
.origin-watermark { position: absolute; z-index: -1; inset: 0; background: url('assets/brand/engraved-map.webp') center/cover; opacity: .17; }
.origin-section .section-label { border-color: #080a0d45; }
.origin-grid { align-items: start; }
.origin-media { min-width: 0; padding-top: 8px; }
.archive-title { margin-bottom: 40px; }
.archive-grid { display: grid; grid-template-columns: 1.17fr 1fr; gap: 48px; align-items: start; }
.archive-screen { min-width: 0; }
.clip-list { min-width: 0; border-top: 1px solid var(--dark-line); }
.clip-row { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 96px; padding: 20px 12px; text-align: left; border: 0; border-bottom: 1px solid var(--dark-line); background: transparent; color: var(--dark-text); }
.clip-row.selected { background: #ffffff10; box-shadow: inset 2px 0 #e7e8e6; }
.clip-row:hover { background: #ffffff0c; }
.clip-number { align-self: flex-start; padding-top: 3px; color: var(--dark-muted); font-size: var(--type-label); font-variant-numeric: tabular-nums; }
.clip-title { flex: 1; min-width: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
.clip-title small { display: block; margin-top: 8px; color: var(--dark-muted); font-family: var(--sans); font-size: var(--type-caption); line-height: 1.5; }
.clip-time { flex-shrink: 0; color: var(--dark-muted); font-size: var(--type-caption); line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clip-time > span { display: inline-block; margin-left: 12px; font-size: 1rem; }
.source-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.source-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--dark-muted); font-size: var(--type-small); text-decoration: none; }
.source-links a:hover { text-decoration: underline; }

/* Token details and notes carry the same readable secondary scale. */
.token-section { padding-block: var(--section-space); background: #eceeec; }
.token-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.approved-banner { width: 100%; height: auto; }
.token-details { min-width: 0; border-left: 1px solid var(--line); padding-left: 40px; }
.token-ticker { font-family: var(--serif); font-size: 2.75rem; line-height: 1.15; font-weight: 700; }
.token-details > p { margin-top: 16px; color: var(--muted); font-size: var(--type-ui); }
.token-details > .pending-note { max-width: 40ch; font-size: var(--type-small); }
.token-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.token-links a { font-size: var(--type-ui); }
.token-socials { margin-top: 24px; }
.socials-label { color: var(--muted); font-size: var(--type-label); font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.token-socials .token-links { margin-top: 8px; }
.contract-value { font: .875rem/1.8 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.copy-button { display: block; min-height: 44px; margin-top: 12px; border: 1px solid #080a0d55; background: transparent; padding: 10px 16px; font-size: var(--type-ui); }
footer { padding-block: 24px; border-top: 1px solid var(--line); background: #e2e5e4; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-inner > span { font: 700 .75rem/1.5 var(--serif); letter-spacing: .04em; }
.footer-ticker { margin-left: 8px; color: var(--muted); font: 500 .75rem/1.5 var(--sans); }
.footer-inner p { color: var(--muted); font-size: var(--type-caption); line-height: 1.65; }
.footer-inner > a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--type-small); text-decoration: none; white-space: nowrap; }
.story-notes { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.story-notes summary { min-height: 44px; padding-block: 12px; color: var(--muted); cursor: pointer; font-size: var(--type-small); line-height: 1.5; }
.story-notes p { max-width: 78ch; margin-block: 8px 16px; color: var(--muted); font-size: var(--type-small); line-height: 1.8; }
.noscript-note { padding: 24px; font-size: var(--type-ui); }

@keyframes emblem-sway {
  0%, 100% { transform: translateY(2px) rotateY(-11deg) rotateZ(-1deg); }
  50% { transform: translateY(-7px) rotateY(11deg) rotateZ(1deg); }
}
@keyframes light-pass {
  0%, 30% { transform: translateX(-25%); }
  70%, 100% { transform: translateX(30%); }
}
@keyframes shadow-drift {
  0%, 100% { transform: scaleX(1); opacity: .6; }
  50% { transform: scaleX(.8); opacity: .35; }
}
.motion-paused .emblem-face, .motion-paused .emblem-light::after, .motion-paused .emblem-shadow { animation-play-state: paused; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (min-width: 1600px) {
  .hero-grid { padding-block: 72px 64px; }
  .emblem { width: 184px; }
}
@media (max-width: 1150px) {
  .wrap { width: calc(100% - 72px); }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 40px; }
  .hero-identity { gap: 20px; }
  .emblem { width: 120px; }
  .hero-intro p { font-size: 1rem; }
  .story-grid, .ledger-grid { gap: 48px; }
  .control-heading { gap: 56px; }
  .archive-grid { gap: 32px; }
  .clip-row { gap: 12px; }
  .clip-title { font-size: 1.125rem; }
  .clip-time > span { margin-left: 8px; }
}
@media (max-width: 820px) {
  .header-inner { width: calc(100% - 40px); gap: 20px; }
  .brand > span { font-size: .75rem; }
  .brand img { width: 36px; height: 36px; }
  nav { gap: 24px; margin-right: 0; }
  .unavailable, .buy-link { padding-inline: 12px; gap: 12px; }
  .wrap { width: calc(100% - 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 24px; }
  .hero-copy { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 0; }
  .hero-copy > .eyebrow { flex: 0 0 100%; margin: 0; }
  h1 { flex: 1 1 16rem; min-width: 0; max-width: 100%; font-size: clamp(2.25rem, 9.8vw, 4.625rem); }
  .hero-identity { display: contents; }
  .emblem { width: 132px; flex: 0 0 132px; margin: 0; }
  .hero-intro { flex: 0 0 100%; max-width: 100%; }
  .hero-intro p { display: none; }
  .hero-intro .text-link { margin-top: 0; }
  .hero-feature { padding: 0; }
  .chapter-nav { gap: 24px; }
  .chapter-nav a { gap: 12px; font-size: var(--type-small); }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-copy > p { max-width: 60ch; }
  .section-label { margin-bottom: 32px; }
  .control-heading { gap: 32px; margin-bottom: 32px; }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-note { display: none; }
  .origin-media { padding: 0; }
  .archive-title { margin-bottom: 32px; }
  .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .clip-title { font-size: 1.25rem; }
  .token-inner { gap: 40px; }
  .token-details { padding-left: 24px; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 8px 24px; }
  .footer-inner p { grid-column: 1/-1; grid-row: 2; }
}
@media (max-width: 540px) {
  .header-inner { width: calc(100% - 32px); gap: 12px; }
  .brand { gap: 8px; }
  .brand > span { max-width: 140px; font-size: .6875rem; letter-spacing: .035em; }
  .brand small { font-size: .6875rem; margin-top: 2px; }
  .brand img { width: 34px; height: 34px; }
  nav { display: none; }
  .buy-control { font-size: .75rem; }
  .unavailable, .buy-link { padding: 8px 10px; gap: 8px; }
  .unavailable { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .unavailable span { font-size: .6875rem; letter-spacing: .04em; }
  .wrap { width: calc(100% - 36px); }
  .hero-grid { padding-block: 32px 24px; gap: 32px; }
  .hero-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
  .hero-copy > .eyebrow { flex: 0 0 100%; margin: 0; font-size: var(--type-label); }
  .tiny-cross { font-size: .875rem; margin-right: 4px; }
  h1 { flex: 1 1 10rem; min-width: 0; max-width: 100%; font-size: clamp(2.25rem, 11vw, 3.75rem); letter-spacing: -.045em; }
  .hero-identity { display: contents; }
  .emblem { width: clamp(5.5rem, 26vw, 6.75rem); flex: 0 1 clamp(5.5rem, 26vw, 6.75rem); margin: 0; }
  .hero-intro { flex: 0 0 100%; max-width: 100%; }
  .hero-intro p { max-width: 40ch; font-size: var(--type-body); }
  .hero-intro .text-link { font-size: var(--type-small); margin-top: 4px; }
  .media-heading { font-size: var(--type-label); letter-spacing: .075em; gap: 4px 12px; }
  .chapter-nav { gap: 20px; padding-block: 20px; }
  .chapter-nav a { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 8px; align-content: start; font-size: var(--type-caption); min-height: 68px; }
  .chapter-nav a > span:first-child { grid-column: 1; grid-row: 1; font-size: var(--type-label); }
  .chapter-title { grid-column: 1/-1; grid-row: 2; }
  .chapter-nav a > span:last-child { grid-column: 2; grid-row: 1; font-size: 1rem; }
  .section-label { margin-bottom: 28px; padding-bottom: 16px; font-size: var(--type-label); }
  .section-copy h2 { margin-bottom: 24px; }
  .section-copy > p { font-size: var(--type-body); margin-bottom: 20px; }
  .control-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .control-heading p { font-size: var(--type-body); }
  .story-grid, .archive-grid { gap: 32px; }
  .play-overlay { padding: 12px; }
  .play-action { padding: 12px 14px; gap: 12px; }
  .clip-row { padding: 20px 12px; gap: 12px; }
  .clip-title { font-size: 1.125rem; }
  .clip-time > span { margin-left: 8px; }
  .token-inner { grid-template-columns: 1fr; gap: 32px; }
  .token-details { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .token-ticker { font-size: 2.375rem; }
  footer { padding-block: 20px; }
  .footer-inner > span { font-size: .6875rem; }
  .footer-ticker { font-size: .6875rem; }
  .footer-inner > a { font-size: var(--type-caption); }
  .footer-inner p { font-size: var(--type-caption); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .emblem-face { will-change: auto; }
}
