/* HARGREAVES STREET — the page. Dark, warm, civic: Bendigo gold on night-blue, the glass of the GLASS
   site, and big friendly type. V2 (3 Oct 2026): a pale blue sky over the 3-D street; the road arrows in
   the ripples' mint; bigger instructions; the pill moves one way at a time; Home top right. */
:root {
  --bg: #0b0c10; --bg2: #11131a; --ink: #f4efe6; --ink2: #cfc8bc; --mute: #9a948a;
  --amber: #ffb23e; --teal: #7ff6e0; --mint: #b8fff2; --green: #86f59a; --blue: #9fd2ff; --gold: #e9c47c;
  --line: rgba(244, 239, 230, .14);
  --f: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --glass: rgba(14, 16, 22, .52); --glass-edge: rgba(244, 239, 230, .22);
  --r: 18px;
  --ics-bottom: clamp(30px, 5vh, 52px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.locked, body.ride-lock { overflow: hidden; }
body { margin: 0; font-family: var(--f); font-weight: 400; font-size: 18px; line-height: 1.55; background: transparent; overflow-x: hidden; }
a { color: inherit; }
b { font-weight: 500; }
em { font-style: normal; color: var(--gold); }

/* the engine, under everything. With the sky on, mall.js paints the backdrop every frame so it follows the
   horizon: pale blue above it, the road's own dark below (the road's splats are partly see-through) */
#shell { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); }
body.sky #shell { background: linear-gradient(180deg, #a9cdea 0%, #dcebf5 30%, #15171b 34%, #15171b 100%); }
#shell canvas, #shell #ui { position: absolute !important; inset: 0; }
#shell canvas { width: 100%; height: 100%; display: block; }
#shell #ui { display: none !important; }

main, footer { position: relative; z-index: 2; }

/* ── the glass ─────────────────────────────────────────────────────────── */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)), var(--glass);
  border: 1px solid var(--glass-edge); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 12px 40px rgba(0,0,0,.35); color: var(--ink); }
.kick { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.kick.amber { color: var(--amber); } .kick.teal { color: var(--teal); } .kick.green { color: var(--green); }
.kick.blue { color: var(--blue); } .kick.gold { color: var(--gold); } .kick.mint { color: var(--mint); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; border-radius: 40px; font: 500 15px/1 var(--f);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; color: var(--ink); border: 1px solid var(--glass-edge);
  transition: transform .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-1px); border-color: rgba(244,239,230,.6); box-shadow: 0 0 40px rgba(233,196,124,.22); }
.btn.solid { background: var(--gold); color: #17140e; border-color: var(--gold); }
.btn:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ── the header: "Interactive 3D Tour"; it fades away as the page scrolls down ─ */
.top { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(11,12,16,.8), rgba(11,12,16,0));
  padding: 18px clamp(16px, 4vw, 44px); pointer-events: none; transition: opacity .6s, transform .6s; }
.top > * { pointer-events: auto; }
.brand { font-size: 15px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.top-nav { display: flex; gap: 26px; }
.top-nav a { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink2); text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.top-nav a:hover { color: var(--ink); }
.top.away, body.ride-lock .top, body.in-ride .top { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.top.away > *, body.ride-lock .top > *, body.in-ride .top > * { pointer-events: none; }

/* ── the hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.hero-pic { position: absolute; inset: -4%; background-size: cover; background-position: center 58%; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,12,16,.55) 0%, rgba(11,12,16,.10) 38%, rgba(11,12,16,.35) 70%, var(--bg) 100%),
  radial-gradient(120% 90% at 20% 70%, rgba(11,12,16,.55), transparent 60%); }
.hero-in { position: absolute; left: clamp(20px, 7vw, 110px); right: clamp(20px, 7vw, 110px); bottom: clamp(70px, 14vh, 170px); max-width: 920px; }
.hero-title { margin: 0; font-weight: 300; font-size: clamp(52px, 8.4vw, 132px); line-height: .96; letter-spacing: -.01em; text-shadow: 0 2px 40px rgba(0,0,0,.45); }
.hero-kick { margin: 26px 0 0; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero-sub { margin: 18px 0 0; max-width: 36em; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink2); text-shadow: 0 1px 16px rgba(0,0,0,.7); }

/* ── words sections ────────────────────────────────────────────────────── */
.story { background: var(--bg); padding: clamp(110px, 20vh, 220px) clamp(20px, 7vw, 110px) clamp(120px, 26vh, 280px); }
.story-in { max-width: 1040px; margin: 0 auto; }
.big { margin: 0 0 .7em; font-weight: 300; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -.005em; }
.big b { font-weight: 400; color: var(--ink); }
.dim, .big.dim { color: var(--ink2); }
.big .dim { color: var(--mute); }
.lede { max-width: 34em; margin: 2.2em 0 0; font-size: clamp(18px, 1.5vw, 21px); letter-spacing: .02em; color: var(--ink2); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── THE WALK ──────────────────────────────────────────────────────────── */
/* V3: the tour is ONE screen of page (mall.js sets it in px); the way in and the way out are the screens either side */
.ride { position: relative; height: 100vh; background: transparent; }
.window { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.sheet { position: absolute; inset: 0; z-index: 2; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.sheet.held { cursor: grabbing; }
.sheet.lifting { cursor: ns-resize; }
body.ride-lock .sheet { touch-action: none; }
.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* a soft frame so the words always sit on something dark - light at the top, over the pale sky */
.window::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,12,16,.16), transparent 12%, transparent 60%, rgba(11,12,16,.5)); }

.title-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: 100vw; opacity: 0; will-change: transform, opacity; }
.title-card h2 { margin: 0; font-weight: 300; font-size: clamp(54px, 10.5vw, 176px); line-height: .92; letter-spacing: .03em; text-shadow: 0 4px 60px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4); }
.title-card .kick { margin-bottom: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.75); }
.tc-sub { margin: 26px 0 0; font-size: clamp(15px, 1.3vw, 18px); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 14px rgba(0,0,0,.85); }

.cards { position: absolute; left: clamp(16px, 4vw, 54px); bottom: clamp(146px, 19vh, 190px); width: min(460px, calc(100vw - 32px)); height: 0; }
.card { position: absolute; left: 0; bottom: 0; width: 100%; padding: 24px 28px 22px; border-radius: var(--r); opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); visibility: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)), rgba(12,14,20,.62);
  border: 1px solid var(--glass-edge); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 20px 60px rgba(0,0,0,.4); }
.card.wide { width: min(520px, calc(100vw - 32px)); }
.card.on { opacity: 1; transform: none; visibility: visible; }
.card h3 { margin: 0 0 10px; font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.18; }
.card p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink2); }
.card .kick { margin-bottom: 10px; font-size: 12px; }
.facts { margin: 4px 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--ink2); }
.facts li { margin: 6px 0; }
.facts b { color: var(--blue); font-size: 20px; margin-right: 4px; }
/* V3: each scene's points, a coloured dot each (the colours of the road: mint = vehicles, green = bikes,
   white = people, blue = parking, gold = places) */
.points { margin: 12px 0 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 11px; align-items: baseline; margin: 0 0 9px; font-size: 15.5px; line-height: 1.42; color: var(--ink2); }
.points li:last-child { margin-bottom: 0; }
.points b { color: var(--ink); font-weight: 500; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink2); transform: translateY(-1px); }
.dot.mint { background: var(--mint); box-shadow: 0 0 10px rgba(184,255,242,.7); } .dot.green { background: var(--green); box-shadow: 0 0 10px rgba(134,245,154,.6); }
.dot.white { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.6); } .dot.blue { background: var(--blue); box-shadow: 0 0 10px rgba(159,210,255,.6); }
.dot.gold { background: var(--gold); box-shadow: 0 0 10px rgba(233,196,124,.6); }

.tags { position: absolute; inset: 0; }
.tag { position: absolute; left: 0; top: 0; padding: 7px 14px 7px 12px; border-radius: 20px; white-space: nowrap; font-size: 14px; font-weight: 500;
  letter-spacing: .06em; color: var(--ink); opacity: 0; visibility: hidden; transform-origin: 0 50%; will-change: transform, opacity;
  background: rgba(12,14,20,.66); border: 1px solid rgba(244,239,230,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tag::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: currentColor; vertical-align: 1px;
  box-shadow: 0 0 12px currentColor; }
.tag.amber { color: #ffe1b0; } .tag.amber::before { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.tag.teal { color: #d6fff7; } .tag.teal::before { background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.tag.green { color: #dcffe2; } .tag.green::before { background: var(--green); box-shadow: 0 0 14px var(--green); }
.tag.blue { color: #e0f0ff; } .tag.blue::before { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.tag.gold { color: #fff0d2; } .tag.gold::before { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.tag.mint { color: #e6fffa; } .tag.mint::before { background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.tag.white { color: #fff; } .tag.white::before { background: #fff; box-shadow: 0 0 14px #fff; }

.chapters { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; pointer-events: none; opacity: 0; transition: opacity .8s; }
.ride.framed .chapters { opacity: 1; pointer-events: auto; }
.ch-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(244,239,230,.12); }
.ch-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--mint), var(--gold)); }
.ch-tick { position: absolute; bottom: 0; width: 30px; height: 26px; margin-left: -15px; padding: 0; border: 0; background: none; cursor: pointer; }
.ch-tick::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 2px; height: 11px; margin-left: -1px; background: rgba(244,239,230,.55); transition: height .2s, background .2s; }
.ch-tick:hover::after, .ch-tick.on::after { height: 17px; background: var(--gold); }
.ch-tick span { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 11px var(--f); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; pointer-events: none; text-shadow: 0 1px 8px #000; }
.ch-tick:hover span { opacity: 1; }

/* ── THE INSTRUCTIONS (Stark VARG's, as GLASS FX has them - bigger here): in the middle, the mouse or
   the hand doing what the words say ── */
/* high enough to clear the chapter card (bottom left) on a laptop screen; lower on a phone, where the
   cards stand at the top */
.steps { position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%); z-index: 4; width: max-content; max-width: 92vw; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .7s cubic-bezier(.2,.7,.2,1); }
.steps::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 560px; height: 300px; max-width: 120vw; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.5), rgba(0,0,0,0)); }
.steps.on { opacity: 1; }
.steps .stage { position: relative; height: 136px; }
.steps .glyph { position: absolute; left: 50%; top: 50%; color: #fff; filter: drop-shadow(0 2px 12px rgba(0,0,0,.85)); display: none; }
.steps .glyph.mouse { width: 48px; height: 70px; margin: -35px 0 0 -24px; }
.steps .glyph.hand { width: 56px; height: 75px; margin: -28px 0 0 -20px; transform-origin: 40% 20%; }
.steps .glyph.pinch, .steps .glyph.two { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.steps .glyph.pillg { width: 90px; height: 56px; margin: -28px 0 0 -45px; }
.steps[data-input='mouse'] .glyph.mouse { display: block; }
.steps[data-input='touch'] .glyph.hand { display: block; }
.steps[data-step='pill'] .glyph.mouse, .steps[data-step='pill'] .glyph.hand { display: none; }
.steps[data-step='pill'] .glyph.pillg { display: block; }
.steps[data-input='touch'][data-step='zoom'] .glyph.hand, .steps[data-input='touch'][data-step='lift'] .glyph.hand { display: none; }
.steps[data-input='touch'][data-step='zoom'] .glyph.pinch { display: block; }
.steps[data-input='touch'][data-step='lift'] .glyph.two { display: block; }
.steps .glyph .btn, .steps .glyph .wheel { fill: transparent; transition: fill .3s; }
.steps .ripple { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -34px 0 0 -25px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; }
.steps[data-input='touch'] .ripple { margin: -38px 0 0 -9px; }
.steps .words { margin-top: 12px; font: 500 16px/1.4 var(--f); letter-spacing: .22em; padding-left: .22em; text-transform: uppercase; white-space: nowrap; color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.6); }
/* drag: the hand or the mouse sweeps side to side, the button held */
.steps.on[data-step='drag'] .glyph.mouse, .steps.on[data-step='drag'] .glyph.hand { animation: st-sweep 2.4s cubic-bezier(.45,0,.55,1) infinite; }
.steps.on[data-step='drag'] .glyph .btn { fill: var(--mint); }
/* tap: a press, the button flashing, a ring spreading from the tip */
.steps.on[data-step='tap'] .glyph.mouse, .steps.on[data-step='tap'] .glyph.hand { animation: st-press 1.4s ease-in-out infinite; }
.steps.on[data-step='tap'] .glyph .btn { animation: st-flash 1.4s ease-in-out infinite; }
.steps.on[data-step='tap'] .ripple { animation: st-ripple 1.4s ease-out infinite; }
/* scroll: the wheel rolls */
/* zoom, on a mouse: the wheel rolls */
.steps.on[data-step='zoom'] .glyph.mouse .wheel { fill: var(--mint); animation: st-roll .9s ease-in-out infinite; }
.steps.on[data-step='zoom'] .glyph.mouse { animation: st-bob 1.8s ease-in-out infinite; }
.steps .glyph .btn2 { fill: transparent; transition: fill .3s; }
/* lift: the mouse rises and falls with its wheel held down (a middle-drag) - or two fingertips do */
/* lift, on a mouse: the RIGHT button held, the mouse rising and falling (V3: right-drag is the height) */
.steps.on[data-step='lift'] .glyph.mouse .btn2 { fill: var(--mint); }
.steps.on[data-step='lift'] .glyph.mouse, .steps.on[data-step='lift'] .glyph.two { animation: st-lift 2.2s cubic-bezier(.45,0,.55,1) infinite; }
/* zoom on a phone: two fingertips spread */
.steps.on[data-step='zoom'] .glyph.pinch .fa { animation: st-pinch-a 1.8s ease-in-out infinite; }
.steps.on[data-step='zoom'] .glyph.pinch .fb { animation: st-pinch-b 1.8s ease-in-out infinite; }
/* the pill: up, back, then sideways - one way at a time */
.steps.on[data-step='pill'] .glyph.pillg { animation: st-pill 3.2s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes st-sweep { 0%, 100% { transform: translateX(-72px) rotate(-10deg); } 50% { transform: translateX(72px) rotate(10deg); } }
@keyframes st-press { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(6px) scale(.9); } 50% { transform: translateY(0) scale(1); } }
@keyframes st-flash { 0%, 20%, 100% { fill: transparent; } 30%, 42% { fill: var(--mint); } }
@keyframes st-ripple { 0%, 28% { opacity: 0; transform: scale(.4); } 34% { opacity: .9; } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes st-roll { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(4px); } }
@keyframes st-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes st-lift { 0%, 100% { transform: translateY(26px); } 50% { transform: translateY(-26px); } }
@keyframes st-pinch-a { 0%, 100% { transform: translate(4px, -4px); } 50% { transform: translate(-10px, 10px); } }
@keyframes st-pinch-b { 0%, 100% { transform: translate(-4px, 4px); } 50% { transform: translate(10px, -10px); } }
@keyframes st-pill { 0%, 6% { transform: translate(0, 0); } 24%, 32% { transform: translate(0, -34px); } 48%, 54% { transform: translate(0, 0); } 72%, 80% { transform: translate(60px, 0); } 96%, 100% { transform: translate(0, 0); } }

/* ── the ICS ───────────────────────────────────────────────────────────── */
.ics { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.ride.framed .ics { opacity: 1; }
.ride.framed .ics-pill, .ride.framed .ics-home, .ride.framed .ics-explore { pointer-events: auto; }
.ics button { font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; padding: 0; position: relative; }
.round svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* HOME, top right: back to the top of the page */
.ics-home { position: absolute; top: clamp(16px, 3vh, 30px); right: clamp(16px, 3vw, 36px); transition: border-color .25s, box-shadow .25s; }
.ics-home:hover { border-color: rgba(233,196,124,.7); box-shadow: 0 0 0 1px rgba(233,196,124,.3) inset, 0 0 30px rgba(233,196,124,.25); }
.ics-bottom { position: absolute; left: 50%; bottom: var(--ics-bottom); transform: translateX(-50%); width: min(620px, 84vw); height: 90px; pointer-events: none; }
/* THE PILL: tap = play / pause; slide it sideways = scrub, up = higher, down = lower (one way at a time) */
.ics-pill { position: absolute; left: 50%; top: 0; width: 88px; height: 46px; margin-left: -44px; border-radius: 26px; display: grid; place-items: center; padding: 0;
  touch-action: none; cursor: grab; transition: box-shadow .3s, border-color .3s; }
.ics-pill.spring { transition: transform .55s cubic-bezier(.2,.9,.25,1.15), box-shadow .3s, border-color .3s; }
.ics-pill > svg { width: 18px; height: 18px; fill: var(--ink); grid-area: 1 / 1; }
.ics-pill .pa { display: none; } .ics.playing .ics-pill .pa { display: block; } .ics.playing .ics-pill .pl { display: none; }
.ics-pill.nudge { animation: nudge 1.6s ease-in-out infinite; }
.ics.scrub .ics-pill, .ics.lift .ics-pill { cursor: grabbing; border-color: rgba(184,255,242,.6); }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,196,124,0); } 50% { box-shadow: 0 0 0 10px rgba(233,196,124,.18), 0 0 40px rgba(233,196,124,.35); } }
/* its see-through marks: up / down while it lifts, rewind / fast-forward while it scrubs */
.pm { position: absolute; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.pm svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 6px rgba(0,0,0,.8)); }
.pm-up { left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); }
.pm-down { left: 50%; top: calc(100% + 6px); transform: translateX(-50%); }
.pm-rw, .pm-ff { top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: rgba(0,0,0,.28); }
.pm-rw svg, .pm-ff svg { fill: #fff; stroke: none; }
.pm-rw { right: calc(100% + 12px); } .pm-ff { left: calc(100% + 12px); }
.ics.lift .pm-up, .ics.lift .pm-down { opacity: .45; }
.ics.lift.up .pm-up, .ics.lift.down .pm-down { opacity: 1; }
.ics.scrub .pm-rw, .ics.scrub .pm-ff { opacity: .35; }
.ics.scrub.rw .pm-rw, .ics.scrub.ff .pm-ff { opacity: .85; }
/* previous / next chapter, either side of the pill - out of the way while it slides */
/* EXPLORE FREELY, bottom right: the tour lets go of the view; lit while it is on ("Back to the tour") */
.pillbtn { padding: 13px 24px; border-radius: 26px; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: border-color .25s, background .25s, color .25s, box-shadow .25s; }
.ics-explore { position: absolute; right: clamp(16px, 3vw, 36px); bottom: calc(var(--ics-bottom) + 1px); }
.ics-explore .on { display: none; }
.ics-explore.on .off { display: none; } .ics-explore.on .on { display: inline; }
.ics-explore:hover { border-color: rgba(184,255,242,.6); }
.ics-explore.on { background: rgba(184,255,242,.9); border-color: var(--mint); color: #0d1714; box-shadow: 0 0 30px rgba(184,255,242,.35); }
/* the time, while it scrubs; the height, while it lifts */
.ics-time { position: absolute; left: 0; right: 0; top: 62px; display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(-6px);
  transition: opacity .35s, transform .35s; font-size: 12px; letter-spacing: .14em; color: var(--ink2); }
.ics.scrub .ics-time { opacity: 1; transform: none; }
.ics-track { position: relative; flex: 1; height: 2px; background: rgba(244,239,230,.2); }
.ics-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); }
.ics-track b { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--gold); left: 0; }
.ics-readout { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font-size: 13px; letter-spacing: .16em; color: var(--ink); opacity: 0; transition: opacity .3s; text-shadow: 0 1px 8px #000; }
.ics.scrub .ics-readout { opacity: 1; }
/* the height rides beside the pill (it moves with it while it is slid up and down) */
.ics-height { position: absolute; left: calc(100% + 16px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity .3s; text-shadow: 0 1px 10px #000, 0 0 2px #000; pointer-events: none; }
.ics-height b { font-size: 20px; font-weight: 500; letter-spacing: .04em; color: var(--mint); }
.ics-height.on { opacity: 1; }
.ics.scrub .ics-height { opacity: 0; }

.blink { position: absolute; inset: 0; z-index: 4; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.blink.on { opacity: 1; transition-duration: .24s; }
.cover { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: var(--bg); transition: opacity .8s; text-align: center; }
.cover.off { opacity: 0; pointer-events: none; }
.cover span { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--mute); padding-left: .3em; }
.cover i { display: block; height: 1px; width: 200px; background: rgba(244,239,230,.12); margin: 16px auto 0; }
.cover b { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.nogl { display: none; }
body.no-gl .ride { height: auto; }
body.no-gl .window { height: auto; padding: 80px clamp(20px, 8vw, 120px); }
body.no-gl .sheet, body.no-gl .cover, body.no-gl .ics, body.no-gl .tags, body.no-gl .title-card, body.no-gl .chapters, body.no-gl .steps, body.no-gl .minimap { display: none; }
body.no-gl .nogl { display: block; margin: 40px 0 0; color: var(--ink2); }
body.no-gl .cards { position: static; width: auto; height: auto; }
body.no-gl .card { position: relative; opacity: 1; visibility: visible; transform: none; margin: 0 0 16px; max-width: 560px; }

/* THE CUT: the page dips to dark for a jump across the walk (Home, Replay, a header link) */
.veil { position: fixed; inset: 0; z-index: 40; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .32s ease; }
.veil.on { opacity: 1; pointer-events: auto; }

/* ── after the walk ────────────────────────────────────────────────────── */
.after { background: var(--bg); padding: clamp(120px, 22vh, 240px) clamp(20px, 6vw, 90px) clamp(80px, 12vh, 140px); }
.after-title { max-width: 1180px; margin: 0 auto 56px; }
.after h2, .faq h2, .say h2 { margin: 0; font-weight: 300; font-size: clamp(38px, 5vw, 72px); line-height: 1.04; }
.grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { padding: 30px 28px 28px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); }
.tile h3 { margin: 18px 0 8px; font-weight: 400; font-size: 24px; }
.tile p { margin: 0; color: var(--ink2); font-size: 16.5px; }
.ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; border: 1px solid currentColor; }
.ic svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic b { font-size: 24px; font-weight: 600; }
.ic.amber { color: var(--amber); } .ic.teal { color: var(--teal); } .ic.green { color: var(--green); } .ic.blue { color: var(--blue); } .ic.gold { color: var(--gold); }
.tile:nth-child(3n+2) { transition-delay: .08s; } .tile:nth-child(3n+3) { transition-delay: .16s; }

.why { background: var(--bg2); padding: clamp(100px, 18vh, 200px) clamp(20px, 7vw, 110px); }
.why-in { max-width: 1100px; margin: 0 auto; }
.why-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 56px; }
.why-cols h3 { margin: 0 0 8px; font-weight: 500; font-size: 21px; color: var(--gold); }
.why-cols p { margin: 0; color: var(--ink2); font-size: 17px; }

.faq { background: var(--bg); padding: clamp(100px, 18vh, 200px) clamp(20px, 7vw, 110px); }
.faq-in { max-width: 860px; margin: 0 auto; }
.faq h2 { margin-bottom: 40px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: clamp(19px, 1.8vw, 23px); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--gold); transition: transform .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 24px; max-width: 42em; color: var(--ink2); }

.say { background: linear-gradient(180deg, var(--bg), #15130f); padding: clamp(100px, 18vh, 200px) clamp(20px, 7vw, 110px) clamp(80px, 12vh, 140px); }
.say-in { max-width: 820px; margin: 0 auto; }
.say h2 { margin-bottom: 40px; }
form { display: grid; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 10px 14px; }
legend { width: 100%; margin-bottom: 12px; color: var(--ink2); }
.uses label { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 30px; border: 1px solid var(--line); cursor: pointer; font-size: 16px; }
.uses input { accent-color: var(--gold); width: 17px; height: 17px; }
.uses label:has(input:checked) { border-color: var(--gold); background: rgba(233,196,124,.08); }
textarea, input[type=text] { width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink);
  font: 400 17px/1.5 var(--f); resize: vertical; }
textarea:focus, input[type=text]:focus { outline: none; border-color: var(--gold); }
.row { display: flex; gap: 14px; }
.row input { flex: 1; }
.form-note { margin: 0; font-size: 14px; color: var(--mute); }
.form-note.done { color: var(--teal); }
.again { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 56px; }

/* the close: his words, last thing before the footer */
.close { background: #15130f; padding: clamp(80px, 16vh, 180px) clamp(20px, 7vw, 110px) clamp(90px, 18vh, 200px); }
.close-in { max-width: 1040px; margin: 0 auto; }
.close .big { margin: 0; color: var(--ink); }

footer { background: #07080b; padding: 70px clamp(20px, 7vw, 110px) 60px; color: var(--mute); font-size: 14.5px; }
footer p { max-width: 60em; margin: 0 0 12px; }
.foot-mark { margin-bottom: 22px; font-size: 14px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink2); }
.foot-small { font-size: 13px; }

/* ── THE MAP: the whole street as a strip, Williamson Street at the top ─── */
.minimap { position: absolute; right: clamp(14px, 2.4vw, 30px); top: 50%; transform: translateY(-50%); width: 96px; height: min(62vh, 540px); padding: 24px 8px;
  border-radius: 18px; background: rgba(12,14,20,.5); border: 1px solid rgba(244,239,230,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .8s, border-color .25s; pointer-events: none; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.ride.framed .minimap { opacity: 1; pointer-events: auto; }
.minimap:hover, .minimap.scrub { border-color: rgba(184,255,242,.55); }
.minimap.scrub { cursor: grabbing; }
.minimap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mm-street { fill: rgba(244,239,230,.07); stroke: rgba(244,239,230,.28); stroke-width: .6; }
.mm-x { fill: rgba(244,239,230,.07); }
.mm-ring { fill: none; stroke: rgba(244,239,230,.3); stroke-width: .6; }
.mm-isl { fill: rgba(134,245,154,.18); stroke: none; }
.mm-play { fill: rgba(233,196,124,.22); }
.mm-road { fill: none; stroke: var(--mint); stroke-width: 1.1; stroke-dasharray: 3 3; opacity: .45; }
.mm-arrows path { fill: none; stroke: var(--mint); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.mm-route { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.mm-done { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.mm-ch circle { fill: rgba(12,14,20,.92); stroke: rgba(233,196,124,.95); stroke-width: .9; }
.mm-ch text { font: 600 5.2px var(--f); fill: var(--gold); text-anchor: middle; }
.mm-ghost { fill: none; stroke: var(--mint); stroke-width: 1.3; display: none; }
.mm-ghost.on { display: inline; }
.mm-you circle { fill: var(--teal); stroke: #0b0c10; stroke-width: 1.2; }
.mm-cone { fill: rgba(127,246,224,.3); }
.minimap.air .mm-you circle { fill: #fff; }
.mm-top, .mm-bot { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); pointer-events: none; }
.mm-top { top: 6px; } .mm-bot { bottom: 6px; }
/* where a click would go: the chapter's name, beside the map */
.mm-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 7px 12px; border-radius: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(12,14,20,.78); border: 1px solid rgba(244,239,230,.2);
  opacity: 0; transition: opacity .15s; pointer-events: none; }
.mm-tip.on { opacity: 1; }

/* ── phones ────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .top-nav { display: none; }
  .grid, .why-cols { grid-template-columns: 1fr; }
  .cards { left: 12px; right: 12px; width: auto; top: 76px; bottom: auto; }
  .card, .card.wide { top: 0; bottom: auto; }
  .card, .card.wide { width: 100%; padding: 18px 20px 17px; }
  .card h3 { font-size: 21px; }
  .card p, .facts { font-size: 15px; }
  .tag { font-size: 12px; padding: 5px 11px 5px 9px; }
  .ics-home { top: 14px; right: 12px; width: 44px; height: 44px; }
  .round svg { width: 20px; height: 20px; }
  .ics-pill { width: 76px; height: 44px; margin-left: -38px; }
  /* on a phone Explore freely goes top left, opposite Home (the bottom belongs to the pill) */
  .ics-explore { right: auto; bottom: auto; left: 12px; top: 14px; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .12em; }
  .points li { font-size: 13.5px; line-height: 1.38; margin-bottom: 6px; }
  .card h3 { font-size: 19px; }
  .steps { top: 57%; }
  .steps .words { font-size: 14px; letter-spacing: .16em; padding-left: .16em; white-space: normal; max-width: 64vw; margin-left: auto; margin-right: auto; }
  .steps { max-width: 66vw; left: calc(50% - 22px); }
  .steps .stage { height: 116px; }
  .row { flex-direction: column; }
  .minimap { width: 56px; height: 30vh; top: auto; bottom: 150px; right: 10px; transform: none; padding: 18px 4px; border-radius: 14px; }
  .mm-top, .mm-bot { font-size: 7px; letter-spacing: .06em; }
  .mm-tip { font-size: 10px; letter-spacing: .1em; padding: 5px 9px; }
}
@media (max-width: 820px) and (max-height: 700px) { .card p:not(.kick), .card .facts { display: none; } .card .kick { margin-bottom: 4px; } .points li { font-size: 13px; margin-bottom: 5px; } }
@media (prefers-reduced-motion: reduce) { .hero-pic { animation: none; } }
body.lite .glass, body.lite .card, body.lite .tag { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.lite .card { background: rgba(12,14,20,.84); }
