/* ============================================================================
   JOURNEY — Gestalt Lite, Philadelphia Mural Trail.
   Narrative scrollytelling: warm parchment, a sticky progress rail,
   immersive sequential mural stops. Built on the Gestalt design tokens.
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-technical);
  background: #f6f4ee; color: #1b1a17;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4,p { margin: 0; }
ul,ol { margin: 0; padding: 0; list-style: none; }

:root {
  /* Gestalt design-system tokens */
  --gestalt-white: #FCFCFC; --gestalt-charcoal: #111827;
  --gestalt-gold: #D4AF37; --gestalt-green: #14B860;
  --font-classical: 'Newsreader', 'Playfair Display', Georgia, serif;
  --font-technical: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --easing-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  /* This direction's warm field-guide surface */
  --parch: #f6f4ee; --parch-2: #efece3; --night: #14130f;
  --ink: #1b1a17; --ink-2: #4a473f; --ink-3: #7c786c; --ink-4: #a8a496;
  --rule: rgba(27,26,23,0.12); --rule-2: rgba(27,26,23,0.07);
}

@keyframes gs-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(20,184,96,0.16); }
  50% { box-shadow: 0 0 0 7px rgba(20,184,96,0.07); }
}

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 36px; position: relative; }
.section { padding-block: clamp(72px, 10vw, 130px); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; transition: top .25s; }
.skip:focus { top: 16px; }
:where(a,button,input,textarea,[tabindex]):focus-visible { outline: 2.5px solid var(--gestalt-green); outline-offset: 3px; border-radius: 6px; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gestalt-gold); }
.eyebrow.green { color: var(--gestalt-green); }
.eyebrow.dotted .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gestalt-green); box-shadow: 0 0 0 4px rgba(20,184,96,0.16); animation: gs-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .eyebrow .dot { animation: none; } }
.display { font-family: var(--font-classical); font-weight: 500; letter-spacing: -0.035em; line-height: 1.0; color: var(--ink); text-wrap: balance; }
.accent { font-style: italic; color: var(--gestalt-gold); }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.58; color: var(--ink-2); text-wrap: pretty; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid transparent; transition: transform .2s var(--easing-spring), box-shadow .2s, background .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.btn:active { transform: scale(0.98); }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(20,19,15,0.6); }
.btn-green { background: var(--gestalt-green); color: #04140b; box-shadow: 0 6px 20px rgba(20,184,96,0.28); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,184,96,0.38); }
.btn-out { border-color: var(--rule); color: var(--ink); }
.btn-out:hover { border-color: var(--ink); background: rgba(27,26,23,0.03); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 64px; display: flex; align-items: center; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(246,244,238,0.85); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--rule-2); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 25px; height: 25px; }
.brand b { font-family: var(--font-classical); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand .lite { color: var(--gestalt-gold); font-style: italic; font-weight: 500; }
.nav-open { height: 40px; padding: 0 17px; border-radius: 999px; background: var(--night); color: #fff; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; transition: transform .2s var(--easing-spring); white-space: nowrap; }
.nav-open svg { width: 15px; height: 15px; stroke-width: 2; }
.nav-open:hover { transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 64px; background: radial-gradient(120% 100% at 80% 10%, #fbf9f3, #efece3 60%, #e8e4d8); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(27,26,23,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(27,26,23,0.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { font-family: var(--font-classical); font-weight: 500; font-size: clamp(54px, 9vw, 124px); line-height: 0.92; letter-spacing: -0.045em; color: var(--ink); margin-top: 26px; }
.hero .lede { margin-top: 28px; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 28px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.hero-note svg { width: 14px; height: 14px; stroke-width: 1.8; }
.hero-note:hover { color: var(--ink); border-color: var(--ink); }
.hero-scroll { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); }
.hero-scroll .bar { width: 1px; height: 38px; background: linear-gradient(var(--gestalt-gold), transparent); }

/* ── Premise + how ────────────────────────────────────────────────────── */
.premise { background: var(--parch); }
.premise .pgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px,5vw,80px); align-items: center; }
.premise h2 { font-family: var(--font-classical); font-weight: 500; font-size: clamp(30px,3.8vw,46px); line-height: 1.06; letter-spacing: -0.025em; color: var(--ink); }
.premise p { font-size: 17px; line-height: 1.62; color: var(--ink-2); margin-top: 18px; max-width: 46ch; }
.howmini { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--gestalt-gold); }
.howmini .hm { padding: 16px 0 16px 22px; }
.howmini .hm .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-4); }
.howmini .hm h3 { font-family: var(--font-classical); font-size: 21px; font-weight: 600; color: var(--ink); margin: 3px 0 4px; }
.howmini .hm p { font-size: 14px; color: var(--ink-3); margin: 0; max-width: 40ch; }

/* ── The walk (sticky rail + stops) ───────────────────────────────────── */
.walk { background: var(--parch); position: relative; }
.walk-intro { text-align: center; margin-bottom: 12px; }
.walk-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.rail { position: sticky; top: 96px; align-self: start; }
.rail .rtitle { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 18px; }
.rail .rprog { font-family: var(--font-classical); font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 4px; }
.rail .rprog .of { color: var(--ink-4); font-size: 0.6em; }
.rail .rnow { font-size: 13px; color: var(--gestalt-gold); font-style: italic; font-family: var(--font-classical); min-height: 1.4em; margin-bottom: 22px; }
.rline { display: flex; flex-direction: column; gap: 0; position: relative; }
.rline::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 1px; background: var(--rule); z-index: 0; }
.rdot { display: flex; align-items: center; gap: 12px; padding: 7px 0; position: relative; }
.rdot .d { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--parch); flex-shrink: 0; transition: all .3s var(--easing-spring); }
.rdot .rl { font-size: 12px; color: var(--ink-4); transition: color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdot.done .d { background: var(--gestalt-gold); border-color: var(--gestalt-gold); }
.rdot.active .d { background: var(--gestalt-green); border-color: var(--gestalt-green); box-shadow: 0 0 0 4px rgba(20,184,96,0.18); }
.rdot.active .rl { color: var(--ink); font-weight: 600; }

.stops { display: flex; flex-direction: column; gap: clamp(60px, 9vw, 120px); }
.stop { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; scroll-margin-top: 120px; }
.stop:nth-child(even) .stop-art { order: 2; }
.stop-art { position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(20,19,15,0.5); }
.stop-art .badge { position: absolute; top: 16px; left: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(20,19,15,0.5); padding: 6px 12px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 2; }
.stop-body .seyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gestalt-gold); }
.stop-body h3 { font-family: var(--font-classical); font-size: clamp(30px,3.8vw,46px); font-weight: 600; color: var(--ink); letter-spacing: -0.025em; line-height: 1.02; margin: 12px 0 8px; }
.stop-body .smeta { font-size: 14px; color: var(--ink-3); }
.stop-body .smeta b { color: var(--ink-2); font-weight: 600; }
.stop-body .sstory { font-size: 16.5px; line-height: 1.64; color: var(--ink-2); margin-top: 18px; max-width: 44ch; }

/* Mural photography — sourced from the live trail (mural.gestalt.gallery).
   object-position centers the artwork within the 4/5 frame on context shots. */
.stop-art .art-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-photo.pos-najee { object-position: 75% 50%; }
.art-photo.pos-youth { object-position: 40% 48%; }
.art-photo.pos-muses { object-position: 44% 50%; }

/* compact journey player */
.jplayer { margin-top: 22px; display: flex; align-items: center; gap: 14px; max-width: 440px; }
.jp-btn { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; background: var(--gestalt-green); color: #04140b; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(20,184,96,0.3); transition: transform .2s var(--easing-spring); }
.jp-btn:hover { transform: translateY(-2px); }
.jp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.jp-main { flex: 1; min-width: 0; }
.jp-row { display: flex; align-items: center; gap: 12px; }
.jp-scrub { flex: 1; height: 5px; border-radius: 999px; background: rgba(27,26,23,0.1); overflow: hidden; position: relative; cursor: pointer; }
.jp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gestalt-green); border-radius: 999px; }
.jp-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.jp-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.jp-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.jp-trtoggle { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.jp-trtoggle svg { width: 13px; height: 13px; stroke-width: 1.8; }
.jp-transcript { display: none; margin-top: 14px; max-width: 440px; font-size: 14px; line-height: 1.62; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--rule-2); }
.jp-transcript.open { display: block; }
.pl-word { background: rgba(20,184,96,0.16); border-radius: 3px; box-shadow: 0 0 0 2px rgba(20,184,96,0.16); }

.snext { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); padding-top: 18px; border-top: 1px solid var(--rule-2); }
.snext .walkn { color: var(--gestalt-green); display: inline-flex; align-items: center; gap: 5px; }
.snext .walkn svg { width: 14px; height: 14px; stroke-width: 1.8; }

/* rest of the trail */
.rest { margin-top: clamp(60px,9vw,110px); border-top: 2px solid var(--ink); padding-top: 34px; }
.rest h3 { font-family: var(--font-classical); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 6px; }
.rest .resub { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.restgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.restrow { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule-2); transition: background .15s; }
.restrow:hover .rt { color: var(--gestalt-green); }
.restrow .rn { font-family: var(--font-classical); font-style: italic; font-size: 15px; color: var(--gestalt-gold); }
.restrow .rt { font-family: var(--font-classical); font-size: 17px; font-weight: 600; color: var(--ink); transition: color .15s; }
.restrow .ra { font-size: 12.5px; color: var(--ink-3); }
.restrow .rh { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); text-align: right; white-space: nowrap; }

/* ── Match days (summer visitors) ─────────────────────────────────────── */
.matchday { background: var(--parch); border-top: 1px solid var(--rule); }
.mroutes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.mcard { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 26px; box-shadow: 0 14px 40px -22px rgba(20,19,15,0.25); }
.mcard h3 { font-family: var(--font-classical); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.mcard p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.mcard strong { color: var(--ink); font-weight: 600; }
.mcta { margin-top: 36px; }
.mmicro { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* ── Tech interlude (dark band) ───────────────────────────────────────── */
.interlude { background: var(--night); color: #fff; }
.interlude .wrap { text-align: center; max-width: 900px; }
.interlude h2 { font-family: var(--font-classical); font-weight: 500; font-size: clamp(30px,4.2vw,52px); line-height: 1.08; letter-spacing: -0.03em; color: #fff; }
.interlude .accent { color: var(--gestalt-gold); }
.interlude .ichips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.ichip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); font-size: 14px; color: rgba(255,255,255,0.86); }
.ichip svg { width: 17px; height: 17px; stroke-width: 1.6; color: var(--gestalt-green); }

/* ── Funnel ───────────────────────────────────────────────────────────── */
.funnel { background: radial-gradient(120% 110% at 50% 0%, #fbf9f3, #ece9df); text-align: center; }
.funnel .wrap { max-width: 880px; }
.funnel h2 { font-family: var(--font-classical); font-weight: 500; font-size: clamp(40px,6vw,76px); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); }
.funnel .lede { margin: 22px auto 0; max-width: 44ch; }
.funnel-card { margin: 42px auto 0; max-width: 520px; display: flex; align-items: center; gap: 26px; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 20px 50px -24px rgba(20,19,15,0.3); text-align: left; }
.funnel-card .qr { width: 132px; height: 132px; flex-shrink: 0; }
.funnel-card .qr img { width: 100%; height: 100%; }
.funnel-card .fcb b { font-family: var(--font-classical); font-size: 20px; font-weight: 600; color: var(--ink); display: block; }
.funnel-card .fcb p { font-size: 13.5px; color: var(--ink-3); margin-top: 5px; }
.funnel-card .fcb .u { font-family: var(--font-mono); font-size: 12px; color: var(--gestalt-gold); margin-top: 7px; display: block; }
.funnel-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ── Cities ───────────────────────────────────────────────────────────── */
.cities { background: var(--parch); border-top: 1px solid var(--rule); }
.cities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,76px); align-items: start; margin-top: 46px; }
.cval { display: flex; gap: 15px; padding: 20px 0; border-top: 1px solid var(--rule-2); }
.cval:first-child { border-top: none; padding-top: 0; }
.cval .cvic { width: 38px; height: 38px; border-radius: 10px; background: var(--parch-2); border: 1px solid var(--rule-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cval .cvic svg { width: 19px; height: 19px; stroke-width: 1.6; color: var(--ink); }
.cval h3 { font-family: var(--font-classical); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cval p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cform { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 14px 40px -22px rgba(20,19,15,0.25); }
.cform .ct { font-family: var(--font-classical); font-size: 22px; font-weight: 600; color: var(--ink); }
.cfrow { display: flex; flex-direction: column; gap: 6px; }
.cftwo { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.cform label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.cform input { height: 46px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: var(--parch); transition: border-color .15s; }
.cform input:focus { outline: none; border-color: var(--gestalt-green); }
.cform .cs { height: 50px; border-radius: 999px; background: var(--night); color: #fff; font-size: 15px; font-weight: 600; margin-top: 4px; transition: transform .2s var(--easing-spring); }
.cform .cs:hover { transform: translateY(-1px); }
.cform .cs:disabled { cursor: default; opacity: 0.85; transform: none; }
.cform .cn { font-size: 11.5px; color: var(--ink-4); font-style: italic; text-align: center; }
.cform .cm { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); text-align: center; }
.cform .cm a { color: var(--ink); border-bottom: 1px solid var(--rule); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { background: var(--night); color: rgba(255,255,255,0.9); padding-block: 46px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot .brand b { color: #fff; }
.foot .place { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 7px; }
.foot .flinks { display: flex; gap: 22px; font-size: 13.5px; }
.foot .flinks a { color: rgba(255,255,255,0.75); white-space: nowrap; }
.foot .flinks a:hover { color: #fff; }

/* reveal */
.reveal, .reveal-stagger > * { transition: opacity .6s var(--easing-smooth), transform .58s var(--easing-spring); }
@media (prefers-reduced-motion: reduce){ .reveal, .reveal-stagger > * { transition: opacity .3s ease !important; transform: none !important; } }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }

/* responsive */
@media (max-width: 920px){
  .premise .pgrid { grid-template-columns: 1fr; }
  .walk-grid { grid-template-columns: 1fr; gap: 0; }
  .rail { position: static; display: flex; align-items: center; gap: 20px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
  .rail .rline { display: none; }
  .rail .rtitle { margin-bottom: 0; }
  .rail .rprog { margin-bottom: 0; }
  .rail .rnow { margin-bottom: 0; }
  .stop { grid-template-columns: 1fr; gap: 24px; }
  .stop:nth-child(even) .stop-art { order: 0; }
  .stop-art { max-width: 440px; aspect-ratio: 16/11; }
  .restgrid { grid-template-columns: 1fr; }
  .mroutes { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .wrap { padding: 0 22px; }
  .funnel-card { flex-direction: column; text-align: center; }
  .cftwo { grid-template-columns: 1fr; }
}
