:root { color-scheme: dark; --ink: #f7f7f3; --dim: #a9a9a1; --red: #ff5a51; --green: #a8ff6e; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow: hidden; background: #000; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
.wall { min-height: 100vh; opacity: 0; transition: opacity 1s ease; }.wall.is-active { opacity: 1; }
.flight-grid { display: none; position: relative; height: 100vh; }.flight-grid.active { display: block; }
.flight-card { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: minmax(0, 52%) minmax(0, 1fr); gap: clamp(20px, 3vw, 64px) clamp(24px, 3vw, 70px); padding: clamp(26px, 4.1vh, 72px) clamp(30px, 5.3vw, 112px); opacity: 0; transform: scale(1.025); filter: blur(3px); transition: opacity 1.15s ease, transform 1.15s cubic-bezier(.2,.7,.2,1), filter 1.15s ease; }
.flight-card.is-visible { opacity: 1; transform: none; filter: none; }.flight-card.is-leaving { opacity: 0; transform: scale(.985); filter: blur(3px); pointer-events: none; }
.aircraft-photo-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #080808; }.aircraft-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .55s ease; }.aircraft-photo.is-fading { opacity: 0; }.aircraft-photo:not([src]) { display: none; }.photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #222; font-size: clamp(80px, 14vw, 220px); }.aircraft-photo[src] + .photo-fallback, .photo-credit { display: none; }
.flight-summary { min-width: 0; align-self: center; }.flight-heading { display: flex; flex-direction: column; gap: clamp(8px, 1.3vh, 22px); }.flight-number { order: 2; margin: 0; font-size: clamp(68px, 7.4vw, 145px); font-weight: 700; line-height: .88; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }.distance { order: 1; margin: 0; color: var(--dim); font-size: clamp(16px, 1.45vw, 30px); }.route { display: flex; align-items: baseline; gap: .28em; margin: clamp(24px, 3.2vh, 60px) 0 0; font-size: clamp(28px, 2.8vw, 56px); font-weight: 400; line-height: 1.05; letter-spacing: -.05em; }.origin, .destination { white-space: nowrap; }.route-line { color: var(--red); }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: clamp(22px, 4vh, 58px) clamp(24px, 4.7vw, 106px); margin: 0; min-width: 0; }.stats.has-timings { grid-template-columns: repeat(3, minmax(0, 1fr)); }.stats div { min-width: 0; }.stats div.is-empty { display: none; }.stats dt { color: var(--dim); font-size: clamp(12px, .9vw, 18px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }.stats dd { margin: 8px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(23px, 2vw, 42px); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }.stats .key-stat dd { color: var(--green); font-size: clamp(38px, 4vw, 80px); font-weight: 500; }
.is-updating { animation: value-update .8s ease; } @keyframes value-update { 0% { color: var(--green); opacity: .15; transform: translateY(8px); } 100% { color: inherit; opacity: 1; transform: none; } }
@media (max-width: 900px) { .flight-card { grid-template-columns: 1fr 1fr; grid-template-rows: 46% 1fr; padding: 28px 34px; gap: 24px; }.flight-number { font-size: clamp(58px, 8vw, 105px); }.route { font-size: clamp(26px, 3vw, 44px); flex-wrap: wrap; }.stats, .stats.has-timings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 34px; }.stats .key-stat dd { font-size: clamp(38px, 5.2vw, 68px); } }
@media (max-width: 560px) { body { overflow: auto; }.flight-grid { min-height: 760px; }.flight-card { grid-template-columns: 1fr; grid-template-rows: 34% auto 1fr; padding: 22px; }.aircraft-photo-wrap { grid-row: 1; }.flight-summary { grid-column: 1; grid-row: 2; }.stats { grid-column: 1; grid-row: 3; }.flight-number { font-size: 64px; }.route { margin-top: 18px; font-size: 30px; } }
.route-unverified { display: none; color: var(--dim); font-size: .58em; font-weight: 700; letter-spacing: .12em; }.route.is-unverified .origin, .route.is-unverified .destination, .route.is-unverified .route-line { display: none; }.route.is-unverified .route-unverified { display: inline; }
