/* NanoFiche redesign preview
   Design language: full-viewport chapters, grotesque display type,
   mono labels, pill controls, light paper and near-black fields.
   Original CSS. No third-party brand assets. */

:root {
  --paper: #f3f3f3;
  --paper-2: #e9e9e9;
  --void: #040404;
  --black: #1c1c1c;
  --ink: #3a3a3a;
  --muted: #5c5c5c;
  --fog: #bdbdbd;
  --line: #8a8a8a;
  --orange: #ff4f00;
  --orange-hot: #ff7639;
  --white: #fff;
  --pad: 1.25rem;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --max: 80rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--black);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 80;
  border-radius: 2rem;
}
.skip:focus { top: 1rem; }

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

.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
}

h1, h2, h3, p { margin: 0; }

h1, h2, .display {
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--muted);
}

h1 { font-size: clamp(2.5rem, 8vw, 4.75rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; color: var(--black); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem var(--pad) 0;
  color: var(--muted);
  pointer-events: none;
}

.nav a,
.nav button { pointer-events: auto; }

.nav.on-dark { color: var(--paper); }
.nav.is-open,
.nav.is-open.on-dark { color: var(--muted); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  width: 4.6rem;
  height: 2.6rem;
  border-radius: 2rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle .line {
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav.is-open .nav-toggle .line:first-child { transform: translateY(4.5px) rotate(18deg); }
.nav.is-open .nav-toggle .line:last-child { transform: translateY(-4.5px) rotate(-18deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  color: var(--muted);
  display: none;
  grid-template-columns: 1fr;
  align-content: end;
  padding: 6.5rem var(--pad) 2rem;
  overflow: auto;
}

.nav-overlay.is-open { display: grid; }

.nav-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.nav-side a { color: var(--muted); text-decoration: none; }
.nav-side a:hover { color: var(--black); }

.side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.side-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links { display: flex; flex-direction: column; align-items: stretch; }

.nav-links a {
  text-decoration: none;
  text-align: right;
  color: var(--muted);
  font-size: clamp(1.85rem, 7.2vw, 2.6rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.03em;
  padding: 0.08rem 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { opacity: 0.45; }

.nav-overlay.is-open .nav-links a {
  animation: link-in 0.55s var(--ease) both;
}

.nav-links a:nth-child(1) { animation-delay: 0.02s; }
.nav-links a:nth-child(2) { animation-delay: 0.05s; }
.nav-links a:nth-child(3) { animation-delay: 0.08s; }
.nav-links a:nth-child(4) { animation-delay: 0.11s; }
.nav-links a:nth-child(5) { animation-delay: 0.14s; }
.nav-links a:nth-child(6) { animation-delay: 0.17s; }
.nav-links a:nth-child(7) { animation-delay: 0.2s; }
.nav-links a:nth-child(8) { animation-delay: 0.23s; }
.nav-links a:nth-child(9) { animation-delay: 0.26s; }
.nav-links a:nth-child(10) { animation-delay: 0.29s; }

@keyframes link-in {
  from { opacity: 0; transform: translateX(1.25rem); }
  to { opacity: 1; transform: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 2rem;
  border: 1px solid transparent;
  background: var(--orange);
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover { background: var(--orange-hot); }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn.ghost:hover { border-color: var(--paper); background: transparent; color: var(--white); }

.btn.ghost.on-light {
  color: var(--muted);
  border-color: #b9b9b9;
}

.btn.ghost.on-light:hover { border-color: var(--black); color: var(--black); background: transparent; }

.btn.small { min-height: 2.5rem; padding: 0 1rem; font-size: 0.95rem; }

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  padding: 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35rem;
  width: fit-content;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--paper);
  overflow: clip;
  padding: 6.5rem var(--pad) 1.75rem;
}

.hero-photo {
  width: min(92vw, 34rem);
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.hero-copy { position: relative; z-index: 1; text-align: center; }

.hero h1 { color: var(--muted); }

.traits {
  margin: 1rem auto 0;
  color: var(--muted);
  max-width: 28rem;
}

/* ---------- chapters ---------- */

.chapter {
  position: relative;
  min-height: auto;
  background: var(--void);
  color: var(--fog);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chapter .bg {
  width: 100%;
  height: 68vw;
  min-height: 15rem;
  max-height: 28rem;
  object-fit: cover;
}

.chapter-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 2.5rem var(--pad) 3rem;
}

.chapter-copy h2 { color: var(--paper); }
.chapter-copy p { max-width: 34rem; color: #cfcfcf; }
.chapter .shade { display: none; }

.statement {
  position: relative;
  min-height: 100svh;
  background: var(--void) center/cover no-repeat;
  color: #d5d5d5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--pad);
  overflow: hidden;
}

.statement .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 4, 4, 0.55), rgba(4, 4, 4, 0.78));
}

.statement-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.statement h2 { color: var(--paper); }
.statement p { font-size: 1.05rem; }

/* ---------- bands ---------- */

.band { padding: 4.5rem var(--pad); }
.band.tight { padding-top: 2rem; }
.band.void { background: var(--void); color: #d0d0d0; }
.band.void h2,
.band.void h3 { color: var(--paper); }

.wrap { width: min(100%, var(--max)); margin: 0 auto; }
.narrow { width: min(100%, 44rem); }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

.grid-2, .grid-4, .cards, .people, .news-list, .plate-grid {
  display: grid;
  gap: 1.5rem;
}

.use h3 { margin: 0.4rem 0 0.55rem; }
.use p { color: var(--muted); }

.locations {
  display: grid;
  gap: 0;
}

.loc {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0;
  border-top: 1px solid #ddd;
  text-decoration: none;
}

.loc:last-child { border-bottom: 1px solid #ddd; }
.loc strong { font-weight: 500; color: var(--black); }
.loc span { color: var(--muted); }

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.split img { width: 100%; object-fit: cover; }

.figure-note { margin-top: 0.55rem; color: var(--muted); }

.specs { margin-top: 1rem; }
.spec {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-top: 1px solid #ddd;
}
.spec:last-child { border-bottom: 1px solid #ddd; }
.spec .mono { color: var(--muted); }

.prose { display: grid; gap: 0.95rem; }
.prose p, .prose li { color: var(--ink); }
.prose h2, .prose h3 { margin-top: 0.6rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; margin-top: 1.4rem; }
.prose h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.prose a { color: var(--black); text-underline-offset: 0.18em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.4rem; }
.prose img { margin: 0.4rem 0; }
.prose blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid #c8c8c8;
  color: var(--muted);
}

details.faq {
  border-top: 1px solid #ddd;
  padding: 0.9rem 0;
}
details.faq:last-of-type { border-bottom: 1px solid #ddd; }
details.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--black);
}
details.faq p { margin-top: 0.7rem; color: var(--ink); }

.placeholder {
  border: 1px dashed #9a9a9a;
  padding: 0.8rem 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
}

.ph-img {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, #2c2c2c, #111 62%);
  color: #cfcfcf;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.page-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding: 7rem var(--pad) 2rem;
  text-align: left;
}

.page-hero h1 { max-width: 16ch; }

.page-hero .kicker { color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-top: 1px solid #ddd;
}
.timeline li:last-child { border-bottom: 1px solid #ddd; }
.timeline a { color: var(--black); }

.cards a.card, a.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #ddd; }
.card h3 { color: var(--black); }
.card p { color: var(--muted); font-size: 0.98rem; }

.people article {
  display: grid;
  gap: 0.8rem;
}
.people img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ddd;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.gallery button {
  padding: 0;
  border: 0;
  background: #ddd;
  cursor: zoom-in;
}

.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1100px);
  width: 100%;
}
dialog.lightbox::backdrop { background: rgba(4, 4, 4, 0.86); }
.lightbox-frame { position: relative; }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; background: #111; }
.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.deck {
  display: grid;
  gap: 0.8rem;
}
.deck-stage {
  background: var(--void);
  min-height: 14rem;
  display: grid;
  place-items: center;
}
.deck-stage img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.deck-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }

.viewer {
  background: #111;
  height: min(78vh, 820px);
  min-height: 22rem;
  width: 100%;
}

.news-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 0;
  border-top: 1px solid #ddd;
  text-decoration: none;
}
.news-list a:last-child { border-bottom: 1px solid #ddd; }
.news-list h3 { color: var(--black); }
.news-list p { color: var(--muted); }

.filter {
  width: 100%;
  max-width: 24rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bdbdbd;
  padding: 0.7rem 0;
  margin: 0.5rem 0 1rem;
}
.filter:focus { outline: none; border-bottom-color: var(--orange); }

form.contact {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}
.field { display: grid; gap: 0.3rem; }
.field.row { grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 700px) {
  .field.row { grid-template-columns: 1fr 1fr; }
}
label .req { color: var(--orange); }
input, textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b5b5b5;
  padding: 0.7rem 0;
  border-radius: 0;
}
textarea { min-height: 8rem; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.95rem; }
.form-status { min-height: 1.4em; }

.map {
  width: 100%;
  min-height: 18rem;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

.footer {
  background: var(--paper);
  color: var(--muted);
  padding: 2rem var(--pad) 2rem;
  position: relative;
  overflow: clip;
}

.footer-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-cta {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 3rem 0 1rem;
}

.footer-cta h2 { color: var(--muted); font-size: clamp(2rem, 6vw, 3.2rem); }

.circle {
  display: none;
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--black); }

.foot-links, .foot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.mark-lockup {
  width: min(16rem, 70%);
  margin: 0 auto 1rem;
  /* Published wordmark is drawn for dark fields. */
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: multiply;
}

.page-dark { background: var(--void); color: #d2d2d2; }
.page-dark h1, .page-dark h2 { color: var(--paper); }
.page-dark .page-hero { min-height: 100svh; }
.page-dark input, .page-dark textarea { color: var(--paper); border-bottom-color: #666; }
.page-dark .form-note, .page-dark .lede { color: #c8c8c8; }

/* ---------- desktop ---------- */

@media (min-width: 800px) {
  :root { --pad: 2rem; }

  .nav-overlay {
    grid-template-columns: minmax(16rem, 1fr) 1.3fr;
    align-items: center;
    padding: 6rem 3rem;
  }

  .nav-side { margin: 0; align-self: end; }
  .nav-links a { font-size: clamp(2.4rem, 4.4vw, 4.3rem); line-height: 1.12; }

  .hero {
    padding: 6.5rem 2.5rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: end;
    column-gap: 2rem;
  }
  .hero-photo {
    position: relative;
    width: 100%;
    max-width: 40rem;
    max-height: 72vh;
    margin: 0 auto;
    object-fit: contain;
    justify-self: center;
  }
  .hero-copy {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding-bottom: 0.5rem;
  }
  .hero h1 { max-width: 9em; }
  .traits { margin-left: 0; max-width: none; }

  .chapter {
    min-height: 100vh;
    min-height: 100svh;
    display: block;
  }
  .chapter .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
  }
  .chapter .shade {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(60rem, 80%);
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
  }
  .chapter-copy {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    right: auto;
    align-items: flex-start;
    text-align: left;
    padding: 0;
    max-width: 34rem;
  }

  .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1.75rem; }
  .cards, .plate-grid { grid-template-columns: 1fr 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }

  .page-hero {
    min-height: 78vh;
    align-items: flex-end;
    text-align: right;
    padding: 7rem 2rem 2.5rem;
  }
  .page-hero .lede { margin-left: auto; }

  .spec { grid-template-columns: 16rem 1fr; align-items: baseline; gap: 1.5rem; }
  .loc { grid-template-columns: 1.2fr 2fr; align-items: baseline; gap: 1rem; }
  .timeline li { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: start; }

  .footer { min-height: 100vh; display: flex; align-items: stretch; }
  .footer-grid {
    min-height: calc(100vh - 4rem);
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
  }
  .footer-cta { grid-column: 2; grid-row: 1; align-self: center; padding: 0; }
  .foot-links { align-items: flex-start; text-align: left; align-self: end; }
  .foot-meta { align-items: flex-end; text-align: right; align-self: end; }

  .circle {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(42vw, 520px);
    height: min(42vw, 520px);
    border: 1px solid #8d8d8d;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(35deg);
    pointer-events: none;
  }
}

@media (max-width: 799px) {
  .nav-cta { display: none; }
}

.route-grid { display: grid; gap: 1rem; }
.route-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid #ddd;
  padding: 1.1rem 0 0.2rem;
}
.route-card h3 { margin: 0.35rem 0; }
.route-card p { color: var(--muted); }
.video-slot {
  min-height: 16rem;
  border: 1px dashed #8a8a8a;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem;
  color: var(--muted);
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.use-cases {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.use-cases legend { padding: 0; margin-bottom: 0.45rem; }
.use-case-grid { display: grid; gap: 0.7rem 1.5rem; }
.use-case-grid .check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.use-case-grid input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: var(--orange);
  border: 0;
}
@media (min-width: 700px) {
  .use-case-grid { grid-template-columns: 1fr 1fr; }
}
.foot-groups { display: grid; gap: 1.5rem; }
select.field, select, .contact select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b5b5b5;
  padding: 0.7rem 0;
  border-radius: 0;
}
.page-dark .contact select { color: var(--paper); border-bottom-color: #666; }
@media (min-width: 800px) {
  .route-grid { grid-template-columns: 1fr 1fr; }
  .route-grid.steps { grid-template-columns: 1fr 1fr 1fr; }
  .foot-groups { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .tl-item { opacity: 1; transform: none; }
}

/* ---------- timeline ---------- */

#history { scroll-margin-top: 5.75rem; }
.timeline-teaser h2 { margin: 0.45rem 0 0.8rem; }
.teaser-dates {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
.teaser-dates li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid #ddd;
}

.timeline-wrap { max-width: 46rem; }
.tl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tl-chip {
  min-height: 2.75rem;
  border-radius: 2rem;
  border: 1px solid #b5b5b5;
  background: transparent;
  color: var(--ink);
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  text-align: left;
}
.tl-chip small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.tl-chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}
.tl-chip[aria-pressed="true"] small { color: var(--black); }
.tl-count { margin: 1rem 0 0.4rem; color: var(--muted); min-height: 1.2em; }

.tl {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0 0 1rem;
  position: relative;
}
.tl::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: #cfcfcf;
}
.tl-item {
  position: relative;
  margin: 0;
  padding: 0 0 0.85rem 1.7rem;
  opacity: 0;
  transform: translateY(14px);
  scroll-margin-top: 5.75rem;
  scroll-margin-bottom: 2rem;
}
.tl-item.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 0.14rem;
  top: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--muted);
}
.tl-card {
  border-top: 1px solid #ddd;
  padding-top: 0.85rem;
}
.tl-item.is-upcoming .tl-card {
  border: 1px dashed #8a8a8a;
  border-top: 1px dashed #8a8a8a;
  padding: 0.85rem 0.9rem 0.4rem;
}
.tl-item.is-upcoming::before { border-style: dashed; }
.tl-toggle {
  width: 100%;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.35rem 0;
  cursor: pointer;
  color: inherit;
}
.tl-title {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--black);
}
.tl-tag {
  display: inline-flex;
  border: 1px dashed currentColor;
  border-radius: 0.5rem;
  padding: 0 0.45rem;
  line-height: 1.3rem;
}
.tl-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.2rem 0 0.8rem;
}
.tl-panel[hidden] { display: none; }
.tl-panel p { color: var(--ink); max-width: 38rem; }
.tl-panel img {
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
  background: #111;
}
.tl-empty { color: var(--muted); padding: 1rem 0 2rem; }

@media (min-width: 800px) {
  .teaser-dates { grid-template-columns: repeat(4, 1fr); }
  .timeline-teaser { display: grid; gap: 0.2rem; }
  .tl-title { font-size: 1.45rem; }
}

@media (min-width: 0px) {
  .chapter-copy h2, .chapter-copy p { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 18px rgba(0, 0, 0, 0.6); }
}

[data-motion] .reveal { transform: translateY(32px); }
[data-motion] .reveal.in { transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- interactive timeline rail ---------- */

.tlr-wrap { margin-bottom: 2.25rem; }
html:not(.js) .tlr { display: none; }
.tlr { border-top: 1px solid #ddd; padding-top: 0.9rem; }
.tlr-hint { color: var(--muted); margin: 0 0 0.6rem; }
.tlr-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--fog) transparent;
  padding: 0 0.75rem 0.5rem;
  outline: none;
}
.tlr-track {
  --lane-h: 22px;
  --line-y: calc(var(--lanes, 1) * var(--lane-h) + 10px);
  position: relative;
  min-width: 62rem;
  height: calc(var(--line-y) + 34px + 2 * 24px + 6px);
}
.tlr-line {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--line-y);
  height: 1px;
  background: var(--black);
}
.tlr-ticks, .tlr-bands, .tlr-dots { position: absolute; inset: 0; }
.tlr-tick {
  position: absolute;
  top: var(--line-y);
  width: 1px;
  height: 6px;
  background: var(--line);
}
.tlr-tick.is-major { height: 10px; background: var(--black); }
.tlr-year {
  position: absolute;
  top: 12px;
  left: 0;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--muted);
  white-space: nowrap;
}
.tlr-tick.is-major .tlr-year { color: var(--black); }
.tlr-band {
  position: absolute;
  top: calc(var(--line-y) + 34px + var(--row, 0) * 24px);
  height: 20px;
  border-top: 2px solid var(--fog);
  background: rgba(28, 28, 28, 0.04);
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.tlr-band:hover { border-top-color: var(--orange-hot); }
.tlr-band.is-on { border-top-color: var(--orange); background: rgba(255, 79, 0, 0.12); }
.tlr-band.is-dim { opacity: 0.35; }
.tlr-band-label {
  display: block;
  padding: 0.15rem 0.4rem 0;
  font-size: 0.58rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.tlr-dot {
  position: absolute;
  top: calc(var(--line-y) - var(--lane, 0) * var(--lane-h));
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 1;
  transition: opacity 0.3s var(--ease);
}
.tlr-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--paper);
  box-sizing: border-box;
  box-shadow: 0 0 0 1px var(--black);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tlr-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: calc(var(--lane, 0) * var(--lane-h));
  background: var(--line);
  z-index: -1;
}
.tlr-dot.has-image::before { background: var(--ink); box-shadow: 0 0 0 1px var(--black), 0 0 0 3px rgba(255, 79, 0, 0.35); }
.tlr-dot.is-upcoming::before { background: var(--paper); border: 1px dashed var(--black); box-shadow: none; }
.tlr-dot:hover, .tlr-dot.is-hover, .tlr-dot:focus-visible, .tlr-dot.is-active { z-index: 3; }
.tlr-dot:hover::before,
.tlr-dot.is-hover::before,
.tlr-dot:focus-visible::before {
  transform: scale(1.55);
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.tlr-dot.is-active::before {
  transform: scale(1.8);
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--black), 0 0 0 5px rgba(255, 79, 0, 0.25);
}
.tlr-dot:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.tlr-dot.is-dim { opacity: 0.22; }
.tlr-dot.is-dim:hover, .tlr-dot.is-dim:focus-visible { opacity: 0.7; }

.js .tlr:not(.is-in) .tlr-dot { opacity: 0; }
.tlr.is-in .tlr-dot {
  animation: tlr-pop 0.5s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 32ms + 120ms);
}
@keyframes tlr-pop {
  0% { opacity: 0; transform: translate(-50%, -10%) scale(0.2); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.tlr.is-in .tlr-line { animation: tlr-draw 0.9s var(--ease) backwards; transform-origin: left center; }
@keyframes tlr-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.tlr-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: min(19rem, calc(100vw - 20px));
  background: var(--black);
  color: var(--paper);
  border-top: 2px solid var(--orange);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.tlr-tip.is-below { transform: translateY(-6px); }
.tlr-tip.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
}
.tlr-tip.is-open.is-interactive { pointer-events: auto; }
.tlr-tip::after {
  content: "";
  position: absolute;
  left: var(--arrow, 50%);
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--black);
  transform: rotate(45deg);
}
.tlr-tip.is-below::after { bottom: auto; top: -7px; background: var(--orange); }
.tlr-tip-img {
  display: block;
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
  background: #111;
}
.tlr-tip-body { position: relative; z-index: 1; padding: 0.75rem 0.9rem 0.85rem; display: grid; gap: 0.35rem; }
.tlr-tip-date { color: var(--orange-hot); margin: 0; }
.tlr-tip-date .tl-tag { color: var(--paper); margin-left: 0.3rem; }
.tlr-tip-title { margin: 0; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--white); }
.tlr-tip-sum { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--fog); }
.tlr-tip-open {
  justify-self: start;
  margin-top: 0.25rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--black);
  cursor: pointer;
}

.tl-item.is-flash .tl-card {
  outline: 2px solid var(--orange);
  outline-offset: 6px;
  animation: tlr-flash 2.2s var(--ease);
}
@keyframes tlr-flash {
  0% { background: rgba(255, 79, 0, 0.18); }
  100% { background: transparent; }
}

@media (min-width: 1100px) {
  .tlr-track { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .tlr:not(.is-in) .tlr-dot { opacity: 1; }
  .tlr-tip { transform: none; }
}
.tlr-next {
  position: absolute;
  top: var(--line-y);
  height: 1px;
  border-top: 1px dashed var(--black);
}
.tlr-next .tlr-year { left: 50%; color: var(--black); }
.tlr-band[data-era="upcoming"] { overflow: visible; }
.tlr-band[data-era="upcoming"] .tlr-band-label { position: absolute; right: 0; top: 0; overflow: visible; }
