:root {
  --ink: #1f2b2a;
  --muted: #566461;
  --paper: #f7f3e9;
  --paper-deep: #eee5d2;
  --surface: #fffdf8;
  --surface-2: #f3ecdd;
  --line: #d8cdb8;
  --sea: #1f6871;
  --sea-deep: #123f45;
  --sea-pale: #d9ecec;
  --stone: #a45d45;
  --stone-deep: #6d3528;
  --gorse: #c99a26;
  --heather: #76556f;
  --shadow: 0 18px 55px rgba(29, 43, 41, .12);
  --shadow-soft: 0 10px 28px rgba(29, 43, 41, .08);
  --radius-sm: .65rem;
  --radius: 1.1rem;
  --radius-lg: 1.8rem;
  --max: 76rem;
  --header-h: 4.6rem;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #eef4f1;
  --muted: #b9c4c0;
  --paper: #152321;
  --paper-deep: #1b2d2a;
  --surface: #1c302d;
  --surface-2: #223936;
  --line: #38504b;
  --sea: #73c0c4;
  --sea-deep: #0d464d;
  --sea-pale: #243f3d;
  --stone: #db866a;
  --stone-deep: #f0b09a;
  --gorse: #efc75d;
  --heather: #c8a1c1;
  --shadow: 0 18px 55px rgba(0, 0, 0, .34);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, .22);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-width: 20rem;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sea); text-underline-offset: .19em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: var(--gorse); color: #17201f; }
:focus-visible { outline: .2rem solid var(--gorse); outline-offset: .2rem; }

.skip-link {
  position: fixed; z-index: 9999; top: .5rem; left: .5rem;
  padding: .7rem 1rem; border-radius: .5rem; background: var(--ink); color: var(--paper);
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 1000; height: .2rem; background: transparent; }
.scroll-progress > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gorse), var(--stone)); }

.site-header {
  position: sticky; top: 0; z-index: 900; min-height: var(--header-h);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px) saturate(130%);
}
.header-inner { width: min(calc(100% - 2rem), var(--max)); min-height: var(--header-h); margin-inline: auto; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand img { width: 2.8rem; height: 2.8rem; background: var(--sea-deep); border-radius: 50%; padding: .28rem; box-shadow: var(--shadow-soft); }
.brand-name { font-family: ui-serif, Georgia, Cambria, serif; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.brand-name span { display: block; font-family: system-ui, sans-serif; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin-top: .16rem; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; padding: 0; margin: 0; list-style: none; }
.nav-list a { display: block; padding: .55rem .65rem; border-radius: .5rem; color: var(--muted); font-size: .89rem; font-weight: 650; text-decoration: none; }
.nav-list a:hover { color: var(--ink); background: var(--surface-2); }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--sea-pale); box-shadow: inset 0 -2px 0 var(--sea); }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-button { display: inline-grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.icon-button:hover { transform: translateY(-1px); border-color: var(--sea); }
.nav-toggle { display: none; }
.theme-icon::before { content: "◐"; font-size: 1.25rem; }

main { overflow: clip; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.container--narrow { width: min(calc(100% - 2rem), 50rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section--compact { padding-block: clamp(2.8rem, 6vw, 5rem); }
.section--surface { background: var(--surface); }
.section--deep { background: var(--sea-deep); color: #f5f4ec; }
.section--paper-deep { background: var(--paper-deep); }
.section + .section { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.eyebrow { display: inline-flex; gap: .45rem; align-items: center; color: var(--stone); font-size: .77rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.9rem; height: .15rem; border-radius: 99px; background: currentColor; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 30rem); align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-head h2, .page-intro h1, .hero h1, .display-title { font-family: ui-serif, Georgia, Cambria, serif; text-wrap: balance; }
.section-head h2 { max-width: 15ch; margin: .35rem 0 0; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section--deep .section-head p, .section--deep .muted { color: #cadbd7; }
.lede { font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.65; color: var(--muted); }
.prose { max-width: 47rem; }
.prose > * + * { margin-top: 1.3em; }
.prose h2, .prose h3 { font-family: ui-serif, Georgia, serif; line-height: 1.15; letter-spacing: -.025em; }
.prose h2 { font-size: 2.1rem; margin-top: 2em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.7em; }
.prose p { margin-bottom: 0; }
.prose blockquote { margin: 2rem 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: .35rem solid var(--gorse); font: italic 1.35rem/1.55 ui-serif, Georgia, serif; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.kicker { color: var(--gorse); font-size: .77rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.source-ref { display: inline-flex; vertical-align: super; margin-left: .15em; color: var(--sea); font-size: .62em; font-weight: 800; text-decoration: none; }
.source-ref:hover { text-decoration: underline; }

.hero { position: relative; min-height: clamp(39rem, 82vh, 56rem); display: grid; align-items: end; isolation: isolate; color: #fffdf5; background: #173f43; }
.hero--short { min-height: clamp(28rem, 62vh, 40rem); }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { margin: 0; z-index: -2; }
.hero-media img { object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,22,.16) 12%, rgba(8,25,26,.3) 45%, rgba(7,19,20,.92) 100%), linear-gradient(90deg, rgba(8,25,26,.4), transparent 65%); }
.hero-content { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; padding: clamp(5rem, 12vw, 9rem) 0 clamp(3.3rem, 7vw, 6.5rem); }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; background: rgba(11,32,33,.48); backdrop-filter: blur(8px); font-size: .79rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gorse); box-shadow: 0 0 0 .25rem rgba(201,154,38,.18); }
.hero h1 { max-width: 14ch; margin: 0; font-size: clamp(3.5rem, 10vw, 8.4rem); line-height: .87; letter-spacing: -.06em; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero--short h1 { max-width: 18ch; font-size: clamp(3.2rem, 8vw, 6.8rem); }
.hero .lead { max-width: 43rem; margin: 1.4rem 0 0; color: rgba(255,255,255,.88); font-size: clamp(1.08rem, 2.1vw, 1.45rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-credit { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; max-width: 32rem; color: rgba(255,255,255,.75); font-size: .72rem; text-align: right; }
.hero-credit a { color: inherit; }

.page-intro { padding-block: clamp(4.5rem, 10vw, 8rem); background: radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--sea-pale) 75%, transparent), transparent 31%), var(--paper); }
.page-intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr); gap: clamp(2rem, 7vw, 6rem); align-items: end; }
.page-intro h1 { margin: .6rem 0 0; font-size: clamp(3.4rem, 9vw, 7.2rem); line-height: .9; letter-spacing: -.06em; }
.page-intro p { margin: 0; color: var(--muted); font-size: clamp(1.1rem, 2.3vw, 1.45rem); }
.breadcrumbs { display: flex; gap: .45rem; align-items: center; margin-bottom: 1rem; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { color: inherit; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.85rem; padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: .65rem; background: var(--sea); color: #fff; font-weight: 750; text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; background: var(--sea-deep); }
.button--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: none; }
.button--ghost:hover { background: var(--surface-2); border-color: var(--sea); }
.button--light { background: #fffdf5; color: #183b3e; }
.button--light:hover { background: #f3e6c9; }
.text-link { display: inline-flex; gap: .35rem; align-items: center; font-weight: 750; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .18s; }
.text-link:hover::after { transform: translateX(.25rem); }
.external-link::after { content: " ↗"; font-size: .82em; }

.stat-band { position: relative; z-index: 5; margin-top: -2rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 1.7rem clamp(1.2rem, 3vw, 2rem); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font: 800 clamp(2rem, 5vw, 3.7rem)/1 ui-serif, Georgia, serif; letter-spacing: -.05em; color: var(--stone); }
.stat span { display: block; margin-top: .45rem; color: var(--muted); font-size: .9rem; line-height: 1.4; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }
.card-body { padding: 1.45rem; }
.card h3 { margin: 0 0 .55rem; font: 750 1.45rem/1.15 ui-serif, Georgia, serif; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); }
.card p + p, .card p + a { margin-top: .9rem; }
.card-image { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); }
.card-image--wide { aspect-ratio: 16/9; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-image img { transform: scale(1.035); }
.card-label { display: inline-flex; padding: .35rem .58rem; border-radius: .45rem; background: var(--sea-pale); color: var(--sea); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .8rem; }
.feature-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); min-height: 29rem; }
.feature-card:nth-child(even) { grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.15fr); }
.feature-card:nth-child(even) .feature-image { order: 2; }
.feature-image { min-height: 23rem; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 4.5rem); }
.feature-copy h2 { margin: .45rem 0 1rem; font: 800 clamp(2.1rem, 4vw, 3.5rem)/1 ui-serif, Georgia, serif; letter-spacing: -.04em; }
.feature-copy p { color: var(--muted); }
.feature-copy > :last-child { margin-bottom: 0; }

.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 1.25rem; }
.story-grid .story-card:first-child { grid-row: span 2; }
.story-card { position: relative; min-height: 19rem; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: white; box-shadow: var(--shadow-soft); }
.story-card:first-child { min-height: 40rem; }
.story-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(5,20,21,.9)); }
.story-card:hover img { transform: scale(1.035); }
.story-card-content { position: absolute; inset: auto 0 0; padding: 1.5rem; }
.story-card h3 { margin: .35rem 0; font: 800 clamp(1.6rem, 4vw, 2.7rem)/1.05 ui-serif, Georgia, serif; letter-spacing: -.035em; }
.story-card p { margin: 0; color: rgba(255,255,255,.82); }

.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.7rem); border: 1px solid color-mix(in srgb, var(--gorse) 55%, var(--line)); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--gorse) 11%, var(--surface)), var(--surface)); }
.callout h2, .callout h3 { margin: 0; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.08 ui-serif, Georgia, serif; letter-spacing: -.035em; }
.callout p { max-width: 48rem; margin: .65rem 0 0; color: var(--muted); }

.quote-band { padding: clamp(4rem, 10vw, 8rem) 0; background: var(--sea-deep); color: #f8f5e9; }
.quote-band blockquote { max-width: 54rem; margin: 0; font: 500 clamp(2rem, 5vw, 4rem)/1.15 ui-serif, Georgia, serif; letter-spacing: -.035em; }
.quote-band cite { display: block; margin-top: 1.3rem; color: #b9d4d1; font: 650 .9rem/1.5 system-ui, sans-serif; font-style: normal; letter-spacing: normal; }

.timeline { position: relative; max-width: 62rem; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7.5rem; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 3rem; position: relative; padding: 0 0 3.2rem; }
.timeline-item::before { content: ""; position: absolute; left: 7.13rem; top: .55rem; width: .8rem; height: .8rem; border: .2rem solid var(--paper); border-radius: 50%; background: var(--stone); box-shadow: 0 0 0 1px var(--stone); }
.timeline-date { color: var(--stone); font-weight: 850; text-align: right; font-variant-numeric: tabular-nums; }
.timeline-copy h3 { margin: 0; font: 800 1.55rem/1.18 ui-serif, Georgia, serif; letter-spacing: -.025em; }
.timeline-copy p { margin: .55rem 0 0; color: var(--muted); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--top { align-items: start; }
.image-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.24); border-radius: inherit; pointer-events: none; }
.image-caption { margin-top: .75rem; color: var(--muted); font-size: .82rem; }
.number-list { display: grid; gap: 1.1rem; counter-reset: list; list-style: none; padding: 0; }
.number-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; counter-increment: list; }
.number-list li::before { content: counter(list, decimal-leading-zero); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sea-pale); color: var(--sea); font-weight: 850; }
.number-list h3 { margin: .1rem 0 .25rem; font: 750 1.15rem/1.3 ui-serif, Georgia, serif; }
.number-list p { margin: 0; color: var(--muted); }

.rail-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.archive-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background: #172523; }
.archive-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.archive-photo figcaption { padding: 1rem 1.1rem 1.2rem; background: var(--surface); color: var(--muted); font-size: .83rem; }
.archive-stamp { position: absolute; top: 1rem; left: 1rem; padding: .35rem .65rem; border-radius: .35rem; background: rgba(15,31,31,.78); color: white; font-weight: 850; letter-spacing: .1em; }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(8rem, 1fr)); gap: .7rem; overflow-x: auto; padding: .25rem 0 .8rem; scroll-snap-type: x proximity; }
.day-card { min-width: 8rem; min-height: 12rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); scroll-snap-align: start; }
.day-card strong { display: block; color: var(--stone); font-size: .77rem; letter-spacing: .1em; text-transform: uppercase; }
.day-card p { margin: 1.25rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.day-card--highlight { background: var(--sea-deep); color: white; border-color: var(--sea-deep); }
.day-card--highlight strong { color: var(--gorse); }
.day-card--highlight p { color: #cfdfdc; }

.route-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.route-table { width: 100%; border-collapse: collapse; min-width: 42rem; }
.route-table th, .route-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.route-table th { color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.route-table tr:last-child td { border-bottom: 0; }
.route-table td:first-child { font-weight: 800; }
.route-table .route-km { font: 800 1.3rem/1 ui-serif, Georgia, serif; color: var(--stone); }

.map-shell { padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.map-shell img { border-radius: calc(var(--radius-lg) - .5rem); }

.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.5rem; }
.filter-button { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); cursor: pointer; font-weight: 750; }
.filter-button:hover, .filter-button[aria-pressed="true"] { border-color: var(--sea); background: var(--sea-pale); color: var(--sea); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.gallery-card { grid-column: span 4; position: relative; margin: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: inherit; text-align: left; text-decoration: none; overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-card:nth-child(1), .gallery-card:nth-child(8) { grid-column: span 8; }
.gallery-card:nth-child(1) .gallery-image, .gallery-card:nth-child(8) .gallery-image { aspect-ratio: 16/9; }
.gallery-card[hidden] { display: none; }
.gallery-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-card:hover .gallery-image img { transform: scale(1.035); }
.gallery-image::after { content: "+"; position: absolute; right: .8rem; bottom: .8rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: rgba(18,45,46,.82); color: white; font-size: 1.3rem; opacity: 0; transform: translateY(.4rem); transition: opacity .2s, transform .2s; }
.gallery-card:hover .gallery-image::after, .gallery-card:focus-visible .gallery-image::after { opacity: 1; transform: none; }
.gallery-caption { padding: 1rem 1.1rem 1.15rem; }
.gallery-caption strong { display: block; font: 750 1.15rem/1.25 ui-serif, Georgia, serif; }
.gallery-caption span { display: block; margin-top: .35rem; color: var(--muted); font-size: .78rem; }
.gallery-card.is-archive .gallery-image { filter: saturate(.78) contrast(1.02); }

.lightbox { width: min(94vw, 76rem); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 32px 90px rgba(0,0,0,.45); overflow: hidden; }
.lightbox::backdrop { background: rgba(8,17,18,.78); backdrop-filter: blur(8px); }
.lightbox-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .55fr); min-height: 32rem; }
.lightbox-media { display: grid; place-items: center; min-height: 32rem; background: #111c1d; }
.lightbox-media img { max-width: 100%; max-height: 78vh; width: auto; height: auto; }
.lightbox-info { padding: 2rem; overflow-y: auto; }
.lightbox-info h2 { margin: 1rem 0 .7rem; font: 800 2rem/1.08 ui-serif, Georgia, serif; letter-spacing: -.03em; }
.lightbox-info p { color: var(--muted); }
.lightbox-meta { display: grid; gap: .55rem; margin: 1.4rem 0; padding: 1rem 0; border-block: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.lightbox-close { position: absolute; top: .8rem; right: .8rem; z-index: 3; background: rgba(20,39,39,.88); color: white; border-color: rgba(255,255,255,.25); }
.lightbox-nav { display: flex; gap: .6rem; margin-top: 1.5rem; }

.source-group { padding: 2rem 0; border-top: 1px solid var(--line); }
.source-group:first-child { border-top: 0; }
.source-group h2 { margin: 0 0 1.2rem; font: 800 2rem/1.1 ui-serif, Georgia, serif; }
.source-list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.source-item { scroll-margin-top: 7rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.source-item:target { border-color: var(--gorse); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--gorse) 25%, transparent); }
.source-key { display: inline-flex; min-width: 2.4rem; justify-content: center; margin-right: .5rem; padding: .18rem .4rem; border-radius: .35rem; background: var(--sea-pale); color: var(--sea); font-size: .72rem; font-weight: 850; }
.source-item strong { font-family: ui-serif, Georgia, serif; }
.source-item p { margin: .55rem 0 0; color: var(--muted); font-size: .9rem; }
.credit-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.credit-table th, .credit-table td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.credit-table th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.credit-table td:first-child { font-weight: 750; }

.notice { padding: 1.15rem 1.25rem; border-left: .35rem solid var(--gorse); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: color-mix(in srgb, var(--gorse) 10%, var(--surface)); }
.notice strong { display: block; margin-bottom: .25rem; }
.notice p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.tag { padding: .32rem .55rem; border-radius: .4rem; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 700; }

.site-footer { padding: 3.5rem 0 1.5rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, minmax(9rem, .55fr)); gap: 2rem; }
.footer-brand p { max-width: 29rem; color: var(--muted); }
.footer-title { margin: 0 0 .7rem; font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .45rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.8rem; padding-top: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 500; opacity: 0; pointer-events: none; transform: translateY(.7rem); transition: opacity .2s, transform .2s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 68rem) {
  .nav-list a { padding-inline: .45rem; font-size: .82rem; }
  .brand-name span { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .week-grid { grid-template-columns: repeat(7, 9rem); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2; }
}

@media (max-width: 54rem) {
  :root { --header-h: 4.2rem; }
  .nav-toggle { display: inline-grid; }
  .site-nav { position: fixed; top: calc(var(--header-h) - .1rem); left: 1rem; right: 1rem; margin: 0; padding: .65rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-.5rem); transition: opacity .18s, transform .18s, visibility .18s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .nav-list a { padding: .8rem; font-size: .94rem; }
  .section-head, .page-intro-grid, .split, .feature-card, .feature-card:nth-child(even), .lightbox-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .section-head h2 { max-width: 20ch; }
  .feature-card:nth-child(even) .feature-image { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .story-grid .story-card:first-child { grid-row: auto; }
  .story-card:first-child { min-height: 26rem; }
  .gallery-card, .gallery-card:nth-child(1), .gallery-card:nth-child(8) { grid-column: span 6; }
  .lightbox { overflow-y: auto; }
  .lightbox-media { min-height: 18rem; }
  .lightbox-info { overflow: visible; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 40rem) {
  .container, .container--narrow, .header-inner, .hero-content { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand-name { font-size: .9rem; }
  .brand img { width: 2.45rem; height: 2.45rem; }
  .hero { min-height: 38rem; }
  .hero h1 { font-size: clamp(3.2rem, 18vw, 5.2rem); }
  .hero-credit { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .grid--2, .grid--3, .grid--4, .rail-pair { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .timeline::before { left: .45rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .4rem; padding-left: 2.2rem; }
  .timeline-item::before { left: .08rem; }
  .timeline-date { text-align: left; }
  .gallery-card, .gallery-card:nth-child(1), .gallery-card:nth-child(8) { grid-column: 1 / -1; }
  .gallery-card:nth-child(1) .gallery-image, .gallery-card:nth-child(8) .gallery-image { aspect-ratio: 4/3; }
  .nav-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .credit-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-actions, .filters, .site-footer, .back-to-top, .scroll-progress, .lightbox { display: none !important; }
  body { background: white; color: black; font-size: 10.5pt; }
  main { overflow: visible; }
  .hero, .hero--short { min-height: 0; color: black; background: white; }
  .hero-media { display: none; }
  .hero-content { padding: 2rem 0; }
  .hero h1 { color: black; text-shadow: none; font-size: 36pt; }
  .hero .lead { color: #333; }
  .section { padding-block: 2rem; }
  .card, .image-frame, .map-shell { box-shadow: none; break-inside: avoid; }
  a { color: black; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; }
}
