:root {
  --thread-vellum: #F6EDD8;
  --thread-vellum-hi: #FCF7EA;
  --thread-vellum-deep: #EBDDBC;
  --thread-ink: #2A2419;
  --thread-ink-soft: #6A5B40;
  --thread-techelet: #5C7FC4;
  --thread-techelet-deep: #3D5A99;
  --thread-lapis: #24356E;
  --thread-vermilion: #C8401F;
  --thread-gold: #C9A227;
  --thread-gold-hi: #F0DD9A;
  --thread-gold-deep: #8C6E1D;
  --thread-display: "Frank Ruhl Libre", Georgia, serif;
  --thread-body: "Newsreader", Georgia, serif;
  --thread-utility: "Inter", sans-serif;
  --thread-ground-y: min(58%, 560px);
}

html { scroll-behavior: auto; }
.thread-body {
  margin: 0;
  min-height: 16500px;
  overflow-x: hidden;
  background: var(--thread-vellum);
  color: var(--thread-ink);
}
.thread-body > footer { display: none; }
.thread-body .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(252,247,234,0.98), rgba(252,247,234,0.88) 62%, rgba(252,247,234,0));
  border-bottom: 1px solid rgba(201,162,39,0.16);
  box-shadow: 0 8px 24px rgba(106,80,30,0.08);
}
.thread-body .topbar a,
.thread-body .topbar .wordmark,
.thread-body .topbar .site-tagline {
  color: var(--thread-ink);
  opacity: 1;
}
.thread-journey { height: 16500px; }
.thread-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  perspective: 1150px;
  perspective-origin: 50% min(22%, 198px);
  background:
    radial-gradient(ellipse 60% 26% at 50% 33%, rgba(240,221,154,0.75), rgba(240,221,154,0) 70%),
    linear-gradient(180deg, #FCF7EA 0%, #F9F1DE 26%, #F2E7CB 33%, #EFE2C2 38%, #EBDDBC 100%);
  cursor: grab;
  touch-action: pan-y;
}
.thread-dragging .thread-viewport { cursor: grabbing; }
.thread-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(ellipse 34% 20% at 30% 60%, rgba(255,250,232,0.55), transparent 70%);
  animation: thread-sunwander 26s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}
@keyframes thread-sunwander { from { transform: translateX(-6vw); } to { transform: translateX(26vw); } }
.micro-drift {
  position: absolute;
  z-index: 1;
  white-space: nowrap;
  font: italic 13px/1 var(--thread-body);
  color: rgba(42,36,25,0.06);
  animation: thread-drift linear infinite;
}
.drift-one { top: 14%; animation-duration: 160s; }
.drift-two { top: 22%; animation-duration: 200s; animation-delay: -80s; }
@keyframes thread-drift { from { transform: translateX(8vw); } to { transform: translateX(-120vw); } }
.mote {
  position: absolute;
  z-index: 6;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201,162,39,0.55) 0%, rgba(201,162,39,0.12) 60%, transparent 100%);
  filter: blur(0.6px);
  animation: thread-float linear infinite;
}
.mote-a { left: 16%; bottom: 18%; width: 5px; height: 5px; animation-duration: 14s; }
.mote-b { left: 34%; bottom: 10%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: 5s; }
.mote-c { left: 57%; bottom: 22%; width: 6px; height: 6px; animation-duration: 16s; animation-delay: 9s; }
.mote-d { left: 74%; bottom: 12%; width: 4px; height: 4px; animation-duration: 20s; animation-delay: 3s; }
.mote-e { left: 89%; bottom: 25%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: 11s; }
@keyframes thread-float {
  0% { transform: translate3d(0,10vh,0) scale(0.7); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.4; }
  100% { transform: translate3d(6vw,-70vh,0) scale(1.15); opacity: 0; }
}
.thread-ground {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.thread-world {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-style: preserve-3d;
}
.thread-plate {
  position: absolute;
  left: 50%;
  top: var(--thread-ground-y);
  width: 330px;
  transform-style: preserve-3d;
  will-change: opacity, filter, transform;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: center;
}
.thread-plate[hidden] { display: none; }
.thread-plate:focus-visible .plate-stand {
  outline: 2px solid var(--thread-gold);
  outline-offset: 7px;
}
.plate-stand {
  transform: translate(-50%, -100%);
  display: block;
  will-change: transform;
}
.plate-stand img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  object-position: center 25%;
  filter: sepia(0.18) saturate(1.22) contrast(1.05) brightness(1.04) drop-shadow(0 14px 22px rgba(106,80,30,0.35));
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 50%, transparent 75%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 50%, transparent 75%);
}
.plate-shadow {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 75%;
  height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(106,80,30,0.30), transparent 70%);
  filter: blur(3px);
}
.plate-medal {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(92vw, 430px);
  overflow: hidden;
  text-overflow: ellipsis;
  font: 700 0.64rem/1 var(--thread-utility);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 99px;
  white-space: nowrap;
  color: var(--thread-lapis);
  background: rgba(252,247,234,0.85);
  border: 1px solid rgba(36,53,110,0.45);
  box-shadow: 0 2px 8px rgba(106,80,30,0.18);
  opacity: var(--medal-opacity, 0);
  transition: opacity 0.2s ease;
}
.plate-caption {
  display: block;
  margin-top: 0.15rem;
  text-align: center;
  opacity: var(--caption-opacity, 0);
  transition: opacity 0.2s ease;
}
.thread-plate:hover .plate-medal,
.thread-plate:hover .plate-caption,
.thread-plate:focus-visible .plate-medal,
.thread-plate:focus-visible .plate-caption {
  opacity: 1;
}
.plate-caption .title {
  display: block;
  font: 700 1.18rem/1.25 var(--thread-display);
  color: var(--thread-ink);
}
.plate-caption .summary {
  display: block;
  font: italic 0.85rem/1.3 var(--thread-body);
  color: var(--thread-ink-soft);
}
.thread-gate {
  position: absolute;
  left: 50%;
  top: var(--thread-ground-y);
  width: 1900px;
  height: 560px;
  margin-left: -950px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.thread-gate .ring {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(201,162,39,0.6);
  border-bottom: 0;
  border-radius: 950px 950px 0 0;
  box-shadow: 0 0 36px rgba(201,162,39,0.22), inset 0 0 50px rgba(201,162,39,0.10);
}
.thread-gate .ring::before,
.thread-gate .ring::after {
  content: "";
  position: absolute;
  bottom: 0;
  top: 42%;
  width: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(201,162,39,0.75), rgba(140,110,29,0.45));
}
.thread-gate .ring::before { left: -10px; }
.thread-gate .ring::after { right: -10px; }
.thread-gate .plaque {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.thread-gate .gate-year {
  font: 700 0.74rem/1 var(--thread-utility);
  letter-spacing: 0.3em;
  color: var(--thread-gold-deep);
}
.thread-gate .gate-title {
  font: 700 clamp(1.05rem, 2vw, 1.7rem)/1.1 var(--thread-display);
  color: var(--thread-ink);
}
.thread-hud {
  position: fixed;
  left: clamp(1.2rem,4vw,3.4rem);
  top: 15vh;
  z-index: 25;
  pointer-events: none;
}
.thread-hud p {
  margin: 0;
  font: 700 0.7rem/1 var(--thread-utility);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--thread-gold-deep);
}
.thread-hud strong {
  display: block;
  font: 900 clamp(2rem,3.4vw,3rem)/1.05 var(--thread-display);
  color: var(--thread-ink);
}
.thread-controls3d {
  position: fixed;
  left: clamp(1rem,3vw,2.6rem);
  bottom: 1.05rem;
  z-index: 30;
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  font-family: var(--thread-utility);
}
.thread-lanes3d {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.lane-chip {
  border: 0;
  background: transparent;
  color: var(--thread-ink);
  cursor: pointer;
  font: 700 0.64rem/1.2 var(--thread-utility);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lane-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.86;
  user-select: none;
  padding: 0.08rem 0;
}
.lane-chip .lane-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(201,162,39,0.5);
}
.lane-chip.centered { opacity: 1; font-weight: 700; }
.thread-track-labels {
  position: fixed;
  inset: 0;
  z-index: 24;
  pointer-events: none;
}
.thread-track-label {
  position: absolute;
  left: var(--track-label-x, 50%);
  top: var(--track-label-y, calc(100% - 8rem));
  transform: translate(-50%, -50%);
  font: 800 clamp(0.58rem, 1vw, 0.86rem)/1 var(--thread-utility);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(252,247,234,0.92), 0 0 10px rgba(252,247,234,0.9);
  opacity: 0.66;
}
.thread-track-label.centered {
  opacity: 1;
  font-size: clamp(0.72rem, 1.25vw, 1.05rem);
}
.thread-gauge {
  position: fixed;
  right: clamp(1.1rem,3vw,2.6rem);
  top: 32vh;
  bottom: 14vh;
  z-index: 25;
  width: 20px;
}
.thread-gauge .strand {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--thread-gold), var(--thread-gold-deep));
  box-shadow: 0 0 8px rgba(201,162,39,0.4);
}
.thread-gauge .bead,
.thread-gauge .traveller {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, var(--thread-gold-hi), var(--thread-gold) 55%, var(--thread-gold-deep));
}
.thread-gauge .bead { width: 7px; height: 7px; opacity: 0.85; }
.thread-gauge .traveller {
  width: 15px;
  height: 15px;
  background: radial-gradient(circle at 35% 30%, #fff, var(--thread-gold-hi) 35%, var(--thread-gold) 75%);
  box-shadow: 0 0 18px 5px rgba(201,162,39,0.45);
}
.thread-gauge .bead span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font: 500 0.58rem/1 var(--thread-utility);
  letter-spacing: 0.12em;
  color: var(--thread-ink-soft);
}
.thread-title {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.7s;
  padding: 1.4rem;
}
.thread-title p {
  margin: 0 0 1rem;
  font: 700 0.7rem/1 var(--thread-utility);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--thread-gold-deep);
}
.thread-title h1 {
  margin: 0;
  font: 900 clamp(2.6rem,6vw,5rem)/1 var(--thread-display);
  color: var(--thread-ink);
}
.thread-title em {
  max-width: 40rem;
  margin-top: 1rem;
  font: italic clamp(1rem,1.4vw,1.2rem)/1.45 var(--thread-body);
  color: var(--thread-ink-soft);
}
.thread-end {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#FCF7EA,#EFE3C6);
  color: var(--thread-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  text-align: center;
  padding: 2rem;
}
.thread-end.show { opacity: 1; pointer-events: auto; }
.thread-end h2 {
  max-width: 48rem;
  margin: 0 auto 1.2rem;
  font: 900 clamp(1.8rem,3.2vw,2.6rem)/1.1 var(--thread-display);
}
.thread-end h2 i { color: var(--thread-vermilion); font-style: normal; }
.thread-end a {
  margin: 0 0.55rem;
  color: var(--thread-vermilion);
  font: 700 0.7rem/1 var(--thread-utility);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.thread-card3d {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 80;
  width: min(360px, calc(100vw - 2.8rem));
  padding: 1.05rem 1.15rem 1.2rem;
  color: var(--thread-ink);
  font-family: var(--thread-body);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 38%),
    #F5EDDF;
  border: 1px solid rgba(42,36,25,0.2);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(42,36,25,0.28);
}
.thread-card3d[hidden] { display: none; }
.thread-card3d img {
  width: 100%;
  height: 154px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 3px;
  margin-bottom: 0.7rem;
  filter: sepia(0.12) saturate(1.1);
}
.thread-card3d .eyebrow {
  margin: 0 0 0.2rem;
  color: var(--thread-vermilion);
  font: 700 0.62rem/1 var(--thread-utility);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.thread-card3d h3 {
  margin: 0 0 0.45rem;
  font: 900 1.35rem/1.05 var(--thread-display);
}
.thread-card3d .card-story {
  margin: 0 0 0.85rem;
  font-size: 0.94rem;
  line-height: 1.5;
}
.thread-card3d .cta {
  color: var(--thread-vermilion);
  font: 700 0.68rem/1 var(--thread-utility);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.thread-card3d .card-close {
  position: absolute;
  top: 0.36rem;
  right: 0.54rem;
  border: 0;
  background: transparent;
  color: var(--thread-ink);
  cursor: pointer;
  font-size: 1.2rem;
}
.thread-noscript {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  gap: 0.8rem;
  padding: 2rem;
  text-align: center;
  background: #F5EDDF;
}
.thread-noscript h1 { font: 900 2rem/1 var(--thread-display); margin: 0; }

@media (max-width: 720px) {
  .thread-body .topbar { padding-inline: 0.9rem; }
  .thread-hud { top: 11vh; left: 1rem; }
  .thread-controls3d {
    top: auto;
    left: 0.9rem;
    bottom: 0.8rem;
    justify-items: stretch;
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .thread-lanes3d {
    align-items: flex-start;
    max-height: 34vh;
    overflow: hidden;
  }
  .thread-track-labels {
    inset: 0;
  }
  .thread-track-label {
    font-size: 0.46rem;
    letter-spacing: 0.08em;
  }
  .thread-track-label.centered { font-size: 0.58rem; }
  .lane-chip { font-size: 0.54rem; max-width: 72vw; }
  .thread-gauge { right: 0.8rem; top: 24vh; bottom: 38vh; }
  .thread-title h1 { font-size: 3rem; }
  .thread-card3d { right: 0.75rem; left: 0.75rem; bottom: 0.75rem; width: auto; }
  .plate-medal { letter-spacing: 0.1em; }
  .plate-caption .summary { display: none; }
}

/* Reduced-motion 2D fallback: intentionally preserves the previous thread grammar. */
.thread-reduced { min-height: 100svh; overflow: hidden; }
.thread-reduced #thread-journey,
.thread-reduced #thread-viewport { display: none; }
.thread-reduced #thread-reduced-root { display: flex !important; }
.thread-page {
  height: calc(100svh - 74px);
  display: flex;
  flex-direction: column;
  background: #F5EDDF;
}
.thread-masthead { text-align: center; padding: 0.7rem 1rem 0.55rem; }
.thread-masthead h1 { font: 900 1.5rem/1 var(--thread-display); margin: 0; color: #221E1B; }
.thread-dek { font: italic 400 0.85rem/1.4 var(--thread-body); color: #6b5a36; margin: 0.15rem 0 0; }
.thread-compact-note {
  max-width: 42rem;
  margin: 0.45rem auto 0;
  color: #5f523c;
  font: 500 0.72rem/1.35 var(--thread-utility);
}
.thread-compact-note button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--thread-vermilion);
  cursor: pointer;
  font: 700 0.72rem/1.35 var(--thread-utility);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.thread-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(158,59,46,0.15);
  background: #F5EDDF;
  font-family: var(--thread-utility);
}
.thread-filter,
.thread-view {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.thread-view {
  flex-wrap: nowrap;
}
.thread-filter select {
  max-width: min(48vw, 14rem);
  height: 2rem;
  padding: 0 1.9rem 0 0.65rem;
  border: 1px solid rgba(34,30,27,0.24);
  border-radius: 4px;
  background: #FCF7EA;
  color: #221E1B;
  font: 700 0.72rem/1 var(--thread-utility);
}
.thread-controls button {
  min-width: 3.8rem;
  font: 700 0.72rem/1 var(--thread-utility);
  letter-spacing: 0.04em;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(34,30,27,0.25);
  border-radius: 4px;
  background: transparent;
  color: #221E1B;
  cursor: pointer;
}
.thread-controls button[aria-pressed="true"] { background: #221E1B; color: #F5EDDF; border-color: #221E1B; }
.ctl-label {
  font: 600 0.55rem/1 var(--thread-utility);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a8048;
  align-self: center;
}
.ctl-zoom-level {
  font: 600 0.62rem/1 var(--thread-utility);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-width: 4.4em;
  text-align: center;
  align-self: center;
  color: #6b5a36;
}
.thread-scroll {
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #C7A24B #ece1c6;
  background:
    radial-gradient(ellipse 60% 50% at 30% 15%, #faf3e3 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 75% 85%, #efe2c8 0%, transparent 55%),
    #F5EDDF;
}
.thread-canvas { position: relative; height: 100%; min-height: 100%; }
.lane-band { position: relative; border-bottom: 1px solid rgba(158,59,46,0.08); }
.lane-band.parent { height: 340px; }
.lane-band.sub { height: 200px; }
.lane-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(199,162,75,0.25), rgba(199,162,75,0.65) 8%, rgba(199,162,75,0.65) 92%, rgba(199,162,75,0.25));
}
.lane-label {
  position: sticky;
  left: 1.2rem;
  top: 0.4rem;
  z-index: 40;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font: 900 1.18rem/1 var(--thread-display);
  color: #221E1B;
  background: rgba(245,237,223,0.96);
  box-shadow: 4px 0 10px 4px rgba(245,237,223,0.85);
  padding: 0.35rem 0.65rem 0.4rem;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.lane-band.sub .lane-label { font: italic 500 0.92rem/1 var(--thread-body); color: #6b5a36; cursor: default; }
.thread-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}
.thread-node.below { flex-direction: column-reverse; }
.thread-node img {
  width: 100%;
  display: block;
  max-height: 150px;
  object-fit: cover;
  object-position: center 25%;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 40%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 40%, transparent 72%);
}
.thread-node.stone img { filter: sepia(0.22) saturate(0.8); }
.thread-node:hover, .thread-node:focus-visible { z-index: 30; transform: translate(-50%, -50%) scale(1.35); outline: none; }
.node-cap {
  font: italic 500 0.66rem/1.4 var(--thread-body);
  letter-spacing: 0.12em;
  color: #5e4d28;
  margin-top: -0.25rem;
  padding: 0.15rem 0.5rem 0.2rem;
  border-radius: 999px;
  background: rgba(245,237,223,0.97);
  box-shadow: 0 1px 6px rgba(34,30,27,0.12);
  max-width: 170px;
}
.thread-node.stone .node-cap {
  font: 600 0.6rem/1.4 var(--thread-utility);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.thread-node.stone .node-cap::before { content: "\25C6  "; color: #C7A24B; font-size: 0.5rem; }
.year-tick {
  position: absolute;
  bottom: 0.3rem;
  transform: translateX(-50%);
  font: 400 0.65rem/1 var(--thread-utility);
  letter-spacing: 0.08em;
  color: #8a763f;
}
.thread-minimap { position: relative; height: 44px; background: #ece1c6; border-top: 1px solid rgba(158,59,46,0.15); cursor: pointer; }
.minimap-thread { position: absolute; left: 3%; right: 3%; top: 50%; height: 2px; background: #C7A24B; }
.minimap-window { position: absolute; top: 4px; bottom: 4px; border: 1px solid #221E1B; border-radius: 3px; background: rgba(34,30,27,0.06); }
.minimap-end { position: absolute; top: 50%; transform: translateY(-50%); font: 500 0.55rem/1 var(--thread-utility); letter-spacing: 0.1em; color: #9a8048; }
.minimap-start { left: 0.5rem; }
.minimap-today { right: 0.5rem; }
.minimap-ticks { position: absolute; inset: 0; pointer-events: none; }
.minimap-tick { position: absolute; width: 1px; height: 8px; top: 4px; }
.minimap-era { position: absolute; bottom: 4px; font: 400 0.5rem/1 var(--thread-utility); letter-spacing: 0.18em; color: #9a8048; transform: translateX(-50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .thread-viewport::before,
  .micro-drift,
  .mote { animation: none; }
}

@media (max-width: 520px) {
  .thread-masthead {
    padding-inline: 0.8rem;
  }

  .thread-controls {
    align-items: stretch;
    gap: 0.5rem;
  }

  .thread-filter,
  .thread-view {
    width: 100%;
    justify-content: space-between;
  }

  .thread-filter select {
    flex: 1;
    max-width: none;
  }

  .thread-view button {
    flex: 1 1 0;
    min-width: 0;
  }

  .ctl-zoom-level {
    width: 100%;
  }
}
