.history {
    --history-accent: #eee;
    --history-progress: 0;
    color: #f5f4f0;
    background: #101112;
    position: relative;
    isolation: isolate;
    scroll-margin-top: 0;
}
.history-cover { max-width: 1680px; margin: auto; padding: 112px var(--page-gutter) 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; }
.history-eyebrow { font: 400 10px/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 25px; }
.history-cover h2 { margin: 0; font: 700 clamp(65px, 7.4vw, 122px)/.91 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.history-cover h2 span, .history-story h3 span, .history-closing p span { display: block; }
.history-cover h2 span:first-child { color: #999; }
.history-lead { max-width: 385px; margin: 30px 0; font-size: 15px; line-height: 1.8; color: #bcbdbf; }
.history-scroll { display: inline-flex; align-items: center; gap: 20px; padding: 12px 0; font: 11px/1.5 var(--font-mono); }
.history-scroll span { font: 24px/1 var(--font-body); }
.history-cover-album { position: relative; margin: 0; height: clamp(440px, 43vw, 630px); }
.history-snapshot { position: absolute; padding: 7px; background: #e9e6df; box-shadow: 0 16px 35px #0005; transform: translateY(var(--album-shift, 0px)) rotate(var(--rotation)); }
.history-snapshot img { display: block; width: 100%; height: auto; filter: grayscale(1); }
.history-snapshot--0 { width: 58%; top: 3%; left: 20%; --rotation: 5deg; }
.history-snapshot--1 { width: 49%; left: 0; top: 48%; --rotation: -9deg; }
.history-snapshot--2 { width: 48%; right: -1%; top: 63%; --rotation: 7deg; }
.history-cover-album figcaption { position: absolute; left: 6%; bottom: 0; font: 9px/1.7 var(--font-mono); color: #aaa; letter-spacing: .05em; text-transform: uppercase; }
.history-journey { position: relative; }
.history-nav { position: sticky; top: 0; z-index: 5; background: #101112f5; border-top: 1px solid #ffffff21; border-bottom: 1px solid #ffffff21; }
.history-nav ol { display: flex; max-width: 1470px; margin: auto; padding: 0 var(--page-gutter); list-style: none; }
.history-nav li { flex: 1; min-width: 0; }
.history-nav a { min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 8px; color: #a1a5aa; font: 11px/1.4 var(--font-mono); transition: color .2s, background .2s; }
.history-nav-number { color: #737980; font-size: 9px; }
.history-nav-text small { display: block; margin-top: 4px; font-size: 9px; opacity: .75; }
.history-nav a[aria-current="step"], .history-nav a:hover { color: var(--history-accent); background: #ffffff08; }
.history-nav a[aria-current="step"] .history-nav-number { color: var(--history-accent); }
.history-nav a:focus-visible { outline-offset: -4px; outline-color: #f580b7; }
.history-progress { position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; transform: scaleX(var(--history-progress)); transform-origin: left; background: var(--history-accent); }
.history-chapter { --photo-shift: 0px; --year-shift: 0px; --reveal: 1; --photo-gray: var(--chapter-gray); position: relative; scroll-margin-top: 70px; background: linear-gradient(110deg, transparent, rgb(47 148 255 / var(--chapter-blue))); border-bottom: 1px solid #ffffff13; }
.history-scene { max-width: 1680px; margin: auto; position: relative; padding: 78px var(--page-gutter); display: grid; grid-template-columns: .86fr 1.14fr; column-gap: 8%; align-items: center; min-height: 780px; }
.history-watermark { position: absolute; top: 3%; right: 4%; z-index: 0; font: 700 clamp(130px, 20vw, 320px)/1 var(--font-display); color: #ffffff05; -webkit-text-stroke: 1px #ffffff1c; pointer-events: none; transform: translateY(var(--year-shift)); }
.history-story { position: relative; z-index: 1; max-width: 490px; }
.history-chapter-count { margin-bottom: 18px; color: #b2b6ba; font-size: 9px; }
.history-chapter-count span { color: #838890; margin-left: 12px; }
.history-year { margin: 0 0 11px; font: 600 clamp(28px, 2.7vw, 43px)/1 var(--font-display); letter-spacing: .03em; color: #d6e2e7; }
.history-location { font: 9px/1.8 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: #a4adb5; margin: 0 0 25px; }
.history-story h3 { font: 700 clamp(46px, 4.5vw, 74px)/.96 var(--font-display); text-transform: uppercase; margin: 0 0 26px; letter-spacing: -.015em; }
.history-body { font-size: 14px; line-height: 1.8; color: #d2d5d8; margin: 0 0 14px; }
.history-body--detail { color: #a8b1bb; font-size: 13px; }
.history-stat { display: flex; align-items: center; gap: 18px; margin-top: 27px; padding-top: 20px; border-top: 1px solid #ffffff26; }
.history-stat strong { font: 600 52px/1 var(--font-display); color: #e0eaf0; }
.history-stat span { max-width: 200px; font: 10px/1.7 var(--font-mono); text-transform: uppercase; color: #b3bdc8; }
.history-source { display: inline-flex; gap: 14px; font-size: 11px; color: #a9c1d0; padding: 18px 0 8px; }
.history-source:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.history-photo { position: relative; z-index: 1; margin: 0; transform: translateY(var(--photo-shift)); }
.history-photo-frame { position: relative; }
.history-photo img { display: block; width: 100%; height: auto; max-height: 63svh; object-fit: contain; filter: grayscale(var(--photo-gray)); }
.history-photo figcaption { padding: 14px 0 0; color: #959fa8; font: 9px/1.7 var(--font-mono); }
.history-chapter--reverse .history-story { grid-column: 2; grid-row: 1; }
.history-chapter--reverse .history-photo { grid-column: 1; grid-row: 1; }
.history-chapter--reverse .history-scene { grid-template-columns: 1.14fr .86fr; }
.history-chapter--alpine { background: linear-gradient(110deg, #053483, #09274a 52%, #291728); }
.history-chapter--alpine .history-scene { grid-template-columns: 1.05fr .95fr; }
.history-chapter--alpine .history-story { max-width: 530px; }
.history-chapter--alpine .history-story h3 span:last-child, .history-chapter--alpine .history-stat strong { color: #f580b7; }
.history-chapter--alpine .history-year { color: #80c9ff; }
.history-chapter--alpine .history-photo img { max-height: 76svh; object-position: center; }
.history-chapter--alpine .history-photo figcaption { color: #b8c9de; }
.history-chapter--alpine .history-watermark { color: #8fcbff0d; -webkit-text-stroke-color: #85c3f83b; }
.history-closing { padding: 75px var(--page-gutter) 80px; text-align: center; background: linear-gradient(#101923, #08121c); }
.history-closing p { font: 700 clamp(44px, 5.5vw, 86px)/.97 var(--font-display); text-transform: uppercase; margin: 0 0 30px; }
.history-closing p span:last-child { color: #f580b7; }
.history-closing a { display: inline-flex; gap: 25px; border-bottom: 1px solid #75bcf2; padding: 10px 0; color: #90d3ff; font-size: 12px; }
.history-credits { background: #08121c; padding: 0 var(--page-gutter) 45px; color: #98aabc; font-size: 11px; line-height: 1.8; }
.history-credits summary { cursor: pointer; width: fit-content; padding: 10px 0; }
.history-credits p { max-width: 900px; }
.history-credits ul { padding-left: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 35px; max-width: 1100px; }
.history-credits a { text-decoration: underline; text-underline-offset: 3px; }
/* CSS remains a complete, readable story without JS or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .history.is-motion .history-photo-frame { clip-path: inset(calc((1 - var(--reveal)) * 12%) 0 0); opacity: calc(.35 + var(--reveal) * .65); }
    .history.is-motion .history-story h3 { transform: translateY(calc((1 - var(--reveal)) * 28px)); opacity: calc(.35 + var(--reveal) * .65); }
    .history.is-motion .history-body, .history.is-motion .history-stat { transform: translateY(calc((1 - var(--reveal)) * 18px)); opacity: calc(.45 + var(--reveal) * .55); }
}
@media (max-width: 1200px) {
    .history-scene { column-gap: 5%; }
    .history-nav ol { padding: 0 20px; }
    .history-nav a { gap: 6px; font-size: 10px; }
}
@media (max-width: 1000px) {
    .history-cover { padding-top: 85px; padding-bottom: 85px; }
    .history-cover h2 { font-size: clamp(51px, 7.5vw, 76px); }
    .history-cover-album { height: 430px; }
    .history-snapshot--1 { top: 43%; }
    .history-snapshot--2 { top: 59%; }
    .history-nav ol { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #657889 transparent; }
    .history-nav li { flex: 0 0 auto; }
    .history-nav a { min-height: 58px; padding: 10px 15px; }
    .history-scene, .history-chapter--reverse .history-scene, .history-chapter--alpine .history-scene { min-height: 0; padding-top: 68px; padding-bottom: 68px; }
    .history-story h3 { font-size: 46px; }
    .history-photo img { max-height: none; }
    .history-chapter { scroll-margin-top: 62px; }
}
@media (max-width: 700px) {
    .history-cover { grid-template-columns: 1fr; padding-top: 66px; padding-bottom: 50px; gap: 36px; }
    .history-cover h2 { font-size: clamp(62px, 13vw, 91px); }
    .history-eyebrow { font-size: 9px; letter-spacing: .06em; }
    .history-lead { font-size: 14px; margin: 25px 0 14px; }
    .history-scroll { font-size: 10px; }
    .history-cover-album { height: auto; aspect-ratio: 1 / 1.12; width: 96%; margin: 0 auto; }
    .history-snapshot--0 { width: 55%; top: 0; }
    .history-snapshot--1 { width: 48%; top: 45%; }
    .history-snapshot--2 { width: 47%; top: 62%; }
    .history-cover-album figcaption { font-size: 8px; bottom: -8px; left: 0; }
    .history-nav ol { padding: 0 12px; }
    .history-nav a { padding: 8px 12px; }
    .history-scene, .history-chapter--reverse .history-scene, .history-chapter--alpine .history-scene { display: flex; flex-direction: column; gap: 32px; padding: 55px var(--page-gutter) 52px; align-items: stretch; }
    .history-story { max-width: none; }
    .history-year { font-size: 31px; }
    .history-story h3 { font-size: clamp(45px, 10vw, 65px); margin-bottom: 23px; }
    .history-location { margin-bottom: 20px; }
    .history-body { font-size: 14px; }
    .history-stat { margin-top: 24px; }
    .history-stat strong { font-size: 48px; }
    .history-photo { width: 100%; }
    .history-photo img { max-height: none; }
    .history-photo figcaption { font-size: 9px; }
    .history-watermark { top: 55px; right: 20px; font-size: 150px; color: #ffffff04; }
    .history-chapter--alpine .history-photo { width: min(100%, 450px); align-self: center; }
    .history-chapter--alpine .history-photo img { max-height: none; }
    .history-closing { padding-top: 60px; padding-bottom: 50px; }
    .history-closing a { gap: 14px; font-size: 11px; }
    .history-credits ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .history-snapshot { transform: rotate(var(--rotation)); }
    .history-photo, .history-watermark { transform: none; }
}

/* Vertical document scroll drives a sticky horizontal stage. */
.history.is-horizontal .history-journey { height: var(--journey-height); }
.history.is-horizontal .history-stage { position: sticky; top: 0; height: 100svh; }
.history.is-horizontal .history-nav { position: relative; }
.history.is-horizontal .history-viewport { position: relative; isolation: isolate; overflow: hidden; height: calc(100% - var(--history-nav-height, 72px)); background: #101112; }
.history.is-horizontal .history-viewport::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, #053483, #09274a 52%, #291728); opacity: var(--history-color, 0); }
.history.is-horizontal .history-track { display: flex; height: 100%; transform: translate3d(var(--track-x, 0px), 0, 0); will-change: transform; }
.history.is-horizontal .history-chapter { flex: 0 0 100%; min-width: 0; height: 100%; border: 0; background: transparent; }
.history.is-horizontal .history-scene { height: 100%; min-height: 0; padding-top: 35px; padding-bottom: 35px; }
.history.is-horizontal .history-photo img { max-height: 59svh; }
.history.is-horizontal .history-chapter--alpine .history-photo img { max-height: 73svh; }
@media (max-width: 1000px) and (min-width: 701px) {
    .history.is-horizontal .history-scene { column-gap: 5%; padding-left: 35px; padding-right: 35px; }
    .history.is-horizontal .history-story h3 { font-size: 39px; }
    .history.is-horizontal .history-body { font-size: 12px; }
    .history.is-horizontal .history-body--detail { font-size: 11px; }
}
@media (max-width: 700px) {
    .history.is-horizontal .history-scene { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 16px 25px; }
    .history.is-horizontal .history-photo { order: -1; flex-shrink: 0; width: 100%; }
    .history.is-horizontal .history-photo img { width: 100%; height: clamp(135px, 24svh, 225px); max-height: none; object-fit: contain; }
    .history.is-horizontal .history-chapter--alpine .history-photo img { height: clamp(150px, 24svh, 250px); max-height: none; object-fit: cover; object-position: 50% 20%; }
    .history.is-horizontal .history-photo figcaption { padding-top: 6px; font-size: 9px; line-height: 1.5; }
    .history.is-horizontal .history-story { max-width: 470px; width: 100%; align-self: center; }
    .history.is-horizontal .history-chapter-count { font-size: 8px; margin-bottom: 6px; }
    .history.is-horizontal .history-year { font-size: 24px; margin-bottom: 6px; }
    .history.is-horizontal .history-location { font-size: 8px; margin-bottom: 12px; line-height: 1.4; }
    .history.is-horizontal .history-story h3 { font-size: clamp(34px, 9.5vw, 42px); margin-bottom: 13px; }
    .history.is-horizontal .history-body { font-size: 13px; line-height: 1.55; margin-bottom: 10px; }
    .history.is-horizontal .history-body--detail { font-size: 12px; line-height: 1.55; }
    .history.is-horizontal .history-stat { margin-top: 13px; padding-top: 11px; gap: 14px; }
    .history.is-horizontal .history-stat strong { font-size: 34px; }
    .history.is-horizontal .history-stat span { font-size: 8px; line-height: 1.5; max-width: 210px; }
    .history.is-horizontal .history-source { font-size: 10px; padding: 12px 0 0; }
    .history.is-horizontal .history-watermark { top: 32%; font-size: 125px; }
}
