/* aeroplax.com. Paper in, record out (DIRECTION.md). */

@font-face {
  font-family: "Saira";
  src: url("fonts/saira-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}
@font-face {
  font-family: "Just Another Hand";
  src: url("fonts/just-another-hand-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ground: #e9eceb;      /* the page: cool form-paper grey */
  --sheet: #fbfbf8;       /* a printed form */
  --ink: #0e1a26;         /* text */
  --ink-2: #46525e;       /* secondary text, 6.8:1 on ground */
  --brand: #03406e;       /* the logo blue: display type */
  --brand-mid: #1d5fa6;   /* a lighter step of the logo blue for chart marks (passes the dataviz checks) */
  --pen: #2443a6;         /* ballpoint, handwriting only */
  --signal: #ff5a1f;      /* the one accent: the read band, the primary action, the lock, focus */
  --signal-wash: #ffeee6;
  --rule: rgb(14 26 38 / 0.14);
  --rule-strong: rgb(14 26 38 / 0.5);

  --font-display: "Saira", "Arial Narrow", sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;
  --font-hand: "Just Another Hand", "Segoe Print", cursive;

  --gutter: clamp(16px, 3.4vw, 48px);
  --nav-h: 68px;
  --ease-signature: cubic-bezier(0.7, 0, 0.2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Paper tooth: fixed, so it never repaints with scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .05 0 0 0 0 .1 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--sheet);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Entrance guard: only hidden while GSAP is about to take over (see the head script). */
.motion-pending [data-reveal] { visibility: hidden; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-signature), color 0.25s var(--ease-signature), border-color 0.25s var(--ease-signature);
}
.btn:active { transform: translateY(1px); }
.btn iconify-icon { font-size: 1.15em; transition: transform 0.35s var(--ease-signature); }
.btn:hover iconify-icon { transform: translateX(4px); }

.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--ink); color: var(--sheet); }
.btn--signal:focus-visible { outline-color: var(--ink); }

.btn--ink { background: var(--ink); color: var(--sheet); min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn--ink:hover { background: var(--brand); }

.btn--line { border-color: var(--rule-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--sheet); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: rgb(233 236 235 / 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav__brand { display: block; padding: 6px 0; }
.logo { height: 30px; width: auto; }
.logo__mark { fill: var(--brand); }
.logo__word { fill: var(--ink); }

.nav__links ul,
.nav__menu ul { list-style: none; margin: 0; padding: 0; }

.nav__links ul { display: flex; gap: 28px; }
.nav__links a,
.nav__signin {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__signin:hover { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 22px; }

.nav__menu { display: none; position: relative; }
.nav__menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary iconify-icon { font-size: 1.4rem; }
.nav__menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  padding: 8px 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -18px rgb(14 26 38 / 0.35);
}
.nav__menu li a {
  display: block;
  padding: 12px 18px;
  font-weight: 500;
  text-decoration: none;
}
.nav__menu li a:hover { background: var(--ground); }

@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav__links, .nav__signin { display: none; }
  .nav__actions { justify-self: end; }
  .nav__menu { display: block; }
}
@media (max-width: 480px) {
  .nav__actions { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__menu { justify-self: end; }
  .logo { height: 26px; }
}

/* ---------- Hero ---------- */

/*
 * The headline runs the full width like lettering on a fuselage; the log page is laid down
 * over its lower edge and runs off the right of the screen.
 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  grid-template-areas:
    "title title"
    "copy  log"
    "slip  log";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(24px, 3.4vw, 64px);
  padding: clamp(20px, 3.2vh, 40px) var(--gutter) clamp(48px, 8vh, 96px);
  overflow-x: clip;
}

.hero__title {
  grid-area: title;
  position: relative;
  z-index: 3; /* printed over the top edge of the page */
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 52%;
  font-weight: 640;
  /* One line that fills the content width (--fit is the measured advance of the line, in em). */
  --fit: 7.08;
  font-size: calc((100vw - 2 * var(--gutter)) / var(--fit));
  line-height: 0.8;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brand);
}

.hero__copy {
  grid-area: copy;
  align-self: start;
  min-width: 0;
  padding-top: clamp(28px, 4.2vh, 48px);
}

.hero__lede {
  max-width: 30ch;
  margin: 0 0 clamp(22px, 3.4vh, 34px);
  font-size: clamp(1.125rem, 1.45vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__log {
  grid-area: log;
  position: relative;
  z-index: 2;
  margin: calc(-1 * clamp(28px, 3.4vw, 56px)) calc(-1 * var(--gutter) - 2.4vw) 0 0;
  min-width: 0;
}

/* ---------- The journey log page ---------- */

.log {
  --rows: 7;
  container-type: inline-size;
  position: relative;
  padding: 5.2cqi 5cqi 4.4cqi;
  background: var(--sheet);
  color: var(--ink);
  transform: rotate(-2.2deg);
  box-shadow:
    0 1px 0 rgb(14 26 38 / 0.06),
    0 30px 60px -28px rgb(14 26 38 / 0.38),
    0 12px 22px -16px rgb(14 26 38 / 0.22);
}

.hand {
  font-family: var(--font-hand);
  color: var(--pen);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.log__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4cqi;
  padding-bottom: 2.6cqi;
  border-bottom: 0.45cqi solid var(--ink);
}
.log__title { display: flex; flex-direction: column; gap: 0.8cqi; }
.log__form {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 700;
  font-size: 6.2cqi;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.log__section {
  font-family: var(--font-mono);
  font-size: 1.55cqi;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.log__meta { display: flex; gap: 2.4cqi; margin: 0; }
.log__meta div { display: flex; flex-direction: column; gap: 0.4cqi; min-width: 11cqi; }
.log__meta dt {
  font-family: var(--font-mono);
  font-size: 1.35cqi;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.log__meta dd {
  margin: 0;
  padding: 0 0.8cqi;
  min-height: 5cqi;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 4.4cqi;
  line-height: 1.1;
  white-space: nowrap;
}
.log__pageno {
  font-family: var(--font-mono);
  font-size: 2.6cqi !important;
  line-height: 5cqi !important;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* Shared column grid for headings, handwriting and the read layer. */
.log__cols,
.log__paper li,
.log__read li {
  display: grid;
  grid-template-columns: 4.5% 12.5% 30.5% 30.5% 10% 12%;
  align-items: center;
}

.log__cols {
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 1.25cqi;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.log__cols span { padding: 1.6cqi 1cqi; border-left: 1px solid var(--rule); }
.log__cols span:first-child { border-left: 0; }

.log__rows {
  position: relative;
  /* Parked on rows 2 and 3: one line that stays in the log, one that goes on the work order. */
  --scan-a: 14.286%;
  --scan-b: 42.857%;
}

.log__paper,
.log__read { list-style: none; margin: 0; padding: 0; }

.log__paper li,
.log__read li {
  height: 9.6cqi;
  border-bottom: 1px solid var(--rule);
}
.log__paper li > span,
.log__read li > span {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1cqi;
  border-left: 1px solid var(--rule);
  overflow: hidden;
}
.log__paper li > span:first-child,
.log__read li > span:first-child { border-left: 0; }

.log__paper .hand {
  font-size: 3.5cqi;
  line-height: 0.95;
  transform: translateX(var(--dx, 0)) rotate(var(--tilt, 0deg));
}
.log__paper li > span.hand:nth-child(3),
.log__paper li > span.hand:nth-child(4) { align-items: center; }
.log__paper .sig { font-size: 3.9cqi; letter-spacing: 0.04em; }

/* The read layer sits exactly over the handwriting and shows only inside the band. */
.log__read {
  position: absolute;
  inset: 0;
  background: var(--signal-wash);
  clip-path: inset(var(--scan-a) 0 calc(100% - var(--scan-b)) 0);
  font-family: var(--font-mono);
  font-stretch: 78%;
  font-weight: 450;
  font-size: 1.6cqi;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.log__read li > span { white-space: normal; }
.log__read li > .tag { white-space: nowrap; }
.log__read .is-routine,
.log__read .is-control { color: var(--ink-2); }

.tag {
  justify-content: center;
  margin: 2cqi 0.6cqi;
  height: auto !important;
  padding: 0.9cqi 0.6cqi !important;
  border: 1px solid currentColor !important;
  font-stretch: 75%;
  font-size: 1.2cqi;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.tag--wo { background: var(--signal); border-color: var(--signal) !important; color: var(--ink); }
.tag--log { color: var(--ink-2); }
.tag--header { color: var(--brand); }

.log__band {
  position: absolute;
  left: -2.4cqi;
  right: -2.4cqi;
  top: var(--scan-a);
  height: calc(var(--scan-b) - var(--scan-a));
  border-top: 0.42cqi solid var(--signal);
  border-bottom: 0.42cqi solid var(--signal);
  pointer-events: none;
}

.log__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 4.4cqi;
  padding-top: 1.4cqi;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 1.35cqi;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.log__foot .sig {
  font-size: 4.6cqi;
  line-height: 0.6;
  letter-spacing: 0.06em;
  padding-right: 4cqi;
  transform: rotate(-4deg);
}

/* ---------- Hero, narrow screens ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "copy" "log" "slip";
    grid-template-rows: none;
  }
  /* Three lines on narrow screens; "operation." fills the width (--fit-narrow measured, in em). */
  .hero__title { --fit-narrow: 2.97; font-size: min(calc((100vw - 2 * var(--gutter)) / var(--fit-narrow)), 16rem); line-height: 0.84; white-space: normal; }
  .hero__line { display: block; }
  .hero__copy { padding-top: 24px; }
  .hero__lede { max-width: 34ch; }
  .hero__log { margin: 40px calc(-1 * var(--gutter) - 6px) 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn iconify-icon { transition: none; }
}

/* ---------- Morning brief slip (hero) ---------- */

.slip {
  grid-area: slip;
  position: relative;
  z-index: 4;
  justify-self: end;
  align-self: start;
  width: min(100%, 360px);
  margin: clamp(28px, 4vh, 44px) calc(-1 * clamp(40px, 5vw, 96px)) 0 0;
  padding: 26px 24px 22px;
  background: #f7f7f3;
  color: var(--ink);
  font-family: var(--font-mono);
  font-stretch: 85%;
  font-size: 0.8125rem;
  line-height: 1.45;
  transform: rotate(2.4deg);
  filter: drop-shadow(0 18px 22px rgb(14 26 38 / 0.28)) drop-shadow(0 2px 3px rgb(14 26 38 / 0.16));
}
/* Torn thermal-paper edges, top and bottom. The paper is the inner layer so the shadow survives the mask. */
.slip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f7f7f3;
  --tooth: 7px;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--tooth)) var(--tooth) repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(2 * var(--tooth)) var(--tooth) repeat-x,
    linear-gradient(#000 0 0) 50% 50% / 100% calc(100% - 2 * var(--tooth) + 1px) no-repeat;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--tooth)) var(--tooth) repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(2 * var(--tooth)) var(--tooth) repeat-x,
    linear-gradient(#000 0 0) 50% 50% / 100% calc(100% - 2 * var(--tooth) + 1px) no-repeat;
}
.slip { background: none; }
.slip p { margin: 0; }
.slip__time { color: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; }
.slip__title {
  margin: 4px 0 12px !important;
  font-family: var(--font-display);
  font-stretch: 58%;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--brand);
}
.slip__items { list-style: none; margin: 0; padding: 0; }
.slip__items li { padding: 10px 0; border-top: 1px dashed var(--rule-strong); }
.slip__act {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}
.slip__items li:first-child .slip__act { background: var(--signal); border-color: var(--signal); }
.slip__foot { padding-top: 10px; border-top: 1px dashed var(--rule-strong); color: var(--ink-2); }

@media (max-width: 900px) {
  .slip {
    justify-self: start;
    width: min(84%, 340px);
    margin: -16vw 0 0 -2px;
  }
}

/* ---------- Shared section type ---------- */

section[id] { scroll-margin-top: var(--nav-h); }

.h2 {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  max-width: 13ch;
  font-family: var(--font-display);
  font-stretch: 56%;
  font-weight: 640;
  font-size: clamp(3.1rem, 7.2vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--brand);
}
.body {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink);
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
html:not(.js) .js-only { display: none !important; }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.125rem; }

/* ---------- An hour is written once ---------- */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 112px);
  min-height: calc(100dvh - var(--nav-h));
  padding: clamp(48px, 8vh, 104px) var(--gutter);
}

.leg {
  container-type: inline-size;
  position: relative;
  margin: clamp(32px, 5vh, 56px) 0 0;
  padding: 3.4cqi 3.6cqi 4cqi;
  background: var(--sheet);
  transform: rotate(-1.2deg);
  box-shadow: 0 26px 46px -28px rgb(14 26 38 / 0.42), 0 8px 16px -12px rgb(14 26 38 / 0.2);
}
.leg__cols,
.leg__row {
  display: grid;
  grid-template-columns: 13% 13% 14% 11% 11% 10% 9% 19%;
}
.leg__cols {
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 1.9cqi;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.leg__cols span { padding: 1.6cqi 1.2cqi; border-left: 1px solid var(--rule); }
.leg__cols span:first-child,
.leg__row > span:first-child { border-left: 0; }
.leg__row { position: relative; height: 14cqi; border-bottom: 1px solid var(--rule); }
.leg__row > span.hand {
  display: flex;
  align-items: center;
  padding: 0 1.2cqi;
  border-left: 1px solid var(--rule);
  font-size: 5.6cqi;
  line-height: 1;
}
.leg__row > .sig { font-size: 6cqi; }
.leg__band {
  position: absolute;
  inset: -1.4cqi -2.4cqi;
  border-top: 0.6cqi solid var(--signal);
  border-bottom: 0.6cqi solid var(--signal);
  background: rgb(255 90 31 / 0.07);
  transform-origin: left center;
  pointer-events: none;
}

.flow__dest { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.6vw, 18px); }
.dest {
  --f: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px);
  background: var(--sheet);
  box-shadow: 0 1px 0 var(--rule);
}
/* The orange edge fills as the hour arrives. */
.dest::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--signal);
  transform: scaleY(var(--f));
  transform-origin: top;
}
.dest__where {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dest__what { font-size: 0.9375rem; color: var(--ink-2); }
.dest__value {
  margin-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule-strong);
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--brand);
}
.dest__value > span { display: inline-block; }

@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}

/* ---------- Know what can fly ---------- */

.fleet { padding: clamp(80px, 12vh, 160px) var(--gutter); }
.fleet__head { margin-bottom: clamp(32px, 5vh, 56px); }

.board {
  --cols: 7.5rem minmax(0, 1fr) 11rem;
  margin: 0;
  padding: clamp(20px, 3vw, 44px);
  background: var(--sheet);
  box-shadow: 0 30px 60px -40px rgb(14 26 38 / 0.4), 0 1px 0 var(--rule);
}
.board__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-bottom: clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(8px, 1.2vw, 14px);
  border-bottom: 2px solid var(--ink);
}
.board__answer {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.board__whatif { display: flex; align-items: center; gap: 10px; }
.board__whatif-label { font-size: 0.9375rem; color: var(--ink-2); }
.step {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--rule-strong);
  background: var(--sheet);
  color: var(--ink);
  font: 600 1.25rem/1 var(--font-body);
  cursor: pointer;
}
.step:hover:not(:disabled) { border-color: var(--ink); }
.step:disabled { opacity: 0.35; cursor: default; }
.board__rate {
  min-width: 8.5ch;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
}

.board__axis,
.board__row {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  column-gap: 16px;
}
.board__axis { height: 34px; }
.board__ticks { position: relative; height: 100%; }
.board__ticks span {
  position: absolute;
  left: calc(var(--at) / 30 * 100%);
  bottom: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.board__next-head,
.board__type {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.board__type { margin: 14px 0 2px; }
.board__row { min-height: 46px; border-top: 1px solid var(--rule); }
.board__tail {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.board__track {
  position: relative;
  height: 46px;
  /* Weekly rules and the flying line through the middle. */
  background:
    linear-gradient(var(--rule-strong), var(--rule-strong)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(100% * 7 / 30));
}
.board__track::before { /* today */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
}
.blk {
  position: absolute;
  left: calc(var(--start) / 30 * 100%);
  width: calc(var(--len) / 30 * 100%);
  top: 9px;
  bottom: 9px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  transform-origin: left center;
  outline-offset: 2px;
}
.blk--maint { background: var(--brand-mid); color: #fff; }
.blk--aog {
  background:
    repeating-linear-gradient(135deg, rgb(14 26 38 / 0.28) 0 2px, transparent 2px 6px),
    var(--sheet);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.blk[data-tip]:hover::after,
.blk[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  padding: 6px 9px;
  background: var(--ink);
  color: var(--sheet);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
}
.due { /* a pin above the bar, so it never cuts the label */
  position: absolute;
  left: calc(var(--at) / 30 * 100%);
  top: 0;
  height: 12px;
  width: 2px;
  margin-left: -1px;
  background: var(--signal);
}
.due::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -4px;
  border: 5px solid transparent;
  border-top: 7px solid var(--signal);
}
.board__next { font-size: 0.9375rem; font-weight: 500; }
.board__next--quiet { color: var(--ink-2); font-weight: 400; }

.board__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.board__legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 18px; height: 12px; border-radius: 2px; }
.key--maint { background: var(--brand-mid); }
.key--aog { border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, rgb(14 26 38 / 0.28) 0 2px, transparent 2px 5px); }
.key--due { width: 2px; height: 16px; border-radius: 0; background: var(--signal); }

.board__table { margin-top: 18px; }
.board__table summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.board__table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 0.875rem; }
.board__table th,
.board__table td { padding: 8px 10px 8px 0; text-align: left; border-bottom: 1px solid var(--rule); }
.board__table th { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }

@media (max-width: 760px) {
  .board { --cols: 4.4rem minmax(0, 1fr) 5.6rem; }
  .board__axis,
  .board__row { column-gap: 8px; }
  .board__tail { font-size: 1.05rem; }
  .board__next { font-size: 0.75rem; line-height: 1.25; }
  .blk { font-size: 0; padding: 0; }
  .board__ticks span:nth-child(even),
  .board__ticks span:last-child { display: none; }
}

/* ---------- It tells you what needs you ---------- */

.answers { padding: clamp(80px, 12vh, 160px) var(--gutter); }
.answers__head { margin-bottom: clamp(32px, 5vh, 56px); }
.brief {
  max-width: 1080px;
  margin-left: auto;
  padding: clamp(24px, 4vw, 56px);
  background: var(--sheet);
  border-top: 6px solid var(--ink);
  box-shadow: 0 30px 60px -40px rgb(14 26 38 / 0.4);
}
.brief__answer {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: var(--font-display);
  font-stretch: 56%;
  font-weight: 640;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--brand);
}
.brief__list { list-style: none; margin: 0; padding: 0; }
.prop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 32px;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-top: 1px solid var(--rule);
}
.prop p { margin: 0; }
.prop__say { font-size: clamp(1.0625rem, 1.5vw, 1.375rem); font-weight: 500; line-height: 1.35; }
.prop__why { margin-top: 6px !important; font-family: var(--font-mono); font-stretch: 85%; font-size: 0.8125rem; color: var(--ink-2); }
.prop.is-done .prop__say { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.prop__done { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.prop__done[hidden] { display: none; }
.undo {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-width: 700px) {
  .prop { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Signed, locked ---------- */

.signoff { padding: clamp(80px, 12vh, 160px) var(--gutter); }
.signoff__head { margin-bottom: clamp(40px, 6vh, 72px); }

.track {
  --wo-w: clamp(220px, 21vw, 300px);
  position: relative;
  padding-top: calc(var(--wo-w) * 0.95);
}
.wo {
  position: absolute;
  top: 0;
  left: calc(var(--p) * (100% - var(--wo-w)));
  width: var(--wo-w);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 20px 18px;
  background: var(--sheet);
  transform: rotate(-1.4deg);
  box-shadow: 0 24px 44px -26px rgb(14 26 38 / 0.45), 0 6px 12px -8px rgb(14 26 38 / 0.2);
}
.wo__form { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.wo__no { font-family: var(--font-display); font-stretch: 58%; font-weight: 700; font-size: 3.4rem; line-height: 0.9; color: var(--ink); }
.wo__meta { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 10px; }
.wo__sigs { display: grid; gap: 6px; }
.wo__sig { display: grid; grid-template-columns: 3.2rem 1fr; align-items: end; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--rule-strong); }
.wo__sig i { font-style: normal; font-size: 1.5rem; line-height: 1; transition: opacity 0.3s; }
.wo__sig b { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.track--live .wo__sig:not(.is-on) i { opacity: 0; }
.stamp {
  position: absolute;
  right: 14px;
  top: 16px;
  padding: 2px 10px 0;
  border: 3px solid var(--signal);
  color: var(--signal);
  font-family: var(--font-display);
  font-stretch: 60%;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  mix-blend-mode: multiply;
}

.track__rail { position: relative; height: 2px; margin-top: 28px; background: var(--rule-strong); }
.track__fill { position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--p)); transform-origin: left; }
.track__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.track__stages li { position: relative; padding: 22px 12px 0 0; }
.track__stages li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--ground);
  border: 2px solid var(--rule-strong);
}
.track__stages li:last-child { text-align: right; padding-right: 0; }
.track__stages li:last-child::before { left: auto; right: 0; }
.track__stages li.is-on::before { background: var(--signal); border-color: var(--signal); }
.track__stages strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 60%;
  font-weight: 640;
  font-size: clamp(1.15rem, 2vw, 1.9rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s;
}
.track__stages li.is-on strong { color: var(--ink); }
.track__stages span { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--ink-2); }

.facts {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px clamp(24px, 4vw, 64px);
  margin: clamp(56px, 9vh, 104px) 0 0;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.facts dt { font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 600; line-height: 1.3; }
.facts div:first-child dt { font-size: clamp(1.375rem, 2.2vw, 2rem); letter-spacing: -0.015em; }
.facts dd { margin: 8px 0 0; color: var(--ink-2); }

@media (max-width: 760px) {
  .track__stages span { display: none; }
  .track__stages li { padding-right: 4px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Open a tail ---------- */

.tail { padding: clamp(64px, 10vh, 120px) 0 0; overflow: clip; }
.tail__reg {
  margin: 0;
  padding-left: var(--gutter);
  font-family: var(--font-display);
  font-stretch: 50%;
  font-weight: 700;
  font-size: 46vw;
  line-height: 0.78;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: max(1.5px, 0.006em) var(--brand);
}
.tail__reg span { display: inline-block; }
.tail__copy { padding: clamp(32px, 5vh, 56px) var(--gutter) clamp(48px, 8vh, 88px); }
.tail__copy .h2 { max-width: 16ch; }

.marquee { overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-strong); background: var(--sheet); }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee__track span {
  padding: 18px 28px;
  font-family: var(--font-display);
  font-stretch: 58%;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  border-right: 1px solid var(--rule);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- One system for the whole company ---------- */

.company { padding: clamp(96px, 14vh, 180px) var(--gutter) clamp(80px, 12vh, 160px); }
.company .h2 { margin-bottom: clamp(32px, 5vh, 56px); }
.roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.role {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  padding: clamp(22px, 2.6vw, 36px);
  background: var(--sheet);
}
.role--owner { grid-column: span 4; background: var(--ink); color: var(--sheet); }
.role--crew { background: var(--signal-wash); }
.role__name {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 56%;
  font-weight: 640;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--brand);
}
.role--owner .role__name { color: var(--sheet); font-size: clamp(3rem, 6vw, 6.4rem); }
.role__get { margin: 0; max-width: 32ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.4; }
.role--owner .role__get { font-size: clamp(1.25rem, 1.8vw, 1.625rem); max-width: 28ch; }
.role__instead { margin: auto 0 0; font-family: var(--font-mono); font-stretch: 85%; font-size: 0.8125rem; color: var(--ink-2); }
.role--owner .role__instead { color: rgb(251 251 248 / 0.72); }
.role__instead span { display: block; margin-bottom: 2px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; }
.role__instead s { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role,
  .role--owner { grid-column: auto; min-height: 0; }
}

/* ---------- Built for the base ---------- */

.field {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88dvh;
  overflow: clip;
  color: var(--sheet);
}
.field__media { position: absolute; inset: 0; margin: 0; background: var(--brand); overflow: hidden; }
/* Asset slot "field-base": a photograph of a helicopter at a remote site goes here (brief in
   CREDITS.md). Until it arrives, contour lines over the brand blue read as terrain on a chart. */
.field__slot {
  position: absolute;
  inset: -6%;
  background:
    repeating-radial-gradient(ellipse at 72% 38%, transparent 0 22px, rgb(251 251 248 / 0.07) 22px 23px),
    radial-gradient(ellipse at 72% 30%, #1d5fa6 0%, var(--brand) 46%, #021f36 100%);
}
.field__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}
.field__media::after { /* scrim for the copy */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(2 18 32 / 0.72) 100%);
}
.field__copy { position: relative; z-index: 1; padding: clamp(56px, 10vh, 120px) var(--gutter); }
.field .h2 { color: var(--sheet); max-width: 14ch; }
.field .body { color: rgb(251 251 248 / 0.88); }

/* ---------- Bring a journey log page ---------- */

.close {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 3vh, 32px);
  padding: clamp(112px, 18vh, 220px) var(--gutter);
}
.close__title {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-stretch: 52%;
  font-weight: 640;
  font-size: clamp(4.2rem, 12vw, 13rem);
  line-height: 0.84;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--brand);
}
.close .body { max-width: 40ch; }

/* ---------- Footer ---------- */

.foot { padding: 56px var(--gutter) 28px; border-top: 2px solid var(--ink); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { display: inline-flex; min-height: 40px; align-items: center; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot__word { display: block; width: 100%; height: auto; margin: clamp(48px, 8vh, 96px) 0 20px; fill: var(--brand); }
.foot__legal { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .wo__sig i,
  .track__stages strong { transition: none; }
}
