/* ============================================================
   THE ESOTERIC ATLAS
   A large atlas open on a warm wooden table in a temple library.
   Ivory, cream, ink, sindoor red, saffron, marigold. No black.
   ============================================================ */

:root {
  --paper:       #FBF3E4;
  --paper-hi:    #FFFBF2;
  --paper-2:     #F6E9D2;
  --paper-3:     #F0DDBF;
  --cream:       #F3E3CB;
  --ink:         #3B1A12;
  --ink-soft:    #6E4433;
  --ink-muted:   #8A5B44;
  --red:         #B3222B;
  --red-deep:    #7C1418;
  --saffron:     #D9772A;
  --marigold:    #F0A23A;
  --gold:        #8C5A12;
  --gold-hi:     #B8741A;
  --line:        #E2C9A6;
  --line-soft:   rgba(140, 90, 18, 0.18);
  --line-faint:  rgba(140, 90, 18, 0.10);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Mukta", "Avenir Next", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --deva:  "Tiro Devanagari Hindi", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Serif Devanagari", serif;

  --ease:      cubic-bezier(0.16, 0.84, 0.24, 1.00);
  --ease-soft: cubic-bezier(0.37, 0.00, 0.63, 1.00);
  --ease-exit: cubic-bezier(0.55, 0.00, 0.85, 0.36);

  --desk-pad: clamp(14px, 3.2vw, 54px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .34 0 0 0 0 .21 0 0 0 0 .11 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--serif);
  background:
    radial-gradient(120% 95% at 50% -18%, #F9ECD7 0%, #F0D9B8 46%, #DFC09A 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* the table: warm grain, no dark wood, no black */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(92deg, rgba(120, 74, 38, 0.05) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(88deg, rgba(150, 98, 52, 0.035) 0 2px, transparent 2px 27px),
    repeating-linear-gradient(90deg, rgba(255, 250, 238, 0.18) 0 3px, transparent 3px 61px);
  opacity: 0.85;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(86% 72% at 50% 38%, transparent 48%, rgba(110, 66, 34, 0.16) 100%);
}

::selection { background: var(--marigold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.atlas-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 110;
  background: var(--paper-hi);
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.85rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.atlas-skip:focus { left: 1rem; top: 1rem; }

.atlas-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   The boot state
   ------------------------------------------------------------ */
.atlas-boot {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  color: var(--ink-soft);
}
.atlas-boot-mark { display: block; opacity: 0.7; }
.atlas-boot-text {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
  .atlas-boot-mark { animation: atlas-breathe 6.5s var(--ease-soft) infinite; }
}

/* ------------------------------------------------------------
   The atlas sheet
   ------------------------------------------------------------ */
.atlas-root {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: var(--desk-pad);
  display: block;
}

.atlas-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
}

.atlas-sheet {
  position: relative;
  width: min(1540px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  min-height: calc(100svh - (2 * var(--desk-pad)));
  padding: clamp(24px, 2.7vw, 44px) clamp(24px, 3.2vw, 54px) clamp(18px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image:
    var(--grain),
    radial-gradient(125% 110% at 22% 0%, #FFFCF4 0%, #FBF3E4 44%, #F4E4CB 100%);
  background-size: 180px 180px, 100% 100%;
  border: 1px solid rgba(140, 90, 18, 0.30);
  border-radius: 2px;
  box-shadow:
    0 1px 0 #EAD5B6,
    0 2px 0 #F6E7D0,
    0 3px 0 #E2C7A3,
    0 30px 80px -36px rgba(92, 54, 24, 0.48),
    0 10px 28px -20px rgba(92, 54, 24, 0.32),
    inset 0 0 0 1px rgba(255, 251, 242, 0.68);
  animation: atlas-sheet-in 1500ms var(--ease) 80ms both;
}

/* the ribbon bookmark */
.atlas-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  width: 11px;
  height: 48px;
  z-index: 4;
  background: linear-gradient(180deg, #C94A2E 0%, #B3222B 58%, #8E1B22 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  box-shadow: 0 8px 14px -9px rgba(92, 54, 24, 0.55);
  opacity: 0.88;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.atlas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.6vw, 42px);
}

.atlas-identity {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 22px);
  min-width: 0;
}

.atlas-mark {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFFCF4 0%, #F6E7CE 76%, #ECD7B6 100%);
  box-shadow: inset 0 0 0 4px var(--paper), 0 4px 12px -10px rgba(92, 54, 24, 0.3);
}
.atlas-mark svg { width: 34px; height: 34px; display: block; }

.atlas-titles { min-width: 0; }

.atlas-kicker {
  margin: 0 0 0.18rem;
  font-family: var(--sans);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.atlas-h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.32rem + 1.85vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.atlas-sub {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 0.9rem + 0.24vw, 1.14rem);
  line-height: 1.2;
  color: var(--ink-soft);
}

.atlas-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.atlas-tool {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 360ms var(--ease), border-color 360ms var(--ease), background-color 360ms var(--ease), transform 360ms var(--ease);
}
.atlas-tool:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--paper-hi);
  transform: translateY(-1px);
}
.atlas-tool:active { transform: translateY(0); transition-duration: 120ms; }
.atlas-tool svg { width: 15px; height: 15px; display: block; flex: 0 0 auto; }
.atlas-tool .tool-text { position: static; }
.atlas-tool[hidden] { display: none; }

.sound-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  transition: background-color 360ms var(--ease), border-color 360ms var(--ease), box-shadow 360ms var(--ease);
}
.atlas-tool[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.atlas-tool[aria-pressed="true"] .sound-dot {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(179, 34, 43, 0.12);
}

/* ------------------------------------------------------------
   The top rule
   ------------------------------------------------------------ */
.atlas-rule {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: clamp(16px, 2vw, 26px);
}
.atlas-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 100%);
  opacity: 0.58;
  transform-origin: left center;
  animation: atlas-rule-draw 1400ms var(--ease) 320ms both;
}
.atlas-rule span:last-child {
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  transform-origin: right center;
}
.atlas-rule i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--red);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------
   Body grid
   ------------------------------------------------------------ */
.atlas-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(170px, 228px) minmax(0, 1fr) minmax(300px, 372px);
  gap: clamp(22px, 2.4vw, 40px);
  padding-top: clamp(18px, 2.3vw, 30px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
}
.atlas-body.is-turning {
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 340ms var(--ease-exit), transform 340ms var(--ease-exit);
}

/* ------------------------------------------------------------
   Left index
   ------------------------------------------------------------ */
.atlas-index {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  padding-right: clamp(16px, 1.8vw, 26px);
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.index-kicker {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.index-item { min-width: 0; }

.index-item button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 5px;
  align-items: baseline;
  padding: 0.62rem 0.35rem 0.62rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-faint);
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color 340ms var(--ease), background-color 340ms var(--ease);
}
.index-item button:hover { color: var(--red); background: rgba(255, 251, 242, 0.5); }
.index-item button[aria-current="true"] { color: var(--ink); }

.index-num {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1;
  color: var(--gold);
  transition: color 340ms var(--ease);
}
.index-item button[aria-current="true"] .index-num { color: var(--red); }

.index-name {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.index-sub {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
}
.index-item button[aria-current="true"] .index-sub { color: var(--ink-soft); }

.index-item button[aria-current="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
}

.index-map {
  margin-top: clamp(1.4rem, 3vh, 2.4rem);
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-faint);
}
.index-map-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.index-map-btn {
  width: 100%;
  display: block;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-soft);
}
.index-map-art { display: block; width: 100%; }
.index-map-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.index-map-note {
  display: block;
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.76rem;
  color: var(--ink-muted);
  text-align: left;
}
.index-map-btn:hover .index-map-note,
.index-map-btn:focus-visible .index-map-note { color: var(--red); }

/* ------------------------------------------------------------
   Centre plate
   ------------------------------------------------------------ */
.atlas-plate {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
}
.atlas-plate:focus { outline: none; }

.plate-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
}
.plate-no {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.plate-no .plate-name { color: var(--ink-soft); }
.plate-range {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.plate-topline-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.plate-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.plate-stage {
  position: relative;
  height: clamp(400px, 62svh, 760px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: clamp(10px, 1.3vw, 16px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(78% 66% at 50% 44%, #FFFCF5 0%, #FBF1DF 68%, #F4E3C9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(140, 90, 18, 0.16),
    inset 0 0 0 10px #FCF6E9,
    inset 0 0 0 11px rgba(140, 90, 18, 0.13);
}

/* paper wash during the page turn */
.plate-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms var(--ease-soft);
}
.atlas-body.is-turning .plate-stage::after {
  opacity: 0.94;
  transition: opacity 300ms var(--ease-exit);
}

.plate-art {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  animation: atlas-plate-in 1200ms var(--ease) both;
}
.plate-art .plate-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 9px 16px rgba(92, 54, 24, 0.10));
  animation: atlas-plate-in 1100ms var(--ease) both;
}

.scene-frame {
  position: absolute;
  inset: 14px;
  z-index: 4;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 20px -14px rgba(92, 54, 24, 0.35);
  opacity: 0;
  transition: opacity 1100ms var(--ease);
}
.plate-stage.is-live .scene-frame { opacity: 1; }
.scene-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--paper);
}
.scene-frame.is-landscape {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.scene-frame.is-landscape iframe {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 24px -18px rgba(92, 54, 24, 0.38);
}

.plate-art iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

.plate-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.7rem;
  align-content: center;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.plate-loading span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
}

.plate-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  height: 30px;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 360ms var(--ease), color 360ms var(--ease), border-color 360ms var(--ease), background-color 360ms var(--ease);
}
.plate-zoom:hover {
  opacity: 1;
  color: var(--red);
  border-color: var(--red);
  background: var(--paper-hi);
}
.plate-zoom svg { width: 13px; height: 13px; display: block; }
.plate-zoom[hidden] { display: none; }

/* ------------------------------------------------------------
   Plate caption
   ------------------------------------------------------------ */
.plate-caption {
  padding-top: 13px;
}
.plate-caption-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.plate-caption-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.28rem);
  line-height: 1.15;
  color: var(--ink);
}
.plate-caption-meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.plate-caption-text {
  margin: 0.32rem 0 0;
  max-width: 64ch;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.plate-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}
.plate-legend li {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.plate-legend .legend-n {
  font-family: var(--serif);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   Right commentary
   ------------------------------------------------------------ */
.atlas-commentary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(20px, 2.1vw, 32px);
}

.commentary-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.movement-title {
  margin: 0.35rem 0 0.3rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 1.1rem + 1.1vw, 2.16rem);
  line-height: 1.0;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.movement-sub {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.3;
  color: var(--ink-soft);
}

.gold-rule {
  height: 1px;
  margin: 1.05rem 0 0.95rem;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 38%, rgba(140, 90, 18, 0) 100%);
  transform-origin: left center;
  animation: atlas-rule-draw 1200ms var(--ease) 160ms both;
}

.essay-title {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.16rem;
  line-height: 1.2;
  color: var(--red);
}

.essay {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 0.94rem + 0.16vw, 1.09rem);
  line-height: 1.6;
  color: var(--ink);
  hanging-punctuation: first;
}
.essay::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.1em;
  line-height: 0.78;
  padding: 0.08em 0.09em 0 0;
  color: var(--red);
}

.commentary-foot {
  margin-top: auto;
  padding-top: 1.2rem;
}

.labels-block {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
}
.labels-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.labels-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}
.labels-list li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.42;
  color: var(--ink-soft);
}
.labels-list .label-n {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 0.64rem;
  color: var(--gold);
}

.term-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-soft);
}
.term-deva {
  font-family: var(--deva);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--red);
}
.term-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.citation {
  margin-top: 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.citation-kicker {
  font-family: var(--sans);
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.citation-text {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.atlas-foot {
  margin-top: clamp(16px, 2vw, 26px);
  padding-top: clamp(12px, 1.4vw, 18px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.foot-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.turn-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 340ms var(--ease);
}
.turn-btn:hover { color: var(--red); }
.turn-btn svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.turn-next { justify-self: end; }
.turn-btn[disabled] { opacity: 0.35; cursor: default; }
.turn-btn[disabled]:hover { color: var(--ink-soft); }

.page-count {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--serif);
  font-size: 0.94rem;
  color: var(--gold);
}
.page-count i { font-style: normal; opacity: 0.45; padding: 0 0.1rem; }
.page-count .page-total { color: var(--ink-muted); font-size: 0.8rem; }

.foot-secondary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-faint);
}
.keys-hint, .colophon {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.keys-hint { white-space: nowrap; }
.colophon {
  text-transform: none;
  letter-spacing: 0.015em;
  font-size: 0.61rem;
  line-height: 1.5;
  text-align: right;
  max-width: 66ch;
}

/* ------------------------------------------------------------
   The plate drawing language
   ------------------------------------------------------------ */
.plate-svg {
  font-family: var(--sans);
  overflow: visible;
}
.plate-svg * { vector-effect: non-scaling-stroke; }

.plate-svg .pl-label {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.35px;
  fill: var(--ink-soft);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.plate-svg .pl-tiny {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  fill: var(--gold);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.plate-svg .pl-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 3.3px;
  fill: var(--ink);
}
.plate-svg .pl-note {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  fill: var(--ink-soft);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.plate-svg .pl-deva {
  font-family: var(--deva);
  font-size: 21px;
  letter-spacing: 0;
  fill: var(--red);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 3px;
}
.plate-svg .pl-leader {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
  opacity: 0.78;
}
.plate-svg .pl-hair { fill: none; stroke: var(--gold); stroke-width: 0.55; }
.plate-svg .pl-fine { fill: none; stroke: var(--ink); stroke-width: 0.75; }
.plate-svg .pl-mid  { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.plate-svg .pl-gold { fill: none; stroke: var(--gold); }
.plate-svg .pl-ink  { fill: none; stroke: var(--ink); }
.plate-svg .pl-dash { stroke-dasharray: 4 6; }

.plate-svg .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: atlas-gold-draw 1500ms var(--ease) 200ms forwards;
}

/* ------------------------------------------------------------
   Dialogs
   ------------------------------------------------------------ */
.atlas-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 1px 0 #EAD5B6,
    0 28px 80px -34px rgba(92, 54, 24, 0.55),
    0 10px 26px -20px rgba(92, 54, 24, 0.35);
  overflow: hidden;
}
.atlas-dialog[open] { animation: atlas-dialog-in 620ms var(--ease) both; }
.atlas-dialog::backdrop {
  background: rgba(243, 227, 203, 0.91);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dialog-panel {
  position: relative;
  max-height: calc(100svh - 34px);
  padding: clamp(24px, 3vw, 42px);
  overflow: auto;
  background-image:
    var(--grain),
    radial-gradient(120% 100% at 20% 0%, #FFFCF4 0%, #FBF3E4 52%, #F4E4CB 100%);
  background-size: 180px 180px, 100% 100%;
}

.dialog-close {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 340ms var(--ease), border-color 340ms var(--ease), background-color 340ms var(--ease);
}
.dialog-close:hover {
  color: var(--red);
  border-color: var(--line);
  background: var(--paper-hi);
}
.dialog-close:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 2px;
}
.dialog-close svg { width: 17px; height: 17px; display: block; }

.dialog-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.dialog-title {
  margin: 0.2rem 0 0.25rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.dialog-sub {
  margin: 0;
  max-width: 62ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.dialog-foot {
  margin: 1.1rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* map dialog */
.atlas-dialog--map { width: min(1080px, calc(100vw - 32px)); }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  margin-top: 1.4rem;
}

.map-canvas {
  position: relative;
  aspect-ratio: 700 / 760;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 46%, #FFFCF5 0%, #FBF1DF 72%, #F4E3C9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(140, 90, 18, 0.16),
    inset 0 0 0 8px #FCF6E9,
    inset 0 0 0 9px rgba(140, 90, 18, 0.13);
}
.map-svg { width: 100%; height: 100%; display: block; }
.map-svg .map-line { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: 0.7; }
.map-svg .map-line-soft { fill: none; stroke: var(--gold); stroke-width: 0.55; opacity: 0.4; stroke-dasharray: 3 7; }
.map-svg .map-ray { stroke: var(--gold); stroke-width: 0.6; opacity: 0.45; }
.map-svg .map-node-ring { fill: var(--paper); stroke: var(--gold); stroke-width: 0.8; }
.map-svg .map-node-core { fill: var(--gold); opacity: 0.55; }
.map-svg .map-node-current { fill: var(--red); }
.map-svg .map-node-halo { fill: none; stroke: var(--red); stroke-width: 0.7; opacity: 0.35; }
.map-mark.is-current .map-node-ring { fill: var(--red); stroke: var(--red); }
.map-mark.is-current .map-node-core { fill: var(--paper); }
.map-svg .map-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.2px;
  fill: var(--ink-soft);
  text-transform: uppercase;
}
.map-svg .map-label-small {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  fill: var(--ink-muted);
}
.map-svg .map-marker {
  font-family: var(--serif);
  font-size: 13px;
  fill: var(--gold);
}

.map-nodes { position: absolute; inset: 0; }
.map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.map-node .dot {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.72rem;
  line-height: 1;
  transition: color 340ms var(--ease), background-color 340ms var(--ease), border-color 340ms var(--ease), box-shadow 340ms var(--ease);
}
.map-node:hover .dot,
.map-node:focus-visible .dot {
  background: var(--marigold);
  border-color: var(--gold);
  color: var(--ink);
}
.map-node[aria-current="true"] .dot {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  box-shadow: 0 0 0 5px rgba(179, 34, 43, 0.12);
}

.map-current {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}
.map-current span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.map-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.map-list li { border-bottom: 1px solid var(--line-faint); }
.map-list button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.58rem 0.2rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 320ms var(--ease);
}
.map-list button:hover { background: rgba(255, 251, 242, 0.6); }
.map-list .num {
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--gold);
}
.map-list .name {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.045em;
  color: var(--ink-soft);
}
.map-list .ref {
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.map-list button[aria-current="true"] .num { color: var(--red); }
.map-list button[aria-current="true"] .name { color: var(--red); }

/* plate dialog */
.atlas-dialog--plate { width: min(1180px, calc(100vw - 32px)); }

.plate-dialog-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: clamp(20px, 2.6vw, 38px);
  align-items: start;
}

.plate-dialog-art {
  position: relative;
  height: min(76svh, 880px);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
  background:
    radial-gradient(80% 70% at 50% 46%, #FFFCF5 0%, #FBF1DF 72%, #F4E3C9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(140, 90, 18, 0.16),
    inset 0 0 0 9px #FCF6E9,
    inset 0 0 0 10px rgba(140, 90, 18, 0.13);
}
.plate-dialog-art .plate-svg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  display: block;
}

.plate-dialog-caption { padding-top: 1.4rem; }
.plate-dialog-caption .dialog-title { margin-top: 0.35rem; }
.plate-dialog-caption p {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.plate-dialog-labels {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.plate-dialog-labels li {
  display: flex;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.plate-dialog-labels .n {
  font-family: var(--serif);
  color: var(--gold);
}
.plate-dialog-ref {
  margin-top: 1.1rem !important;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--serif) !important;
  font-size: 0.92rem !important;
  color: var(--ink) !important;
}

/* ------------------------------------------------------------
   Noscript
   ------------------------------------------------------------ */
.atlas-noscript {
  max-width: 58ch;
  margin: 14vh auto;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
}
.atlas-noscript a { color: var(--red); }

/* ------------------------------------------------------------
   Motion
   ------------------------------------------------------------ */
@keyframes atlas-sheet-in {
  from { opacity: 0; transform: translateY(18px) scale(0.996); }
  to   { opacity: 1; transform: none; }
}
@keyframes atlas-rule-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes atlas-plate-in {
  from { opacity: 0; transform: translateY(9px) scale(0.998); }
  to   { opacity: 1; transform: none; }
}
@keyframes atlas-gold-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes atlas-dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.988); }
  to   { opacity: 1; transform: none; }
}
@keyframes atlas-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.99); }
  50%      { opacity: 0.86; transform: scale(1.01); }
}

/* ------------------------------------------------------------
   Tablet and mobile
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  :root { --desk-pad: 8px; }

  .atlas-sheet {
    min-height: calc(100svh - 16px);
    padding: 18px 16px 20px;
  }
  .atlas-sheet::after { display: none; }

  .atlas-head {
    align-items: flex-start;
    gap: 0.9rem;
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }
  .atlas-identity { gap: 0.7rem; }
  .atlas-mark { width: 40px; height: 40px; box-shadow: inset 0 0 0 3px var(--paper); }
  .atlas-mark svg { width: 25px; height: 25px; }
  .atlas-kicker { font-size: 0.5rem; letter-spacing: 0.18em; }
  .atlas-h1 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2rem); }
  .atlas-sub { font-size: 0.86rem; }
  .atlas-tools { gap: 0.35rem; }
  .atlas-tool {
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
  }
  .atlas-tool .tool-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .sound-dot { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; }

  .atlas-rule { margin-top: 0.85rem; }

  .atlas-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    width: 100%;
    max-width: 100%;
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  }
  .atlas-body.is-turning {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 260ms var(--ease-exit), transform 260ms var(--ease-exit);
  }

  .atlas-index {
    order: 0;
    width: 100%;
    max-width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 0 0 0.55rem;
  }
  .index-kicker { display: none; }
  .index-list {
    flex-direction: row;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 0.55rem 0 0.15rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .index-list::-webkit-scrollbar { display: none; }
  .index-item { flex: 0 0 auto; scroll-snap-align: start; }
  .index-item button {
    width: auto;
    min-width: 122px;
    min-height: 48px;
    grid-template-columns: 20px 1fr;
    gap: 4px;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--line-soft);
    background: transparent;
  }
  .index-item button[aria-current="true"] {
    background: var(--paper-2);
    border-color: var(--gold);
  }
  .index-item button[aria-current="true"]::after { display: none; }
  .index-num { font-size: 0.82rem; }
  .index-name { font-size: 0.59rem; letter-spacing: 0.06em; white-space: nowrap; }
  .index-sub { display: none; }
  .index-map { display: none; }

  .atlas-index::after {
    content: "";
    position: absolute;
    top: 0.55rem;
    right: 0;
    bottom: 0.55rem;
    width: 34px;
    background: linear-gradient(90deg, rgba(251, 243, 228, 0), var(--paper));
    pointer-events: none;
  }

  .atlas-plate {
    order: 1;
    padding-top: 0.7rem;
    width: 100%;
    max-width: 100%;
  }
  .plate-topline { padding-bottom: 0.4rem; }
  .plate-stage {
    height: 40vh;
    height: 40svh;
    min-height: 230px;
    margin-top: 0.55rem;
  }
  .plate-art { inset: 8px; }
  .scene-frame { inset: 8px; }
  .plate-zoom { opacity: 1; height: 44px; }
  .plate-art .plate-svg { filter: none; }
  .plate-caption { padding-top: 0.75rem; }
  .plate-caption-head { padding-top: 0.7rem; }
  .plate-caption-text { font-size: 0.74rem; }
  .plate-legend { gap: 0.25rem 0.9rem; }
  .plate-legend li { font-size: 0.56rem; }

  .atlas-commentary {
    order: 2;
    width: 100%;
    max-width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.15rem 0 0;
    margin-top: 1rem;
  }
  .movement-title { font-size: clamp(1.45rem, 1.2rem + 1.3vw, 1.8rem); }
  .movement-sub { font-size: 0.95rem; }
  .gold-rule { margin: 0.85rem 0 0.8rem; }
  .essay { font-size: 1.02rem; line-height: 1.62; }
  .commentary-foot { margin-top: 1.1rem; padding-top: 0; }
  .term-line { margin-top: 0.8rem; }

  .atlas-foot { margin-top: 1.1rem; }
  .foot-secondary { display: none; }
  .turn-btn { font-size: 0.58rem; min-height: 44px; }
  .turn-btn svg { width: 20px; height: 20px; }

  .atlas-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }
  .atlas-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .dialog-panel {
    max-height: calc(100svh - 18px);
    padding: 22px 18px 24px;
  }
  .dialog-close { top: 6px; right: 6px; }

  .map-layout {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-top: 1rem;
  }
  .map-canvas {
    width: min(100%, 430px);
    aspect-ratio: 700 / 760;
    margin: 0 auto;
  }
  .map-svg .map-label { display: none; }
  .map-current span { font-size: 1.02rem; }
  .map-list { margin-top: 0.6rem; }
  .map-list button { padding: 0.62rem 0.2rem; }

  .plate-dialog-panel { grid-template-columns: 1fr; gap: 1rem; }
  .plate-dialog-art { height: 58svh; min-height: 280px; }
  .plate-dialog-caption { padding-top: 0; }
  .plate-dialog-caption .dialog-title { font-size: 1.5rem; }
}

@media (max-width: 420px) {
  .atlas-sheet { padding: 15px 12px 17px; }
  .atlas-mark { width: 34px; height: 34px; }
  .atlas-mark svg { width: 21px; height: 21px; }
  .atlas-kicker { font-size: 0.46rem; letter-spacing: 0.13em; }
  .atlas-h1 { font-size: 1.42rem; }
  .atlas-sub { font-size: 0.8rem; }
  .atlas-tool { width: 44px; height: 44px; }
  .index-item button { min-width: 112px; }
  .plate-stage { min-height: 220px; }
  .essay::first-letter { font-size: 2.8em; }
  .foot-nav { grid-template-columns: 1fr auto 1fr; }
  .turn-btn .turn-label { display: none; }
  .plate-caption-head { flex-direction: column; gap: 0.2rem; }
  .plate-caption-meta { white-space: normal; }
}

/* short desktop windows */
@media (min-width: 1081px) and (max-height: 760px) {
  .plate-stage { height: clamp(360px, 56svh, 520px); }
  .atlas-commentary .essay { font-size: 0.98rem; line-height: 1.52; }
  .commentary-foot { padding-top: 0.8rem; }
}

@media (hover: none) {
  .plate-zoom { opacity: 1; }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .atlas-sheet,
  .atlas-body,
  .plate-art {
    opacity: 1 !important;
    transform: none !important;
  }
  .atlas-rule span { transform: none !important; }
  .plate-svg .draw { stroke-dashoffset: 0 !important; }
  .plate-stage::after { display: none; }
  .atlas-dialog[open] { animation: none; }
  .atlas-boot-mark { animation: none; opacity: 0.7; }
}

/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */
@media print {
  body { background: #FBF3E4; }
  body::before, body::after { display: none; }
  .atlas-root { padding: 0; }
  .atlas-sheet {
    min-height: 0;
    box-shadow: none;
    border: 0;
    padding: 0.5in;
  }
  .atlas-tools, .atlas-foot, .plate-zoom, .atlas-rule, .index-map { display: none !important; }
  .atlas-body { display: block; }
  .atlas-index { border: 0; padding: 0 0 1rem; }
  .index-list { flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1rem; }
  .index-item button { border: 0; padding: 0.2rem 0; }
  .index-sub { display: none; }
  .atlas-plate { margin-top: 1rem; }
  .plate-stage { height: 5.2in; }
  .atlas-commentary { border: 0; padding: 0; margin-top: 1rem; }
  .commentary-foot { margin-top: 0.5rem; }
}
