:root {
  --ivory: #f8f5ee;
  --paper: #fffdf9;
  --ink: #141014;
  --burgundy: #68102f;
  --burgundy-deep: #4a0b21;
  --gold: #b48a4e;
  --mute: #5c5158;
  --line: rgba(104, 16, 47, 0.2);
  --pad: clamp(20px, 5vw, 72px);
  --wide: 1160px;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: linear-gradient(180deg, #fbf9f4 0%, var(--ivory) 50%, #f1e7e3 100%) fixed var(--ivory); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--burgundy); }
::selection { background: var(--burgundy); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--burgundy); color: var(--ivory); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.no-webgl #scene { display: none; }

/* Top bar */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 14px var(--pad); background: rgba(248, 245, 238, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__logo img { display: block; height: 40px; width: auto; }
.top__nav { display: flex; gap: clamp(18px, 2.4vw, 38px); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.top__nav a { padding: 8px 0; border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.top__nav a:hover { color: var(--burgundy); border-color: var(--burgundy); }
.top__cta { justify-self: end; font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: var(--burgundy); padding: 10px 16px; border: 1px solid var(--burgundy); border-radius: 4px; transition: background 0.25s, color 0.25s; }
.top__cta:hover { background: var(--burgundy); color: var(--ivory); }

/* Route rail: the page as a flight */
.route { position: fixed; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%); z-index: 30; display: grid; gap: 18px; }
.route::before { content: ""; position: absolute; right: 5px; top: 6px; bottom: 6px; border-right: 1px dashed var(--burgundy); opacity: 0.45; }
.route a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 12px; }
.route a::after { content: ""; position: relative; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--burgundy); background: var(--ivory); transition: background 0.3s, transform 0.3s var(--ease); }
.route a span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--burgundy); opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s; white-space: nowrap; background: rgba(248, 245, 238, 0.9); padding: 3px 8px; border-radius: 3px; }
.route a:hover span, .route a:focus-visible span { opacity: 1; transform: none; }
.route a.is-here::after { background: var(--burgundy); transform: scale(1.25); }

/* Shared */
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burgundy); }
.kicker--light { color: #e6c9a4; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.8vw, 66px); line-height: 1.06; letter-spacing: -0.015em; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 4px; background: var(--burgundy); color: var(--ivory); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.3s; }
.btn:hover { background: var(--burgundy-deep); }

.rise { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

.block { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: clamp(90px, 14vh, 170px) var(--pad); display: grid; gap: clamp(30px, 5vh, 56px); }
.block__head { display: grid; gap: 16px; justify-items: center; text-align: center; }
.block__lede { max-width: 46ch; color: var(--mute); }

/* Hero: headline, aircraft, boarding pass */
.hero { min-height: 100svh; padding: 118px var(--pad) 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 92px); line-height: 1.04; letter-spacing: -0.02em; max-width: 14ch; }

.pass { margin-top: auto; width: min(100%, 940px); display: grid; grid-template-columns: minmax(0, 1fr) 250px; text-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -30px rgba(74, 11, 33, 0.45); }
.pass__main { padding: 20px 26px 22px; display: grid; gap: 16px; }
.pass__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); }
.pass__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
.pass__grid dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.pass__grid dd { margin-top: 3px; font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; }
.pass__stub { position: relative; padding: 20px 24px 22px; display: grid; gap: 10px; align-content: start; border-inline-start: 2px dashed var(--line); background: rgba(104, 16, 47, 0.04); border-radius: 0 14px 14px 0; }
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; inset-inline-start: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line); }
.pass__stub::before { top: -11px; }
.pass__stub::after { bottom: -11px; }
.pass__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.pass__phone { font-family: var(--mono); font-size: 21px; font-weight: 500; color: var(--burgundy); letter-spacing: 0.02em; }
.pass__code { display: block; height: 30px; margin-top: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); opacity: 0.75; }

/* Tickets */
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.ticket { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px 26px 30px; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--burgundy); border-radius: 4px 4px 14px 14px; transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s; }
.ticket.is-in:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(74, 11, 33, 0.55); }
.ticket__class { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.ticket h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 2.1vw, 31px); line-height: 1.14; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.ticket p { color: var(--mute); }

.durations { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.duration { display: flex; align-items: baseline; gap: 12px; padding: 14px 28px; border: 1px solid var(--burgundy); border-radius: 999px; background: rgba(255, 253, 249, 0.85); }
.duration strong { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); color: var(--burgundy); line-height: 1; }
.duration span { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Flight plan */
.block--route .block__head { justify-items: end; text-align: end; }
.flightplan { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-top: 34px; }
.flightplan::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 2px dashed var(--burgundy); opacity: 0.5; }
.flightplan li { position: relative; display: grid; justify-items: center; text-align: center; }
.flightplan li::before { content: ""; position: absolute; top: -31px; width: 15px; height: 15px; border-radius: 50%; background: var(--burgundy); border: 3px solid var(--ivory); box-shadow: 0 0 0 1px var(--burgundy); }
.flightplan span { padding: 12px 10px; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-family: var(--serif); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.25; }

/* Facts */
.facts { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(14px, 1.8vw, 24px); max-width: 880px; }
.fact { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; align-content: start; }
.fact--big { grid-row: span 2; background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); align-content: end; }
.fact--big strong { font-family: var(--serif); font-weight: 500; font-size: clamp(90px, 11vw, 168px); line-height: 0.85; }
.fact--big span { font-size: 17px; max-width: 18ch; }
.fact h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.15; }
.fact p { color: var(--mute); }
.fact:nth-child(4) { grid-column: 2 / span 2; }

/* Departures board */
.board { padding: clamp(80px, 12vh, 150px) var(--pad); background: var(--ink); color: var(--ivory); display: grid; gap: clamp(28px, 5vh, 50px); justify-items: center; }
.board h2 em { color: #e6c9a4; }
.board__panel { width: min(100%, 860px); border: 1px solid rgba(248, 245, 238, 0.18); border-radius: 12px; overflow: hidden; background: #1c161b; font-family: var(--mono); }
.board__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 15px 24px; border-top: 1px solid rgba(248, 245, 238, 0.1); font-size: clamp(15px, 1.5vw, 19px); letter-spacing: 0.06em; text-transform: uppercase; }
.board__row span:last-child { font-size: 12.5px; letter-spacing: 0.14em; color: #9fd8b4; }
.board__row--out span:last-child { color: #e6c9a4; }
.board__row--head { border-top: 0; background: var(--burgundy); font-size: 12px; letter-spacing: 0.18em; }
.board__row--head span:last-child { color: var(--ivory); }

/* Check-in */
.block--checkin .block__head { justify-items: end; text-align: end; }
.checkin { justify-self: end; width: min(100%, 620px); display: grid; gap: 14px; }
.checkin li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.checkin__tick { width: 34px; height: 34px; border-radius: 50%; background: var(--burgundy); position: relative; }
.checkin__tick::after { content: ""; position: absolute; left: 12px; top: 8px; width: 8px; height: 14px; border: solid var(--ivory); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checkin h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burgundy); }
.checkin p { margin-top: 3px; font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }

/* Gate */
.gate { min-height: 100svh; padding: clamp(110px, 16vh, 180px) var(--pad) clamp(60px, 10vh, 110px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.gate h2 { font-size: clamp(40px, 6.4vw, 100px); }
.gate__lede { max-width: 40ch; color: #2e262b; font-size: clamp(17px, 1.4vw, 20px); }
.gate__phone { margin-top: 6px; font-family: var(--mono); font-weight: 500; font-size: clamp(28px, 4.4vw, 62px); letter-spacing: 0.04em; color: var(--ivory); background: var(--burgundy); padding: 16px 38px; border-radius: 6px; transition: background 0.3s, transform 0.4s var(--ease); }
.gate__phone:hover { background: var(--burgundy-deep); transform: translateY(-3px); }
.gate__info { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.gate__info div { display: grid; gap: 4px; padding: 14px 24px; background: rgba(255, 253, 249, 0.88); border: 1px solid var(--line); border-radius: 12px; text-align: start; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gate__info dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); }
.gate__info dd { font-weight: 500; }
.gate__info a { border-bottom: 1px solid var(--burgundy); }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px var(--pad); background: var(--burgundy-deep); color: var(--ivory); font-size: 14px; }
.footer img { display: block; height: 50px; width: auto; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .route { display: none; }
  .top { grid-template-columns: auto 1fr; }
  .top__nav { display: none; }
  .top__logo img { height: 34px; }
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass__stub { border-inline-start: 0; border-top: 2px dashed var(--line); border-radius: 0 0 14px 14px; grid-template-columns: 1fr auto; align-items: center; }
  .pass__stub::before { top: -11px; inset-inline-start: -11px; }
  .pass__stub::after { top: -11px; bottom: auto; inset-inline-start: auto; inset-inline-end: -11px; }
  .pass__label, .pass__code { grid-column: 1 / -1; }
  .pass__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tickets { grid-template-columns: minmax(0, 1fr); }
  .flightplan { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-inline-start: 34px; gap: 12px; }
  .flightplan::before { left: 9px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--burgundy); }
  .flightplan li { justify-items: stretch; text-align: start; }
  .flightplan li::before { top: 50%; left: -32px; margin-top: -8px; }
  .block--route .block__head, .block--checkin .block__head { justify-items: center; text-align: center; }
  .checkin { justify-self: stretch; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact--big { grid-row: auto; }
  .fact:nth-child(4) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
}
