:root {
  --ink: #07090a;
  --ink-soft: #0c0f11;
  --panel: #101417;
  --panel-soft: #151a1e;
  --paper: #eee9df;
  --paper-muted: #b6b0a7;
  --muted: #899096;
  --dim: #596167;
  --line: rgba(226, 222, 210, 0.15);
  --line-soft: rgba(226, 222, 210, 0.08);
  --signal: #dc4050;
  --signal-soft: rgba(220, 64, 80, 0.12);
  --cyan: #6bc6c5;
  --gold: #c9a564;
  --header-h: 72px;
  --content-max: 1220px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.72;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(226, 222, 210, 0.035) 50%, transparent calc(50% + 1px)),
    linear-gradient(rgba(226, 222, 210, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 112px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 4.2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 10, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.topbar__actions,
.language-switch {
  display: flex;
  align-items: center;
}

.brand {
  direction: ltr;
  gap: 0.72rem;
}

.brand__mark {
  color: var(--signal);
  font-size: 1.56rem;
  line-height: 1;
}

.brand__text,
.eyebrow,
.hero__classification,
.hero__readout,
.brief__masthead,
.event__time,
.day-chapter__index,
.timeline-nav__label {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.14em;
}

.brand__text {
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
}

.topbar__actions {
  gap: 1rem;
}

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--paper-muted);
  font-size: 0.7rem;
  font-weight: 800;
  transition: color 160ms ease;
}

.topbar__back:hover,
.topbar__back:focus-visible {
  color: var(--paper);
}

.topbar__status {
  color: var(--muted);
  font-size: 0.76rem;
}

.language-switch {
  direction: ltr;
  gap: 0.1rem;
  padding: 0.14rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.language-switch__button {
  min-width: 2.42rem;
  padding: 0.42rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  transition: 160ms ease;
}

.language-switch__button.is-active {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 4rem) clamp(1.2rem, 8vw, 9rem) 7rem;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: var(--header-h) 0 auto;
  height: 1px;
  background: var(--signal);
  opacity: 0.85;
}

.hero::after {
  right: clamp(1rem, 7vw, 7rem);
  bottom: 0;
  width: 1px;
  height: 74%;
  background: var(--line);
}

.hero__stage {
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: -1;
  overflow: hidden;
}

.hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0 14%, transparent 38% 72%, var(--ink) 100%),
    linear-gradient(0deg, var(--ink) 0 8%, transparent 45% 100%);
  z-index: 4;
  pointer-events: none;
}

.hero__watermark {
  position: absolute;
  top: 15%;
  left: 4%;
  color: transparent;
  font: 900 clamp(15rem, 42vw, 42rem) / 0.84 Georgia, serif;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px rgba(226, 222, 210, 0.09);
}

.hero__watermark--number {
  top: auto;
  right: 7%;
  bottom: -0.05em;
  left: auto;
  color: rgba(226, 222, 210, 0.025);
  font-size: clamp(12rem, 33vw, 34rem);
  -webkit-text-stroke: 0;
}

.hero__portrait {
  position: absolute;
  overflow: hidden;
  border-top: 3px solid var(--signal);
  background: #101315;
  filter: grayscale(1) contrast(1.12);
  opacity: 0.66;
  transform: translateY(20px);
  animation: portraitIn 900ms ease forwards;
}

.hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

.hero__portrait--kurapika {
  top: 21%;
  left: 8%;
  width: min(20vw, 250px);
  height: min(31vw, 390px);
}

.hero__portrait--tserriednich {
  top: 12%;
  left: calc(8% + min(21vw, 270px));
  width: min(17vw, 210px);
  height: min(25vw, 310px);
  border-color: var(--gold);
  animation-delay: 120ms;
}

.hero__portrait--morena {
  top: 46%;
  left: calc(8% + min(22vw, 286px));
  width: min(14vw, 180px);
  height: min(18vw, 230px);
  border-color: var(--paper-muted);
  animation-delay: 220ms;
}

.hero__portrait--halkenburg {
  top: 54%;
  left: 8%;
  width: min(12vw, 150px);
  height: min(16vw, 200px);
  border-color: var(--cyan);
  animation-delay: 320ms;
}

.hero__copy {
  position: relative;
  z-index: 6;
  width: min(720px, 100%);
  margin-inline-start: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal);
  font-size: 0.7rem;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 1.45rem;
  color: var(--paper);
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  color: var(--paper);
}

.hero__lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 2vw, 1.23rem);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--signal);
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 900;
  transition: 160ms ease;
}

.hero__cta:hover {
  color: var(--signal);
}

.hero__cta-arrow {
  color: var(--signal);
  animation: bob 1.35s ease-in-out infinite;
}

.hero__classification,
.hero__readout {
  position: absolute;
  z-index: 7;
  display: grid;
  gap: 0.24rem;
  color: var(--dim);
  direction: ltr;
  font-size: 0.59rem;
  line-height: 1.8;
  text-align: left;
}

.hero__classification {
  top: calc(var(--header-h) + 2.2rem);
  right: clamp(1rem, 6vw, 6rem);
}

.hero__classification span:first-child {
  color: var(--signal);
}

.hero__readout {
  right: clamp(1rem, 6vw, 6rem);
  bottom: 2rem;
}

.hero__readout strong {
  color: var(--paper);
  font-size: 1.02rem;
}

.hero__scroll {
  position: absolute;
  right: clamp(1rem, 7vw, 7rem);
  bottom: 0;
  width: 1px;
  height: 82px;
  overflow: hidden;
  background: var(--line);
}

.hero__scroll span {
  display: block;
  width: 100%;
  height: 44%;
  background: var(--signal);
  animation: scrollLine 1.8s ease-in-out infinite;
}

.brief {
  width: min(var(--content-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 5.8rem;
}

.brief__masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.brief__masthead strong {
  color: var(--signal);
  font-size: 2rem;
  line-height: 1;
}

.brief__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.brief__grid article {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.72rem;
  padding: 1.2rem 1rem;
  border-inline-start: 1px solid var(--line);
}

.brief__grid article:last-child {
  border-inline-end: 1px solid var(--line);
}

.brief__number {
  color: var(--paper);
  font: 700 clamp(2.1rem, 4vw, 3.6rem) / 1 Georgia, serif;
}

.brief__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.brief__copy {
  max-width: 820px;
  margin: 2.6rem auto 0;
  color: var(--paper-muted);
  font-size: 1.06rem;
  text-align: center;
}

.timeline-shell {
  position: relative;
  width: min(var(--content-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 7rem;
}

.timeline-toolbar {
  position: sticky;
  top: calc(var(--header-h) + 0.7rem);
  z-index: 16;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 3.4rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--signal);
  background: rgba(7, 9, 10, 0.93);
  backdrop-filter: blur(16px);
}

.timeline-toolbar h2 {
  margin: 0;
  color: var(--paper);
  font-size: 1.62rem;
}

.timeline-toolbar .eyebrow {
  margin-bottom: 0.2rem;
  font-size: 0.63rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.32rem;
}

.filter {
  padding: 0.46rem 0.66rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  transition: 160ms ease;
}

.filter:hover,
.filter.is-active {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--paper);
}

.timeline {
  position: relative;
  min-height: 500px;
}

.timeline__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  overflow: hidden;
  background: var(--line-soft);
}

.timeline__spine-fill {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  background: var(--signal);
  transition: height 130ms linear;
}

.day-chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  gap: 0.8rem;
  min-height: 72svh;
  padding: 2.6rem 0 7.6rem;
  scroll-margin-top: calc(var(--header-h) + 7rem);
}

.day-chapter::after {
  content: attr(data-day);
  position: absolute;
  top: 1.2rem;
  right: 52%;
  z-index: -1;
  color: rgba(226, 222, 210, 0.032);
  font: 900 clamp(4rem, 10vw, 9rem) / 1 Georgia, serif;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.day-chapter:nth-of-type(even)::after {
  right: auto;
  left: 52%;
}

.day-chapter__marker {
  position: sticky;
  top: calc(var(--header-h) + 8rem);
  grid-column: 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-inline: auto;
  border: 1px solid var(--signal);
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg);
}

.day-chapter__marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line);
}

.day-chapter__marker span {
  display: block;
  transform: rotate(-45deg);
  font: 700 1.06rem / 1 Consolas, monospace;
}

.day-chapter__content {
  grid-column: 1;
  align-self: start;
}

.day-chapter:nth-of-type(even) .day-chapter__content {
  grid-column: 3;
}

.day-chapter__header {
  position: relative;
  margin-bottom: 1.05rem;
  padding: 0.55rem 0 0.8rem;
  border-bottom: 1px solid var(--line);
}

.day-chapter__index {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--signal);
  font-size: 0.63rem;
}

.day-chapter h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.16;
}

.day-chapter__summary {
  margin: 0.52rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.day-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.82rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(220, 64, 80, 0.65);
  background: rgba(220, 64, 80, 0.08);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  transition: 160ms ease;
}

.day-download:hover,
.day-download:focus-visible {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.day-download:disabled {
  cursor: wait;
  opacity: 0.72;
}

.day-download span:first-child {
  color: var(--signal);
  font: 900 0.92rem / 1 Consolas, monospace;
}

.day-download:hover span:first-child,
.day-download:focus-visible span:first-child {
  color: var(--ink);
}

.events {
  display: grid;
  gap: 0.64rem;
  counter-reset: event-card;
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.88rem;
  overflow: hidden;
  padding: 0.92rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--signal);
  background: rgba(16, 20, 23, 0.95);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease, border-color 160ms ease;
  counter-increment: event-card;
}

.event::after {
  content: "0" counter(event-card);
  position: absolute;
  inset: auto 0.7rem 0.45rem auto;
  color: rgba(226, 222, 210, 0.075);
  font: 700 2.2rem / 1 Georgia, serif;
}

.event.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.event:hover {
  border-color: rgba(220, 64, 80, 0.7);
}

.event--major {
  min-height: 170px;
  grid-template-columns: 90px minmax(0, 1fr);
  padding: 1.08rem;
}

.event__portrait,
.event__fallback {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.event--major .event__portrait,
.event--major .event__fallback {
  width: 90px;
  height: 90px;
}

.event__fallback {
  display: grid;
  place-items: center;
  color: var(--paper-muted);
  font: 700 1rem / 1 Consolas, monospace;
}

.event__time {
  display: block;
  color: var(--gold);
  direction: ltr;
  font-size: 0.62rem;
  text-align: start;
}

.event h4 {
  margin: 0.11rem 0 0.3rem;
  color: var(--paper);
  font-size: 0.98rem;
  letter-spacing: 0;
}

.event--major h4 {
  font-size: 1.18rem;
}

.event p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.event__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.62rem;
}

.event__tag {
  padding: 0.12rem 0.36rem;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.6rem;
}

.event.is-filtered-out,
.secondary-event.is-filtered-out {
  display: none;
}

.secondary-toggle {
  width: 100%;
  margin-top: 0.72rem;
  padding: 0.66rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  transition: 160ms ease;
}

.secondary-toggle:hover {
  border-color: var(--signal);
  color: var(--paper);
}

.secondary-events {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms ease;
}

.secondary-events > div {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line-soft);
}

.secondary-events.is-open {
  grid-template-rows: 1fr;
  margin-top: 0.56rem;
}

.secondary-event {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.7rem 0.76rem;
  background: rgba(12, 15, 17, 0.98);
}

.secondary-event__time {
  color: var(--gold);
  direction: ltr;
  font: 700 0.62rem / 1.75 Consolas, monospace;
}

.secondary-event p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-nav {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: 1.05rem;
  display: flex;
  gap: 0.66rem;
  height: min(58vh, 540px);
  transform: translateY(-50%);
}

.timeline-nav__progress {
  position: relative;
  width: 1px;
  height: 100%;
  background: var(--line);
}

.timeline-nav__progress span {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  background: var(--signal);
  transition: height 130ms linear;
}

.timeline-nav ol {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.24rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dim);
  font-size: 0.61rem;
}

.timeline-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--dim);
  background: var(--ink);
  transition: 160ms ease;
}

.timeline-nav a.is-active {
  color: var(--paper);
}

.timeline-nav a.is-active::before {
  border-color: var(--signal);
  background: var(--signal);
}

.timeline-nav__label {
  direction: ltr;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--dim);
  direction: ltr;
  font: 700 0.64rem / 1.4 Consolas, monospace;
}

.footer p {
  margin: 0;
}

.timeline-export-stage {
  position: absolute;
  top: 0;
  left: -100000px;
  width: 1020px;
  overflow: visible;
  pointer-events: none;
}

.day-chapter--capture {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 86px !important;
  gap: 1rem !important;
  width: 1020px !important;
  min-height: 0 !important;
  padding: 2.2rem !important;
  background: var(--ink) !important;
}

.day-chapter--capture::after {
  right: 2rem !important;
  left: auto !important;
}

.day-chapter--capture .day-chapter__marker {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 62px !important;
  height: 62px !important;
}

.day-chapter--capture .day-chapter__content,
.day-chapter--capture:nth-of-type(even) .day-chapter__content {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.day-chapter--capture .secondary-events {
  display: block !important;
  margin-top: 0.56rem !important;
}

.day-chapter--capture .secondary-events > div {
  overflow: visible !important;
}

.capture-preview-open {
  overflow: hidden;
}

.capture-preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 4, 5, 0.94);
}

.capture-preview--embedded {
  position: absolute;
  right: 0;
  bottom: auto;
  left: 0;
}

.capture-preview__panel {
  width: min(100%, 980px);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  background: var(--panel);
}

.capture-preview__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.capture-preview__header h2,
.capture-preview__header p {
  margin: 0;
}

.capture-preview__header h2 {
  font-size: 1.1rem;
}

.capture-preview__header p {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.capture-preview__close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 1.2rem;
}

.capture-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.capture-preview__action {
  padding: 0.46rem 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
}

.capture-preview__action--primary {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.capture-preview__image {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes portraitIn {
  to { opacity: 0.66; transform: translateY(0); }
}

@keyframes bob {
  50% { transform: translateY(5px); }
}

@keyframes scrollLine {
  from { transform: translateY(-130%); }
  to { transform: translateY(260%); }
}

@media (max-width: 980px) {
  :root {
    --header-h: 62px;
  }

  .topbar__status {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 3rem) 1rem 5.4rem;
  }

  .hero__copy {
    margin: 0;
  }

  h1 {
    font-size: clamp(3.55rem, 15vw, 5.8rem);
  }

  .hero__classification {
    top: calc(var(--header-h) + 1.1rem);
    right: 1rem;
  }

  .hero__portrait--kurapika {
    top: 18%;
    left: 5%;
    width: 36vw;
    height: 52vw;
  }

  .hero__portrait--tserriednich {
    top: 18%;
    left: 43%;
    width: 28vw;
    height: 41vw;
  }

  .hero__portrait--morena {
    top: 39%;
    left: 43%;
    width: 25vw;
    height: 31vw;
  }

  .hero__portrait--halkenburg {
    top: 42%;
    left: 5%;
    width: 23vw;
    height: 29vw;
  }

  .timeline-shell {
    width: min(100% - 1rem, 720px);
  }

  .timeline-toolbar {
    top: calc(var(--header-h) + 0.42rem);
    display: block;
    padding: 0.78rem;
  }

  .timeline-toolbar h2 {
    font-size: 1.24rem;
  }

  .filters {
    justify-content: start;
    margin-top: 0.62rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.12rem;
    scrollbar-width: none;
  }

  .filter {
    flex: 0 0 auto;
    padding: 0.42rem 0.54rem;
    font-size: 0.68rem;
  }

  .timeline__spine {
    left: 23px;
  }

  [dir="rtl"] .timeline__spine {
    right: 23px;
    left: auto;
  }

  .day-chapter {
    display: block;
    min-height: 0;
    padding: 1.8rem 0 4.4rem 53px;
  }

  [dir="rtl"] .day-chapter {
    padding: 1.8rem 53px 4.4rem 0;
  }

  .day-chapter::after {
    top: 1rem;
    right: auto;
    left: 3rem;
    font-size: 4rem;
  }

  [dir="rtl"] .day-chapter::after {
    right: 3rem;
    left: auto;
  }

  .day-chapter__marker {
    position: absolute;
    top: 2rem;
    left: 3px;
    width: 42px;
    height: 42px;
  }

  [dir="rtl"] .day-chapter__marker {
    right: 3px;
    left: auto;
  }

  .day-chapter__marker span {
    font-size: 0.78rem;
  }

  .event,
  .event--major {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 0;
    gap: 0.68rem;
    padding: 0.78rem;
  }

  .event__portrait,
  .event__fallback,
  .event--major .event__portrait,
  .event--major .event__fallback {
    width: 58px;
    height: 58px;
  }

  .event--major h4 {
    font-size: 1.02rem;
  }

  .event p {
    font-size: 0.78rem;
  }

  .timeline-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-inline: 0.7rem;
  }

  .brand {
    gap: 0.46rem;
  }

  .brand__mark {
    font-size: 1.32rem;
  }

  .brand__text {
    font-size: 0.7rem;
  }

  .language-switch__button {
    min-width: 2.08rem;
    padding: 0.36rem 0.4rem;
    font-size: 0.63rem;
  }

  .topbar__back {
    font-size: 0;
  }

  .topbar__back span:last-child {
    font-size: 0.92rem;
  }

  .hero__lead {
    font-size: 0.94rem;
  }

  .hero__readout {
    right: 1rem;
    bottom: 1.4rem;
  }

  .hero__scroll {
    right: 1rem;
  }

  .brief {
    padding-block: 3.6rem 2.6rem;
  }

  .brief__grid article {
    display: block;
    padding: 0.85rem 0.35rem;
    text-align: center;
  }

  .brief__grid p {
    margin-top: 0.36rem;
    font-size: 0.66rem;
  }

  .brief__copy {
    font-size: 0.88rem;
  }

  .timeline-shell {
    width: calc(100% - 0.7rem);
  }

  .timeline-toolbar .eyebrow {
    font-size: 0.56rem;
  }

  .day-chapter {
    padding-left: 47px;
  }

  [dir="rtl"] .day-chapter {
    padding-right: 47px;
    padding-left: 0;
  }

  .timeline__spine {
    left: 20px;
  }

  [dir="rtl"] .timeline__spine {
    right: 20px;
    left: auto;
  }

  .day-chapter__marker {
    left: 1px;
    width: 39px;
    height: 39px;
  }

  [dir="rtl"] .day-chapter__marker {
    right: 1px;
    left: auto;
  }

  .event,
  .event--major {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.58rem;
    padding: 0.68rem;
  }

  .event__portrait,
  .event__fallback,
  .event--major .event__portrait,
  .event--major .event__fallback {
    width: 46px;
    height: 46px;
  }

  .event h4,
  .event--major h4 {
    font-size: 0.9rem;
  }

  .event p {
    font-size: 0.73rem;
  }

  .secondary-event {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 0.58rem;
  }
}

body.is-embedded .topbar,
body.is-embedded .timeline-nav,
body.is-embedded .footer {
  display: none;
}

html.is-embedded,
body.is-embedded {
  overflow-y: hidden;
}

body.is-embedded .hero {
  min-height: 820px;
  padding-top: 4rem;
}

body.is-embedded .hero::before {
  inset: 0 0 auto;
}

body.is-embedded .timeline-toolbar {
  top: 0;
}

body.is-embedded .timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  min-height: 0;
}

body.is-embedded .timeline__spine {
  display: none;
}

body.is-embedded .day-chapter,
body.is-embedded .day-chapter:nth-of-type(even) {
  display: block;
  min-height: 0;
  padding: 0;
}

body.is-embedded .day-chapter::after {
  top: 0.3rem;
  right: 1rem;
  left: auto;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  z-index: 0;
}

body.is-embedded .day-chapter__marker {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  width: 46px;
  height: 46px;
  z-index: 2;
}

body.is-embedded .day-chapter__content,
body.is-embedded .day-chapter:nth-of-type(even) .day-chapter__content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 1.05rem;
  padding-top: 4.45rem;
  border: 1px solid var(--line);
  background: rgba(7, 10, 13, 0.72);
}

body.is-embedded .day-chapter__header {
  margin-bottom: 0.82rem;
}

body.is-embedded .day-chapter h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
}

body.is-embedded .event,
body.is-embedded .event--major {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 0;
  padding: 0.78rem;
}

body.is-embedded .event__portrait,
body.is-embedded .event__fallback,
body.is-embedded .event--major .event__portrait,
body.is-embedded .event--major .event__fallback {
  width: 58px;
  height: 58px;
}

body.is-embedded .event--major h4 {
  font-size: 1rem;
}

body.is-embedded .event p {
  font-size: 0.76rem;
}

body.is-embedded .secondary-event {
  grid-template-columns: 58px minmax(0, 1fr);
}

@media (max-width: 980px) {
  body.is-embedded .hero {
    min-height: 760px;
    padding-top: 3rem;
  }

  body.is-embedded .timeline {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
