/* KINGQUOC Cosmic Timeline & Eras Map v1 */
.timeline-atlas {
  --timeline-page: min(1760px, calc(100vw - 48px));
  --timeline-gold: #e6c77c;
  --timeline-cyan: #78d8ff;
  --timeline-green: #6ce0bd;
  --timeline-violet: #b39ae8;
  --timeline-red: #ff6b86;
  --timeline-orange: #f0a862;
  --timeline-blue: #6aaef4;
  --timeline-line: rgba(131, 173, 205, .17);
  --timeline-panel: rgba(5, 12, 22, .92);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(67, 121, 171, .12), transparent 30rem),
    radial-gradient(circle at 86% 18%, rgba(155, 100, 190, .1), transparent 32rem),
    linear-gradient(180deg, #030812, #050a14 48%, #03070e 100%);
  color: #eef4f8;
}

.timeline-background { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.timeline-grid { position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(rgba(108,161,199,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(108,161,199,.03) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.timeline-nebula { position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: .11; }
.timeline-nebula-a { left: -180px; top: 180px; background: #2c8ac2; }
.timeline-nebula-b { right: -180px; top: 500px; background: #7445a3; }
.timeline-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: white; box-shadow: 0 0 10px white; }
.timeline-star.star-a { left: 16%; top: 24%; }
.timeline-star.star-b { right: 24%; top: 36%; }
.timeline-star.star-c { left: 68%; top: 71%; }

.timeline-header { min-height: 72px; padding-block: 10px; border-bottom-color: var(--timeline-line); background: rgba(3, 8, 16, .92); }
.timeline-header .brand-mark { width: 42px; height: 42px; }
.timeline-header .primary-nav { gap: 22px; }
.timeline-header .primary-nav a { font-size: 11px; }
.timeline-header .primary-nav a[aria-current="page"] { color: #f1d697; }
.timeline-header .primary-nav a[aria-current="page"]::after { width: 100%; }

.timeline-hero {
  position: relative;
  width: var(--timeline-page);
  min-height: 690px;
  margin: 0 auto;
  padding: 92px 0 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .62fr);
  align-items: center;
  gap: 80px;
  overflow: hidden;
}
.timeline-hero::before { content: ""; position: absolute; inset: 9% 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(230,199,124,.25), transparent); }
.timeline-hero-copy { position: relative; z-index: 2; }
.timeline-hero .kicker { margin-bottom: 18px; color: #d8b96f; }
.timeline-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(64px, 7.3vw, 120px); font-weight: 400; letter-spacing: -.058em; line-height: .84; }
.timeline-hero h1 span { color: var(--timeline-gold); text-shadow: 0 0 42px rgba(230,199,124,.13); }
.timeline-deck { max-width: 780px; margin-top: 28px; color: #b8c6d5; font-size: clamp(17px, 1.12vw, 20px); line-height: 1.72; }
.timeline-actions { margin-top: 30px; }
.timeline-actions .button-primary, .timeline-return .button-primary { border-color: var(--timeline-gold); background: var(--timeline-gold); color: #120f08; }
.timeline-actions .button-primary:hover, .timeline-return .button-primary:hover { background: #f3d99b; }

.timeline-hero-clock { position: relative; width: min(40vw, 560px); aspect-ratio: 1; justify-self: end; display: grid; place-items: center; border: 1px solid rgba(230,199,124,.13); border-radius: 50%; background: radial-gradient(circle, rgba(230,199,124,.13), transparent 14%), radial-gradient(circle, rgba(89,174,244,.07), transparent 62%); box-shadow: inset 0 0 90px rgba(72,133,183,.05), 0 0 80px rgba(72,133,183,.05); }
.clock-ring { position: absolute; inset: 10%; border: 1px solid rgba(230,199,124,.3); border-radius: 50%; animation: timelineSpin 28s linear infinite; }
.clock-ring-b { inset: 23%; border-style: dashed; border-color: rgba(120,216,255,.23); animation-duration: 20s; animation-direction: reverse; }
.clock-ring-c { inset: 35%; border-color: rgba(179,154,232,.23); animation-duration: 14s; }
.clock-hand { position: absolute; left: 50%; top: 50%; width: 2px; height: 34%; transform-origin: 50% 0; background: linear-gradient(var(--timeline-gold), transparent); }
.hand-a { transform: rotate(35deg); }
.hand-b { height: 25%; transform: rotate(122deg); background: linear-gradient(var(--timeline-cyan), transparent); }
.timeline-hero-clock b { position: relative; z-index: 2; color: #f1d594; font-family: var(--serif); font-size: 52px; font-weight: 400; text-shadow: 0 0 30px #c99743; }
.timeline-hero-clock small { position: absolute; top: 58%; color: #8294a7; font-size: 9px; font-weight: 800; letter-spacing: .18em; text-align: center; }
.timeline-stats { grid-column: 1 / -1; margin: 10px 0 0; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--timeline-line); background: rgba(5,12,21,.72); }
.timeline-stats div { min-height: 68px; padding: 10px 18px; border-right: 1px solid rgba(131,173,205,.12); }
.timeline-stats div:last-child { border-right: 0; }
.timeline-stats dt { color: var(--timeline-gold); font-family: var(--serif); font-size: 28px; }
.timeline-stats dd { margin: 8px 0 0; color: #7d91a4; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.timeline-fiction { grid-column: 1 / -1; color: #8395a7; font-size: 10px; }

.timeline-coordinate { min-height: 52px; padding: 0 max(24px, calc((100vw - var(--timeline-page)) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; border-top: 1px solid var(--timeline-line); border-bottom: 1px solid var(--timeline-line); background: rgba(4,10,18,.8); color: #899caf; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.timeline-coordinate ol { margin: 0; padding: 0; display: flex; gap: 10px; list-style: none; }
.timeline-coordinate li + li::before { content: "/"; margin-right: 10px; color: #526477; }
.timeline-coordinate a { color: #afbdca; text-decoration: none; }
.timeline-coordinate b { color: #718598; font-size: inherit; }

.timeline-section { width: var(--timeline-page); margin: 0 auto; padding: 86px 0 112px; }
.timeline-section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.72fr); align-items: end; gap: 60px; }
.timeline-section-head h2, .timeline-arcs h2, .timeline-laws h2, .timeline-return h2 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(50px, 5vw, 84px); font-weight: 400; letter-spacing: -.05em; line-height: .88; }
.timeline-section-head > p { margin: 0; color: #9fafbe; font-size: 16px; line-height: 1.7; }
.timeline-guardrail { margin-top: 34px; padding: 17px 19px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border: 1px solid rgba(230,199,124,.22); background: rgba(7,14,24,.7); }
.timeline-guardrail > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(230,199,124,.28); border-radius: 50%; color: var(--timeline-gold); }
.timeline-guardrail b { color: #dfc785; font-size: 10px; letter-spacing: .14em; }
.timeline-guardrail p { margin: 4px 0 0; color: #98aabd; font-size: 13px; line-height: 1.5; }
.timeline-guardrail a { color: #dfc785; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-decoration: none; }

.timeline-controls { margin-top: 16px; padding: 15px; display: grid; gap: 13px; border: 1px solid var(--timeline-line); border-radius: 17px; background: rgba(4,10,19,.88); box-shadow: 0 20px 60px rgba(0,0,0,.23); }
.timeline-filter-row, .timeline-trace-row { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 12px; }
.timeline-trace-row { padding-top: 13px; border-top: 1px solid rgba(131,173,205,.11); }
.timeline-filter-row > span, .timeline-trace-row > span { color: #8295a8; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.timeline-filter-row > div, .timeline-trace-row > div { display: flex; flex-wrap: wrap; gap: 7px; }
.timeline-controls button { min-height: 37px; padding: 0 12px; border: 1px solid rgba(132,173,204,.16); border-radius: 8px; background: rgba(10,21,35,.72); color: #91a2b3; cursor: pointer; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.timeline-controls button:hover, .timeline-controls button:focus-visible, .timeline-controls button.is-active { border-color: rgba(230,199,124,.64); color: #f3dfaa; background: rgba(230,199,124,.08); }
.timeline-controls [data-status] { margin: 0; padding: 12px 2px 0; border-top: 1px solid rgba(131,173,205,.11); color: #8196aa; font-size: 10px; font-weight: 800; letter-spacing: .13em; }

.timeline-workspace { margin-top: 16px; display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,430px); gap: 16px; align-items: stretch; }
.timeline-viewport { position: relative; height: 790px; overflow: auto; border: 1px solid var(--timeline-line); border-radius: 20px; background: #030812; box-shadow: 0 28px 80px rgba(0,0,0,.3); scrollbar-color: rgba(230,199,124,.5) rgba(4,9,17,.55); outline: none; overscroll-behavior: contain; }
.timeline-viewport::before { content: "SCROLL HORIZONTALLY · SHIFT + WHEEL"; position: sticky; z-index: 25; top: 15px; left: 16px; display: block; width: max-content; margin: 15px 0 -35px 16px; color: rgba(130,151,170,.7); font-size: 9px; font-weight: 800; letter-spacing: .14em; pointer-events: none; }
.timeline-zoom { position: sticky; z-index: 30; top: 10px; left: calc(100% - 180px); width: 170px; min-height: 42px; margin: 10px 10px -52px auto; display: grid; grid-template-columns: 38px 1fr 38px 48px; align-items: center; border: 1px solid var(--timeline-line); border-radius: 10px; background: rgba(5,12,22,.96); }
.timeline-zoom button { height: 40px; border: 0; background: transparent; color: #b8c7d3; cursor: pointer; font-size: 12px; font-weight: 800; }
.timeline-zoom span { color: #8fa3b6; font-size: 10px; font-weight: 800; text-align: center; }
.timeline-stage { position: relative; width: 5600px; height: 920px; transform-origin: top left; background: linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px), radial-gradient(circle at 48% 50%, rgba(94,115,175,.09), transparent 36%), #030812; background-size: 80px 80px, 80px 80px, auto, auto; }
.timeline-axis { position: absolute; z-index: 1; left: 145px; right: 90px; top: 50%; height: 2px; background: linear-gradient(90deg, var(--timeline-gold), var(--timeline-cyan) 34%, var(--timeline-violet) 58%, var(--timeline-orange) 78%, var(--timeline-red)); box-shadow: 0 0 18px rgba(120,216,255,.35); }
.timeline-axis::before, .timeline-axis::after { position: absolute; top: -24px; color: #73889d; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.timeline-axis::before { content: "ORIGIN VECTOR"; left: 0; }
.timeline-axis::after { content: "CURRENT ERA →"; right: 0; }
.timeline-lane { position: absolute; z-index: 0; left: 0; right: 0; height: 18%; padding: 15px 18px; border-top: 1px solid; border-bottom: 1px solid; pointer-events: none; }
.timeline-lane b { display: block; font-size: 10px; letter-spacing: .16em; }
.timeline-lane span { display: block; margin-top: 5px; color: #6f8295; font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.lane-origin { top: 0; border-color: rgba(230,199,124,.17); color: var(--timeline-gold); background: linear-gradient(90deg, rgba(230,199,124,.035), transparent 35%); }
.lane-civilization { top: 18%; border-color: rgba(108,224,189,.15); color: var(--timeline-green); background: linear-gradient(90deg, rgba(108,224,189,.03), transparent 35%); }
.lane-system { top: 36%; border-color: rgba(179,154,232,.16); color: var(--timeline-violet); background: linear-gradient(90deg, rgba(179,154,232,.035), transparent 35%); }
.lane-earth { top: 54%; border-color: rgba(240,168,98,.16); color: var(--timeline-orange); background: linear-gradient(90deg, rgba(240,168,98,.035), transparent 35%); }
.lane-kingquoc { top: 72%; height: 28%; border-color: rgba(255,107,134,.17); color: var(--timeline-red); background: linear-gradient(90deg, rgba(255,107,134,.03), transparent 35%); }
.timeline-relations { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.timeline-relation { fill: none; stroke-width: 1.2; opacity: .23; vector-effect: non-scaling-stroke; transition: opacity .22s, stroke-width .22s; }
.timeline-relation.chronology { stroke: #89a8bf; }
.timeline-relation.influence { stroke: var(--timeline-violet); stroke-dasharray: 6 5; }
.timeline-relation.contact { stroke: var(--timeline-cyan); stroke-dasharray: 11 5; }
.timeline-relation.collapse { stroke: var(--timeline-red); stroke-dasharray: 3 5; }
.timeline-relation.is-active, .timeline-relation.is-trace { opacity: 1; stroke-width: 2.7; filter: drop-shadow(0 0 7px currentColor); animation: timelineFlow .65s linear infinite; }
.timeline-relation.is-dimmed { opacity: .035; }
.timeline-events { position: absolute; z-index: 5; inset: 0; }
.timeline-event { --event: var(--timeline-cyan); position: absolute; width: 224px; min-height: 128px; padding: 14px 15px 14px 48px; border: 1px solid color-mix(in srgb, var(--event) 30%, transparent); border-radius: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--event) 8%, transparent), rgba(5,12,22,.96) 66%); color: #eef5fa; cursor: pointer; text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,.28); transition: transform .22s, border-color .22s, opacity .22s, filter .22s; }
.timeline-event::before { content: ""; position: absolute; left: 17px; top: 16px; width: 19px; height: 19px; border: 1px solid var(--event); border-radius: 50%; box-shadow: 0 0 13px color-mix(in srgb, var(--event) 45%, transparent); }
.timeline-event::after { content: ""; position: absolute; left: 26px; top: 36px; width: 1px; height: calc(100% - 50px); background: linear-gradient(var(--event), transparent); }
.timeline-event[data-category="origin"] { --event: var(--timeline-gold); }
.timeline-event[data-category="civilization"] { --event: var(--timeline-green); }
.timeline-event[data-category="system"] { --event: var(--timeline-violet); }
.timeline-event[data-category="earth"] { --event: var(--timeline-orange); }
.timeline-event[data-category="kingquoc"] { --event: var(--timeline-red); }
.timeline-event:hover, .timeline-event:focus-visible, .timeline-event.is-selected, .timeline-event.is-trace { z-index: 12; transform: translateY(-4px); border-color: color-mix(in srgb, var(--event) 85%, white); box-shadow: 0 15px 38px rgba(0,0,0,.34), 0 0 28px color-mix(in srgb, var(--event) 22%, transparent); }
.timeline-event.is-neighbor { border-color: color-mix(in srgb, var(--event) 60%, transparent); }
.timeline-event.is-dimmed { opacity: .16; filter: grayscale(.65); }
.timeline-event.is-filtered { display: none; }
.timeline-event-code { display: block; color: color-mix(in srgb, var(--event) 80%, white); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.timeline-event h3 { margin: 7px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.02; }
.timeline-event p { margin: 7px 0 0; color: #91a4b6; font-size: 10px; line-height: 1.45; }
.timeline-event-state { display: inline-block; margin-top: 10px; padding: 4px 6px; border: 1px solid color-mix(in srgb, var(--event) 35%, transparent); border-radius: 999px; color: color-mix(in srgb, var(--event) 80%, white); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.timeline-legend { position: absolute; z-index: 15; left: 18px; bottom: 18px; width: 210px; padding: 14px; border: 1px solid var(--timeline-line); border-radius: 12px; background: rgba(4,10,19,.92); }
.timeline-legend h3 { margin: 0 0 10px; color: #90a3b5; font-size: 9px; letter-spacing: .14em; }
.timeline-legend ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.timeline-legend li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; color: #91a3b5; font-size: 9px; }
.legend-state { width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; }
.legend-state.canon { background: var(--timeline-gold); box-shadow: 0 0 8px var(--timeline-gold); }
.legend-state.legendary { background: var(--timeline-violet); box-shadow: 0 0 8px var(--timeline-violet); }
.legend-state.unresolved { background: var(--timeline-red); box-shadow: 0 0 8px var(--timeline-red); }
.legend-line { height: 2px; }
.legend-line.chronology { background: #89a8bf; }
.legend-line.influence { background: repeating-linear-gradient(90deg, var(--timeline-violet) 0 5px, transparent 5px 9px); }

.timeline-dossier { height: 790px; overflow: auto; border: 1px solid var(--timeline-line); border-radius: 20px; background: radial-gradient(circle at 100% 0, rgba(230,199,124,.07), transparent 28%), linear-gradient(180deg, rgba(8,17,29,.98), rgba(4,10,18,.98)); box-shadow: 0 28px 80px rgba(0,0,0,.3); scrollbar-color: rgba(230,199,124,.5) rgba(4,9,17,.55); }
.timeline-dossier-head { position: sticky; z-index: 4; top: 0; min-height: 56px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--timeline-line); background: rgba(5,12,22,.97); backdrop-filter: blur(14px); }
.timeline-dossier-head span { color: var(--timeline-gold); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.timeline-dossier-head button { width: 34px; height: 34px; border: 1px solid var(--timeline-line); border-radius: 8px; background: rgba(9,18,30,.8); color: #9fb1c2; cursor: pointer; }
.timeline-dossier-body { padding: 26px; }
.timeline-dossier-eyebrow { margin: 0; color: #d7bd7d; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.timeline-dossier h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(38px, 3vw, 54px); font-weight: 400; letter-spacing: -.04em; line-height: .94; overflow-wrap: anywhere; }
.timeline-dossier-subtitle { margin: 15px 0 0; color: #a3b4c3; font-size: 11px; font-weight: 800; letter-spacing: .07em; line-height: 1.45; text-transform: uppercase; }
.timeline-dossier-summary { margin: 22px 0 0; color: #c0ccd7; font-size: 14px; line-height: 1.72; }
.timeline-dossier-facts { margin-top: 24px; border-top: 1px solid var(--timeline-line); }
.timeline-dossier-facts div { padding: 14px 0; border-bottom: 1px solid rgba(131,173,205,.1); }
.timeline-dossier-facts dt { color: #7e93a7; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.timeline-dossier-facts dd { margin: 7px 0 0; color: #d6e0e8; font-size: 13px; line-height: 1.55; }
.timeline-dossier blockquote { margin: 24px 0 0; padding: 17px 0 17px 18px; border-left: 2px solid var(--timeline-gold); color: #d5dee6; font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.timeline-links { margin-top: 24px; }
.timeline-links h3, .timeline-related h3 { margin: 0 0 10px; color: #8297aa; font-size: 9px; letter-spacing: .14em; }
.timeline-links a, .timeline-related button { width: 100%; min-height: 44px; margin-top: 7px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--timeline-line); border-radius: 8px; background: rgba(8,17,29,.72); color: #d9e3eb; cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-align: left; }
.timeline-links a:hover, .timeline-related button:hover { border-color: rgba(230,199,124,.55); color: #f1dfb4; }
.timeline-related { margin-top: 24px; }
.timeline-related button span { color: #8399ad; font-size: 8px; }
.timeline-dossier-help { margin: 24px 0 0; color: #6f8497; font-size: 8px; font-weight: 800; letter-spacing: .13em; }

.timeline-arcs, .timeline-laws, .timeline-return { width: var(--timeline-page); margin: 0 auto; }
.timeline-arcs { padding: 100px 0; border-top: 1px solid var(--timeline-line); }
.timeline-arcs > header, .timeline-laws > header { margin-bottom: 36px; }
.timeline-arc-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; padding: 1px; background: rgba(131,173,205,.14); }
.timeline-arc-grid article { min-height: 280px; padding: 24px; display: flex; flex-direction: column; background: #050c16; }
.timeline-arc-grid article > span { color: #d5b874; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.timeline-arc-grid h3 { margin: 18px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.08; }
.timeline-arc-grid p { margin: 14px 0 22px; color: #94a6b8; font-size: 13px; line-height: 1.62; }
.timeline-arc-grid button { margin-top: auto; padding: 0; border: 0; background: transparent; color: #d9bf87; cursor: pointer; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.timeline-laws { padding: 100px 0; }
.timeline-laws ol { margin: 0; padding: 1px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; list-style: none; background: rgba(131,173,205,.14); }
.timeline-laws li { min-height: 230px; padding: 25px; display: flex; gap: 16px; background: #050c16; }
.timeline-laws li > span { color: var(--timeline-gold); font-family: var(--serif); font-size: 21px; }
.timeline-laws b { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.timeline-laws p { color: #93a5b7; font-size: 14px; line-height: 1.62; }
.timeline-return { margin-bottom: 100px; padding: 42px; display: grid; grid-template-columns: 1fr minmax(300px,.7fr) auto; align-items: center; gap: 40px; border: 1px solid rgba(230,199,124,.2); background: rgba(7,14,24,.72); }
.timeline-return p { color: #9babbc; font-size: 14px; line-height: 1.65; }
.timeline-return .button { white-space: nowrap; }
.timeline-footer { border-top-color: var(--timeline-line); background: rgba(3,8,15,.88); }

@keyframes timelineSpin { to { transform: rotate(360deg); } }
@keyframes timelineFlow { to { stroke-dashoffset: -20; } }

@media (max-width: 1350px) {
  .timeline-atlas { --timeline-page: min(100% - 32px, 1240px); }
  .timeline-hero { grid-template-columns: 1fr .52fr; }
  .timeline-workspace { grid-template-columns: 1fr; }
  .timeline-dossier { height: auto; max-height: 760px; }
  .timeline-arc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .timeline-laws ol { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .timeline-return { grid-template-columns: 1fr 1fr; }
  .timeline-return .button { grid-column: 1 / -1; width: max-content; }
}

@media (max-width: 900px) {
  .timeline-header { grid-template-columns: 1fr auto; }
  .timeline-header .primary-nav { display: none; }
  .timeline-hero { min-height: 680px; grid-template-columns: 1fr; padding-top: 78px; }
  .timeline-hero-clock { position: absolute; z-index: 0; right: -170px; top: 70px; width: 520px; opacity: .36; }
  .timeline-stats { grid-template-columns: repeat(2,1fr); }
  .timeline-stats div:nth-child(2) { border-right: 0; }
  .timeline-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(131,173,205,.12); }
  .timeline-coordinate { grid-template-columns: auto 1fr; padding-block: 12px; }
  .timeline-coordinate b { grid-column: 1 / -1; }
  .timeline-section-head { grid-template-columns: 1fr; gap: 24px; }
  .timeline-guardrail { grid-template-columns: auto 1fr; }
  .timeline-guardrail a { grid-column: 1 / -1; }
  .timeline-filter-row, .timeline-trace-row { grid-template-columns: 1fr; }
  .timeline-viewport { height: 680px; }
  .timeline-return { grid-template-columns: 1fr; }
  .timeline-return .button { grid-column: auto; }
}

@media (max-width: 650px) {
  .timeline-atlas { --timeline-page: calc(100% - 24px); }
  .timeline-header { padding-inline: 12px; }
  .timeline-header .brand small, .timeline-sound span:last-child { display: none; }
  .timeline-hero { min-height: 640px; padding: 66px 0 38px; }
  .timeline-hero h1 { font-size: clamp(52px, 16vw, 74px); }
  .timeline-deck { font-size: 16px; }
  .timeline-actions { display: grid; }
  .timeline-stats div { padding-inline: 11px; }
  .timeline-coordinate { gap: 9px; font-size: 8px; }
  .timeline-section { padding-top: 66px; }
  .timeline-section-head h2, .timeline-arcs h2, .timeline-laws h2, .timeline-return h2 { font-size: 50px; }
  .timeline-controls { margin-inline: -4px; padding: 11px; }
  .timeline-filter-row > div, .timeline-trace-row > div { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .timeline-controls button { flex: 0 0 auto; }
  .timeline-workspace { margin-inline: -4px; }
  .timeline-viewport { height: 610px; border-radius: 14px; }
  .timeline-dossier { max-height: none; border-radius: 14px; }
  .timeline-dossier-body { padding: 21px; }
  .timeline-arcs, .timeline-laws { padding: 76px 0; }
  .timeline-arc-grid, .timeline-laws ol { grid-template-columns: 1fr; }
  .timeline-arc-grid article, .timeline-laws li { min-height: 0; }
  .timeline-return { padding: 28px 22px; margin-bottom: 72px; }
  .timeline-return .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .clock-ring, .timeline-relation.is-trace { animation: none; }
  .timeline-event { transition: none; }
}
