@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Dusk over the airfield: night navy ground, chart-paper cream, runway amber for the one action. */
  --night: #0b1626;
  --night-2: #12223a;
  --night-3: #1b2f4e;
  --paper: #e3e1db;
  --paper-2: #d4d1c8;
  --ink-light: #eeebe5;
  --ink-light-soft: #c9c3b8;
  --ink-dark: #0b1626;
  --ink-dark-soft: #3a4558;
  --amber: #f4a340;
  --amber-press: #e08f2a;
  --clear: #4fc58c;
  --hold: #f4a340;
  --deny: #ef5a43;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 32px);
  --max: 1360px;
  --section: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink-light); font: 400 18px/1.55 var(--text); font-feature-settings: "tnum" 1; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: .95; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--night); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.btn { display: inline-flex; align-items: center; gap: .5em; font: 600 18px/1 var(--text); padding: 18px 26px; background: var(--amber); color: var(--night); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: transform .18s var(--ease), background-color .18s; }
.btn:hover { background: #ffb85c; transform: translateY(-2px); }
.btn:active { transform: translateY(0); background: var(--amber-press); }
.btn.dark { background: var(--night); color: var(--ink-light); }
.btn.dark:hover { background: var(--night-3); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: color .18s, text-underline-offset .18s; }
.link:hover { color: var(--amber); text-underline-offset: 8px; }

/* Bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 5; }
.bar .wrap { display: flex; align-items: center; gap: 36px; height: 84px; }
.mark { font: 700 28px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 28px; font-weight: 500; }
.bar nav a { text-decoration: none; opacity: .9; transition: opacity .15s, color .15s; }
.bar nav a:hover { opacity: 1; color: var(--amber); }
.bar .btn { padding: 13px 18px; font-size: 16px; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(5, 10, 20, .38); }
.hero-copy { position: relative; z-index: 2; width: 100%; padding-top: 130px; padding-bottom: 250px; }
.hero h1 { font-size: clamp(38px, 8.2vw, 132px); max-width: 15ch; }
.hero .lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; max-width: 36ch; margin-top: 28px; color: var(--ink-light); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }

/* Departures board: a real interface fragment, so it keeps its own rules (data-ui). */
.board-band { position: relative; z-index: 3; padding: 0 0 var(--section); margin-top: -200px; }
.board-band::before { content: ""; position: absolute; inset: 200px 0 0; background: var(--night); z-index: -1; }
.board-shell { background: var(--night-2); }
.board table { table-layout: fixed; }
.board col.c-t { width: 9%; } .board col.c-a { width: 12%; } .board col.c-w { width: 13%; } .board col.c-r { width: 27%; } .board col.c-s { width: 12%; } .board col.c-f { width: 27%; }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; padding: 22px 26px 16px; font-family: var(--display); }
.board-head strong { font-size: 30px; font-weight: 700; color: var(--amber); }
.board-head span { font-size: 18px; color: var(--ink-light-soft); }
.board-head .tally { margin-left: auto; display: flex; gap: 18px; font-size: 18px; }
.board-head button { font: 600 16px/1 var(--text); background: var(--night-3); color: var(--ink-light); border: 0; padding: 9px 14px; cursor: pointer; transition: background .15s; }
.board-head button:hover { background: #26406a; }
.board table { width: 100%; border-collapse: collapse; font-family: var(--display); font-weight: 600; font-size: 19px; text-transform: uppercase; }
.board th { text-align: left; font-weight: 600; font-size: 15px; color: var(--ink-light-soft); padding: 8px 14px; background: var(--night-3); }
.board td { padding: 0 14px; height: 54px; border-top: 2px solid var(--night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board tbody tr { cursor: pointer; background: #0f1d33; transition: background .15s; }
.board tbody tr:hover { background: #172a47; }
.board tbody tr[aria-selected="true"] { background: #1d3456; }
.board td.ref { text-transform: none; font-family: var(--text); font-weight: 500; font-size: 15px; color: var(--ink-light-soft); white-space: normal; line-height: 1.3; }
.board .who small { display: block; font-size: 14px; color: var(--ink-light-soft); line-height: 1.1; }
.flap { display: inline-flex; gap: 2px; }
.flap i { font-style: normal; display: inline-block; min-width: .62em; text-align: center; padding: 3px 1px; background: #08111e; color: var(--c, var(--ink-light)); line-height: 1.15; }
.st-cleared { --c: var(--clear); }
.st-holding { --c: var(--hold); }
.st-denied { --c: var(--deny); }
.row-in { animation: rowIn .55s var(--ease) both; }
@keyframes rowIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

.strip { background: var(--paper); color: var(--ink-dark); padding: 22px 26px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 36px; align-items: start; border-left: 14px solid var(--strip, var(--ink-dark-soft)); }
.strip.cleared { --strip: #17784a; } .strip.holding { --strip: #a85a00; } .strip.denied { --strip: #c2321d; }
.strip .head { display: grid; gap: 10px; }
.strip h3 { font-size: 30px; }
.strip dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; font-size: 16px; line-height: 1.35; }
.strip dl div { display: grid; gap: 2px; }
.strip dl div.wide { grid-column: span 2; }
.strip dt { color: var(--ink-dark-soft); }
.strip dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.strip .verdict { font: 700 34px/1 var(--display); }
.strip .verdict.cleared { color: #17784a; } .strip .verdict.holding { color: #a85a00; } .strip .verdict.denied { color: #c2321d; }
.strip code { font-size: 14px; }
.strip .note { font-size: 15px; color: var(--ink-dark-soft); }
.board-caption { margin-top: 18px; color: var(--ink-light-soft); font-size: 16px; max-width: 70ch; }

/* Problem */
.problem { background: var(--night); padding-bottom: var(--section); }
.problem-photo { position: relative; height: clamp(320px, 52vw, 720px); overflow: hidden; }
.problem-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.problem-photo h2 { font-size: clamp(40px, 6.4vw, 104px); }
.problem-photo::after { content: ""; position: absolute; inset: 0; background: rgba(5, 10, 20, .28); }
.problem-photo .wrap { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(24px, 4vw, 56px); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.problem-grid .statement { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; }
.problem-grid .body-after { margin-top: 20px; color: var(--ink-light-soft); max-width: 48ch; }
.problem-grid ul { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.problem-grid li { font: 600 clamp(24px, 2.4vw, 34px)/1.1 var(--display); padding-left: 22px; border-left: 6px solid var(--deny); }
pre.cfg { margin: 0; background: #08111e; color: #d8d2c6; padding: 24px; font: 14px/1.6 ui-monospace, "SFMono-Regular", Menlo, monospace; overflow-x: auto; }
pre.cfg .k { color: #9ab8e6; } pre.cfg .bad { color: var(--deny); } pre.cfg .ok { color: var(--clear); } pre.cfg .dim { color: #8994a6; }
.cfg-cap { margin-top: 14px; font-size: 16px; color: var(--ink-light-soft); }

/* How it works */
.how { background: var(--night-2); padding: var(--section) 0; }
.how > .wrap > h2 { font-size: clamp(40px, 6.4vw, 104px); }
.how > .wrap > p { font-size: clamp(20px, 1.8vw, 26px); max-width: 44ch; margin-top: 24px; color: var(--ink-light-soft); }
.legs { list-style: none; padding: 0; margin: clamp(56px, 7vw, 112px) 0 0; display: grid; gap: 12px; }
.leg > *, .problem-grid > *, .rules-top > * { min-width: 0; }
.leg { display: grid; grid-template-columns: 4fr 5fr; gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 4vw, 56px); background: var(--night); align-items: start; }
.leg:nth-child(even) { background: var(--night-3); }
.leg h3 { font-size: clamp(36px, 4vw, 60px); }
.leg p { margin-top: 18px; max-width: 46ch; }
.leg p + p { margin-top: 12px; color: var(--ink-light-soft); }
.grants { width: 100%; border-collapse: collapse; font-size: 16px; background: #08111e; }
.grants th, .grants td { text-align: left; padding: 12px 14px; vertical-align: top; }
.grants th { color: var(--ink-light-soft); font-weight: 500; background: #0f1d33; }
.grants tr + tr td { border-top: 2px solid var(--night-2); }
.grants td:first-child { font-weight: 600; }
.ruletest { background: #08111e; padding: 22px; display: grid; gap: 14px; font-size: 16px; }
.ruletest q { font: 600 26px/1.15 var(--display); quotes: "\201C" "\201D"; }
.ruletest .verdict { font: 700 26px/1 var(--display); color: var(--deny); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.chain li { background: #08111e; padding: 12px 16px; display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: baseline; }
.chain b { font: 700 18px/1 var(--display); color: var(--amber); }
.chain code { color: var(--ink-light-soft); font-size: 13px; }

/* Rules, on chart paper */
.rules { background: var(--paper); color: var(--ink-dark); padding: var(--section) 0; }
.rules-top { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.rules h2 { font-size: clamp(40px, 6.4vw, 104px); }
.rules-top p { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-dark-soft); }
.rulebook { list-style: none; padding: 0; margin: clamp(48px, 6vw, 96px) 0 0; }
.rulebook li { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: baseline; padding: 26px 0; }
.rulebook li + li { border-top: 3px solid var(--paper-2); }
.rulebook q { font: 600 clamp(28px, 3.4vw, 52px)/1.02 var(--display); letter-spacing: -0.01em; quotes: "\201C" "\201D"; }
.rulebook .mode { font-size: 17px; font-weight: 600; }
.rulebook .mode span { display: block; font-weight: 400; color: var(--ink-dark-soft); font-size: 16px; }
.m-block { color: #a3291a; } .m-hold { color: #824500; } .m-flag { color: #1f4f8f; }
.approval { display: grid; grid-template-columns: 7fr 5fr; margin-top: clamp(64px, 8vw, 128px); background: var(--night); color: var(--ink-light); }
.approval figure { margin: 0; min-height: 420px; overflow: hidden; }
.approval figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.approval:hover figure img { transform: scale(1.03); }
.approval .req { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.approval h3 { font-size: clamp(34px, 3.4vw, 48px); }
.approval dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 16px; }
.approval dt { color: var(--ink-light-soft); }
.approval dd { margin: 0; font-weight: 500; }
.approval .state { font: 700 30px/1 var(--display); color: var(--hold); }
.approval .state.ok { color: var(--clear); } .approval .state.no { color: var(--deny); }
.approval .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.approval .btn.ghost { background: var(--night-3); color: var(--ink-light); }
.approval .btn.ghost:hover { background: #26406a; }
.approval .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.failclosed { margin-top: clamp(48px, 6vw, 88px); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; max-width: 34ch; }

/* Security */
.sec { background: var(--night); padding-bottom: var(--section); }
.sec-photo { position: relative; height: clamp(300px, 44vw, 620px); overflow: hidden; }
.sec-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.sec-photo::after { content: ""; position: absolute; inset: 0; background: rgba(5, 10, 20, .35); }
.sec-photo .wrap { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(24px, 4vw, 56px); }
.sec-photo h2 { font-size: clamp(40px, 6.4vw, 104px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px); margin-top: clamp(56px, 7vw, 104px); }
.fact h3 { font-size: clamp(34px, 3.6vw, 56px); color: var(--amber); }
.fact p { margin-top: 12px; max-width: 46ch; }
.fact:nth-child(n+2) h3 { color: var(--ink-light); }

/* Pricing */
.pricing { background: var(--night-2); padding: var(--section) 0; }
.pricing h2 { font-size: clamp(40px, 6.4vw, 104px); }
.pricing > .wrap > p { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-light-soft); margin-top: 20px; max-width: 52ch; }
.plans-scroll { overflow-x: auto; margin-top: clamp(40px, 5vw, 72px); }
.plans { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 17px; }
.plans th, .plans td { text-align: left; padding: 16px 20px; vertical-align: top; }
.plans thead th { font: 700 clamp(30px, 2.6vw, 40px)/1 var(--display); padding-top: 28px; }
.plans thead th small { display: block; font: 500 17px/1.4 var(--text); color: var(--ink-light-soft); margin-top: 10px; }
.plans thead th .price { display: block; font-size: clamp(44px, 4.4vw, 68px); color: var(--amber); margin-top: 12px; }
.plans tbody th { font-weight: 500; color: var(--ink-light-soft); width: 22%; }
.plans tbody tr { background: var(--night); }
.plans tbody tr:nth-child(even) { background: #0f1d33; }
.plans tfoot td { padding-top: 24px; }
.plans .yes { color: var(--clear); font-weight: 600; } .plans .no { color: #6f7a8c; }

/* Close */
.close { background: var(--amber); color: var(--night); padding: var(--section) 0 0; overflow: hidden; }
.close h2 { font-size: clamp(40px, 6.4vw, 104px); max-width: 18ch; }
.close p { font-size: clamp(20px, 1.8vw, 26px); max-width: 44ch; margin-top: 24px; }
.close .actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 36px; }
.close .link:hover { color: var(--night); }
.close .giant { font: 700 clamp(84px, 23.5vw, 360px)/.78 var(--display); letter-spacing: -0.04em; margin: clamp(140px, 12vw, 180px) 0 0; white-space: nowrap; transform: translateY(.12em); }
.foot { background: var(--night); color: var(--ink-light-soft); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; }
.foot span:first-child { margin-right: auto; }

/* Entrances: content stays visible if the script never runs. */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js .in [data-rise], .js [data-rise].in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .strip { grid-template-columns: 1fr; }
  .strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar nav { display: none; }
  .leg, .rules-top, .approval, .problem-grid { grid-template-columns: minmax(0, 1fr); }
  .rulebook li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
}
@media (max-width: 900px) {
  .bar .wrap { height: 68px; gap: 16px; }
  .bar .btn { padding: 11px 14px; font-size: 15px; }
  .hero-copy { padding-top: 112px; }
  .board table thead { display: none; }
  .board table, .board tbody, .board tr { display: block; }
  .board tbody tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 12px 14px; border-top: 2px solid var(--night); }
  .board td { display: block; height: auto; padding: 0; border: 0; max-width: none; }
  .board td.t { grid-row: 1; font-size: 16px; color: var(--ink-light-soft); }
  .board td.agent { grid-row: 1; grid-column: 2; }
  .board td.st { grid-row: 1 / span 2; grid-column: 3; align-self: center; font-size: 16px; }
  .board td.who { display: none; }
  .board td.act { grid-column: 1 / span 2; font-size: 17px; white-space: normal; }
  .board td.ref { grid-column: 1 / -1; font-size: 14px; }
  .board-head .tally { margin-left: 0; }
  .facts { grid-template-columns: 1fr; }
  .chain li { grid-template-columns: 56px 1fr; }
  pre.cfg { font-size: 12px; padding: 16px; white-space: pre-wrap; word-break: break-all; }
  .grants thead { display: none; }
  .grants, .grants tbody, .grants tr { display: block; }
  .grants tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px 14px; }
  .grants tr + tr { border-top: 2px solid var(--night-2); }
  .grants td { padding: 0; border: 0 !important; }
  .grants td:nth-child(n+3) { color: var(--ink-light-soft); }
  .chain li code { grid-column: 1 / -1; }
  .close .giant { font-size: 25vw; }
  .approval figure { min-height: 240px; }
  .plans-scroll { overflow: visible; }
  .plans { min-width: 0; font-size: 15px; }
  .plans tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans thead td:first-child, .plans tfoot td:first-child { display: none; }
  .plans tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0; }
  .plans th, .plans td { padding: 10px 8px; }
  .plans thead th { font-size: 24px; }
  .plans thead th .price { font-size: 30px; }
  .plans thead th small { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}
