/* ARRIVALS
   Hard limits, never broken:
   - Two colours plus tints: flap white #ECE5D5 on night #0A0A0B, and airport signage yellow #FFC21A. The yellow
     takes over whole moments (the hero sign, the arrival wave, the money sign) and the main action; it is never a
     glow or a decoration. Green/red exist only as data: the 24 h change.
   - Two faces: Antonio (the flaps and big numbers), Encode Sans Semi Condensed (signs, everything you read or click).
   - One motif: the split-flap module, lit from above. Signs are flat yellow panels with black type and pictograms.
     No cards, no glows, no badges, no gradient decoration.
   Sentence case outside the flaps. Numbers tabular. */

@font-face { font-family: Antonio; src: url(/fonts/antonio-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap }
@font-face { font-family: Antonio; src: url(/fonts/antonio-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: block }
@font-face { font-family: 'Encode Sans Semi Condensed'; src: url(/fonts/encode-sans-semi-condensed-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap }
@font-face { font-family: 'Encode Sans Semi Condensed'; src: url(/fonts/encode-sans-semi-condensed-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap }
@font-face { font-family: 'Encode Sans Semi Condensed'; src: url(/fonts/encode-sans-semi-condensed-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap }
@font-face { font-family: 'Encode Sans Semi Condensed'; src: url(/fonts/encode-sans-semi-condensed-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap }

:root {
  --night: #0A0A0B;
  --ink: #0A0A0B;
  --flap: #ECE5D5;
  --signal: #FFC21A;
  --signal-hi: #FFCE45;
  --up: #46D37E;
  --down: #FF5C4D;
  --t-80: rgba(236, 229, 213, .8);
  --t-60: rgba(236, 229, 213, .64);
  --t-45: rgba(236, 229, 213, .58);
  --t-25: rgba(236, 229, 213, .25);
  --t-12: rgba(236, 229, 213, .12);
  --t-06: rgba(236, 229, 213, .06);
  --module: #1d1d20;
  --ui: 'Encode Sans Semi Condensed', system-ui, sans-serif;
  --flapface: Antonio, 'Arial Narrow', sans-serif;
  --m: clamp(16px, 4.4vw, 64px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --press: cubic-bezier(0.2, 0.9, 0.3, 1.2);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { background: var(--night); color: var(--flap); -webkit-text-size-adjust: 100% }
body { font: 400 17px/1.45 var(--ui); background: var(--night); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility }
a { color: inherit; text-decoration: none }
button, input { font: inherit; color: inherit }
button { cursor: pointer; background: none; border: 0 }
::selection { background: var(--signal); color: var(--night) }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px }
/* on yellow, the focus ring turns ink so it never disappears */
:is(.sign, .wayfind, .bar[data-theme="ink"]) :focus-visible { outline-color: var(--ink) }
[hidden] { display: none !important }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
img, svg { display: block }
h1, h2 { text-wrap: balance }
p { text-wrap: pretty }

/* ---------------------------------------------------------------- bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 var(--m); color: var(--flap); --mk-plate: var(--signal); --mk-ink: var(--night); transition: color .2s ease, background-color .2s ease, box-shadow .2s ease }
/* a solid bar that matches the section under it: night over the board and dark sections, signage yellow over a sign.
   Nothing ever scrolls through the logo. */
.bar { background: var(--night); box-shadow: 0 1px 0 var(--t-06) }
.bar[data-theme="ink"] { color: var(--ink); --mk-plate: var(--ink); --mk-ink: var(--signal); background: var(--signal); box-shadow: none }
@media (prefers-reduced-motion: reduce) { .bar, .brand .mk-p, .brand .mk-i { transition: none } }
.brand { display: flex; align-items: center; gap: 11px; font: 700 19px/1 var(--ui); letter-spacing: .005em; padding: 8px 0 }
.brand svg, .brand img { width: 24px; height: 24px }
.brand .mk-p { fill: var(--mk-plate); transition: fill .2s ease } .brand .mk-i { fill: var(--mk-ink); transition: fill .2s ease }
.nav { display: flex; align-items: center; gap: 30px; font: 600 16px/1 var(--ui) }
.nav a { position: relative; padding: 14px 0; opacity: .82; transition: opacity .15s ease }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out) }
@media (hover: hover) { .nav a:hover { opacity: 1 } .nav a:hover::after { transform: scaleX(1) } }
.nav a[aria-current] { opacity: 1 }

/* ---------------------------------------------------------------- buttons: big, and they answer the hand */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 6px; font: 600 18px/1 var(--ui); letter-spacing: .005em; white-space: nowrap; transition: transform .16s var(--ease-out), background-color .15s ease, box-shadow .15s ease, color .15s ease; user-select: none; -webkit-tap-highlight-color: transparent }
.btn:active { transform: scale(.97); transition-duration: .08s }
.btn-go { background: var(--signal); color: var(--night); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.14) }
@media (hover: hover) { .btn-go:hover { background: var(--signal-hi) } }
.btn-go:active { box-shadow: inset 0 2px 3px rgba(0,0,0,.18) }
.btn-quiet { box-shadow: inset 0 0 0 1.5px var(--t-25); color: var(--flap) }
@media (hover: hover) { .btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--t-80); background: var(--t-06) } }
.btn-ink { background: var(--ink); color: var(--signal); box-shadow: inset 0 1px 0 rgba(255,255,255,.08) }
@media (hover: hover) { .btn-ink:hover { background: #222225 } }
.btn-line { box-shadow: inset 0 0 0 2.5px var(--ink); color: var(--ink) }
@media (hover: hover) { .btn-line:hover { background: rgba(10,10,11,.08) } }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px }
.btn[disabled] { opacity: .45; pointer-events: none }
.btn .arw { width: 18px; height: 18px; transition: transform .2s var(--ease-out) }
@media (hover: hover) { .btn:hover .arw { transform: translateX(3px) } }

/* ---------------------------------------------------------------- landing stage (pinned): the sign, then the board */
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--night) }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 42% 46%; will-change: transform }
.light { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(rgba(5,5,6,.92), rgba(5,5,6,0) 130px), radial-gradient(90% 80% at 16% 6%, rgba(255,246,228,.10), rgba(255,246,228,0) 55%), radial-gradient(140% 120% at 30% 22%, rgba(10,10,11,0) 45%, rgba(5,5,6,.66) 100%) }
.sweep { position: absolute; inset: -10% -60%; z-index: 2; pointer-events: none; opacity: 0; mix-blend-mode: overlay; background: linear-gradient(104deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 58%); will-change: transform }
@media (prefers-reduced-motion: reduce) { .sweep { display: none } }
.shade-b { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(10,10,11,0), var(--night)) }

.sign { position: absolute; inset: 0 0 auto; z-index: 3; background: var(--signal); color: var(--ink); padding: 104px var(--m) 46px; will-change: transform; transform-origin: 50% 0 }
.sign::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--ink) }
.sign-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 clamp(24px, 3vw, 44px); align-items: start }
.picto { width: clamp(120px, 13vw, 188px); aspect-ratio: 1; background: var(--ink); color: var(--signal); border-radius: 10px; display: grid; place-items: center }
.picto svg { width: 74% }
.sign h1 { font: 700 clamp(64px, 8.2vw, 124px)/.9 var(--ui); letter-spacing: -.022em; margin-top: -.06em }
.sign .sub { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; margin-top: 30px }
.sign .sub p { font: 500 22px/1.3 var(--ui); max-width: 30ch }
.acts { display: flex; gap: 12px; flex-wrap: wrap }
.sign .arrow { width: clamp(84px, 9vw, 132px); color: var(--ink); align-self: start; margin-top: 6px }
.sign .arrow svg { width: 100%; height: auto }

.live { position: absolute; right: var(--m); z-index: 2; font: 500 15px/1 var(--ui); color: var(--t-60); display: flex; align-items: center; gap: 8px; pointer-events: none }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: blink 2.4s ease-in-out infinite }
@keyframes blink { 50% { opacity: .25 } }

/* the rail: the board's bottom edge, where the beat is told in words and the action waits */
.rail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px 40px; padding: 26px var(--m) 30px; background: var(--night); box-shadow: 0 -1px 0 var(--t-12), 0 -40px 60px rgba(5,5,6,.75); transform: translateY(105%); will-change: transform }
.caps { position: relative; min-height: 2.7em; font: 400 22px/1.32 var(--ui); color: rgba(236,229,213,.9) }
.caps p { position: absolute; inset: auto 0 50% 0; transform: translateY(50%); max-width: 50ch; opacity: 0 }
.caps p b { font-weight: 600; color: #F6F1E6 }
.q { display: flex; align-items: baseline; gap: 14px; font: 700 40px/1 var(--flapface); letter-spacing: .02em; white-space: nowrap }
.q .tk { font: 600 16px/1 var(--ui); color: var(--t-60); letter-spacing: 0 }
.q .ch { font: 600 22px/1 var(--flapface) }
.up { color: var(--up) } .down { color: var(--down) }

/* ---------------------------------------------------------------- the money sign (full yellow) */
.wayfind { position: relative; background: var(--signal); color: var(--ink); padding: 136px var(--m) 0; display: grid; gap: 0; overflow: hidden }
.dir { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(28px, 4vw, 64px); align-items: center; padding: 44px 0 52px }
.dir + .dir { border-top: 10px solid var(--ink) }
.dir.l { grid-template-columns: auto minmax(0, 1fr) }
.dir h2 { font: 700 clamp(64px, 11.4vw, 176px)/.86 var(--ui); letter-spacing: -.03em }
.dir p { font: 500 clamp(19px, 1.7vw, 25px)/1.32 var(--ui); max-width: 34ch; margin-top: 30px }
.dir .box { width: clamp(108px, 17vw, 250px); aspect-ratio: 1; background: var(--ink); color: var(--signal); border-radius: 12px; display: grid; place-items: center }
.dir .box svg { width: 70% }
.wf-rail { display: flex; align-items: center; gap: 22px 40px; flex-wrap: wrap; margin: 0 calc(var(--m) * -1); padding: 30px var(--m) 34px; background: var(--ink); color: var(--flap) }
.wf-rail .fl { --cw: clamp(26px, 3vw, 44px) }
.wf-rail p { font: 500 19px/1.4 var(--ui); color: var(--t-80); max-width: 46ch }

/* ---------------------------------------------------------------- flap modules in the DOM (flapdom.js), lit like the canvas */
.fl { display: inline-flex; gap: calc(var(--cw) * .08); flex: none }
.fl.r { justify-content: flex-end }
.fl[hidden] { display: none }
.fc { position: relative; width: var(--cw); height: calc(var(--cw) / .64); perspective: calc(var(--cw) * 7); font: 700 calc(var(--cw) * 1.3)/1 var(--flapface); color: #F2ECDF; flex: none; filter: drop-shadow(0 calc(var(--cw) * .06) calc(var(--cw) * .08) rgba(0,0,0,.55)) }
.fc.k-y { color: var(--signal) }
.fc.k-d { color: #8d887e }
.fc.k-g { color: var(--up) }
.fc.k-r { color: var(--down) }
.fc .h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; display: flex; justify-content: center }
.fc .t { top: 0; border-radius: calc(var(--cw) * .1) calc(var(--cw) * .1) 0 0; background: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,0) 60%), linear-gradient(#303036, #232327); box-shadow: inset 0 max(1px, calc(var(--cw) * .025)) 0 rgba(255,255,255,.16), inset max(1px, calc(var(--cw) * .025)) 0 0 rgba(255,255,255,.05), inset 0 calc(var(--cw) * -.12) calc(var(--cw) * .12) calc(var(--cw) * -.06) rgba(0,0,0,.35) }
.fc .b { bottom: 0; border-radius: 0 0 calc(var(--cw) * .1) calc(var(--cw) * .1); background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0) 32%), linear-gradient(#18181b, #111113); box-shadow: inset 0 calc(var(--cw) * -.04) 0 rgba(0,0,0,.4) }
/* status faces: the whole flap is printed (en route: black on yellow; landed: black on flap white) */
.fc.k-Y, .fc.k-L { color: #0B0B0B }
.fc.k-Y .t { background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,0) 62%), linear-gradient(#FFD23A, #FFC414); box-shadow: inset 0 max(1px, calc(var(--cw) * .025)) 0 rgba(255,255,255,.6), inset 0 calc(var(--cw) * -.12) calc(var(--cw) * .12) calc(var(--cw) * -.06) rgba(120,80,0,.3) }
.fc.k-Y .b { background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,0) 32%), linear-gradient(#E9AE00, #D69E00) }
.fc.k-L .t { background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0) 62%), linear-gradient(#FAF6EC, #EFE9DB); box-shadow: inset 0 max(1px, calc(var(--cw) * .025)) 0 rgba(255,255,255,.8), inset 0 calc(var(--cw) * -.12) calc(var(--cw) * .12) calc(var(--cw) * -.06) rgba(60,50,30,.25) }
.fc.k-L .b { background: linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,0) 32%), linear-gradient(#E3DCCB, #D6CFBE) }
/* each half holds the glyph as its only text: a line box one module tall, the top half aligned to its top edge and
   the bottom half to its bottom edge, so each shows its own half of the same glyph (nudged down a hair, optically) */
.fc .t { align-items: flex-start; line-height: calc(var(--cw) / .64 + var(--cw) * .12) }
.fc .b { align-items: flex-end; line-height: calc(var(--cw) / .64 - var(--cw) * .12) }
.fc::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, calc(var(--cw) * .07)); transform: translateY(-50%); background: #030304; box-shadow: 0 calc(var(--cw) * -.03) 0 rgba(255,255,255,.06); z-index: 3 }
.fc::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(var(--cw) * .22); transform: translateY(-50%); z-index: 4; background: linear-gradient(90deg, var(--night) calc(var(--cw) * .07), transparent calc(var(--cw) * .07), transparent calc(100% - var(--cw) * .07), var(--night) calc(100% - var(--cw) * .07)) }
.fc .ft { z-index: 2; transform-origin: 50% 100%; animation: flap-top 100ms cubic-bezier(.55, 0, .9, .45) forwards }
.fc .fb { z-index: 2; transform-origin: 50% 0; transform: rotateX(90deg); animation: flap-bot 150ms cubic-bezier(.2, .7, .3, 1.25) 92ms forwards }
@keyframes flap-top { to { transform: rotateX(-90deg); filter: brightness(.45) } }
@keyframes flap-bot { 0% { transform: rotateX(90deg); filter: brightness(.45) } 100% { transform: rotateX(0); filter: brightness(1) } }
@media (prefers-reduced-motion: reduce) { .fc .ft, .fc .fb { animation: none; display: none } }

/* ---------------------------------------------------------------- closing: the board is open */
.close { position: relative; padding: 15vh var(--m) 12vh; display: grid; gap: 30px; justify-items: start }
.close > :not(.apron) { position: relative; z-index: 1 }
/* the apron at night behind the closing frame: runway lights, one plane on final. Quiet, masked off the text side */
.apron { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 78%); mask-image: linear-gradient(90deg, transparent 38%, #000 78%) }
.close-flaps { --cw: clamp(15px, 3.7vw, 58px); display: grid; gap: calc(var(--cw) * .18); margin-bottom: 4px }
.close-flaps .fl { gap: calc(var(--cw) * .07) }
.close > p { font: 400 22px/1.4 var(--ui); color: var(--t-80); max-width: 40ch }
.mini { width: 100%; max-width: 1080px; margin-top: 10px }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px }
.tabs button { position: relative; height: 44px; padding: 0 16px; border-radius: 6px; font: 600 16px/1 var(--ui); color: var(--t-60); transition: color .15s ease, background-color .15s ease, transform .16s var(--ease-out) }
.tabs button:active { transform: scale(.97) }
@media (hover: hover) { .tabs button:hover { color: var(--flap); background: var(--t-06) } }
.tabs button[aria-selected="true"] { color: var(--night); background: var(--flap) }
.mrows { --cw: clamp(12px, 1.75vw, 25px); display: grid; gap: 2px }
.mrow { display: flex; align-items: center; gap: calc(var(--cw) * .9); padding: calc(var(--cw) * .32) 14px; border-radius: 6px; transition: background-color .15s ease, transform .16s var(--ease-out), box-shadow .15s ease }
.mrow:active { transform: scale(.995) }
@media (hover: hover) { .mrow:hover { background: var(--t-06); box-shadow: inset 3px 0 0 var(--signal) } }
.mrow .go { margin-left: auto; font: 600 16px/1 var(--ui); color: var(--t-45); display: flex; align-items: center; gap: 6px; transition: color .15s ease }
.mrow .go svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out) }
@media (hover: hover) { .mrow:hover .go { color: var(--flap) } .mrow:hover .go svg { transform: translateX(3px) } }
.foot { padding: 30px var(--m) 42px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; border-top: 1px solid var(--t-12); font-size: 15px; color: var(--t-60) }
.foot .fine { max-width: 76ch; line-height: 1.55 }
.foot nav { display: flex; gap: 24px; align-items: flex-start }
.foot nav a { padding: 4px 0; transition: color .15s ease }
@media (hover: hover) { .foot nav a:hover { color: var(--flap) } }

@media (max-width: 720px) {
  body { font-size: 16px }
  .bar { height: 62px }
  .nav { gap: 20px; font-size: 15px }
  .nav .hide-s { display: none }
  .sign { padding: 74px var(--m) 30px }
  .sign-in { grid-template-columns: 1fr auto; gap: 0 }
  .picto { width: 68px; border-radius: 7px }
  .sign .arrow { width: 50px; margin-top: 4px }
  .sign .head { grid-column: 1 / -1; grid-row: 2; margin-top: 18px }
  .sign h1 { font-size: clamp(46px, 14vw, 60px); margin: 0 }
  .sign .sub { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 16px }
  .sign .sub p { font-size: 18px }
  .sign .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
  .sign .acts .btn { padding: 0; height: 54px }
  .live { display: none }
  .rail { grid-template-columns: 1fr auto; padding: 18px var(--m) calc(20px + env(safe-area-inset-bottom)); gap: 14px 16px }
  .caps { grid-column: 1 / -1; font-size: 17px; min-height: 4em }
  .q { font-size: 30px } .q .ch { font-size: 18px }
  .wayfind { padding-top: 88px }
  .dir { padding: 30px 0 34px; gap: 18px 18px }
  .dir .box { width: 74px; border-radius: 8px }
  .dir h2 { font-size: clamp(50px, 15vw, 64px) }
  .dir p { margin-top: 14px; font-size: 18px }
  .foot { grid-template-columns: 1fr }
  .close { padding: 12vh var(--m) 10vh }
  .apron { -webkit-mask-image: linear-gradient(transparent 30%, #000 75%); mask-image: linear-gradient(transparent 30%, #000 75%) }
  .close > p { font-size: 18px }
  .close > :not(.apron) { position: relative; z-index: 1 }
/* the apron at night behind the closing frame: runway lights, one plane on final. Quiet, masked off the text side */
.apron { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 78%); mask-image: linear-gradient(90deg, transparent 38%, #000 78%) }
.close-flaps { --cw: calc((100vw - 2 * var(--m)) / 10.4) }
  .mrows { --cw: calc((100vw - 2 * var(--m) - 20px) / 27) }
  .mrow { padding-left: 8px; padding-right: 8px }
  .mrow .go { display: none }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--m) * -1) 12px; padding: 0 var(--m) }
  .tabs button { flex: none }
}
@media (prefers-reduced-motion: reduce) { .live i { animation: none } .btn, .nav a::after, .tabs button, .mrow { transition: none } }
