/* turningala.com — single visual world: night tarmac. Tokens from marketing/01-identity/brand-kit.md. */
:root {
  --navy: #0B1230;        /* night navy: ground */
  --navy-2: #121A3F;      /* panels */
  --board: #05091C;       /* the board's black */
  --line: #253064;        /* rules */
  --white: #F5F3EE;       /* signal white: type */
  --dim: #A3ABCB;         /* secondary type, hue-biased toward navy */
  --orange: #FF6A00;      /* runway orange: CTA, wands */
  --amber: #FFB347;       /* visor amber: highlights */
  --orange-ink: #1A0800;  /* text on orange */
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1040px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  padding-inline: var(--gutter);
  padding-block: 0;
}
a { color: var(--amber); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; }
[hidden] { display: none !important; }

/* Type scale: 14 / 16 / 19 / 28 / 44 / 84 */
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
.lede { font-size: 19px; color: var(--dim); max-width: 34em; margin: 0 0 22px; text-wrap: pretty; }
.fine { font-size: 14px; color: var(--dim); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 4px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.btn-primary:hover { background: #FF7D22; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); }
.btn-block { width: 100%; }

/* Hero: the runway. Canvas draws edge lights receding into the night. */
.hero {
  position: relative;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  padding-block: 22px 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero-runway { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-inner { max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; width: max-content; }
.brand-mark { width: 54px; height: 24px; fill: var(--orange); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-copy { padding-top: clamp(40px, 9vw, 110px); max-width: 640px; }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 12vw, 112px); line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase;
  margin: 0 0 20px; text-wrap: balance;
}
.hero-sub { font-size: 19px; color: var(--dim); max-width: 30em; margin: 0 0 30px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { margin: 0; }
.hero-figure img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand brand" "copy figure"; align-items: end; }
  .brand { grid-area: brand; }
  .hero-copy { grid-area: copy; }
  .hero-figure { grid-area: figure; width: min(380px, 36vw); }
}

/* Departures board */
.board { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-block: 48px 40px; background: var(--board); border-block: 1px solid var(--line); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.board-clock { font-family: var(--display); font-size: 18px; letter-spacing: 0.12em; color: var(--amber); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.board-scroll { overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: clamp(20px, 3.2vw, 30px); text-transform: uppercase; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; min-width: 560px; }
.board-table th { text-align: left; font-weight: 600; font-size: 14px; letter-spacing: 0.18em; color: var(--dim); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.board-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.board-table tr:last-child td { border-bottom: 0; }
.board-gate { color: var(--amber); width: 4.5em; }
.board-title a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--orange); }
.board-title a:hover { color: var(--amber); }
.board-kind { display: block; font-size: 13px; letter-spacing: 0.18em; color: var(--dim); font-weight: 600; }
.board-date { color: var(--dim); }
.board-status { font-weight: 700; }
.status { display: inline-block; padding: 4px 10px; border-radius: 3px; font-size: 0.72em; letter-spacing: 0.14em; }
.status-scheduled { color: var(--dim); border: 1px solid var(--line); }
.status-boarding { background: var(--orange); color: var(--orange-ink); }
.status-final { background: var(--amber); color: var(--orange-ink); }
.status-departed { color: var(--amber); border: 1px solid var(--amber); }
.board-empty { color: var(--dim); font-size: 18px; letter-spacing: 0.1em; }
.board-note { font-size: 14px; color: var(--dim); margin: 18px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .status-boarding { animation: blink 2.4s steps(1) infinite; }
  @keyframes blink { 0%, 80% { opacity: 1; } 90% { opacity: 0.35; } }
}

/* Boarding pass */
.boarding { padding-block: 64px 56px; }
.boarding-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 860px) { .boarding-grid { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 56px; } .pass { grid-column: 2; } }
.perks { margin: 0 0 18px; padding-left: 1.1em; color: var(--white); }
.perks li { margin-bottom: 6px; }
.perks li::marker { color: var(--orange); }
.pass-form { background: var(--navy-2); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.field .opt { color: var(--dim); font-weight: 500; letter-spacing: 0.06em; text-transform: none; font-size: 14px; }
.field input { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--navy); color: var(--white); width: 100%; }
.field input::placeholder { color: #6E779C; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; color: var(--amber); }
.form-status.is-error { color: #FF9E7A; }

.pass { display: grid; grid-template-columns: 1fr auto; background: var(--white); color: var(--navy); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.pass-main { padding: 22px 22px 18px; display: grid; gap: 14px; border-right: 2px dashed var(--line); }
.pass-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pass-cell { display: grid; gap: 2px; }
.pass-label { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #5E6690; }
.pass-value { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.03em; word-break: break-word; }
.pass-cleared { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.pass-stub { background: var(--orange); color: var(--orange-ink); padding: 22px 20px; display: grid; align-content: start; gap: 6px; min-width: 132px; }
.pass-stub .pass-label { color: var(--orange-ink); opacity: 0.75; }
.pass-seat { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.pass-wings { width: 56px; height: 25px; fill: var(--orange-ink); opacity: 0.8; margin-top: 12px; }
@media (max-width: 420px) { .pass { grid-template-columns: 1fr; } .pass-main { border-right: 0; border-bottom: 2px dashed var(--line); } .pass-stub { grid-template-columns: auto 1fr; align-items: center; } .pass-wings { justify-self: end; margin: 0; } }

/* The clearance */
.clearance { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-block: 56px; background: var(--navy-2); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 8px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; display: grid; gap: 6px; padding: 22px 20px 20px; background: var(--navy); border: 1px solid var(--line); border-radius: 6px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 14px; right: 16px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--dim); letter-spacing: 0.1em; }
.step-icon { width: 56px; height: 56px; fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255,106,0,0.55)); margin-bottom: 8px; }
.step-name { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; }
.step-how { color: var(--dim); }
.clearance-cta { margin: 0; font-size: 17px; max-width: 40em; }
.clearance-cta strong { color: var(--amber); font-weight: 500; }

/* Flight plans (links) */
.flightplans { padding-block: 56px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.links a:hover { border-color: var(--amber); color: var(--amber); }
.links a::after { content: "→"; color: var(--orange); }

/* Footer */
.foot { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-block: 40px 48px; border-top: 1px solid var(--line); }
.foot-inner { display: grid; gap: 8px; }
.foot-line { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.foot-meta { margin: 0; font-size: 14px; color: var(--dim); }
