:root {
  --ink: #10130f;
  --paper: #d8d3c4;
  --paper-deep: #bcb6a5;
  --hedge: #253628;
  --hedge-light: #506348;
  --road: #4f524e;
  --orange: #e85822;
  --orange-hot: #ff6a2d;
  --mono: 'Space Mono', monospace;
  --serif: 'Instrument Serif', serif;
  --speed: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--mono); overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--orange); color: var(--ink); }

.skip-link { position: fixed; z-index: 999; left: 1rem; top: -5rem; padding: .9rem 1.1rem; background: var(--orange); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--orange-hot); outline-offset: 4px; }
.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .18; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

.course-header { position: fixed; z-index: 90; inset: 0 0 auto; height: 82px; color: #f0ecdf; display: grid; grid-template-columns: 220px 1fr 176px; align-items: center; background: linear-gradient(#0b0d0b 0%, rgba(11,13,11,.88) 70%, transparent); padding: 0 2.2vw; transition: background .35s; }
.wordmark { display: flex; align-items: center; gap: .65rem; text-decoration: none; width: max-content; }
.wordmark-no { font-family: var(--serif); font-size: 3.6rem; line-height: .8; color: var(--orange); font-style: italic; }
.wordmark-name { font-weight: 700; font-size: .62rem; line-height: 1; letter-spacing: .12em; }
.corner-nav { display: flex; justify-content: center; gap: clamp(.5rem, 1.5vw, 2rem); }
.corner-nav a { text-decoration: none; font-size: clamp(.48rem, .63vw, .64rem); letter-spacing: .04em; white-space: nowrap; opacity: .68; transition: opacity .2s, color .2s, transform .2s; padding: 1rem 0; }
.corner-nav a span { color: var(--orange); }
.corner-nav a b { display: block; margin-top: .3rem; color: #8d9488; font-size: .48rem; letter-spacing: .12em; }
.corner-nav a:hover { opacity: 1; color: var(--orange-hot); transform: translateY(-2px); }
.lap-clock { justify-self: end; position: relative; min-width: 150px; padding: .6rem .8rem .55rem 1rem; border: 1px solid rgba(255,255,255,.25); background: rgba(16,19,15,.72); backdrop-filter: blur(8px); }
.lap-clock span { display: block; font-size: .48rem; letter-spacing: .17em; color: #a9aea3; }
.lap-clock strong { display: block; margin-top: .12rem; font-size: 1rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.clock-light { position: absolute; width: 5px; height: 5px; border-radius: 50%; right: 8px; top: 8px; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero { position: relative; min-height: 100svh; height: 920px; max-height: 1080px; overflow: hidden; color: #f4efe1; background: var(--ink); }
.onboard { position: absolute; inset: 0; overflow: hidden; transform: scale(1.04); transition: filter 1s; }
.course-scene { width: 100%; height: 100%; display: block; transform: scale(1.06); will-change: transform; }
.speed-scrim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 58%, transparent 8%, rgba(8,10,8,.14) 44%, rgba(8,10,8,.76) 100%), linear-gradient(90deg, rgba(0,0,0,.38), transparent 30%, transparent 65%, rgba(0,0,0,.3)); }
.visor { position: absolute; inset: 0; border-top: 14vh solid rgba(5,7,5,.44); border-bottom: 7vh solid rgba(5,7,5,.62); box-shadow: inset 0 0 130px #080a08; }
.visor i { position: absolute; height: 1px; background: rgba(255,255,255,.3); width: 38vw; right: -5vw; top: 30%; transform: rotate(-2deg); animation: speedline calc(.42s / var(--speed)) linear infinite; }
.visor i:nth-child(2) { top: 48%; width: 24vw; animation-delay: -.17s; }
.visor i:nth-child(3) { top: 67%; width: 52vw; left: -8vw; animation-delay: -.31s; }
@keyframes speedline { from { transform: translateX(20vw) rotate(-2deg); opacity: 0; } 30% { opacity: .55; } to { transform: translateX(-65vw) rotate(-2deg); opacity: 0; } }
.cloud-a { animation: drift 18s linear infinite alternate; }
.cloud-b { animation: drift 25s linear infinite alternate-reverse; }
.far-world { animation: road-vibrate .14s linear infinite; }
.mid-left, .mid-right { animation: roadside-pulse calc(.8s / var(--speed)) linear infinite alternate; transform-origin: center bottom; }
.left-flash { animation: flash-left calc(2.8s / var(--speed)) linear infinite; }
.right-flash { animation: flash-right calc(3.7s / var(--speed)) linear infinite .9s; }
.phonebox { animation: landmark 6s cubic-bezier(.35,.01,.2,1) infinite; transform-origin: 1040px 510px; }
@keyframes drift { to { transform: translateX(120px); } }
@keyframes road-vibrate { 50% { transform: translateY(1.5px); } }
@keyframes roadside-pulse { to { transform: scaleX(1.05); } }
@keyframes flash-left { 0%, 62% { transform: translateX(-520px); } 100% { transform: translateX(820px); } }
@keyframes flash-right { 0%, 65% { transform: translateX(480px); } 100% { transform: translateX(-760px); } }
@keyframes landmark { 0%, 28% { transform: translate(330px,-60px) scale(.28); opacity: 0; } 48% { opacity: 1; } 80%,100% { transform: translate(-620px,230px) scale(3.1); opacity: 0; } }

.hero-copy { position: absolute; z-index: 3; left: 5vw; right: 5vw; top: 19%; }
.hero-kicker { display: flex; justify-content: space-between; font-size: .58rem; font-weight: 700; letter-spacing: .22em; opacity: 0; transform: translateY(16px); animation: reveal-up .6s .15s forwards; }
.hero h1 { margin: clamp(2rem, 7vh, 5.5rem) 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(8rem, 20vw, 19rem); line-height: .56; letter-spacing: -.065em; text-shadow: 0 10px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(50px); animation: reveal-up 1s .28s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 span { display: block; margin-left: .43em; font-style: italic; color: var(--orange-hot); }
.hero-deck { width: 54%; margin: 4rem 0 0 auto; display: flex; justify-content: space-between; align-items: flex-end; opacity: 0; animation: reveal-up .7s .8s forwards; }
.hero-deck > p:first-child { max-width: 430px; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.1; }
.hero-deck strong { color: var(--orange-hot); font-weight: 400; }
.live-speed { margin: 0; font-size: clamp(2.5rem, 4vw, 5rem); line-height: .7; font-variant-numeric: tabular-nums; }
.live-speed small { display: block; margin-top: .8rem; font-size: .55rem; letter-spacing: .2em; color: #c1c3ba; }
.start-marker { position: absolute; z-index: 4; left: 5vw; bottom: 4vh; display: flex; align-items: center; gap: 1.2rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }
.start-marker b { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--orange); transition: background .25s, transform .25s; }
.start-marker:hover b { background: var(--orange); color: var(--ink); transform: translateY(4px); }
.hero-stamp { position: absolute; z-index: 3; right: 4vw; bottom: 3.5vh; font-size: .5rem; letter-spacing: .16em; line-height: 1.8; text-align: right; color: #b9bcb2; }
.hero-stamp b { color: var(--orange); }
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }

.section-index { display: flex; align-items: center; gap: 1.3rem; font-size: .58rem; letter-spacing: .15em; border-top: 1px solid rgba(16,19,15,.35); padding-top: 1rem; }
.section-index span { font-family: var(--serif); font-size: 2rem; font-style: italic; color: var(--orange); }
.section-index i { margin-left: auto; font-style: normal; color: #666b61; }
.section-index.light { border-color: rgba(255,255,255,.3); }
.section-index.light i { color: #aeb4a8; }
.eyebrow { margin: 0 0 1.7rem; color: var(--orange); text-transform: uppercase; letter-spacing: .18em; font-size: .6rem; font-weight: 700; }

.course-intro { position: relative; display: grid; grid-template-columns: .85fr 1.4fr 1fr; grid-template-rows: auto 1fr; gap: 4rem 5vw; min-height: 950px; padding: 7rem 5vw 9rem; background: var(--paper); }
.course-intro .section-index { grid-column: 1 / -1; }
.intro-title-wrap { grid-column: 1 / 3; }
.intro-title-wrap h2, .map-heading h2, .weather h2, .verandah h2, .memory-content h2, .sidecar h2, .finish h2 { margin: 0; font-family: var(--serif); font-size: clamp(4.7rem, 9vw, 9.4rem); line-height: .8; font-weight: 400; letter-spacing: -.055em; }
.intro-copy { grid-column: 3; align-self: end; max-width: 590px; }
.intro-copy p, .weather-copy > p:last-child, .verandah-copy > p:last-child, .sidecar-copy > p, .memory-content > p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
.intro-copy .lede { font-size: 1.8rem; line-height: 1.25; }
blockquote { margin: 4rem 0 0 -13vw; padding: 2rem 0 0 3rem; max-width: 540px; border-top: 1px solid #8b8b7f; font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1.15; }
blockquote cite { display: block; margin-top: 1.2rem; font-family: var(--mono); font-style: normal; font-size: .54rem; letter-spacing: .08em; }
.knowledge-wheel { position: absolute; left: 6vw; bottom: 6rem; width: 230px; height: 230px; border: 1px solid #7c7d73; border-radius: 50%; animation: wheel-turn 35s linear infinite; }
.knowledge-wheel::before, .knowledge-wheel::after { content: ''; position: absolute; inset: 25px; border: 1px dashed #98978a; border-radius: 50%; }
.knowledge-wheel::after { inset: 50%; width: 80px; height: 80px; transform: translate(-50%,-50%); background: var(--orange); border: 0; }
.wheel-core { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); color: var(--ink); text-align: center; }
.wheel-core strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: .7; }
.wheel-core span { font-size: .45rem; letter-spacing: .15em; }
.wheel-label { position: absolute; padding: .25rem; background: var(--paper); font-size: .48rem; letter-spacing: .08em; }
.w1 { top: -8px; left: 42%; }.w2 { right: -28px; top: 48%; }.w3 { bottom: -8px; left: 42%; }.w4 { left: -29px; top: 48%; }
@keyframes wheel-turn { to { transform: rotate(360deg); } }

.course-map { padding: 8rem 5vw; color: var(--paper); background: #1b211c; display: grid; grid-template-columns: .7fr 1.3fr; gap: 5vw; }
.map-heading { padding-top: 3rem; }
.map-heading h2 { font-size: clamp(4.2rem, 7vw, 7.5rem); }
.map-board { border: 1px solid #60675e; background: #232b24; padding: 2rem; box-shadow: 20px 20px 0 #131713; }
.map-board svg { width: 100%; height: auto; overflow: visible; }
.island { fill: #374238; stroke: #637060; stroke-width: 2; }
.route-shadow { fill: none; stroke: #111510; stroke-width: 20; }
.route { fill: none; stroke: var(--orange); stroke-width: 6; stroke-dasharray: 1 2; stroke-linecap: round; }
.map-point circle { fill: var(--paper); stroke: var(--orange); stroke-width: 4; }
.map-point text { fill: #d8d3c4; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; }
.sector-key { margin-top: 1rem; border-top: 1px solid #60675e; }
.sector-key div { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; min-height: 47px; border-bottom: 1px solid #4d554c; font-size: .57rem; }
.sector-key i { color: var(--orange); font-style: normal; }.sector-key b { font-variant-numeric: tabular-nums; }

.weather { --storm: .24; position: relative; min-height: 900px; overflow: hidden; padding: 7rem 5vw; color: #f2eee1; background: #354338; }
.weather-sky { position: absolute; inset: 0; background: linear-gradient(to bottom, hsl(calc(204 + var(--storm) * 12) 12% calc(73% - var(--storm) * 45%)), hsl(105 12% calc(52% - var(--storm) * 25%))); transition: background .2s; }
.sun-disc { position: absolute; width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; border-radius: 50%; left: 12vw; top: 16%; background: #ede1bd; box-shadow: 0 0 80px #f3dab0; opacity: calc(1 - var(--storm)); filter: blur(calc(var(--storm) * 12px)); transition: opacity .2s; }
.ridge { position: absolute; left: -5%; right: -5%; bottom: -4%; height: 50%; clip-path: polygon(0 63%, 10% 40%, 19% 55%, 30% 25%, 41% 52%, 54% 17%, 68% 56%, 81% 29%, 100% 61%, 100% 100%, 0 100%); }
.ridge-a { background: #253227; opacity: .72; transform: translateY(calc(var(--storm) * -20px)); }
.ridge-b { background: #111711; height: 37%; transform: translateX(4%); }
.rain-lines { position: absolute; inset: 0; opacity: calc(var(--storm) * .78); background-image: repeating-linear-gradient(105deg, transparent 0 19px, rgba(232,237,230,.4) 20px, transparent 21px 40px); transform: scale(1.4); animation: rain .25s linear infinite; }
@keyframes rain { to { background-position: -40px 60px; } }
.weather > *:not(.weather-sky) { position: relative; z-index: 2; }
.weather .section-index { margin-bottom: 9rem; }
.weather-copy { width: 58%; }
.weather-copy > p:last-child { max-width: 650px; margin-top: 3rem; }
.weather-console { position: absolute !important; right: 5vw; bottom: 7rem; width: min(38vw, 540px); padding: 2rem; border: 1px solid rgba(255,255,255,.4); background: rgba(12,17,13,.78); backdrop-filter: blur(12px); box-shadow: 20px 20px 0 rgba(8,11,8,.35); }
.forecast-readout { display: flex; justify-content: space-between; border-bottom: 1px solid #6b7069; padding-bottom: 1.5rem; margin-bottom: 1.5rem; font-size: .62rem; color: #bbc0b7; }
.forecast-readout strong { color: var(--orange-hot); font-size: 1.1rem; }
.weather-console label { display: block; font-size: .55rem; letter-spacing: .12em; margin-bottom: 1.2rem; }
.weather-console input { width: 100%; height: 44px; margin: 0; appearance: none; background: transparent; cursor: ew-resize; }
.weather-console input::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, #e2d5ae, #657166 55%, #202a23); }
.weather-console input::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; margin-top: -12px; border: 5px solid var(--orange); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--paper); }
.range-labels { display: flex; justify-content: space-between; font-size: .45rem; color: #9ba198; }
.weather-console dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 2rem 0 0; gap: 1px; background: #555d55; }
.weather-console dl div { background: #151b16; padding: .9rem; }
.weather-console dt { font-size: .42rem; color: #8f968d; }.weather-console dd { margin: .45rem 0 0; font-size: .7rem; }

.verandah { min-height: 840px; padding: 7rem 5vw 5rem; background: var(--paper); }
.verandah-grid { display: grid; grid-template-columns: .25fr 1.4fr .55fr; grid-template-rows: 1fr auto; gap: 4vw; margin-top: 7rem; min-height: 650px; }
.vertical-word { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 5vw, 6rem); color: #a8a493; opacity: .7; }
.verandah-copy h2 { font-size: clamp(4.5rem, 8vw, 8.5rem); }
.verandah-copy > p:last-child { max-width: 610px; margin: 3rem 0 0 auto; }
.brake-card { align-self: center; aspect-ratio: .72; background: var(--orange); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(2deg); box-shadow: 14px 16px 0 var(--ink); }
.brake-card span { font-size: .55rem; letter-spacing: .15em; }.brake-card strong { font-family: var(--serif); font-size: clamp(5rem,8vw,9rem); line-height: .7; font-weight: 400; }.brake-card small { font-family: var(--mono); font-size: .9rem; }.brake-card i { font-size: .55rem; font-style: normal; line-height: 1.7; }
.telemetry-strip { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #828277; border-bottom: 1px solid #828277; }
.telemetry-strip span { padding: 1.5rem 1rem; border-right: 1px solid #828277; font-size: .52rem; color: #5f625a; }.telemetry-strip span:last-child { border: 0; }.telemetry-strip b { display: block; font-family: var(--serif); font-size: 2.5rem; color: var(--ink); font-weight: 400; }

.memorial { position: relative; min-height: 1050px; overflow: hidden; color: #ddd9cc; background: #151a16; }
.memory-landscape { position: absolute; inset: 0; background: linear-gradient(#3b463e 0%, #202821 55%, #0f130f 100%); }
.memory-landscape::before { content: ''; position: absolute; width: 36vw; height: 36vw; border-radius: 50%; top: 12%; right: 10%; background: #aba98f; filter: blur(4px); opacity: .22; }
.memory-hill { position: absolute; bottom: 0; width: 130%; left: -15%; height: 53%; border-radius: 50% 50% 0 0; background: #202a22; transform: rotate(-4deg); }
.hill-two { height: 35%; left: 15%; background: #111611; transform: rotate(6deg); }
.bench { position: absolute; left: 13vw; bottom: 18%; width: 250px; height: 170px; }
.bench i { position: absolute; display: block; background: #5f4b39; box-shadow: inset 0 0 0 2px #2f2820; }
.bench i:nth-child(1) { width: 250px; height: 22px; top: 30px; transform: skewY(-2deg); }.bench i:nth-child(2) { width: 250px; height: 26px; top: 78px; }.bench i:nth-child(3), .bench i:nth-child(4) { width: 13px; height: 95px; top: 82px; }.bench i:nth-child(3) { left: 28px; }.bench i:nth-child(4) { right: 28px; }
.memory-content { position: relative; z-index: 2; width: 50%; margin-left: 44%; padding: 10rem 5vw 8rem 0; }
.memory-mark { font-family: var(--mono) !important; font-size: .58rem !important; color: #aaa99e; letter-spacing: .13em; }
.memory-content h2 { margin: 5rem 0; font-size: clamp(6rem, 10vw, 11rem); }
.memory-content > p { max-width: 620px; color: #c3c1b7; }
.names { margin: 4rem 0; border-top: 1px solid #555c55; }
.names span { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #414841; font-size: .58rem; color: #949b92; }.names b { color: #d8d5ca; font-weight: 400; }
.memory-content .quiet-note { font-style: italic; color: #8e958c; font-size: 1.1rem; }
body.memory-pace { --speed: .12; }
body.memory-pace .lap-clock .clock-light { animation-duration: 3s; }

.sidecar { min-height: 1000px; padding: 7rem 5vw 9rem; color: var(--paper); background: var(--ink); display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; overflow: hidden; }
.sidecar .section-index { grid-column: 1/-1; }
.sidecar-title-wrap { grid-column: 1; }
.sidecar h2 { font-size: clamp(5rem, 10vw, 10rem); }
.sidecar-figure { grid-column: 1; margin: -2rem 0 0 -8vw; transform: rotate(-3deg); }
.sidecar-figure svg { width: 110%; overflow: visible; }
.sidecar-figure circle, .sidecar-figure .machine { fill: var(--orange); stroke: var(--paper); stroke-width: 4; }.sidecar-figure .body-one, .sidecar-figure .body-two { fill: #d8d3c4; }.sidecar-figure .ground { stroke: #72766d; stroke-width: 2; stroke-dasharray: 5 10; }
.sidecar-copy { grid-column: 2; grid-row: 3; align-self: center; max-width: 600px; }
.duet-stats { margin-top: 3rem; border-top: 1px solid #51564f; }.duet-stats span { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #51564f; font-size: .55rem; color: #a0a59d; }.duet-stats b { font-family: var(--serif); font-size: 2.7rem; color: var(--orange); font-weight: 400; }

.finish { position: relative; min-height: 850px; padding: 8rem 5vw 7rem; background: var(--orange); overflow: hidden; }
.finish-lines { position: absolute; inset: 0; opacity: .15; background: repeating-linear-gradient(116deg, transparent 0 64px, var(--ink) 65px 67px); transform: scale(1.3); }
.finish > *:not(.finish-lines) { position: relative; z-index: 2; }
.finish .eyebrow { color: var(--ink); }
.finish h2 { font-size: clamp(6rem, 13vw, 13rem); }
.timecard { position: relative; width: min(720px, 80vw); margin: 6rem 0 3rem auto; padding: 2.5rem; color: var(--paper); background: var(--ink); box-shadow: 20px 20px 0 rgba(16,19,15,.2); transform: rotate(-1deg); }
.timecard-top, .timecard-bottom { display: flex; justify-content: space-between; font-size: .52rem; letter-spacing: .1em; color: #969b92; }
.timecard strong { display: block; margin: 2rem 0; font-size: clamp(3rem, 8vw, 7.5rem); line-height: .8; font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: -.06em; }
.stamp { position: absolute; right: 2rem; top: 2.7rem; width: 100px; height: 100px; display: grid; place-items: center; text-align: center; border: 3px double var(--orange); border-radius: 50%; color: var(--orange); font-size: .6rem; line-height: 1.5; transform: rotate(12deg) scale(1.5); opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.timecard.recorded .stamp { transform: rotate(12deg) scale(1); opacity: .8; }
.finish-note { width: min(500px, 45vw); margin-left: auto; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.run-again { display: flex; justify-content: space-between; align-items: center; width: min(420px, 80vw); min-height: 65px; margin-top: 6rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-decoration: none; font-size: .65rem; letter-spacing: .13em; transition: padding .2s, background .2s; }.run-again:hover { padding: 0 1rem; background: rgba(255,255,255,.15); }.run-again span { font-size: 2rem; }

.site-footer { min-height: 260px; padding: 4rem 5vw; display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; color: #bbbdb4; background: #090b09; }
.footer-mark { display: flex; align-items: center; gap: 1rem; }.footer-mark > span { font-family: var(--serif); font-size: 6rem; line-height: .7; font-style: italic; color: var(--orange); }.footer-mark p { margin: 0; font-size: .58rem; line-height: 1.6; letter-spacing: .1em; }.footer-mark b { color: #696f67; font-size: .48rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 2rem; max-width: 650px; font-size: .55rem; }.footer-links span { color: #737970; }.footer-links a { text-underline-offset: 4px; text-decoration-color: #50554f; }.footer-links a:hover { color: var(--orange); }

@media (max-width: 1000px) {
  .course-header { grid-template-columns: 120px 1fr 165px; }.corner-nav a { font-size: 0; }.corner-nav a span { font-size: .7rem; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #596057; border-radius: 50%; }.corner-nav a b { display: none; }
  .hero { height: 880px; }.hero-copy { top: 23%; }.hero h1 { font-size: clamp(8rem, 24vw, 13rem); }.hero-deck { width: 62%; }
  .course-intro { grid-template-columns: 1fr 1fr; min-height: 1100px; }.intro-title-wrap { grid-column: 1/-1; }.intro-copy { grid-column: 2; }.knowledge-wheel { left: 9vw; bottom: 11rem; }
  .course-map { grid-template-columns: 1fr; }.map-heading { max-width: 650px; }
  .weather-copy { width: 72%; }.weather-console { width: 48vw; }
  .verandah-grid { grid-template-columns: .18fr 1.2fr .6fr; }.memory-content { width: 58%; margin-left: 38%; }.bench { transform: scale(1.14); transform-origin: left bottom; }.sidecar { grid-template-columns: 1fr; }.sidecar-title-wrap, .sidecar-figure, .sidecar-copy { grid-column: 1; }.sidecar-copy { grid-row: auto; margin-left: auto; width: 55%; }.sidecar-figure { width: 80%; }
}

@media (min-width: 621px) and (max-width: 1000px) {
  .course-header { grid-template-columns: 112px 1fr 150px; }
  .corner-nav { gap: .75rem; }
  .corner-nav a { display: flex; align-items: center; gap: .3rem; padding: .8rem 0; font-size: .43rem; }
  .corner-nav a span { display: inline; width: auto; height: auto; border: 0; font-size: .55rem; }
}

@media (max-width: 620px) {
  .grain { opacity: .12; }
  .course-header { height: 72px; padding: 0 12px; grid-template-columns: 76px 1fr 122px; background: rgba(10,12,10,.9); }.wordmark-no { font-size: 2.7rem; }.wordmark-name { display: none; }.corner-nav { overflow-x: auto; justify-content: flex-start; gap: .35rem; scrollbar-width: none; }.corner-nav a { padding: 5px 0; }.corner-nav a span { width: 44px; height: 44px; }.lap-clock { min-width: 118px; padding: .5rem .55rem; }.lap-clock strong { font-size: .78rem; }.lap-clock span { font-size: .4rem; }
  .hero { min-height: 760px; height: 100svh; max-height: 900px; }.course-scene { transform: scale(1.3); transform-origin: center; }.visor { border-top-width: 11vh; }.hero-copy { left: 18px; right: 18px; top: 23%; }.hero-kicker { font-size: .44rem; }.hero h1 { margin-top: 4.6rem; font-size: clamp(6.6rem, 34vw, 9rem); line-height: .59; }.hero h1 span { margin-left: .24em; }.hero-deck { width: 74%; margin-top: 3rem; display: block; }.hero-deck > p:first-child { font-size: 1.25rem; }.live-speed { position: absolute; right: 0; bottom: -6.5rem; font-size: 2.5rem; }.start-marker { left: 18px; bottom: 22px; }.hero-stamp { display: none; }
  .section-index { gap: .8rem; }.section-index b { font-size: .48rem; }.section-index i { font-size: .44rem; }
  .course-intro { display: block; min-height: 0; padding: 5rem 18px 7rem; }.intro-title-wrap { margin: 5rem 0 4rem; }.intro-title-wrap h2, .map-heading h2, .weather h2, .verandah h2, .memory-content h2, .sidecar h2, .finish h2 { font-size: clamp(4rem, 20vw, 5.7rem); }.intro-copy .lede { font-size: 1.45rem; }.intro-copy p, .weather-copy > p:last-child, .verandah-copy > p:last-child, .sidecar-copy > p, .memory-content > p { font-size: 1.15rem; }.intro-copy blockquote { margin: 3rem 0; padding-left: 1.4rem; font-size: 1.65rem; }.knowledge-wheel { position: relative; left: auto; bottom: auto; margin: 5rem auto 0; width: 200px; height: 200px; }
  .course-map { padding: 5rem 18px 6rem; gap: 3rem; }.map-board { padding: .75rem; box-shadow: 8px 8px 0 #131713; }.map-point text { font-size: 17px; }.sector-key div { grid-template-columns: 38px 1fr; padding: .7rem 0; }.sector-key div b { grid-column: 2; color: #92998f; }
  .weather { min-height: 990px; padding: 5rem 18px; }.weather .section-index { margin-bottom: 6rem; }.weather-copy { width: 100%; }.weather h2 { font-size: 4.4rem; }.weather-console { left: 18px; right: 18px; bottom: 3rem; width: auto; padding: 1.25rem; box-shadow: 9px 9px 0 rgba(8,11,8,.35); }.sun-disc { width: 55vw; height: 55vw; left: 22vw; top: 15%; }.weather-console dl { grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }.weather-console dl div { min-width: 0; padding: .7rem .5rem; }.weather-console dd { font-size: .58rem; white-space: nowrap; }
  .verandah { min-height: 0; padding: 5rem 18px 6rem; }.verandah-grid { display: grid; grid-template-columns: 40px 1fr; margin-top: 5rem; gap: 2rem 1rem; }.vertical-word { grid-row: 1 / 3; font-size: 2.7rem; }.verandah-copy h2 { font-size: 4.4rem; }.verandah-copy > p:last-child { margin-top: 2.5rem; }.brake-card { grid-column: 2; width: 88%; min-height: 340px; margin: 1rem 0 2rem auto; }.telemetry-strip { grid-column: 1/-1; grid-template-columns: 1fr 1fr; }.telemetry-strip span:nth-child(2) { border-right: 0; }.telemetry-strip span { border-bottom: 1px solid #828277; }
  .memorial { min-height: 1150px; }.memory-landscape::before { width: 75vw; height: 75vw; top: 11%; }.bench { left: 8vw; top: 25%; transform: scale(.78); transform-origin: left center; }.memory-content { width: auto; margin: 0; padding: 5rem 18px 6rem; }.memory-content h2 { margin: 23rem 0 3rem; }.names span { font-size: .52rem; }
  .sidecar { padding: 5rem 18px 7rem; gap: 4rem; }.sidecar-title-wrap { margin-top: 1rem; }.sidecar h2 { font-size: 4.9rem; }.sidecar-figure { width: 112%; margin: -1rem 0 0 -15%; }.sidecar-copy { width: 100%; margin: -2rem 0 0; }
  .finish { min-height: 950px; padding: 7rem 18px; }.finish h2 { font-size: 5.7rem; }.timecard { width: 100%; margin-top: 5rem; padding: 1.5rem; box-shadow: 10px 10px 0 rgba(16,19,15,.2); }.timecard strong { margin: 3rem 0 2rem; font-size: 3.2rem; }.timecard-bottom { display: block; line-height: 2; }.stamp { width: 72px; height: 72px; right: 1.2rem; top: 2.7rem; font-size: .48rem; }.finish-note { width: 100%; margin-top: 3rem; }.run-again { margin-top: 5rem; }
  .site-footer { min-height: 400px; padding: 4rem 18px; display: block; }.footer-mark { margin-bottom: 3rem; }.footer-links { display: grid; grid-template-columns: 1fr 1fr; justify-content: start; gap: .35rem 1rem; line-height: 1.4; }.footer-links span, .footer-links a { min-height: 44px; display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .near-flash { display: none; }.course-scene { transform: none !important; }.rain-lines { display: none; }
}

/* Guide */
.guide-body { background: #182019; color: var(--paper); }
.guide-main { padding: 9rem 5vw 7rem; min-height: 100vh; background: linear-gradient(120deg, #1b251d, #0e120f 75%); }
.guide-hero { position: relative; min-height: 62vh; padding: 5rem 0; border-top: 1px solid #5e675d; border-bottom: 1px solid #5e675d; display: flex; flex-direction: column; justify-content: space-between; }
.guide-hero::after { content: '37'; position: absolute; right: 2vw; bottom: -3rem; font-family: var(--serif); font-style: italic; font-size: min(35vw, 34rem); line-height: .7; color: var(--orange); opacity: .15; }
.guide-hero .eyebrow { position: relative; z-index: 2; }.guide-hero h1 { position: relative; z-index: 2; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(6rem, 14vw, 14rem); line-height: .68; letter-spacing: -.06em; }.guide-hero h1 span { display: block; margin-left: .24em; color: var(--orange); font-style: italic; }.guide-hero p:last-child { position: relative; z-index: 2; align-self: flex-end; max-width: 450px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.guide-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 6vw; padding-top: 7rem; }.guide-aside { position: static; align-self: start; border-top: 4px solid var(--orange); padding-top: 1.5rem; }.guide-aside span { display: block; margin-bottom: 1rem; font-size: .52rem; letter-spacing: .14em; color: #878f86; }.guide-aside strong { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; }
.guide-copy { max-width: 820px; }.guide-copy section { margin-bottom: 6rem; }.guide-copy h2 { margin: 0 0 2rem; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5rem); font-weight: 400; line-height: .9; }.guide-copy p, .guide-copy li { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; color: #cbc9be; }.guide-copy code { font-family: var(--mono); font-size: .75em; color: var(--orange-hot); }.token-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: #596158; border: 1px solid #596158; margin: 2.5rem 0; }.token-list div { min-height: 130px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--swatch); color: var(--token-text, #f1ede0); font-size: .52rem; }.token-list b { font-family: var(--mono); font-weight: 400; }.prompt-card { margin-top: 3rem; padding: 2rem; border: 1px solid #5f675e; background: #101510; box-shadow: 12px 12px 0 var(--orange); }
.guide-back { position: absolute; z-index: 95; left: 5vw; top: 1.3rem; min-height: 44px; display: inline-flex; align-items: center; color: #f0ecdf; font-size: .58rem; letter-spacing: .12em; text-decoration: none; }.guide-back:hover { color: var(--orange); }
@media (max-width: 620px) { .guide-main { padding: 6rem 18px; }.guide-hero { min-height: 560px; padding: 3rem 0; }.guide-hero h1 { max-width: 100%; font-size: 5rem; }.guide-hero h1 span { margin-left: .08em; font-size: .9em; letter-spacing: -.08em; }.guide-hero p:last-child { font-size: 1.2rem; }.guide-grid { display: block; padding-top: 5rem; }.guide-aside { position: static; margin-bottom: 5rem; }.token-list { grid-template-columns: 1fr 1fr; }.guide-copy section { margin-bottom: 4.5rem; }.guide-copy p, .guide-copy li { font-size: 1.1rem; }.guide-body .site-footer { margin-top: 0; } }

/* Pass 2 — instrumented road-film layer */
:root {
  --ink: #0b0e0b;
  --paper: #ded8c7;
  --paper-deep: #b9b29e;
  --hedge: #1c3223;
  --road: #4b504c;
  --orange: #ee5520;
  --orange-hot: #ff6428;
  --visit-progress: 0;
  --velocity: 0;
}

body {
  background:
    linear-gradient(90deg, rgba(74,65,48,.035) 1px, transparent 1px) 0 0 / 17px 100%,
    var(--paper);
}

.course-header {
  height: 88px;
  border-bottom: 1px solid rgba(222,216,199,.12);
  background: linear-gradient(180deg, rgba(7,9,7,.98), rgba(7,9,7,.9) 72%, rgba(7,9,7,.35));
}

.course-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: rgba(255,255,255,.1); overflow: visible; }
.course-progress i { position: absolute; inset: 0 auto 0 0; width: calc(var(--visit-progress) * 1%); background: var(--orange-hot); box-shadow: 0 0 14px rgba(255,100,40,.55); transition: width .12s linear; }
.course-progress span { position: absolute; right: 2.2vw; top: 7px; color: #9da299; font-size: .42rem; letter-spacing: .14em; white-space: nowrap; opacity: .85; }
.corner-nav a { position: relative; opacity: .76; }
.corner-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 7px; height: 1px; background: var(--orange); transition: right .3s cubic-bezier(.2,.8,.2,1); }
.corner-nav a:hover::after, .corner-nav a[aria-current="location"]::after { right: 0; }
.corner-nav a[aria-current="location"] { color: #fff4e8; opacity: 1; }

.hero { height: min(1000px, 100svh); min-height: 780px; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, transparent 0 49.85%, rgba(255,255,255,.08) 50%, transparent 50.15%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 12.5%); mix-blend-mode: screen; opacity: calc(.2 + var(--velocity) * .035); }
.hero::after { content: ''; position: absolute; z-index: 12; inset: 0; pointer-events: none; background: var(--ink); transform-origin: right; animation: ignition-wipe 1.3s .1s cubic-bezier(.7,0,.18,1) both; }
@keyframes ignition-wipe { 0% { transform: scaleX(1); } 68% { transform: scaleX(.06); } 100% { transform: scaleX(0); } }
.onboard { transform: scale(1.05) rotate(calc((var(--velocity) - 2) * -.035deg)); filter: saturate(.82) contrast(1.08); }
.onboard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(186,197,183,.05), transparent 42%, rgba(7,10,7,.32)), radial-gradient(ellipse at center, transparent 30%, rgba(4,6,4,.7) 115%); }
.course-scene { transform-origin: 50% 57%; }
.speed-scrim { background: radial-gradient(ellipse at 50% 54%, transparent 3%, rgba(5,8,5,.08) 39%, rgba(5,7,5,.88) 112%), linear-gradient(90deg, rgba(0,0,0,.62), transparent 23%, transparent 74%, rgba(0,0,0,.55)); }
.visor { border-top-width: 10vh; border-bottom-width: 5vh; box-shadow: inset 0 0 180px rgba(0,0,0,.88); }
.visor::before, .visor::after { content: ''; position: absolute; left: 50%; bottom: -10vh; width: 2px; height: 53vh; transform-origin: bottom; background: linear-gradient(transparent, rgba(238,85,32,.6)); opacity: calc(.2 + var(--velocity) * .045); }
.visor::before { transform: rotate(62deg); }.visor::after { transform: rotate(-62deg); }
.live-pip { display: inline-block; width: 5px; height: 5px; margin-right: .55rem; border-radius: 50%; background: var(--orange-hot); box-shadow: 0 0 0 5px rgba(255,100,40,.12); animation: blink 1.2s steps(2) infinite; }

.flyby { transform-box: fill-box; transform-origin: center bottom; }
.flyby-cottage { animation: flyby-left calc(8.2s / var(--speed)) cubic-bezier(.33,.01,.29,1) infinite 1.3s; }
.flyby-church { animation: flyby-right calc(10.4s / var(--speed)) cubic-bezier(.33,.01,.29,1) infinite 4.1s; }
.flyby-wall { animation: wall-rush calc(3.4s / var(--speed)) linear infinite; }
@keyframes flyby-left { 0%,20% { transform: translate(620px,-160px) scale(.12); opacity: 0; } 35% { opacity: .9; } 72%,100% { transform: translate(-950px,430px) scale(4.4); opacity: 0; } }
@keyframes flyby-right { 0%,25% { transform: translate(-420px,-130px) scale(.15); opacity: 0; } 38% { opacity: .75; } 78%,100% { transform: translate(780px,390px) scale(3.7); opacity: 0; } }
@keyframes wall-rush { 0% { transform: translate(-720px,180px) scale(1.4); opacity: 0; } 30% { opacity: .7; } 100% { transform: translate(1280px,-30px) scale(.72); opacity: 0; } }

.hero-copy { top: 17%; }
.hero h1 { max-width: 11ch; text-shadow: 0 12px 50px rgba(0,0,0,.66); }
.hero h1 span { text-shadow: 0 8px 24px rgba(76,13,0,.44); }
.hero-deck { width: 51%; }
.onboard-telemetry { position: absolute; z-index: 5; left: 5vw; bottom: 12vh; display: grid; grid-template-columns: 86px 70px minmax(230px,1fr); width: min(610px,54vw); border-top: 1px solid rgba(255,255,255,.38); border-bottom: 1px solid rgba(255,255,255,.2); background: linear-gradient(90deg, rgba(5,8,5,.74), rgba(5,8,5,.18)); backdrop-filter: blur(6px); }
.onboard-telemetry > div { min-height: 70px; padding: .8rem 1rem; border-right: 1px solid rgba(255,255,255,.17); }
.onboard-telemetry span { display: block; margin-bottom: .42rem; color: #9da49a; font-size: .43rem; letter-spacing: .16em; }
.onboard-telemetry strong { color: #f4f0e4; font-size: 1.15rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.onboard-telemetry .corner-call { display: grid; grid-template-columns: 1fr auto; }
.corner-call span { grid-column: 1/-1; }.corner-call strong { font-size: .65rem; letter-spacing: .08em; }.corner-call b { color: var(--orange-hot); font-size: .7rem; }
.start-marker { bottom: 3vh; }

.section-index { position: relative; }
.section-index::after { content: ''; position: absolute; top: -1px; left: 0; width: 68px; height: 2px; background: var(--orange); }
.course-intro { background: radial-gradient(circle at 16% 75%, rgba(238,85,32,.08), transparent 20%), linear-gradient(105deg, #e5dfcf, #d6cfbc); }
.intro-title-wrap h2, .map-heading h2, .weather h2, .verandah h2, .memory-content h2, .sidecar h2, .finish h2 { text-wrap: balance; }
.knowledge-wheel { border-width: 2px; box-shadow: 0 0 0 12px rgba(16,19,15,.04), inset 0 0 0 12px rgba(16,19,15,.025); }
.knowledge-wheel::after { box-shadow: 0 7px 0 #9c2f0f; }
.knowledge-wheel::before { background: conic-gradient(transparent 0 18%, rgba(238,85,32,.38) 18% 19%, transparent 19% 48%, rgba(16,19,15,.3) 48% 49%, transparent 49%); }

.course-map { background: radial-gradient(circle at 73% 42%, #26352a, transparent 34%), #101610; }
.map-board { position: relative; background:
  linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), #1d2920; background-size: 34px 34px; box-shadow: 22px 22px 0 #080b08; }
.map-board::before { content: 'SCRUTINEERED / COURSE DIAGRAM 144-A'; position: absolute; right: 1.6rem; top: 1rem; color: #7f897e; font-size: .43rem; letter-spacing: .12em; }
.route { filter: drop-shadow(0 0 5px rgba(238,85,32,.3)); animation: route-run 9s linear infinite; }
@keyframes route-run { to { stroke-dashoffset: -100; } }
.map-facts { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 1.4rem; border: 1px solid #59645a; }
.map-facts span { min-height: 58px; padding: .8rem; border-right: 1px solid #59645a; color: #929b91; font-size: .5rem; }
.map-facts span:last-child { border: 0; }.map-facts b { display: block; color: var(--paper); font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }

.weather { background: #2c3a31; }
.weather-sky { background:
  radial-gradient(ellipse at 58% 25%, rgba(255,255,255,calc(.22 - var(--storm) * .18)), transparent 24%),
  linear-gradient(to bottom, hsl(calc(200 + var(--storm) * 14) 14% calc(72% - var(--storm) * 46%)), hsl(104 14% calc(48% - var(--storm) * 24%))); }
.weather-sky::after { content: ''; position: absolute; inset: 18% -20% auto; height: 190px; background: linear-gradient(transparent, rgba(230,234,223,.22), transparent); filter: blur(26px); transform: translateX(calc(var(--storm) * -14%)); opacity: calc(.4 + var(--storm) * .45); }
.sun-disc { box-shadow: 0 0 140px rgba(243,218,176,.58); }
.weather-console { border-color: rgba(232,232,219,.48); border-radius: 0; background: linear-gradient(135deg, rgba(8,12,9,.9), rgba(19,27,21,.78)); box-shadow: 14px 14px 0 rgba(8,11,8,.52); }
.forecast-readout { position: relative; }
.forecast-readout::before { content: 'MOUNTAIN OBSERVATORY / 422 M'; position: absolute; left: 0; top: -1.1rem; color: #697269; font-size: .4rem; letter-spacing: .1em; }

.verandah { background: linear-gradient(110deg, #e2dccb 0 66%, #d0c8b5 66%); }
.brake-card { position: relative; background: linear-gradient(145deg, #fa642a, #df4112); box-shadow: 17px 18px 0 var(--ink), inset 0 0 0 1px rgba(255,255,255,.24); }
.brake-card::before, .brake-card::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #8d270d; box-shadow: inset 1px 1px 2px rgba(0,0,0,.6); }
.brake-card::before { top: 12px; left: 12px; }.brake-card::after { bottom: 12px; right: 12px; }
.telemetry-strip b { font-variant-numeric: tabular-nums; }

.memorial { min-height: 1120px; background: #0c110d; }
.memory-landscape { background: linear-gradient(180deg, #344239 0%, #172019 56%, #090c09 100%); }
.memory-landscape::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 74% 29%, transparent 0 17%, rgba(3,5,3,.22) 18%, transparent 38%), linear-gradient(90deg, rgba(0,0,0,.25), transparent 42%); }
.bench::after { content: 'SIT · LOOK · REMEMBER'; position: absolute; left: 58px; top: 55px; width: 135px; padding: 5px 2px; border: 1px solid #8f764f; color: #bba77e; background: #473927; font-size: 7px; letter-spacing: .08em; text-align: center; }
.names { background: rgba(4,7,4,.25); padding: 0 1rem; }
.walk-instrument { margin-top: 4rem; max-width: 420px; }
.walk-instrument span, .walk-instrument strong { display: block; color: #777f76; font-size: .47rem; letter-spacing: .13em; font-weight: 400; }
.walk-instrument i { display: block; position: relative; height: 2px; margin: .8rem 0; background: #424a42; }
.walk-instrument i b { position: absolute; left: 0; top: -2px; width: 8%; height: 6px; background: #8f6b43; }
body.memory-pace .course-progress i { background: #a18560; box-shadow: none; }
body.memory-pace .course-progress span { color: #c1b79e; }

.sidecar { background: radial-gradient(circle at 24% 62%, #1b251d, transparent 34%), #080b08; }
.sidecar-figure { filter: drop-shadow(0 20px 22px rgba(0,0,0,.45)); }
.sidecar-figure circle { fill: #101510; }
.sidecar-figure .machine { fill: var(--orange); }
.sidecar-figure .wheel path, .sidecar-figure .frame-line { fill: none; stroke: var(--paper); stroke-width: 3; opacity: .68; }
.sidecar-figure .wheel circle { stroke-width: 4; }
.sidecar-figure .wheel circle:nth-child(2) { stroke-width: 2; opacity: .55; }
.sidecar-figure .helmet { fill: var(--orange); stroke: var(--paper); stroke-width: 4; }
.sidecar-rig { transform-origin: 380px 268px; transition: transform .28s cubic-bezier(.2,.75,.3,1); }
.balance-control { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--orange); }
.balance-control label { display: block; color: #c7cbc1; font-size: .5rem; letter-spacing: .12em; }
.balance-control input { width: 100%; height: 44px; margin: .6rem 0; appearance: none; background: transparent; cursor: ew-resize; }
.balance-control input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #6d746a, var(--orange), #6d746a); }
.balance-control input::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; border: 5px solid var(--orange); background: var(--ink); }
.balance-control > div { display: flex; justify-content: space-between; color: #747b72; font-size: .42rem; }
.balance-control output { color: var(--orange-hot); }

.finish { min-height: 980px; background:
  radial-gradient(circle at 78% 24%, rgba(255,200,154,.2), transparent 22%),
  repeating-linear-gradient(116deg, transparent 0 66px, rgba(70,16,3,.12) 67px 69px),
  #ef5721; }
.finish-lines { opacity: .09; }
.timecard { border: 1px solid #434941; background: linear-gradient(135deg, #0c100d, #151b16); box-shadow: 18px 18px 0 rgba(76,19,3,.25); }
.ticket-notches::before, .ticket-notches::after { content: ''; position: absolute; top: 50%; width: 22px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--orange); }
.ticket-notches::before { left: -12px; }.ticket-notches::after { right: -12px; }
.visit-splits { width: min(720px,80vw); margin: 0 0 0 auto; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(16,19,15,.55); border-bottom: 1px solid rgba(16,19,15,.55); }
.visit-splits span { padding: .85rem; border-right: 1px solid rgba(16,19,15,.35); font-size: .5rem; }
.visit-splits span:last-child { border: 0; }.visit-splits b { display: block; margin-top: .35rem; font-size: .42rem; font-weight: 400; color: #68200c; }
.stamp { background: rgba(10,14,11,.72); }

.reveal-target { opacity: 1; transform: translateY(18px); transition: transform .9s cubic-bezier(.2,.75,.2,1), filter .8s ease; filter: contrast(.92); }
.reveal-target.in-view { transform: translateY(0); filter: contrast(1); }

/* Field guide as a working course dossier */
.guide-main { position: relative; overflow: hidden; background:
  linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 54px 100%,
  radial-gradient(circle at 12% 8%, #223328, transparent 32%), #0a0f0b; }
.guide-main::after { content: ''; position: absolute; top: 0; bottom: 0; left: 31.5%; width: 1px; background: rgba(222,216,199,.08); pointer-events: none; }
.guide-hero { min-height: 70vh; }
.guide-hero::before { content: ''; position: absolute; inset: 35% 0 0 47%; background: linear-gradient(150deg, transparent 49.5%, rgba(238,85,32,.16) 50% 50.4%, transparent 50.5%), linear-gradient(30deg, transparent 49.5%, rgba(238,85,32,.1) 50% 50.3%, transparent 50.4%); opacity: .7; }
.guide-hero::after { opacity: .1; color: var(--orange-hot); }
.guide-hero h1 { font-size: clamp(6rem,13vw,13rem); }
.guide-grid { grid-template-columns: .72fr 2fr; }
.guide-aside { position: sticky; top: 7rem; }
.guide-aside::after { content: '37.73 MI  /  219 CORNERS  /  CODE ONLY'; display: block; margin-top: 3rem; color: #727d73; font-size: .46rem; line-height: 2; letter-spacing: .12em; }
.guide-copy section { position: relative; padding-top: 1rem; border-top: 1px solid rgba(222,216,199,.14); }
.guide-copy section::before { content: counter(section, decimal-leading-zero); counter-increment: section; position: absolute; right: 100%; top: 1.2rem; margin-right: 2rem; color: var(--orange); font-family: var(--mono); font-size: .52rem; }
.guide-copy { counter-reset: section; }
.guide-copy p { max-width: 46rem; }
.guide-route { display: grid; grid-template-columns: 1fr 2fr 1fr 2fr 1fr; align-items: center; margin-top: 3.5rem; padding: 1.5rem; border: 1px solid #485248; background: #0b110c; }
.guide-route span { color: #7f8980; font-size: .45rem; letter-spacing: .1em; }
.guide-route b { display: block; color: var(--paper); font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.guide-route i { height: 2px; background: linear-gradient(90deg,var(--orange),#4a554b); }
.function-ledger { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 2.5rem; border: 1px solid #465047; }
.function-ledger span { padding: 1rem; border-right: 1px solid #465047; color: #8b958c; font-size: .48rem; }
.function-ledger span:last-child { border: 0; }.function-ledger b { display: block; margin-bottom: .5rem; color: var(--orange-hot); font-size: .65rem; font-weight: 400; }
.token-list { transform: rotate(-.35deg); box-shadow: 14px 14px 0 #050805; }
.prompt-card { position: relative; margin-left: -3vw; background: linear-gradient(120deg,#0b100c,#151d17); }
.prompt-card::before { content: 'AGENT BRIEF / TEAR-OFF'; position: absolute; left: 1.9rem; top: -.75rem; padding: .2rem .5rem; color: var(--ink); background: var(--orange); font-family: var(--mono); font-size: .4rem; letter-spacing: .1em; }

@media (max-width: 1000px) {
  .hero-copy { top: 20%; }
  .onboard-telemetry { width: min(570px,72vw); }
  .guide-main::after { display: none; }
  .guide-aside { position: static; }
}

@media (max-width: 620px) {
  .course-header { height: 118px; padding: 0 12px 46px; grid-template-columns: 62px 1fr 120px; }
  .wordmark-no { font-size: 2.65rem; }
  .corner-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; padding: 0 8px; gap: 6px; background: #101410; border-top: 1px solid #31372f; }
  .corner-nav a { display: grid; grid-template-columns: 22px auto; align-items: center; flex: 0 0 auto; min-width: 126px; min-height: 44px; padding: 0 9px; border-right: 1px solid #343a33; font-size: .43rem; line-height: 1.15; }
  .corner-nav a span { display: block; width: auto; height: auto; border: 0; font-size: .55rem; }
  .corner-nav a b { display: block; grid-column: 2; margin: -11px 0 0; font-size: .36rem; }
  .course-progress { bottom: -2px; }.course-progress span { display: none; }
  .lap-clock { min-width: 118px; }
  .course-header .lap-clock { grid-column: 3; }
  .hero { min-height: 820px; height: 100svh; }
  .hero-copy { top: 27%; }
  .hero-kicker span:last-child { font-size: 0; }.hero-kicker span:last-child::after { content: 'ROAD OPEN'; font-size: .44rem; }
  .hero h1 { margin-top: 4.1rem; font-size: clamp(6.2rem,33vw,8.2rem); }
  .hero-deck { width: 82%; margin-top: 2.5rem; }
  .onboard-telemetry { left: 18px; right: 18px; bottom: 82px; width: auto; grid-template-columns: 58px 48px 1fr; }
  .onboard-telemetry > div { min-height: 59px; padding: .65rem .55rem; }
  .onboard-telemetry span { font-size: .36rem; }.onboard-telemetry strong { font-size: .8rem; }.corner-call strong { font-size: .47rem; overflow-wrap: anywhere; }.corner-call b { font-size: .52rem; }
  .live-speed { bottom: -4.7rem; }
  .start-marker { bottom: 16px; }
  .flyby-church { display: none; }
  .course-intro { padding-top: 6rem; }
  .map-facts { grid-template-columns: 1fr; }.map-facts span { border: 0; border-bottom: 1px solid #59645a; display: flex; align-items: baseline; justify-content: space-between; }.map-facts span:last-child { border: 0; }
  .verandah { background: #ded8c7; }
  .memory-content h2 { margin-top: 22rem; }
  .walk-instrument { margin-top: 3rem; }
  .sidecar-figure { margin-left: -9%; width: 108%; }
  .balance-control { margin-top: 2.5rem; }
  .finish { min-height: 1080px; }
  .visit-splits { width: 100%; grid-template-columns: 1fr 1fr; }.visit-splits span:nth-child(2) { border-right: 0; }.visit-splits span { border-bottom: 1px solid rgba(16,19,15,.35); }
  .guide-main { padding-top: 6.5rem; }
  .guide-hero { min-height: 610px; }
  .guide-hero h1 { font-size: 4.75rem; }
  .guide-route { grid-template-columns: 1fr; gap: .8rem; }.guide-route i { width: 2px; height: 28px; margin-left: 1rem; }
  .function-ledger { grid-template-columns: 1fr; }.function-ledger span { border: 0; border-bottom: 1px solid #465047; }
  .prompt-card { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
  .flyby, .route { animation: none !important; }
  .onboard { transform: none !important; }
  .reveal-target { opacity: 1; transform: none; }
}

/* Pass 3 — rider tuck, optical polish, and timing-ticket finish */
:root { --tuck: 0; }

html {
  scrollbar-color: var(--orange) #0a0d0a;
  scrollbar-width: thin;
}

html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #0a0d0a; }
html::-webkit-scrollbar-thumb { background: linear-gradient(var(--orange-hot), #8e2b0f); border: 2px solid #0a0d0a; }
html::-webkit-scrollbar-thumb:hover { background: var(--orange-hot); }

body {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

h1, h2, blockquote, .footer-mark > span, .wordmark-no,
.guide-aside strong, .guide-route b { font-optical-sizing: auto; }
p, blockquote { text-wrap: pretty; }
.lap-clock strong, .live-speed, .onboard-telemetry strong, .timecard strong,
.sector-key b, .telemetry-strip b, .tuck-seal b { font-variant-numeric: tabular-nums lining-nums; }

.hero-copy { transition: transform .68s cubic-bezier(.18,.8,.18,1); }
.onboard { transition: filter .68s cubic-bezier(.18,.8,.18,1); }
.speed-scrim { transition: background .68s cubic-bezier(.18,.8,.18,1); }
.visor { transition: border-width .68s cubic-bezier(.18,.8,.18,1), box-shadow .68s cubic-bezier(.18,.8,.18,1); }
.onboard-telemetry { opacity: 0; transform: translateY(14px); animation: reveal-up .65s 1.03s cubic-bezier(.2,.75,.2,1) forwards; }

.tuck-control {
  position: absolute;
  z-index: 6;
  right: 4vw;
  bottom: 10vh;
  width: min(240px, 23vw);
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: .8rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(238,240,229,.38);
  color: #f3efe3;
  background: linear-gradient(105deg, rgba(5,8,5,.9), rgba(10,15,10,.56));
  box-shadow: 9px 9px 0 rgba(0,0,0,.22);
  cursor: pointer;
  touch-action: none;
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up .65s 1.15s cubic-bezier(.2,.75,.2,1) forwards;
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s;
}

.tuck-control::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  width: calc(var(--tuck) * 100%);
  height: 2px;
  background: var(--orange-hot);
  box-shadow: 0 0 12px rgba(255,100,40,.65);
}

.tuck-control:hover { border-color: var(--orange-hot); color: #fff; box-shadow: 12px 12px 0 rgba(0,0,0,.28); }
.tuck-control:active, .tuck-control[aria-pressed="true"] { color: var(--ink); background: var(--orange-hot); border-color: var(--orange-hot); box-shadow: 4px 4px 0 rgba(0,0,0,.4); }
.tuck-control:focus-visible { outline-offset: 5px; }
.tuck-control > span:last-child { min-width: 0; }
.tuck-control b { display: block; font-size: .55rem; line-height: 1.25; letter-spacing: .13em; font-weight: 700; }
.tuck-control small { display: block; margin-top: .38rem; color: #8f978d; font-size: .36rem; line-height: 1.4; letter-spacing: .09em; }
.tuck-control[aria-pressed="true"] small { color: #55200f; }
.tuck-gauge { position: relative; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--orange-hot) calc(var(--tuck) * 1turn), rgba(255,255,255,.16) 0); transform: rotate(-90deg); }
.tuck-gauge::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #0b0e0b; }
.tuck-gauge i { position: absolute; z-index: 1; left: 50%; top: 8px; width: 1px; height: 9px; background: var(--paper); transform-origin: 50% 9px; transform: rotate(calc(var(--tuck) * 238deg)); }

.hero.tuck-active { --speed: 1.82; }
.hero.tuck-active .hero-copy { transform: translateY(-2.2vh) scaleY(.965); }
.hero.tuck-active .onboard { filter: saturate(.93) contrast(1.18) brightness(.9); }
.hero.tuck-active .speed-scrim { background: radial-gradient(ellipse at 50% 51%, transparent 0, rgba(5,8,5,.04) 30%, rgba(3,5,3,.94) 112%), linear-gradient(90deg, rgba(0,0,0,.72), transparent 30%, transparent 70%, rgba(0,0,0,.7)); }
.hero.tuck-active .visor { border-top-width: 17vh; border-bottom-width: 11vh; box-shadow: inset 0 0 230px rgba(0,0,0,.96); }
.hero.tuck-active .visor i { height: 2px; opacity: .7; }

.tuck-seal {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 1.4rem;
  padding: .8rem 0;
  border-top: 1px solid #4a5148;
  border-bottom: 1px solid #4a5148;
  color: #7e867d;
  font-size: .43rem;
  letter-spacing: .1em;
}
.tuck-seal b { color: var(--paper); font-size: .67rem; font-weight: 400; }
.tuck-seal i { padding: .38rem .55rem; border: 1px solid #4c544b; color: #8f978d; font-style: normal; }
.tuck-seal.earned i { border-color: var(--orange); color: var(--orange-hot); transform: rotate(-1deg); }

.corner-nav a:active, .start-marker:active, .run-again:active, .footer-links a:active, .guide-back:active { color: var(--orange-hot); }
.weather-console input:hover::-webkit-slider-thumb,
.balance-control input:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(255,100,40,.15); }
.footer-links span { color: #92988f; }
.footer-mark b { color: #858c83; }
.footer-links a, .guide-back { transition: color .22s, text-decoration-color .22s; }
.footer-links a:hover { text-decoration-color: var(--orange); }

.guide-copy { max-width: 780px; }
.guide-copy p { max-width: 43rem; }
.guide-aside::after { color: #8c968d; }
.function-ledger { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .tuck-control { width: 218px; bottom: 10vh; }
  .function-ledger { grid-template-columns: 1fr 1fr; }
  .function-ledger span:nth-child(2) { border-right: 0; }
  .function-ledger span:nth-child(-n+2) { border-bottom: 1px solid #465047; }
}

@media (max-width: 620px) {
  .tuck-control { right: 18px; bottom: 16px; width: 178px; min-height: 50px; grid-template-columns: 30px 1fr; gap: .55rem; padding: .5rem .6rem; box-shadow: none; }
  .tuck-control b { font-size: .46rem; }
  .tuck-control small { font-size: .31rem; }
  .tuck-gauge { width: 28px; height: 28px; }
  .tuck-gauge::before { inset: 4px; }
  .tuck-gauge i { top: 6px; height: 8px; transform-origin: 50% 8px; }
  .hero.tuck-active .hero-copy { transform: translateY(-1vh) scaleY(.98); }
  .tuck-seal { grid-template-columns: 1fr auto; gap: .65rem; }
  .tuck-seal i { grid-column: 1 / -1; width: max-content; }
  .function-ledger { grid-template-columns: 1fr; }
  .function-ledger span, .function-ledger span:nth-child(2) { border-right: 0; border-bottom: 1px solid #465047; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.tuck-active .hero-copy { transform: none; }
  .hero.tuck-active .visor { border-top-width: 10vh; border-bottom-width: 5vh; }
  .hero.tuck-active .visor i { opacity: .3; }
  .tuck-control::after, .tuck-gauge, .tuck-gauge i { transition: none; }
}
