/* Home: Trail (workshop source home/trail/style.css), scoped to .trail so the shared header, footer and
   menu keep the site's own tokens and components. Trail's palette is set on .trail, its geometry on :root
   (trail.js reads --lane there). Trail paints its own map ground, so the layout's ground is hidden here.
   The logo intro's stage styles are at the end. */

:root {
  /* the trail's geometry: trail.js reads --lane from the root */
  --lane: 104px;   /* distance of a side trail from the page edge */
  --gut: 236px;    /* content inset on the trail side */
  --far: 80px;     /* content inset on the other side */
  --chan: 118px;   /* half width of the central channel */
  --hw: 22px;      /* half the trail bed */
}
/* Trail's scoped palette lives in site.css; geometry above stays with the scene. */
.trail {
  color: var(--ink);
}

.trail *, .trail *::before, .trail *::after { box-sizing: border-box; }

html { background: #d8c38c; scroll-padding-top: 90px; }

.trail { font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; text-rendering: auto; }

.trail ::selection { background: var(--teal); color: var(--ink); }

.trail a { color: var(--teal-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: currentColor; transition: none; }

@media (hover: hover) and (pointer: fine) {
  .trail a:hover { color: #1f4d4f; }
}

.trail :focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }

.trail img { display: block; max-width: 100%; }

.trail .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ the antique map ground */
.trail .mapbg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #d8c38c; }

.trail .mapbg-in { position: absolute; left: 50%; top: 0; width: var(--mw, 1546px); transform: translate3d(-50%, var(--my, 0px), 0); will-change: transform; filter: blur(1.1px) saturate(.92); }

.trail .mapbg-a, .trail .mapbg-b { height: var(--mh, 789px); background: url('/media/site/map.jpg') center / 100% 100% no-repeat; }

.trail .mapbg-b { transform: scaleY(-1); }

/* a light cream glaze so type and panels sit calmly on the map */
.trail .mapbg-tone { position: absolute; inset: 0; background: rgba(248, 241, 222, .38); }

/* ------------------------------------------------------------------ the world layers */
.trail .world { position: absolute; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; overflow: clip; }

.trail .washes, .trail .washes-lit { position: absolute; left: 0; top: 0; width: 100%; z-index: 0; }

.trail .washes { mix-blend-mode: multiply; }

.trail .washes canvas, .trail .washes-lit canvas { position: absolute; left: 0; width: 100%; display: block; }

.trail .tground { position: absolute; left: 0; top: 0; width: 100%; z-index: 0; }

.trail .tground canvas { position: absolute; left: 0; width: 100%; display: block; }

.trail .track { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; }

.trail .props { position: absolute; left: 0; top: 0; width: 100%; z-index: 1; }

.trail .fx { position: absolute; left: 0; top: 0; width: 100%; z-index: 3; }

.trail .fx i { position: absolute; left: 0; top: 0; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; opacity: 0; will-change: transform, opacity; }

.trail .fx i.sand { background: #f6e3ae; box-shadow: 1px 1px 0 rgba(150, 100, 40, .55); }

.trail .fx i.red { background: #c26c42; box-shadow: 1px 1px 0 rgba(80, 30, 12, .6); }

.trail .fx i.mud { background: #4a3a28; border-radius: 40% 60% 50% 45%; box-shadow: 1px 1px 0 rgba(20, 14, 6, .6); }

.trail .fx i.dust { background: #c9ad7c; box-shadow: 1px 1px 0 rgba(74, 53, 25, .5); }

.trail .fx i.snow { background: #ffffff; box-shadow: 0 0 1px rgba(80, 110, 130, .6); }

.trail .fx i.salt { background: #fbfbf7; box-shadow: 0 0 1px rgba(120, 120, 110, .6); }

.trail .fx i.spray { background: #e9f4fb; box-shadow: 0 0 0 1px rgba(60, 120, 160, .55); }

.trail .bike, .trail .bike-shadow { position: absolute; left: 0; top: 0; z-index: 4; will-change: transform; }

.trail .bike-shadow { z-index: 3; opacity: .42; }

.trail .bike-art svg, .trail .bike-shadow svg { display: block; width: 100%; height: 100%; overflow: visible; }

.trail .bike.lights-off .bk-lens { filter: brightness(.55); }

.trail .bk-leg-down { opacity: 0; transition: opacity .35s var(--ease); }

.trail .bk-leg-l { transition: opacity .35s var(--ease); }

.trail .bike.is-footdown .bk-leg-down { opacity: 1; }

.trail .bike.is-footdown .bk-leg-l { opacity: 0; }

.trail .canopy { display: none; }

.trail-page { position: relative; z-index: 2; }

/* things on the route, drawn crisp */
.trail .barrier { position: absolute; left: 0; top: 0; width: 0; height: 0; }

.trail .barrier .post { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: var(--radius-sm); background: var(--ink); box-shadow: 2px 3px 4px rgba(31, 20, 7, .4); }

.trail .barrier .boom { position: absolute; left: 0; top: -3.5px; height: 7px; border-radius: var(--radius-sm); transform-origin: 0 50%; transition: transform 1.1s var(--ease); box-shadow: 3px 4px 4px rgba(31, 20, 7, .35);
  background: repeating-linear-gradient(90deg, #fbf7ee 0 12px, #a8452b 12px 24px); border: 1px solid rgba(31, 20, 7, .5); }

.trail .barrier.up .boom { transform: scaleX(.22); }

.trail .garage { position: absolute; left: 0; top: 0; }

.trail .garage svg { display: block; overflow: visible; }

/* ------------------------------------------------------------------ type and panels */
.trail .h2 { font: 700 clamp(30px, 2.7vw, 42px)/1.1 var(--display); letter-spacing: -.005em; margin: 0 0 20px; max-width: 24ch; text-wrap: balance; color: var(--ink); }

.trail .h3 { font: 700 23px/1.2 var(--display); margin: 0 0 10px; color: var(--ink); }

.trail .body { color: var(--ink-2); margin: 0 0 .9em; max-width: 62ch; }

.trail .panel { color: inherit; background: var(--cream); border: 1px solid rgba(74, 53, 25, .16); border-radius: var(--radius-card); padding: 22px 26px 20px; box-shadow: 0 14px 30px -20px rgba(42, 30, 11, .55); }

.trail .panel > :last-child { margin-bottom: 0; }

.trail .go { display: inline-flex; align-items: center; gap: 10px; font: 650 15.5px/1.2 var(--sans); color: var(--teal-dk); text-decoration: none; padding: 10px 0 2px; }

.trail .go i { width: 22px; height: 1.8px; background: currentColor; position: relative; transition: width .45s var(--ease); }

.trail .go i::after { content: ''; position: absolute; right: 0; top: -3.6px; width: 8px; height: 8px; border-right: 1.8px solid currentColor; border-top: 1.8px solid currentColor; transform: rotate(45deg); }

@media (hover: hover) and (pointer: fine) {
  .trail .go:hover i { width: 34px; }
}

.trail .go span { border-bottom: 1px solid rgba(47, 107, 109, .45); padding-bottom: 2px; }

.trail .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.trail .btn { border: 0; justify-content: normal; white-space: normal; letter-spacing: normal; display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px; min-height: 46px; border-radius: var(--radius-pill); font: 700 15px/1 var(--sans); text-decoration: none; color: var(--ink); background: var(--teal); box-shadow: inset 0 -2px 0 rgba(31, 20, 7, .14); transition: transform .35s var(--ease), background .35s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .trail .btn:hover { color: var(--ink); background: var(--teal-2); transform: translateY(-2px); }
}

.trail .btn:active { transform: scale(.97); }

.trail .btn i { width: 16px; height: 1.8px; background: currentColor; position: relative; }

.trail .btn i::after { content: ''; position: absolute; right: 0; top: -3.4px; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-top: 1.8px solid currentColor; transform: rotate(45deg); }

.trail .btn-quiet { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(42, 30, 11, .55); }

@media (hover: hover) and (pointer: fine) {
  .trail .btn-quiet:hover { background: rgba(138, 185, 187, .3); }
}

/* line reveal */
.trail .ln .w, .trail .w { white-space: nowrap; }

.trail .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

.trail .ln > span { display: block; transform: translateY(105%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 75ms + var(--d0, 0ms)); }

.trail .is-in .ln > span, .trail .ln.is-in > span { transform: none; }

/* ------------------------------------------------------------------ opening */
.trail .opening { height: 100vh; height: 100svh; min-height: 660px; max-height: 1000px; position: relative; }

.trail .open-copy { position: absolute; left: 96px; top: clamp(170px, 23vh, 210px); width: min(560px, 38vw); z-index: 2; }

.trail .hl { font: 700 clamp(34px, 3.2vw, 48px)/1.07 var(--display); letter-spacing: -.012em; margin: 0 0 20px; text-wrap: balance; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 248, 230, .5); }

.trail .lede-panel { padding: 18px 22px 16px; }

.trail .lede { font-size: clamp(16px, 1.15vw, 17.5px); line-height: 1.55; color: var(--ink-2); margin: 0 0 8px; max-width: 56ch; }

.trail .lede-2 { color: var(--ink); font-weight: 550; }

.trail .prints { position: absolute; right: 80px; top: calc(50% + 34px - min(680px, 47vw) * 240 / 680); width: min(680px, 47vw); z-index: 1; }

.trail .prints > .cluster { display: block; position: relative; aspect-ratio: 680 / 480; }

.trail .prints[data-depth] { will-change: transform; }

/* four photographs of clearly different sizes, 16px apart at full size, nothing hiding a face */
.trail .px { position: absolute; }

.trail .px-1 { left: 0; top: 0; width: 60%; }

.trail .px-4 { left: 62.35%; top: 10%; width: 37.65%; }

.trail .px-3 { left: 62.35%; top: 48.95%; width: 29.41%; }

.trail .px-2 { left: 17.65%; top: 60%; width: 42.35%; }

.trail .print { margin: 0; background: var(--cream); padding: 5px; box-shadow: 0 0 0 1px rgba(74, 53, 25, .2), 0 20px 34px -16px rgba(42, 30, 11, .6); position: relative; }

.trail .print img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.js .trail .print-open { opacity: 0; transform: translateY(22px) scale(1.02); transition: opacity .8s var(--ease) var(--d), transform 1.4s var(--ease) var(--d); }

.js .trail .is-ready .print-open.is-loaded { opacity: 1; transform: none; }

/* any framed photograph waits, invisible, until its own image has decoded */
.js .trail [data-wait]:not(.print-open) { transition: opacity .7s var(--ease); }

.js .trail [data-wait]:not(.is-loaded) { opacity: 0 !important; }

.trail .cue { position: absolute; left: calc(50% + 4px); bottom: 46px; display: flex; align-items: center; gap: 14px; z-index: 2; color: var(--ink); font: 700 15px/1.3 var(--sans); background: var(--cream); padding: 10px 16px; border-radius: var(--radius-pill); box-shadow: 0 8px 18px -12px rgba(42, 30, 11, .6); }

.trail .cue-arrow { display: grid; gap: 2px; }

.trail .cue-arrow i { display: block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .25; animation: chev 1.8s var(--ease) infinite; }

.trail .cue-arrow i:nth-child(2) { animation-delay: .2s; }
 .trail .cue-arrow i:nth-child(3) { animation-delay: .4s; }

@keyframes chev { 30% { opacity: 1; } 70%, 100% { opacity: .25; } }

.trail .cue.gone { opacity: 0; transition: opacity .6s var(--ease); }

/* ------------------------------------------------------------------ what's on */
.trail .whatson { padding: 70px var(--far) 30px var(--gut); }

.trail .whatson .h2 { max-width: 30ch; }

.trail .wo-grid { container: promotions / inline-size; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; max-width: 1124px; align-items: start; }

.trail .wo { display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start; }

.trail .wo-lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px; }

.trail .wo-img { padding: 0; box-shadow: none; }

.trail .wo-img img { border-radius: var(--radius); }

.trail .wo-africa { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }

.trail .wo-africa .wo-img img { aspect-ratio: 4 / 5; }

.trail .wo-quadlock { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; }

.trail .wo-quadlock .wo-img img { aspect-ratio: 1; }

.trail .wo-quadlock .h3 { font-size: 22px; }

.trail .wo .h3 { font-size: 24px; }

.trail .wo-lead .h3 { font-size: 30px; }

.trail .wo .body { font-size: 16px; }


/* ------------------------------------------------------------------ journeys intro */
.trail .jintro { padding: 40px var(--far) 40px var(--gut); }

.trail .jintro .h2 { max-width: 30ch; }

.trail .note { color: var(--ink); font: 700 19px/1.4 var(--sans); margin: 0 0 22px; }

.trail .jindex { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 1060px; }

.trail .jindex a { display: flex; align-items: center; gap: 9px; padding: 0 15px; min-height: 44px; border-radius: 8px; text-decoration: none; color: var(--ink);
  background: var(--cream); border: 1px solid rgba(74, 53, 25, .2); transition: transform .4s var(--ease), background .4s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .trail .jindex a:hover { transform: translateY(-2px); background: #fffaf0; }
}

.trail .jindex a.is-big .ji-title { font-weight: 800; }

.trail .ji-year { font: 700 13px/1 var(--sans); color: var(--teal-dk); letter-spacing: .04em; }

.trail .ji-title { font: 600 18px/1 var(--display); }

/* ------------------------------------------------------------------ signposts: dark boards, gold lettering */
.trail .sign { position: relative; display: flex; align-items: flex-start; margin: 0 0 18px; --pull: 0px; }

.trail .sign-l { flex-direction: row; margin-left: calc(var(--pull) * -1); }

.trail .sign-r { flex-direction: row-reverse; margin-right: calc(var(--pull) * -1); }

.trail .sign-post { flex: none; position: relative; z-index: 1; width: 3px; height: 120px; margin-top: -8px; border-radius: 2px; background: var(--ink); }

.trail .sign-post::after { content: ''; position: absolute; left: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(246, 239, 220, .8); }

.trail .sign-arm { display: flex; flex-direction: column; align-items: flex-start; position: relative; margin-top: 6px; transform-origin: 0 20px; }

.trail .sign-l .sign-arm { margin-left: -3px; }

.trail .sign-r .sign-arm { margin-right: -3px; align-items: flex-end; transform-origin: 100% 20px; }

.trail .sign-board { position: relative; margin: 0; font: 700 clamp(28px, 2.4vw, 36px)/1 var(--display); color: var(--gold-lt); letter-spacing: .005em; padding: 12px 44px 13px 18px; white-space: nowrap; background: var(--bar);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%); }

.trail .sign-plate { margin: 8px 0 0 10px; font: 800 14px/1 var(--sans); letter-spacing: .14em; color: var(--ink); background: var(--cream); padding: 5px 9px; border-radius: var(--radius-media); }

.trail .sign-r .sign-board { padding: 12px 18px 13px 44px; clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 50%); }

.trail .sign-r .sign-plate { margin: 8px 10px 0 0; }

.trail .sign-small .sign-board { font-size: 24px; padding: 10px 36px 11px 16px; }

.trail .sign-small.sign-r .sign-board { padding: 10px 16px 11px 36px; }

.trail .sign-small .sign-post { height: 92px; }

.trail .sign-small .sign-plate { font-size: 13px; }

.js .trail .sign-arm { transform: rotate(-10deg); opacity: 0; transition: transform 1.3s var(--spring), opacity .45s var(--ease); }

.js .trail .sign-r .sign-arm { transform: rotate(10deg); }

.js .trail .sign.is-in .sign-arm { transform: none; opacity: 1; }

.trail .lane-l .stop-text .sign { --pull: calc(var(--gut) - var(--lane) - var(--hw) - 18px); }

.trail .lane-r .stop-text .sign { --pull: calc(var(--gut) - var(--lane) - var(--hw) - 18px); }

.trail .card .sign { --pull: calc(var(--chan) - var(--hw) - 30px); }

/* ------------------------------------------------------------------ big stops */
.trail .stop.big { display: flex; align-items: center; padding: 70px 0 50px; min-height: min(100svh, 760px); }

.trail .stop-in { display: grid; grid-template-columns: minmax(0, 490px) minmax(0, 580px); gap: clamp(36px, 5vw, 72px); align-items: center; width: 100%; }

.trail .lane-l .stop-in { padding: 0 var(--far) 0 var(--gut); }

.trail .lane-r .stop-in { padding: 0 var(--gut) 0 var(--far); grid-template-columns: minmax(0, 580px) minmax(0, 490px); justify-content: end; }

.trail .lane-r .stop-media { order: -1; }

.trail .lane-r .stop-text { display: flex; flex-direction: column; align-items: stretch; }

.trail .lane-r .stop-text .sign { align-self: flex-end; }

.trail .story { font: 500 clamp(18.5px, 1.4vw, 21px)/1.45 var(--sans); color: var(--ink); margin: 0 0 14px; }

.trail .moments { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }

.js .trail .moments { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .15s, transform 1.1s var(--ease) .15s; }

.js .trail .moments.is-in { opacity: 1; transform: none; }

.trail .moments li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

.trail .moments li::before { content: ''; position: absolute; left: 3px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-dk); }

.trail .spec { margin: 0 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding: 12px 0 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.trail .spec div { min-width: 0; }

.trail .spec dt { font: 700 11.5px/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }

.trail .spec dd { margin: 2px 0 0; font-size: 15px; line-height: 1.35; color: var(--ink); }

.trail .stop-media { position: relative; }

/* the tag aperture: the logo's pointed tag grows into a full photograph */
.trail .ap { margin: 0; position: relative; filter: drop-shadow(0 18px 22px rgba(42, 30, 11, .45)); }

.trail .ap-clip { --p: 1; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #352815;
  clip-path: polygon(calc((1 - var(--p)) * 12%) 0, calc(100% - (1 - var(--p)) * 12%) 0, calc(100% - (1 - var(--p)) * 12%) calc(74% + var(--p) * 26%), 50% calc(90% + var(--p) * 10%), calc((1 - var(--p)) * 12%) calc(74% + var(--p) * 26%)); }

.trail .ap-clip img { position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover; transform: translateY(calc((var(--p) - 1) * -3%)) scale(calc(1.06 - var(--p) * .06)); }

.trail .ap-portrait .ap-clip { aspect-ratio: 652 / 624; }

.trail .ap-mid { width: min(500px, 100%); }

/* drawn route maps for the journeys without photographs */
.trail .map { margin: 0; position: relative; }

.trail .map-paper { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px rgba(74, 53, 25, .3), 0 20px 36px -18px rgba(42, 30, 11, .6); }

.trail .map-paper svg { display: block; width: 100%; height: auto; }

.trail .map .route, .trail .map .route-halo { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }

/* stops, the finish marker and its name arrive as the line reaches them */
.trail .map .stop { opacity: clamp(0, calc((1 - var(--draw, 1) - var(--at, 0)) * 40 + 1), 1); }

/* ------------------------------------------------------------------ compact runs */
.trail .run { padding: 50px 0 30px; }

.trail .run-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--chan) * 2); padding: 0 56px; max-width: 1360px; margin: 0 auto; }

.trail .card { position: relative; max-width: 500px; padding-bottom: 30px; }

.trail .card-l { grid-column: 1; justify-self: end; display: flex; flex-direction: column; }

.trail .card-r { grid-column: 2; justify-self: start; }

.trail .card-l .sign { align-self: flex-end; }

.trail .run .card:nth-child(2) { margin-top: 170px; }

.trail .run .card:nth-child(3) { margin-top: -150px; }

.trail .card .panel { padding: 18px 20px 16px; }

.trail .card .story { font-size: 17.5px; margin-bottom: 12px; }

.trail .card-row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; margin-bottom: 10px; }

.trail .card .moments { margin: 0; gap: 5px; }

.trail .card .moments li { font-size: 15.5px; }

.trail .print-sm { padding: 4px; }

.trail .spec-line { font-size: 14.5px; color: var(--ink-2); margin: 0 0 2px; line-height: 1.5; }

.trail .solo .run-in { align-items: center; }

.trail .solo-media { grid-column: 1; justify-self: end; width: min(500px, 100%); }

.trail .solo .card { grid-column: 2; }

.trail .solo .card-row { grid-template-columns: 1fr; }

.trail .hide-d { display: none; }

/* ------------------------------------------------------------------ crossings between sections */
.trail .x { height: 190px; }

.trail .x-pass { height: 160px; }

.trail .x-river, .trail .x-lake { height: 250px; }

/* ------------------------------------------------------------------ the man */
.trail .man-a { display: flex; align-items: center; padding: 40px 0 40px; }

.trail .man-in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 640px); gap: clamp(40px, 5vw, 80px); align-items: center; padding: 0 var(--gut) 0 var(--far); justify-content: end; width: 100%; }

.trail .man-text .body { font-size: 17.5px; }

.trail .man-b { padding: 50px 0 40px; }

.trail .pass-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--chan) * 2); row-gap: 30px; padding: 0 56px; max-width: 1360px; margin: 0 auto; }

.trail .passage { max-width: 500px; }

.trail .passage.pl { justify-self: end; }

.trail .passage.pr { justify-self: start; margin-top: 90px; margin-bottom: -50px; }

/* ------------------------------------------------------------------ doors */
.trail .doors { padding: 60px var(--far) 50px var(--gut); }

.trail .door-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 50px); max-width: 1120px; }

.trail .door a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); height: 100%; transition: transform .5s var(--ease); -webkit-tap-highlight-color: transparent; }

@media (hover: hover) and (pointer: fine) {
  .trail .door a:hover { transform: translateY(-4px); }
}

.trail .door a:active { transform: scale(.98); }

.trail .door-view { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--bar); }

.trail .door-view img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }

.trail .door-cap { display: flex; flex-direction: column; border-radius: 0 0 var(--radius-card) var(--radius-card); border-top: 0; flex: 1; }

.trail .door-title { display: block; font: 700 27px/1.15 var(--display); margin-bottom: 8px; }

.trail .door-text { display: block; color: var(--ink-2); font-size: 16px; line-height: 1.55; margin-bottom: 10px; }

.trail .door-go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--teal-dk); font: 700 15.5px/1 var(--sans); }

.trail .door-go i { width: 22px; height: 1.8px; background: currentColor; position: relative; transition: width .45s var(--ease); }

.trail .door-go i::after { content: ''; position: absolute; right: 0; top: -3.6px; width: 8px; height: 8px; border-right: 1.8px solid currentColor; border-top: 1.8px solid currentColor; transform: rotate(45deg); }

@media (hover: hover) and (pointer: fine) {
  .trail .door a:hover .door-go i { width: 34px; }
}

/* ------------------------------------------------------------------ exits */
.trail .exits { padding: 50px var(--far) 70px var(--gut); }

.trail .exit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px); margin-top: 30px; max-width: 1124px; }

.trail .exit { display: flex; flex-direction: column; padding: 16px 18px 20px; }

.trail .exit-vis { margin-bottom: 18px; }

.trail .print-exit { width: 100%; padding: 0; box-shadow: none; }

.trail .print-exit img { aspect-ratio: 16 / 10; border-radius: var(--radius); }

.trail .exit .h3 { font-size: 26px; }

.trail .exit .body { font-size: 16px; }

.trail .exit .btns { margin-top: auto; padding-top: 6px; }

/* ------------------------------------------------------------------ footer: the trail's end on the map, then the dark bar */
.trail .foot { position: relative; padding: 0; }

/* The last frame: the trail runs into the barn yard and the shared footer starts right under the barn.
   Its height is the barn's: trail.js puts the barn 44px below the end slot (30px on phones) and draws it
   136px deep (96px), so the frame ends just under the barn's shadow. */
.trail .foot-map { position: relative; height: 260px; padding: 0 var(--far) 62px var(--gut); display: flex; flex-direction: column; justify-content: flex-end; }

.trail .end-slot { position: absolute; left: 0; top: 64px; width: 1px; height: 1px; }


/* ------------------------------------------------------------------ medium laptops */
@media (max-width: 1300px) {
  :root { --gut: 214px; --far: 56px; --chan: 104px; }

  .trail .stop-in { grid-template-columns: minmax(0, 450px) minmax(0, 1fr); }

  .trail .lane-r .stop-in { grid-template-columns: minmax(0, 1fr) minmax(0, 450px); }

}

@media (max-height: 760px) and (min-width: 761px) {
  .trail .hl { font-size: clamp(32px, 3vw, 44px); }

  .trail .story { font-size: 18.5px; }

  .trail .spec { gap: 6px 22px; padding: 10px 0; }

}

/* ------------------------------------------------------------------ phone: its own design */
/* Keep the desktop trail on tablets, with enough space for every card's text. */
@media (min-width: 761px) and (max-width: 1100px) {
  :root { --lane: 56px; --gut: 112px; --far: 32px; --chan: 42px; }
  .trail .wo-grid { grid-template-columns: 1fr; }
  .trail .wo-lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .trail .wo-africa { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
  .trail .run-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 32px; }
  .trail .card, .trail .stop-text, .trail .wo > * { min-width: 0; }
  .trail .card-row { grid-template-columns: 1fr; }
  .trail .sign-board { white-space: normal; font-size: 28px; }
}

@media (max-width: 760px) {
  :root { --lane: 30px; --gut: 64px; --far: 16px; --hw: 15px; }

  .trail { font-size: 16.5px; }

  .trail .opening { height: auto; min-height: 100svh; max-height: none; display: flex; flex-direction: column; padding: 84px var(--far) 96px var(--gut); }

  .trail .prints { position: relative; order: -1; left: auto; right: auto; top: auto; width: 100%; max-width: 226px; margin: 0 0 14px; }

  .trail .open-copy { position: static; width: auto; }

  .trail .hl { font-size: 24px; line-height: 1.12; margin-bottom: 10px; }

  .trail .lede-panel { padding: 12px 14px 10px; }

  .trail .lede { font-size: 16px; line-height: 1.45; margin-bottom: 6px; }

  .trail .print { padding: 3px; }

  .trail .cue { left: var(--gut); bottom: 28px; font-size: 14px; padding: 10px 14px; }

  .trail .whatson { padding: 40px var(--far) 40px var(--gut); }

  .trail .wo-grid { grid-template-columns: 1fr; gap: 16px; }

  .trail .wo, .trail .wo-lead, .trail .wo-africa { grid-template-columns: 1fr; gap: 12px; padding: 14px 14px 16px; }

  .trail .wo-africa .wo-img img { aspect-ratio: 16 / 9; }

  .trail .wo-quadlock { grid-template-columns: 84px minmax(0, 1fr); }

  .trail .wo-lead .h3 { font-size: 25px; }

  .trail .wo .h3 { font-size: 22px; }

  .trail .jintro { padding: 40px var(--far) 50px var(--gut); }

  .trail .jindex { gap: 8px; }

  .trail .jindex a { padding: 0 14px; min-height: 46px; }

  .trail .ji-title { font-size: 17px; }

  .trail .stop.big { min-height: 0; padding: 50px 0 40px; display: block; }

  .trail .stop-in, .trail .lane-r .stop-in { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 0 var(--far) 0 var(--gut); }

  .trail .lane-r .stop-media { order: -1; }

  .trail .stop-text, .trail .lane-r .stop-text { display: contents; }

  .trail .stop-text .sign { order: -2; }

  .trail .stop-media { order: -1; margin-right: calc(var(--far) * -1); }

  .trail .sign-r { flex-direction: row; margin-right: 0; }

  .trail .sign-r .sign-arm { align-items: flex-start; margin-right: 0; margin-left: -3px; transform-origin: 0 20px; }

  .trail .sign-r .sign-board, .trail .sign-small.sign-r .sign-board { padding: 11px 38px 12px 16px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }

  .trail .sign-r .sign-plate, .trail .sign-plate { margin: 8px 0 0 12px; }

  .js .trail .sign-r .sign-arm { transform: rotate(-10deg); }

  .trail .sign, .trail .lane-l .stop-text .sign, .trail .lane-r .stop-text .sign, .trail .card .sign { --pull: 18px; margin-left: -18px; align-self: flex-start; }

  .trail .sign-board { font-size: 27px; white-space: normal; }

  .trail .sign-small .sign-board { font-size: 23px; }

  .trail .sign-post { height: 100px; }

  .trail .panel { padding: 16px 16px 14px; }

  .trail .story { font-size: 17.5px; }

  .trail .moments li { font-size: 16px; }

  .trail .spec { grid-template-columns: 1fr 1fr; gap: 8px 14px; }

  .trail .spec dd { font-size: 16px; }

  .trail .run { padding: 40px 0 20px; }

  .trail .run-in, .trail .pass-grid { display: block; padding: 0 var(--far) 0 var(--gut); }

  .trail .card { max-width: none; margin: 0 0 36px !important; }

  .trail .card .story { font-size: 17px; }

  .trail .card-row { grid-template-columns: 1fr; gap: 12px; }

  .trail .print-sm, .trail .map-sm { max-width: 260px; }

  .trail .card .moments li { font-size: 16px; }

  .trail .spec-line { font-size: 16px; }

  .trail .solo-media { margin: 0 calc(var(--far) * -1) 26px 0; width: auto; justify-self: stretch; }

  .trail .card, .trail .card-l, .trail .card-r, .trail .passage, .trail .passage.pl, .trail .passage.pr { justify-self: stretch; }

  .trail .x { height: 200px; }

  .trail .x-pass { height: 320px; }

  .trail .x-river, .trail .x-lake { height: 230px; }

  .trail .man-a { min-height: 0; padding: 50px 0 30px; display: block; }

  .trail .man-in { display: block; padding: 0 var(--far) 0 var(--gut); }

  .trail .man-portrait { width: 250px; margin-bottom: 22px; }

  .trail .man-text .body { font-size: 16.5px; }

  .trail .man-b { padding: 30px 0 30px; }

  .trail .passage, .trail .passage.pr { margin: 0 0 22px; max-width: none; }

  .trail .body { font-size: 16.5px; }

  .trail .doors { padding: 50px var(--far) 40px var(--gut); }

  .trail .door-list { grid-template-columns: 1fr; gap: 18px; }

  .trail .door-title { font-size: 23px; margin-bottom: 4px; }

  .trail .exits { padding: 50px var(--far) 40px var(--gut); }

  .trail .exit-list { grid-template-columns: 1fr; gap: 22px; }

  .trail .btn { padding: 15px 20px; font-size: 16px; }

  .trail .foot-map { height: 202px; padding: 0 var(--far) 30px var(--gut); }

  .trail .end-slot { top: 56px; }


}

/* ------------------------------------------------------------------ reduced motion: everything present and still */
@media (prefers-reduced-motion: reduce) {
  .trail .print-open, .trail .sign-arm, .trail .cue-arrow i { animation: none !important; transition: none !important; }

  .js .trail .print-open.is-loaded { opacity: 1; transform: none; }

  .js .trail .sign-arm, .js .trail .sign-r .sign-arm { transform: none; opacity: 1; }

  .trail .ln > span { transform: none !important; transition: none !important; }

  .js .trail .moments { opacity: 1; transform: none; transition: none; }

  .trail .ap-clip { --p: 1 !important; }

  .trail .map .route, .trail .map .route-halo { stroke-dashoffset: 0 !important; }
  .trail .map .stop { opacity: 1 !important; }

  .trail .barrier .boom { transition: none; }
  .trail .btn, .trail .go i, .trail .bk-leg-down, .trail .bk-leg-l,
  .trail .door-view img, .trail [data-wait] { transition: none; }
  .trail .btn:active { transform: none; }
  .js .trail [data-wait]:not(.print-open) { transition: none; }

}

/* ------------------------------------------------------------------ Trail inside the site
   The site's own map ground is replaced by Trail's (sized and drifted by home.js), and the footer's little
   tyre track and parked bike are hidden because the real bike parks in the barn just above the footer. */
body[data-page="home"] .ground, body[data-page="home"] .footer-trail { display: none; }
body[data-page="home"] .site-footer { margin-top: 0; }

/* site.css element rules Trail was not written against */
.trail :where(h1, h2, h3, h4) { letter-spacing: normal; text-wrap: wrap; max-width: none; }
.trail :where(p, li) { text-wrap: wrap; }
.trail :target { scroll-margin-top: 0; }
.trail a:active { opacity: 1; }
.trail :where(canvas, svg) { max-width: none; }

/* object-position for the photographs (the workshop set these inline; the CSP blocks inline styles) */
.trail .op-50-40 { object-position: 50% 40%; }
.trail .op-50-30 { object-position: 50% 30%; }
.trail .op-60-40 { object-position: 60% 40%; }
.trail .op-40-40 { object-position: 40% 40%; }
.trail .op-55-35 { object-position: 55% 35%; }
.trail .op-45-40 { object-position: 45% 40%; }
.trail .op-50-45 { object-position: 50% 45%; }
.trail .op-45-50 { object-position: 45% 50%; }
/* the opening prints arrive one after another */
.trail .px-1 .print-open { --d: 0ms; }
.trail .px-2 .print-open { --d: 110ms; }
.trail .px-3 .print-open { --d: 220ms; }
.trail .px-4 .print-open { --d: 330ms; }

/* ------------------------------------------------------------------ the logo intro (stage hidden unless the head script chose to play it) */
.intro { display: none; }
/* html.intro-play (set by /js/intro-gate.js before first paint) shows the stage over everything, header included,
   and hides the header's own tag until the intro's tag has landed on it. Phones use the explicit Skip control;
   touch gestures remain on the overlay until playback finishes. The CSS-only failsafe releases the page after 12 s even if no script runs at all. */
html.intro-play .intro { display: block; position: fixed; inset: 0; z-index: 100; cursor: pointer; touch-action: none; overscroll-behavior: none; animation: intro-release .5s ease 12s forwards; }
html.intro-play .intro.is-on { animation: none; }
html.intro-play .site-header .tag { opacity: 0; animation: intro-tag-back 0s linear 12s forwards; }
@keyframes intro-release { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes intro-tag-back { to { opacity: 1; } }
.intro-stage { position: absolute; inset: 0; background: #0f0b07; overflow: hidden; contain: strict; }
.intro-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 46%, rgba(52, 36, 18, .38), rgba(0, 0, 0, 0) 58%), radial-gradient(140% 120% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55)); }
.intro-under { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-logo { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; z-index: 1; }
.intro-art { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; opacity: 0; }
/* Building the wheel awaits image decoding before its time-zero transform is installed.
   Keep that unfinished HTML plane unpainted until the complete timeline is ready. */
.intro-plane { position: absolute; left: 0; top: 0; width: 2020px; height: 1170px; transform-origin: 0 0; pointer-events: none; visibility: hidden; }
.intro.is-on .intro-plane { visibility: visible; }
.intro-plane img, .intro-plane svg { display: block; max-width: none; height: auto; }
.intro-fx { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; z-index: 2; }
.intro-skip { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 3;
  padding: 10px 14px; border-radius: var(--radius-pill); color: rgba(233, 220, 199, .72); font: 500 13.5px/1 var(--sans); letter-spacing: .01em;
  background: rgba(29, 21, 13, .6); border: 1px solid rgba(233, 220, 199, .16); opacity: 0; transition: opacity .6s var(--ease) .8s, color .2s var(--ease); }
.intro.is-on .intro-skip { opacity: 1; }
.intro.is-handoff .intro-skip { opacity: 0; transition-delay: 0s; }
.intro-skip:focus-visible { color: #f3ecd6; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .intro-skip:hover { color: #f3ecd6; opacity: 1; }
}
.intro-skip:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 4px; }

/* A quieter opening: the map, a short invitation and real photographs, with the biography below. */
.trail .opening { min-height: 640px; }
.trail .opening::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg,#f3ecd648,transparent 65%); }
.trail .open-copy { left: clamp(28px,6.6vw,96px); top: 28%; width: min(620px,44vw); }
.trail .hl { font-size: clamp(48px,5.2vw,78px); line-height: .98; max-width: 12ch; font-weight: 750; letter-spacing: -.025em; }
.trail .hero-link { display: inline-flex; align-items: center; gap: 20px; min-height: 48px; margin-top: 14px; font-weight: 650; color: var(--ink); text-decoration-thickness: 1px; }
.trail .prints { right: 6%; width: min(580px,42vw); top: 29%; }
.trail .cue { background: transparent; box-shadow: none; left: 52%; padding-left: 0; font-size: 13px; }
.trail .home-introduction { padding: 28px var(--far) 36px var(--gut); }
.trail .home-introduction .lede-panel { max-width: 780px; }
.trail .bike-art { filter: drop-shadow(0 1px 1px #291e0c55); }
.trail .bike-shadow { opacity: .32; }
.trail .river-flow { position: absolute; left: -12px; pointer-events: none; opacity: .38; animation: river-current 7s ease-in-out infinite alternate; animation-play-state: paused; }
.trail .river-flow.is-flowing { animation-play-state: running; }
html.menu-open .trail .river-flow { animation-play-state: paused; }
@keyframes river-current { from { transform: translate3d(-4px,0,0); opacity: .25; } to { transform: translate3d(8px,1px,0); opacity: .45; } }
@media (max-width: 760px) {
  .trail .opening { height: 100svh; min-height: 620px; padding: 98px 24px 80px; justify-content: center; gap: 24px; }
  .trail .open-copy { position: relative; left: auto; top: auto; width: 100%; }
  .trail .hl { font-size: clamp(42px,11vw,52px); max-width: 14ch; margin-bottom: 6px; }
  .trail .hero-link { margin-top: 0; }
  .trail .prints { order: 0; right: auto; top: auto; width: 86%; max-width: 290px; margin: 0 0 0 auto; }
  .trail .cue { left: 64px; bottom: 22px; max-width: calc(100% - 90px); font-size: 12px; }
  .trail .x-river, .trail .x-lake { height: 112px; }
  .trail .x-pass { height: 96px; }
  .trail .prints > .cluster { aspect-ratio: 680 / 400; }
  .trail .px-1 { width: 67%; }
  .trail .px-2 { width: 48%; left: 52%; top: 55%; }
  .trail .px-3, .trail .px-4 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .trail .river-flow { animation: none; } }

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .trail .opening::before { background: var(--cream); }
  .trail .panel { border-color: var(--ink-3); }
  .trail .print { box-shadow: 0 0 0 1px var(--ink-3); }
}

/* Upcoming trips arrive once with a short, compositor-only fade and rise. */
.trail .wo[data-reveal].is-revealed { transition-duration: .55s, .65s; }
@media (min-width: 761px) { .trail .wo[data-reveal]:nth-child(3) { --reveal-delay: 70ms; } }

/* On phones each adventure reserves the opposite gutter for the bike. Crossings occupy gaps. */
@media (max-width: 760px) {
  .trail .run-in { padding: 0; }
  .trail .card[data-mobile-lane] { padding-inline: var(--gut) var(--far); margin-bottom: 144px !important; }
  .trail .card[data-mobile-lane]:last-child { margin-bottom: 0 !important; }
  .trail .card[data-mobile-lane="R"] { padding-inline: var(--far) var(--gut); }
  .trail .run.solo .solo-media { margin: 0 var(--gut) 26px var(--far); }
  .trail [data-mobile-lane="R"] .stop-in { padding-inline: var(--far) var(--gut); }
  .trail [data-mobile-lane="R"] .stop-media { margin-left: calc(var(--far) * -1); margin-right: 0; }
  .trail [data-mobile-lane="R"] .sign { margin-left: 0; margin-right: -18px; align-self: flex-end; flex-direction: row-reverse; }
  .trail [data-mobile-lane="R"] .sign-arm { margin-left: 0; margin-right: -3px; align-items: flex-end; transform-origin: 100% 20px; }
  .trail [data-mobile-lane="R"] .sign-board { padding: 11px 16px 12px 38px; clip-path: polygon(22px 0,100% 0,100% 100%,22px 100%,0 50%); }
  .trail [data-mobile-lane="R"] .sign-plate { margin: 8px 12px 0 0; }
}

/* These descendants adapt to the card area even when text enlargement changes
   the space available inside a viewport that otherwise keeps the desktop trail. */
@container promotions (inline-size < 36rem) {
  .trail .wo-lead, .trail .wo-africa { grid-template-columns: 1fr; }
  .trail .wo-lead { grid-column: 1 / -1; }
}
