/* Twin Rail — fictional matcha & espresso bar. Signal orange, matcha, espresso, milk. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-wdth-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --signal: #ff5a1f;
  --signal-deep: #e0420c;
  --ink: #16130f;
  --milk: #f6f1e6;
  --matcha: #8dbb36;
  --matcha-deep: #23361a;
  --esp: #3a1c0e;
  --board: #121410;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--milk); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.5; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--milk); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gut); color: var(--milk); pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; --mark-fill: var(--matcha-deep); }
.brand-word { font-family: var(--display); font-weight: 850; font-stretch: 118%; font-size: 21px; letter-spacing: -.01em; text-transform: uppercase; }
.nav-status { display: none; font-size: 14px; align-items: center; gap: 8px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--matcha); box-shadow: 0 0 0 4px rgb(141 187 54 / .3); }
.nav-cta { font-weight: 700; font-size: 15px; text-decoration: none; background: var(--ink); color: var(--milk); padding: 10px 18px; border-radius: 999px; }
@media (min-width: 900px) { .nav-status { display: flex; } }

/* ---------- 1 · the pour ---------- */
.pour { position: relative; background: var(--signal); color: var(--milk); }
.pour-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.pour-head { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .8; letter-spacing: -.03em; z-index: 1; pointer-events: none; }
.ph-line { display: block; white-space: nowrap; will-change: transform; }
.ph-line > span { display: inline-block; }
.ph-two { font-size: clamp(110px, 30vw, 330px); transform: translateY(-.05em); }
.ph-tracks { font-size: clamp(66px, 18.5vw, 250px); }

.glass-wrap { position: absolute; left: 50%; top: 52%; height: min(62svh, 820px); aspect-ratio: 300 / 440; transform: translate(-50%, -50%); z-index: 2; }
.glass { width: 100%; height: 100%; overflow: visible; }
.glass-line { fill: rgb(255 255 255 / .08); stroke: var(--milk); stroke-width: 5; stroke-linejoin: round; }
.glass-rim { stroke: var(--milk); stroke-width: 9; stroke-linecap: round; }
.layer { will-change: transform; }
.ice { fill: rgb(255 255 255 / .38); stroke: rgb(255 255 255 / .9); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.stream { transform-box: fill-box; }
.straw rect { fill: var(--ink); }
.straw { transform-box: fill-box; }


.pour-foot { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .8; letter-spacing: -.03em; z-index: 1; color: var(--ink); pointer-events: none; }
@media (max-width: 899px) { .pour-foot { justify-content: flex-end; padding-bottom: 150px; } }
@media (min-width: 900px) { .glass-wrap { height: min(78svh, 820px); } }
.pf-line { display: block; white-space: nowrap; opacity: 0; will-change: transform; }
.pf-one { font-size: clamp(110px, 30vw, 330px); }
.pf-cup { font-size: clamp(100px, 27vw, 300px); }

.pour-board { position: absolute; left: var(--gut); bottom: 74px; z-index: 4; display: flex; flex-direction: column; gap: 2px; background: var(--board); color: var(--milk); border-radius: 10px; padding: 9px 14px 10px; min-width: 210px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.pb-label { font-size: 12px; font-weight: 600; color: var(--matcha); }
.pb-text { font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 20px; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }

.rail { position: absolute; left: var(--gut); right: var(--gut); bottom: 30px; height: 26px; z-index: 4; }
.rail-line { position: absolute; left: 0; right: 0; top: 6px; height: 4px; background: repeating-linear-gradient(90deg, var(--milk) 0 14px, transparent 14px 20px); opacity: .7; }
.rail-stop { position: absolute; left: calc(var(--x) * 100%); top: 14px; transform: translateX(calc(var(--x) * -100%)); font-size: 12px; font-weight: 700; }
.rail-train { position: absolute; left: 0; top: 0; width: 34px; height: 16px; border-radius: 8px 12px 4px 4px; background: var(--ink); transform-origin: left center; }

/* ---------- 2 · intro ---------- */
.intro { padding: clamp(90px, 14vw, 180px) var(--gut) clamp(80px, 10vw, 140px); background: var(--milk); }
.kicker { font-weight: 600; font-size: 15px; color: var(--signal-deep); margin-bottom: 22px; }
.intro-h { font-family: var(--display); font-weight: 850; font-stretch: 112%; font-size: clamp(38px, 7.4vw, 118px); line-height: .95; letter-spacing: -.025em; text-transform: uppercase; max-width: 15ch; }
.intro-h .w { display: inline-block; }
.intro-h .hi { color: var(--signal); }
.intro-grid { display: grid; gap: 32px; margin-top: clamp(40px, 7vw, 90px); align-items: end; }
.intro-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--matcha-deep); }
.intro-photo img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.intro-copy p { max-width: 38ch; font-size: clamp(17px, 1.4vw, 20px); }
.big-num { margin-top: 34px; display: flex; flex-direction: column; }
.big-num span { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(88px, 16vw, 220px); line-height: .85; letter-spacing: -.04em; color: var(--matcha-deep); }
.big-num small { font-size: 15px; font-weight: 600; margin-top: 8px; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 5fr 6fr; gap: 6vw; } }

/* ---------- 3 · departure board ---------- */
.board { background: var(--matcha-deep); color: var(--milk); padding: clamp(80px, 10vw, 140px) var(--gut); }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 36px; }
.board-head h2 { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(34px, 10.4vw, 190px); line-height: .82; letter-spacing: -.035em; color: var(--matcha); }
.board-head p { max-width: 30ch; font-size: 17px; opacity: .85; }
.board-frame { background: var(--board); border-radius: 18px; padding: clamp(12px, 2vw, 26px); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .06), 0 30px 60px rgb(0 0 0 / .25); }
.board-cols, .board-rows li { display: grid; grid-template-columns: 3.4em 1fr 3.2em; gap: 12px; align-items: center; }
.board-cols { font-size: 12px; font-weight: 700; color: var(--matcha); padding: 4px 10px 10px; }
.board-cols span:nth-child(4), .board-rows .s { display: none; }
.board-rows li { padding: 12px 10px; border-top: 1px solid rgb(255 255 255 / .09); font-family: var(--display); text-transform: uppercase; }
.board-rows .t { font-weight: 600; font-stretch: 90%; font-size: clamp(15px, 1.6vw, 22px); color: #ffcf5a; font-variant-numeric: tabular-nums; }
.board-rows .d { font-weight: 850; font-stretch: 78%; font-size: clamp(19px, 3.2vw, 46px); line-height: 1; white-space: nowrap; overflow: hidden; display: flex; }
.board-rows .p { font-weight: 700; font-size: clamp(16px, 1.8vw, 26px); text-align: right; font-variant-numeric: tabular-nums; }
.board-rows .s { font-weight: 700; font-size: 14px; font-stretch: 100%; justify-self: end; }
.s.ok { color: var(--matcha); } .s.go { color: var(--signal); } .s.late { color: #ffcf5a; }
.flap { display: inline-block; min-width: .56em; text-align: center; background: linear-gradient(#1d201b 0 49%, #0c0e0b 49% 51%, #1a1d18 51%); border-radius: 3px; margin-right: 2px; padding: .08em .02em; }
.flap.sp { background: none; min-width: .35em; }
@media (max-width: 899px) { .board-rows .d { font-size: 17px; } .flap { min-width: .5em; margin-right: 1px; } }
@media (min-width: 900px) {
  .board-rows .d { font-stretch: 108%; }
  .board-cols, .board-rows li { grid-template-columns: 5em 1fr 4em 8em; gap: 20px; }
  .board-cols span:nth-child(4), .board-rows .s { display: block; }
}

/* ---------- 4 · ride (train windows) ---------- */
.ride { background: var(--ink); color: var(--milk); }
.ride-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 50px; }
.ride-h { margin: 0 var(--gut) clamp(24px, 4vh, 44px); font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(40px, 7vw, 110px); line-height: .9; letter-spacing: -.03em; z-index: 2; }
.ride-h em { font-style: normal; color: var(--signal); display: block; }
.ride-track { display: flex; gap: clamp(18px, 3vw, 44px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.win { flex: none; width: min(72vw, 360px); }
.win.wide { width: min(86vw, 640px); }
.win-img { height: min(46svh, 460px); border-radius: 48px; overflow: hidden; background: #2b2a26; box-shadow: inset 0 0 0 10px #2c2b27, 0 0 0 10px #2c2b27; }
.win-img img { width: 130%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.win figcaption { margin-top: 26px; font-size: 16px; max-width: 30ch; opacity: .85; }
.win figcaption b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 850; text-transform: uppercase; font-size: 22px; color: var(--matcha); opacity: 1; }

/* ---------- 5 · visit / ticket ---------- */
.visit { background: var(--signal); color: var(--ink); padding: clamp(80px, 10vw, 140px) var(--gut) clamp(90px, 10vw, 150px); overflow: hidden; }
.visit-h { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(76px, 21vw, 330px); line-height: .8; letter-spacing: -.04em; display: flex; flex-wrap: wrap; column-gap: .25em; color: var(--milk); }
.visit-h span { display: inline-block; }
.ticket { margin-top: clamp(40px, 6vw, 80px); display: grid; background: var(--milk); border-radius: 22px; max-width: 980px; box-shadow: 0 24px 60px rgb(80 20 0 / .25); transform-origin: 50% 100%; }
.ticket-main { padding: clamp(22px, 4vw, 44px); }
.ticket-k { font-weight: 700; color: var(--signal-deep); font-size: 15px; }
.ticket-route { display: flex; align-items: center; gap: 14px; margin: 10px 0 26px; font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: clamp(30px, 5vw, 60px); text-transform: uppercase; line-height: 1; flex-wrap: wrap; }
.ticket-route svg { width: clamp(50px, 8vw, 110px); fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ticket dl { display: grid; gap: 12px; }
.ticket dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; border-top: 2px dashed rgb(22 19 15 / .2); padding-top: 12px; }
.ticket dt { font-weight: 700; }
.ticket-stub { position: relative; border-top: 3px dashed rgb(22 19 15 / .25); padding: 24px clamp(22px, 4vw, 44px); display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 18px; line-height: 1.25; }
.ticket-stub .mark { width: 64px; height: 64px; flex: none; color: var(--ink); --mark-fill: var(--matcha); }
@media (min-width: 760px) {
  .ticket { grid-template-columns: 1fr 300px; }
  .ticket-stub { border-top: 0; border-left: 3px dashed rgb(22 19 15 / .25); flex-direction: column; align-items: flex-start; justify-content: center; }
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--milk); padding: clamp(50px, 8vw, 100px) var(--gut) 30px; overflow: hidden; }
.foot-word { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(48px, 13.6vw, 250px); line-height: .8; letter-spacing: -.04em; display: flex; justify-content: space-between; color: var(--matcha); }
.foot-word span { display: inline-block; transform-origin: 50% 100%; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 40px; font-size: 14px; opacity: .75; }

/* ---------- no JS / reduced motion: everything visible, static ---------- */
html:not(.js) .stream, .rm .stream { display: none; }
@media (prefers-reduced-motion: reduce) {
  .stream { display: none; }
}
.nav { transition: color .3s; }
.nav.on-light { color: var(--ink); }
.nav.on-light .brand .mark { --mark-fill: var(--matcha); }
.rm .ride-stage { height: auto; padding: 170px 0 80px; }

.rm .ride-track { width: auto; overflow-x: auto; margin-top: 0; padding-bottom: 20px; }
.rm .win-img img { width: 100%; }
.rm .pour-stage { min-height: 720px; }
.rm .ph-two { transform: translateX(-18%); } .rm .ph-tracks { transform: translateX(18%); }
