/* The landing screen, the ride and the explore tabs. Colours come from tokens in zoo.css. */
:root { --ride-dim: rgba(8, 12, 18, .55); --ride-card: rgba(255, 255, 255, .94); --fx-hot: #e2532d; --fx-ok: #2f8f5b; --fx-pin: #15202b; --fx-white: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ride-dim: rgba(0, 0, 0, .6); --ride-card: rgba(22, 31, 40, .94); --fx-hot: #ff7a52; --fx-ok: #5fd08c; --fx-pin: #15202b; --fx-white: #ffffff; } }
:root[data-theme="dark"] { --ride-dim: rgba(0, 0, 0, .6); --ride-card: rgba(22, 31, 40, .94); --fx-hot: #ff7a52; --fx-ok: #5fd08c; --fx-pin: #15202b; --fx-white: #ffffff; }

.ride-page .bar { position: relative; }

/* landing */
.land { position: relative; min-height: calc(100svh - 58px); display: grid; align-items: end; overflow: hidden; background: var(--map-sea); }
.land-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
@media (prefers-reduced-motion: no-preference) { .land-map { animation: drift 40s ease-in-out infinite alternate; } }
@keyframes drift { from { transform: scale(1.15) translate(0, 0); } to { transform: scale(1.35) translate(-4%, 3%); } }
.land::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 18, .05) 0%, rgba(8, 12, 18, .55) 45%, rgba(8, 12, 18, .9) 100%); }
.land-in { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 36px; color: var(--fx-white); }
.land .kicker { color: rgba(255, 255, 255, .8); }
.land h1 { font-weight: 800; font-size: clamp(44px, 10vw, 104px); letter-spacing: -.035em; line-height: .98; margin: 0; text-shadow: 0 3px 18px rgba(0, 0, 0, .4); }
.land .m2 { color: #9fe6ee; }
.hook { font: 700 clamp(22px, 3.4vw, 30px)/1.2 'Archivo', sans-serif; margin: 0 0 18px; }
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); max-width: 900px; }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .7); color: var(--fx-white); text-decoration: none; backdrop-filter: blur(4px); }
.path strong { display: block; font-size: 20px; }
.path small { display: block; font: 500 15px 'Archivo Narrow', sans-serif; opacity: .9; }
.path.ride { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.path:hover { transform: translateY(-2px); }
.p-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid currentColor; font-size: 16px; flex: none; }

/* the ride */
.ride { position: relative; border-top: 2px solid var(--ink); }
.ride-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--map-sea); transition: background .8s; }
.ride-stage[data-map="la"] { background: var(--la-land); }
.ride-map { position: absolute; left: 0; top: 0; width: 100%; height: 62svh; opacity: 0; transition: opacity .8s; }
@media (min-width: 900px) { .ride-map { height: 100%; } }
.ride-map.is-on { opacity: 1; }
.dim { fill: var(--ride-dim); pointer-events: none; }
.la-bg { fill: var(--la-land); }
.ride-hud { position: absolute; top: 12px; right: max(16px, env(safe-area-inset-right)); display: flex; gap: 8px; font: 700 14px 'Archivo Narrow', sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.ride-hud span { background: var(--ride-card); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.steps { list-style: none; margin: -100svh 0 0; padding: 0; position: relative; z-index: 2; }
.step { min-height: 100svh; display: flex; align-items: flex-end; padding: 0 max(16px, env(safe-area-inset-right)) 4svh max(16px, env(safe-area-inset-left)); pointer-events: none; }
.step:first-child { padding-top: 0; }
@media (min-width: 900px) { .step { align-items: center; padding-left: max(5vw, 16px); padding-bottom: 0; } }
.card-ride { pointer-events: auto; width: 100%; max-width: 400px; background: var(--ride-card); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: .35; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.step.is-active .card-ride { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .card-ride { transition: none; transform: none; } }
.card-ride h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.01em; margin-bottom: .3em; }
.card-ride p { margin: 0 0 .4em; font-size: 17px; }
.stop { font: 700 13px 'Archivo Narrow', sans-serif !important; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.src-ride { font: 500 13px 'Archivo Narrow', sans-serif !important; color: var(--muted); margin: 6px 0 0 !important; }
.card-ride .cta { margin-top: 10px; }

/* effects */
.pin .pin-dot { fill: var(--fx-hot); stroke: var(--fx-white); stroke-width: 3; }
.pin.z2 .pin-dot { fill: var(--map-pink); }
.pin.ok .pin-dot { fill: var(--fx-ok); }
.pulse { fill: none; stroke: var(--fx-hot); stroke-width: 4; }
.pin.z2 .pulse { stroke: var(--map-pink); }
.pin.ok .pulse { stroke: var(--fx-ok); }
.pin-lab { font: 800 17px 'Archivo', sans-serif; fill: var(--fx-pin); paint-order: stroke; stroke: var(--fx-white); stroke-width: 5px; }
.pin-lab.big { font-size: 18px; }
.pin-lab.hot { fill: var(--fx-hot); }
.fx-wall { stroke: var(--map-pink); stroke-width: 8; stroke-dasharray: 3 10; stroke-linecap: round; }
.fx-fence { fill: none; stroke: var(--fx-pin); stroke-width: 3; stroke-dasharray: 2 4; }
.fx-trail { fill: none; stroke: var(--fx-hot); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 14 12; opacity: .85; }
.fx-blast { fill: var(--fx-hot); opacity: .22; }
.fx-ghost { stroke: var(--la-fwy); stroke-width: 14; stroke-dasharray: 2 18; stroke-linecap: round; }
.snow { fill: var(--fx-white); opacity: .9; }
.ring-only { stroke: var(--fx-hot); }
.bus rect { fill: var(--fx-ok); stroke: var(--fx-pin); stroke-width: 2; }
.bus text { font: 800 12px 'Archivo Narrow', sans-serif; fill: var(--fx-white); }
.bus.gone rect { fill: var(--fx-hot); opacity: .8; }
.truck rect { fill: var(--fx-pin); stroke: var(--fx-white); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  .pin { animation: drop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
  .fx-trail { animation: march 1s linear infinite; }
  .fx-blast { animation: blast 2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .snow { animation: fall 2.4s ease-in infinite; }
  .bus.gone { animation: blink 1s steps(2) infinite; }
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-30px); } }
@keyframes march { to { stroke-dashoffset: -26; } }
@keyframes blast { from { transform: scale(.85); } to { transform: scale(1.15); } }
@keyframes fall { from { transform: translateY(-14px); opacity: 0; } 30% { opacity: .9; } to { transform: translateY(16px); opacity: 0; } }
@keyframes blink { 50% { opacity: .2; } }

/* explore */
.explore { background: var(--bg2); }
.ex-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ex-head h2 { margin: 0; }
.tabs { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; background: var(--card); }
.tab { min-height: 44px; padding: 6px 18px; border: 0; border-radius: 999px; background: none; color: inherit; font: 700 16px 'Archivo', sans-serif; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.all-places { margin-top: 16px; }
.all-places summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 700 16px 'Archivo Narrow', sans-serif; }
.end { text-align: left; }
.end .big { font-size: clamp(20px, 2.6vw, 26px); max-width: 30em; }
.notes-hero { padding: 40px 0 20px; }
.notes-hero h1 { font-weight: 800; font-size: clamp(34px, 6vw, 56px); letter-spacing: -.02em; }
.themes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 54em; }
.themes-list li { background: var(--card); border: 2px solid var(--rule); border-radius: 8px; padding: 12px 14px; }
.themes-list em { font-style: normal; font-weight: 700; color: var(--ours); }

/* story trails */
.trail-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tp-lab { font: 700 16px 'Archivo Narrow', sans-serif; }
.sw-t1 { background: #d9675a; border-radius: 50%; } .sw-t2 { background: #b0418a; border-radius: 50%; }
.trail-btn[aria-pressed="false"] { opacity: 1; background: var(--card); }
.trail-btn[aria-pressed="false"] .sw { visibility: visible; }
.trail-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.trailing #g-places, .trailing #g-z2 { opacity: .3; }
.trail-line { fill: none; stroke-width: 6; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .9; }
.tstop { cursor: pointer; }
.tstop:focus { outline: none; }
.tstop circle { stroke: var(--fx-white); stroke-width: 3; }
.tstop text { font: 800 14px 'Archivo', sans-serif; fill: var(--fx-white); pointer-events: none; }
.tstop.edge circle { stroke-dasharray: 4 3; }
.tstop.on circle, .tstop:hover circle { stroke: var(--fx-pin); stroke-width: 5; }
.tstop:focus-visible circle { stroke: var(--focus); stroke-width: 6; }
.where { font: 600 15px 'Archivo Narrow', sans-serif; color: var(--muted); margin: -4px 0 8px; }
.script-q { margin: 8px 0; padding: 6px 12px; border-left: 4px solid var(--accent); font-style: italic; }
.tnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tnav .btn[disabled] { opacity: .4; cursor: default; }
.car { fill: #3a9e48; stroke: var(--fx-white); stroke-width: 3; }
.car-win { fill: var(--fx-white); opacity: .85; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.quotes li { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 12px 14px; }
.quotes blockquote { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.quotes .who { margin: 0; font-size: 14px; color: var(--muted); }
.sources li, .quotes .who { overflow-wrap: anywhere; }

/* photos */
.photo { margin: 8px 0 10px; }
.photo img { width: 100%; height: auto; border-radius: 8px; border: 2px solid var(--ink); background: var(--bg2); }
.photo figcaption { font-size: 14px; margin-top: 4px; }
.photo .credit { display: block; color: var(--muted); font-size: 12px; }
.photo.thumb { margin: 6px 0 4px; }
.photo.thumb img { max-height: 150px; object-fit: cover; }
@media (max-width: 899px) { .photo.thumb img { max-height: 110px; } .photo.thumb figcaption { display: none; } }
.echo-ours { background: var(--ours-bg); border-left: 4px solid var(--ours); padding: 6px 10px; font-size: 15px; }
.aapi-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.aapi-cards li { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 12px 14px; }
.aapi-cards h3 { margin: 2px 0 6px; }
.aapi-cards p { margin: 0 0 8px; font-size: 15px; }
.plain-list { margin: 0; padding-left: 20px; max-width: 56em; }
.plain-list li { margin-bottom: 10px; }
.thesis { font-size: clamp(17px, 2.2vw, 20px); max-width: 40em; margin: 0 0 18px; color: rgba(255, 255, 255, .92); }
#ride-la .base-hoods text { display: none; }
#ride-la.show-labels .base-hoods text { display: inline; }
.la-leader { stroke: var(--ink); stroke-width: 1.5; stroke-opacity: .6; }

/* play layer */
.play-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.line-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.line-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.line-chip[aria-pressed="false"] { opacity: 1; background: var(--card); }
.line-chip[aria-pressed="false"] .sw, #wall-btn .sw { visibility: visible; }
#wall-btn[aria-pressed="true"] { background: var(--map-pink); color: var(--fx-white); border-color: var(--map-pink); }
.stage { position: relative; }
.announce { position: absolute; z-index: 3; left: 10px; right: 64px; top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 600 15px 'Archivo Narrow', sans-serif; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.announce.on { opacity: .95; transform: none; }
.announce:empty { display: none; }
.zoom-ctl { position: absolute; z-index: 3; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.zoom-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 800 20px 'Archivo', sans-serif; cursor: pointer; }
#city.zoomed { cursor: grab; }
.train rect:first-child { stroke: var(--fx-white); stroke-width: 2; }
.train-win { fill: var(--fx-white); opacity: .85; }
.line-focus .zb-line:not(.hot) { opacity: .15; }
.line-focus .train:not(.hot) { opacity: .1; }
.zb-line.hot { stroke-width: 12; }
.line-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.wx circle, .wx line, .wx path { fill: none; stroke: var(--fx-white); stroke-width: 2.5; }
.wx-snow circle { fill: var(--fx-white); stroke: none; }
.wx-rain line { stroke: #2f6fa0; stroke-width: 2; opacity: .6; }
.wx-heat path { stroke: #e2532d; opacity: .5; }
.wx-ripple circle { stroke: #2f8fa0; opacity: .5; }
.wx-breeze path { stroke: #3a7d3a; opacity: .5; }
.wx-sun circle { fill: #f2c14e; stroke: none; opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .wx-snow circle { animation: fall 2.6s linear infinite; }
  .wx-rain line { animation: rainfall .9s linear infinite; }
  .wx-heat path, .wx-breeze path { animation: shimmer 1.6s ease-in-out infinite alternate; }
  .wx-ripple circle { animation: ripple 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  .wx-sun circle { animation: blink 1.6s ease-in-out infinite; }
  .wall-cut { animation: march 1s linear infinite; }
  .drift ellipse { animation: grow 1.2s ease-out both; transform-box: fill-box; transform-origin: center; }
  .tower-glow { animation: blast 2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .lamp { animation: blink 1.2s steps(2) infinite; }
}
@keyframes rainfall { from { transform: translateY(-20px); opacity: 0; } 30% { opacity: .7; } to { transform: translateY(20px); opacity: 0; } }
@keyframes shimmer { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes ripple { from { transform: scale(.4); opacity: .8; } to { transform: scale(2); opacity: 0; } }
@keyframes grow { from { transform: scale(0); } }
.wall-cut { stroke: var(--map-pink); stroke-width: 10; stroke-dasharray: 4 12; stroke-linecap: round; }
.drift ellipse { fill: var(--fx-white); stroke: #b8d4e0; stroke-width: 2; }
.tower rect, .tower path { fill: #5b8f3a; stroke: var(--fx-pin); stroke-width: 2; }
.tower-face { fill: var(--fx-white); }
.tower-glow { fill: #f2c14e; opacity: .35; }
.lamp { fill: #f2c14e; }
.pass { margin-top: 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; }
.pass-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.pass-head .linkish { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; min-height: 32px; }
.stamps { list-style: none; margin: 10px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stamp { display: flex; flex-direction: column; align-items: center; width: 74px; text-align: center; font: 600 12px 'Archivo Narrow', sans-serif; color: var(--muted); }
.st-code { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 3px dashed var(--rule); font: 800 16px 'Archivo', sans-serif; color: var(--rule); }
.stamp.got { color: var(--ink); }
.stamp.got .st-code { border: 3px solid var(--ink); background: var(--st); color: var(--ink); transform: rotate(-8deg); }
@media (prefers-reduced-motion: no-preference) { .stamp.got .st-code { animation: drop .4s cubic-bezier(.2, 1.4, .4, 1) both; } }
.pass-note { margin: 0; font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#wall-btn[aria-pressed="false"] { opacity: 1; background: var(--card); }
.wx-snow circle { fill: var(--fx-white); stroke: #6f9fb8; stroke-width: 1.2; }

/* fixes: quieter ride labels, softer landing, phone ride */
.spotlit .zb-stop text { display: none; }
.land-map { opacity: .55; }
.land::after { background: linear-gradient(180deg, rgba(8, 12, 18, .25) 0%, rgba(8, 12, 18, .7) 40%, rgba(8, 12, 18, .92) 100%); }
.card-ride .more { display: none; }
@media (max-width: 899px) {
  .ride-map { height: 74svh; }
  .step { padding-bottom: 2svh; }
  .card-ride { padding: 12px 14px; }
  .card-ride .body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card-ride .photo.thumb, .card-ride .src-ride { display: none; }
  .card-ride.open .body { display: block; }
  .card-ride.open .photo.thumb, .card-ride.open .src-ride { display: block; }
  .card-ride .more { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 14px; margin-top: 4px; border-radius: 999px; border: 2px solid var(--ink); background: none; color: inherit; font: 700 14px 'Archivo Narrow', sans-serif; cursor: pointer; }
}
#official-btn[aria-pressed="false"] { opacity: 1; background: var(--card); }
#official-btn[aria-pressed="false"] .sw { visibility: visible; }
#official-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* game: who drew the line? */
.game .ex-head { margin-bottom: 4px; }
.game-score { font: 800 18px 'Archivo', sans-serif; margin: 0; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }
.game-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (min-width: 900px) { .game-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.game-stage { position: relative; }
.game-map { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; border: 2px solid var(--ink); border-radius: 12px; background: var(--la-land); }
#game-zoo { background: var(--sea); }
.game-map[data-hidden="true"] { display: none; }
.g-ring { fill: none; stroke: var(--fx-hot); stroke-width: 5; }
.g-dot { fill: var(--fx-hot); stroke: var(--fx-white); stroke-width: 3; }
.g-lab { font: 800 20px 'Archivo', sans-serif; fill: var(--fx-pin); paint-order: stroke; stroke: var(--fx-white); stroke-width: 6px; }
.g-pin.revealed .g-ring { stroke: var(--map-pink); }
@media (prefers-reduced-motion: no-preference) { .g-ring { animation: pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; } }
.game-dots { list-style: none; display: flex; gap: 8px; justify-content: center; margin: 10px 0 0; padding: 0; }
.game-dots li { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); }
.game-dots li.done { background: var(--ink); }
.game-dots li.now { background: var(--accent); }
.game-card { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; align-self: start; }
.game-card h3 { font-size: 21px; line-height: 1.25; }
.g-opts { display: grid; gap: 8px; margin-top: 10px; }
.g-opt { min-height: 48px; text-align: left; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--bg); color: inherit; font: 600 16px 'Archivo', sans-serif; cursor: pointer; }
.g-opt:hover:not([disabled]) { background: var(--bg2); }
.g-opt[disabled] { cursor: default; opacity: .6; }
.g-opt.right { opacity: 1; background: var(--ours-bg); border-color: var(--ours); }
.g-opt.right::before { content: "\2713  "; font-weight: 800; color: var(--ours); }
.g-opt.wrong { opacity: 1; border-style: dashed; }
.g-opt.wrong::before { content: "\2717  "; font-weight: 800; }
.g-result { margin-top: 12px; border-top: 2px solid var(--rule); padding-top: 10px; }
.g-verdict { font: 800 18px 'Archivo', sans-serif; margin: 0 0 4px; }
.g-result .btn { margin-top: 6px; }
#game-la:not(.labels) .hood text { display: none; }

/* the real history behind a stop, folded until opened */
.card-ride .hist { margin-top: 10px; border-top: 2px solid var(--ink); padding-top: 8px; }
.card-ride .hist summary { cursor: pointer; font: 800 16px 'Archivo', sans-serif; color: var(--accent); min-height: 36px; display: flex; align-items: center; }
.card-ride .hist-in { max-height: 46svh; overflow-y: auto; padding-right: 4px; }
.card-ride .hist-in p { font-size: 15px; }
@media (max-width: 899px) { .card-ride .hist .src-ride { display: block; } }
.card-ride .hist .photo.thumb { display: block; margin: 6px 0 8px; }

/* landing, take two: the film's first view of the city behind the mottos */
:root { --l1: #d9a43a; --l2: #d9675a; --l3: #9b3fb5; --l4: #5a5fd0; --l5: #38b8c8; --l6: #3a9e48; --l7: #2f7a5c; --hero-shade: rgba(6, 10, 16, .92); --hero-glass: rgba(255, 255, 255, .14); --hero-bg: #080c12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --l1: #d9a43a; --l2: #d9675a; --l3: #9b3fb5; --l4: #5a5fd0; --l5: #38b8c8; --l6: #3a9e48; --l7: #2f7a5c; --hero-shade: rgba(6, 10, 16, .94); --hero-glass: rgba(255, 255, 255, .14); --hero-bg: #080c12; } }
:root[data-theme="dark"] { --l1: #d9a43a; --l2: #d9675a; --l3: #9b3fb5; --l4: #5a5fd0; --l5: #38b8c8; --l6: #3a9e48; --l7: #2f7a5c; --hero-shade: rgba(6, 10, 16, .94); --hero-glass: rgba(255, 255, 255, .14); --hero-bg: #080c12; }
.land-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 55% 45%; transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) { .land-photo { animation: glide 30s ease-in-out infinite alternate; } }
@keyframes glide { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.16) translate(-2.5%, 1.5%); } }
.land::after { background: linear-gradient(180deg, rgba(6, 10, 16, 0) 0%, rgba(6, 10, 16, .2) 30%, rgba(6, 10, 16, .78) 62%, var(--hero-shade) 100%); }
@media (min-width: 900px) { .land::after { background: linear-gradient(90deg, rgba(6, 10, 16, .82) 0%, rgba(6, 10, 16, .5) 45%, rgba(6, 10, 16, 0) 75%), linear-gradient(180deg, rgba(6, 10, 16, 0) 55%, var(--hero-shade) 100%); } }
.land .kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--hero-glass); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); color: var(--fx-white); margin-bottom: 18px; }
.k-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fx-white); color: var(--l2); font: 800 15px 'Archivo', sans-serif; letter-spacing: 0; }
.land h1 { font-size: clamp(50px, 11vw, 128px); max-width: 9.5em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.land h1 .hl { background: linear-gradient(90deg, var(--l1), var(--l2) 30%, var(--l3) 55%, var(--l5) 80%, var(--l6)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .45)); }
.land-lines { display: flex; gap: 6px; margin: 18px 0 14px; }
.land-lines i { display: block; width: clamp(26px, 5vw, 56px); height: 8px; border-radius: 4px; }
.land-lines i:nth-child(1) { background: var(--l1); } .land-lines i:nth-child(2) { background: var(--l2); } .land-lines i:nth-child(3) { background: var(--l3); } .land-lines i:nth-child(4) { background: var(--l4); } .land-lines i:nth-child(5) { background: var(--l5); } .land-lines i:nth-child(6) { background: var(--l6); } .land-lines i:nth-child(7) { background: var(--l7); }
@media (prefers-reduced-motion: no-preference) { .land-lines i { animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; } .land-lines i:nth-child(2) { animation-delay: .08s; } .land-lines i:nth-child(3) { animation-delay: .16s; } .land-lines i:nth-child(4) { animation-delay: .24s; } .land-lines i:nth-child(5) { animation-delay: .32s; } .land-lines i:nth-child(6) { animation-delay: .4s; } .land-lines i:nth-child(7) { animation-delay: .48s; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.land .m2 { font-size: clamp(22px, 3.6vw, 34px); }
.land .thesis { max-width: 34em; }
.land-credit { position: absolute; z-index: 1; right: max(12px, env(safe-area-inset-right)); top: 10px; margin: 0; max-width: 60%; text-align: right; font: 500 12px 'Archivo Narrow', sans-serif; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
@media (max-width: 899px) {
  .land { display: block; min-height: 0; background: var(--hero-bg); }
  .land-photo { position: relative; display: block; height: 48svh; min-height: 300px; object-position: 62% 50%; transform: none; animation: none; }
  .land::after { inset: 0 0 auto 0; height: max(48svh, 300px); background: linear-gradient(180deg, rgba(6, 10, 16, 0) 45%, var(--hero-bg) 100%); }
  .land-in { margin-top: -110px; padding-top: 0; }
  .land .kicker { font-size: 12px; padding: 4px 10px 4px 4px; }
  .k-dot { width: 22px; height: 22px; font-size: 13px; }
  .land-credit { top: 8px; font-size: 11px; }
}

/* the title in a round, bouncy display face, closer to the film's poster lettering than a plain sans */
:root { --hero-depth: #12305a; --hero-edge: #0b1f3d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-depth: #12305a; --hero-edge: #0b1f3d; } }
:root[data-theme="dark"] { --hero-depth: #12305a; --hero-edge: #0b1f3d; }
.land h1 { font-family: 'Fredoka', 'Archivo', system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; line-height: .95;
  text-shadow: 0 2px 0 var(--hero-edge), 0 4px 0 var(--hero-depth), 0 6px 0 var(--hero-depth), 0 8px 0 var(--hero-edge), 0 14px 26px rgba(0, 0, 0, .5); }
.land h1 .hl { display: inline-block; transform: rotate(-3deg); transform-origin: left bottom; padding-right: .06em;
  filter: drop-shadow(0 2px 0 var(--hero-edge)) drop-shadow(0 4px 0 var(--hero-depth)) drop-shadow(0 6px 0 var(--hero-edge)) drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }

/* the title in a fat retro script: looser, more fun */
.land h1 { font-family: 'Pacifico', 'Fredoka', cursive; font-weight: 400; letter-spacing: 0; line-height: 1.22; font-size: clamp(46px, 9.5vw, 116px); padding-bottom: .08em; }
.land h1 .hl { transform: rotate(-4deg); margin-top: .05em; }
@media (max-width: 899px) { .land-in { margin-top: -130px; } }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .paths { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1180px; } }

/* the label in a chunky poster face, and Judy and Nick pinned on the landing */
.land .kicker { font: 400 clamp(18px, 2.4vw, 26px)/1 'Lilita One', 'Archivo', sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 7px 18px 7px 7px; gap: 12px;
  background: linear-gradient(90deg, rgba(217, 103, 90, .55), rgba(155, 63, 181, .45), rgba(56, 184, 200, .45)); border: 2px solid rgba(255, 255, 255, .7); text-shadow: 0 2px 0 var(--hero-edge), 0 3px 8px rgba(0, 0, 0, .4); }
.land .kicker .k-dot { width: 32px; height: 32px; font: 400 20px 'Lilita One', sans-serif; text-shadow: none; }
.land-duo { position: absolute; z-index: 1; margin: 0; right: max(4vw, 24px); top: 120px; width: min(32vw, 440px); padding: 10px 10px 8px; background: var(--fx-white); border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); transform: rotate(3deg); }
.land-duo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 56% 50%; border-radius: 3px; }
.land-duo figcaption { margin: 8px 2px 0; font: 400 clamp(18px, 1.8vw, 24px)/1.2 'Pacifico', cursive; color: var(--hero-depth); text-align: center; }
@media (prefers-reduced-motion: no-preference) { .land-duo { animation: duo 6s ease-in-out infinite alternate; } }
@keyframes duo { from { transform: rotate(3deg) translateY(0); } to { transform: rotate(1.5deg) translateY(-8px); } }
@media (max-width: 1199px) and (min-width: 900px) { .land-duo { width: 30vw; bottom: auto; top: 90px; } }
@media (max-width: 899px) {
  .land-duo { width: 46%; right: 12px; top: 96px; bottom: auto; padding: 6px 6px 4px; }
  .land-duo figcaption { font-size: 14px; margin-top: 4px; }
  .land .kicker { font-size: 17px; }
  .land .kicker .k-dot { width: 26px; height: 26px; font-size: 16px; }
}

/* Judy leading Nick by his tie, standing on the landing like poster art */
.land-duo { display: none; }
.land-pair { position: absolute; z-index: 1; right: max(3vw, 16px); bottom: 0; height: min(78%, 640px); width: auto; max-width: 44vw; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .land-pair { animation: strut 3.2s ease-in-out infinite alternate; transform-origin: 50% 100%; } }
@keyframes strut { from { transform: rotate(-1deg); } to { transform: rotate(1.5deg) translateY(-6px); } }
@media (max-width: 1199px) and (min-width: 900px) { .land-pair { height: 52%; bottom: auto; top: 70px; } }
@media (max-width: 899px) { .land-pair { height: auto; width: 54%; max-width: 280px; right: 6px; top: 60px; bottom: auto; } }
@media (min-width: 900px) { .land .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: min(760px, 56vw); } .land-in { z-index: 2; } }
