/* Locco City website: tokens, type, nav, buttons and the scene scaffolding every section shares.
   Section-specific styles live in their own files (hero.css, how.css, loop.css, …). */
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/figtree-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/figtree-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0F1D2E; --ink2: #4B5B6F; --ink3: #8795A8; --line: #E4E9EF; --bg: #F4F6F9;
  --blue: #2D9CEB; --blue-dark: #1667B0; --navy: #0B2545; --sun: #FFC83D; --sun-dark: #F2A900;
  --green: #18A974; --red: #E5484D; --gold: #F2B705; --bors: #C2453A; --kor: #E8772E;
  /* Page gutter, and the height of the floating nav the stages keep clear of. */
  --gut: clamp(20px, 6.8vw, 130px);
  --nav-h: 76px;
  --swift: cubic-bezier(0.65, 0, 0.35, 1);
  --glide: cubic-bezier(0.16, 1, 0.3, 1);
}
/* Variables the scenes write on every frame. Registered as not inherited, so a write restyles only
   the element it is set on rather than everything inside it (an inherited variable written on a
   stage restyles the whole stage, every frame). So each one must be set on the element that reads
   it: --rise on the phone rig, --inv on each map pin, --p on the loop's track, --d on each station's
   headline, paragraph and graphic, --in / --mx / --my on the graphic (or the shop) that drifts. */
@property --rise { syntax: '*'; inherits: false; }
@property --inv { syntax: '*'; inherits: false; }
@property --p { syntax: '*'; inherits: false; }
@property --d { syntax: '*'; inherits: false; }
@property --in { syntax: '*'; inherits: false; }
@property --mx { syntax: '*'; inherits: false; }
@property --my { syntax: '*'; inherits: false; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { font-family: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
svg { display: block; overflow: visible; }
svg text { font-family: Figtree, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type (the film's) ---------- */
/* A headline is a stack of lines; each line slides up out of its own mask. */
.ln { display: block; overflow: hidden; padding: 0.1em 0.08em 0.16em; margin: -0.1em -0.08em -0.16em; }
.ln-i { display: block; transform-origin: 0 100%; white-space: nowrap; }
.hl { font-weight: 900; letter-spacing: -0.045em; line-height: 0.98; }
.sub { font-weight: 500; letter-spacing: -0.012em; line-height: 1.32; text-wrap: pretty; }
.eyebrow { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.sun { color: var(--sun); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: 28px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.5s var(--glide), background-color 0.2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn svg { transition: transform 0.5s var(--glide); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn.ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.sm { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; }

/* ---------- nav: a white pill that reads on every colour the page turns ---------- */
.nav { position: fixed; z-index: 100; left: 0; right: 0; top: 14px; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 7px 0 8px; border-radius: 28px; background: #fff; box-shadow: 0 10px 30px rgba(11, 37, 69, 0.18), 0 0 0 0.5px rgba(11, 37, 69, 0.08); transition: transform 0.7s var(--glide), opacity 0.4s; }
html.booting .nav-in { transform: translateY(-90px); opacity: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 2px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }
.brand i { width: 40px; height: 40px; border-radius: 13px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.brand i svg { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; }
.nav-links a { display: flex; align-items: center; height: 42px; padding: 0 15px; border-radius: 21px; font-weight: 700; font-size: 15px; color: var(--ink2); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a.on { background: rgba(45, 156, 235, 0.12); color: var(--blue-dark); }
.nav .btn { margin-left: 6px; }
@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  .nav { top: 10px; }
  .nav-in { height: 52px; width: 100%; justify-content: space-between; }
  .nav-links { display: none; }
  .brand { font-size: 18px; }
  .brand i { width: 36px; height: 36px; border-radius: 12px; }
  .nav .btn { height: 38px; padding: 0 16px; font-size: 14px; }
}

/* ---------- scenes ----------
   A scene is a tall section with a stage that sticks to the viewport while the page scrolls
   through it. `--len` is the section's height in screens. core.js turns the scroll position into
   the scene's time `t`, measured in screens:
     t = 0  the stage's top edge is at the bottom of the viewport
     t = 1  the stage fills the viewport and sticks
     t = --len  it lets go (so it is pinned for --len − 1 screens)
   Everything in a scene is a function of that t. */
.scene { position: relative; height: calc(var(--len, 1) * 100vh); height: calc(var(--len, 1) * 100svh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; contain: layout paint; }
.stage > .fill { position: absolute; inset: 0; }

/* Honeycomb wipe: hexagons grow until the stage is one colour (the next section's background). */
.wipe { position: absolute; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; visibility: hidden; }
.wipe i { position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transform: scale(0); will-change: transform; }

/* ---------- the map (map.js draws it; colours come from here) ---------- */
.map .m-b0 { fill: var(--m-b0); } .map .m-b1 { fill: var(--m-b1); } .map .m-b2 { fill: var(--m-b2); }
.map .m-pk { fill: var(--m-pk); } .map .m-water { fill: var(--m-water); }
.map .m-river { fill: none; stroke: var(--m-water); stroke-width: 400; }
.map .m-bridge { fill: none; stroke: var(--m-street); stroke-width: 24; }
.map .m-label { font-weight: 600; font-size: 21px; fill: #8E9AAB; letter-spacing: 0.02em; }
.map.dark { --m-b0: #11305A; --m-b1: #133560; --m-b2: #0F2C53; --m-pk: #12404F; --m-water: #1B4F8E; --m-street: #0B2545; }
.map.light { --m-b0: #ECEEF2; --m-b1: #E6E9EE; --m-b2: #F0F2F5; --m-pk: #CFEACF; --m-water: #A9D6F5; --m-street: #fff; background: #fff; }

/* ---------- small shared pieces ---------- */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px 0 22px; border-radius: 32px; background: #fff; color: var(--ink); font-weight: 800; font-size: 26px; white-space: nowrap; }
.pill em { font-style: normal; font-weight: 600; color: var(--ink2); }
.hexq { position: relative; flex: none; }
.hexq b, .hexq .ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hexq b { font-weight: 900; color: #fff; line-height: 1; }

/* The finger that taps things (Site.tap). */
.touch { position: absolute; z-index: 50; border-radius: 50%; background: rgba(15, 29, 46, 0.26); border: 2.5px solid rgba(255, 255, 255, 0.95); box-shadow: 0 4px 14px rgba(15, 29, 46, 0.3); pointer-events: none; }
.touch i { position: absolute; inset: -2.5px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.9); }
.touch.on-dark { background: rgba(255, 255, 255, 0.3); }

/* Until the engine has drawn its first frame the page is the navy it opens on, so the HTML's
   copy never flashes up before the intro takes it away and brings it in again. */
html.booting main { visibility: hidden; }

/* The cut the nav links make (core.js, S.travel): a honeycomb over everything but the nav. */
.jump { position: fixed; inset: 0; z-index: 99; pointer-events: none; overflow: hidden; }
.jump i { position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transform: scale(0); will-change: transform; }
/* While it jumps, scenes snap into their states instead of animating there. */
html.jumping *, html.jumping *::before, html.jumping *::after { transition: none !important; }
[tabindex="-1"]:focus { outline: none; }

/* Things that wait off-stage until JavaScript has built the page. */
html.js .pre { visibility: hidden; }

/* ---------- without JavaScript, or with reduced motion: a plain readable page ---------- */
html:not(.js) .scene { height: auto; }
html:not(.js) .stage { position: static; height: auto; min-height: 60vh; padding: 120px var(--gut) 80px; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn svg, .nav-in { transition: none; }
}
