/* Crewlog landing page — scenes and the app's surfaces.
 *
 * App surfaces are sized in points: `--u` is how many CSS pixels one iOS point
 * takes, and every length on a card is `calc(var(--u) * N)` with N straight
 * out of the SwiftUI source. Inside a phone the screen is the container, so
 * `--u: calc(100cqw / 402)` makes a card exactly as big as the screenshot
 * under it; on the page, the stage decides.
 */

/* ════════════════════════ The app's surfaces ════════════════════════ */

.fc, .dc, .la, .wf, .island {
  --u: 1px;
  font-family: var(--sans);
  color: #fff;
  line-height: 1.19;              /* SwiftUI's line box for SF Pro */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.fc svg, .dc svg, .la svg, .wf svg, .island svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.cap, .fc .cap, .dc .cap, .la .cap, .wf .cap {
  font-style: normal;
  font-weight: 700;
  font-size: calc(var(--u) * 9.5);
  letter-spacing: calc(var(--u) * 1.1);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  white-space: nowrap;
}
.rc { display: inline-block; position: relative; }
.rc > span { display: inline-block; }
.rc > .rc-out { position: absolute; left: 0; top: 0; }

/* ── Dashboard flight card (NextFlightCard) ── */
.fc {
  width: calc(var(--u) * var(--cw, 344));
  padding: calc(var(--u) * 26);
  border-radius: calc(var(--u) * 32);
  background: linear-gradient(135deg, var(--ink-2), rgba(13, 19, 27, .85));
  box-shadow: inset 0 0 0 calc(var(--u) * 1) rgba(255, 255, 255, .12);
}
.fc-id { display: flex; align-items: center; gap: calc(var(--u) * 9); height: calc(var(--u) * 22); }
.fc-logo { width: calc(var(--u) * 22); height: calc(var(--u) * 22); flex: none; }
.fc-num { font-size: calc(var(--u) * 17); font-weight: 600; color: rgba(255, 255, 255, .55); }
.fc-wx { width: calc(var(--u) * 17); height: calc(var(--u) * 17); margin-left: auto; color: rgba(255, 255, 255, .5); }
.fc-chip {
  font-size: calc(var(--u) * 11); font-weight: 600; color: rgba(255, 255, 255, .85);
  padding: calc(var(--u) * 5) calc(var(--u) * 10);
  border-radius: 999px; background: rgba(16, 181, 130, .18);
  white-space: nowrap;
}
.fc-route { margin-top: calc(var(--u) * 22); }
.fc-codes { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 12); }
.fc-code { font-size: calc(var(--u) * 32); font-weight: 800; letter-spacing: calc(var(--u) * -.2); line-height: 1.19; }
.fc-block { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 3); }
.fc-block b { font-size: calc(var(--u) * 19); font-weight: 700; color: rgba(255, 255, 255, .9); }
.fc-cities {
  display: flex; justify-content: space-between; margin-top: calc(var(--u) * 5);
  font-size: calc(var(--u) * 9.5); font-weight: 600; letter-spacing: calc(var(--u) * 1);
  text-transform: uppercase; color: rgba(255, 255, 255, .35);
}

/* LiveProgressTrack — rail, flown gradient, end pips, bare disc. */
.trk {
  --bar: 10; --dot: 19; --plane: 8; --rail: .07;
  position: relative; height: calc(var(--u) * var(--dot));
  --pw: calc(var(--p, 0) * 100%);
}
.trk-dash { margin-top: calc(var(--u) * 14); }
.trk-rail, .trk-flown, .trk-pip, .trk-disc { position: absolute; top: 50%; transform: translateY(-50%); }
.trk-rail { left: 0; right: 0; height: calc(var(--u) * var(--bar)); border-radius: 999px; background: rgba(255, 255, 255, var(--rail)); }
.trk-flown {
  left: 0; height: calc(var(--u) * var(--bar)); border-radius: 999px;
  width: max(calc(var(--u) * var(--bar)), var(--pw));
  background: linear-gradient(90deg, var(--green), var(--travel));
}
.trk-pip { width: calc(var(--u) * var(--bar) * .48); height: calc(var(--u) * var(--bar) * .48); border-radius: 50%; background: #000; }
.trk-pip.l { left: calc(var(--u) * var(--bar) * .26); }
.trk-pip.r { right: calc(var(--u) * var(--bar) * .26); }
.trk-disc {
  width: calc(var(--u) * var(--dot)); height: calc(var(--u) * var(--dot));
  left: clamp(0px, calc(var(--pw) - var(--u) * var(--dot) / 2), calc(100% - var(--u) * var(--dot)));
  border-radius: 50%; background: var(--green); color: #000;
  display: grid; place-items: center;
}
.trk-disc svg { width: calc(var(--u) * var(--plane) * 1.45); height: calc(var(--u) * var(--plane) * 1.45); }

.fc-clocks { display: flex; align-items: flex-end; gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 16); }
.fc-end { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 4); }
.fc-end.arr { align-items: flex-end; }
.fc-capline { display: flex; align-items: center; gap: calc(var(--u) * 5); height: calc(var(--u) * 11.3); }
.fc .delta, .la .delta {
  font-style: normal; font-weight: 700; font-size: calc(var(--u) * 9.5);
  letter-spacing: calc(var(--u) * .8); white-space: nowrap;
}
.fc-time { font-size: calc(var(--u) * 23); font-weight: 600; line-height: 1.19; transition: color .6s; white-space: nowrap; }
.fc-time sup { font-size: calc(var(--u) * 10); font-weight: 700; color: rgba(255, 255, 255, .45); vertical-align: baseline; margin-left: calc(var(--u) * 3); }
.fc-gate { display: none; flex-direction: column; align-items: center; gap: calc(var(--u) * 4); flex: none; }
.fc.has-gate .fc-gate { display: flex; }
.gate {
  display: inline-flex; align-items: center; gap: calc(var(--u) * 3);
  background: var(--gate); color: #000;
  padding: calc(var(--u) * 2) calc(var(--u) * 7); border-radius: calc(var(--u) * 6);
  font-weight: 800; font-size: calc(var(--u) * 15); line-height: 1.19;
}
.gate svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); }

/* GlowSeam: the card's hairline, burning up to the verdict at its middle. */
.seam { position: relative; height: calc(var(--u) * 1); margin-top: calc(var(--u) * 16); background: rgba(255, 255, 255, .09); }
.seam i {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  background: linear-gradient(90deg, rgba(255, 255, 255, .07) 0%,
    color-mix(in srgb, var(--tint) 22%, transparent) 33%,
    color-mix(in srgb, var(--tint) 95%, transparent) 50%,
    color-mix(in srgb, var(--tint) 22%, transparent) 67%, rgba(255, 255, 255, .07) 100%);
}
.seam.lit i { opacity: 1; }

.fc-foot { display: flex; align-items: stretch; margin-top: calc(var(--u) * 16); }
.fc-clock { display: flex; flex-direction: column; gap: calc(var(--u) * 7); flex: none; }
.fc-clock .fc-capline, .fc-status .fc-capline { gap: calc(var(--u) * 4); }
.fc-foot .ico { width: calc(var(--u) * 14); height: calc(var(--u) * 14); color: rgba(255, 255, 255, .42); flex: none; }
.fc-count { font-size: calc(var(--u) * 21); font-weight: 600; line-height: 1.19; }
.fc-rule { width: calc(var(--u) * 1); background: rgba(255, 255, 255, .09); margin: 0 calc(var(--u) * 8); display: none; }
.fc-status { display: none; flex: 1; min-width: 0; flex-direction: column; align-items: flex-end; gap: calc(var(--u) * 7); }
.fc.has-status .fc-status { display: flex; }
.fc.has-status .fc-rule { display: block; }
.fc-status .chev { width: calc(var(--u) * 7); height: calc(var(--u) * 7); color: rgba(255, 255, 255, .28); }
.fc-sentence { font-size: calc(var(--u) * 14); font-weight: 600; white-space: nowrap; line-height: calc(var(--u) * 25); }
.fc-sentence .trail { color: rgba(255, 255, 255, .5); }

/* ── Duty card (DutyPeriodCard + DutyRail) ── */
.dc {
  width: calc(var(--u) * var(--cw, 370));
  padding: calc(var(--u) * 26);
  border-radius: calc(var(--u) * 32);
  background: linear-gradient(135deg, var(--ink-2), rgba(13, 19, 27, .45));
  box-shadow: inset 0 0 0 calc(var(--u) * .6) rgba(16, 22, 30, .9);
  --amber: #FF9F0A;
}
.dc-head { display: flex; align-items: center; gap: calc(var(--u) * 8); }
.dc-head .ico { width: calc(var(--u) * 13); height: calc(var(--u) * 13); color: rgba(255, 159, 10, .85); }
.dc-head .hcap { color: rgba(255, 159, 10, .8); }
.dc-head .max { margin-left: auto; }
.dc-hero { display: flex; align-items: flex-end; justify-content: space-between; margin-top: calc(var(--u) * 9); }
.dc-big { font-size: calc(var(--u) * 34); font-weight: 600; color: var(--amber); line-height: 1.12; }
.dc-proj { display: flex; flex-direction: column; align-items: flex-end; gap: calc(var(--u) * 6); }
.dc-proj b { font-size: calc(var(--u) * 21); font-weight: 600; }
.rail {
  position: relative; height: calc(var(--u) * 20); margin-top: calc(var(--u) * 15);
}
.dc { --used: 0; --plan: 0; --dead: 0; --sweep: 1; }
.rail > i { position: absolute; top: 50%; transform: translateY(-50%); }
.rail-bg { left: 0; right: 0; height: calc(var(--u) * 10); border-radius: 999px; background: rgba(255, 255, 255, .12); }
.rail-plan {
  height: calc(var(--u) * 10); border-radius: 999px;
  left: calc(var(--used) * var(--sweep) * 100%);
  width: calc(max(0, var(--plan) - var(--used)) * var(--sweep) * 100%);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 159, 10, .55) 0 calc(var(--u) * 1.2), transparent calc(var(--u) * 1.2) calc(var(--u) * 5)),
    rgba(255, 159, 10, .22);
  transition: left .52s var(--spring-smooth), width .52s var(--spring-smooth);
}
.rail-used { left: 0; height: calc(var(--u) * 10); border-radius: 999px; background: var(--amber); width: calc(var(--used) * var(--sweep) * 100%); }
.rail-notch {
  width: calc(var(--u) * 2); height: calc(var(--u) * 20); border-radius: 999px; background: var(--live-red);
  left: calc(var(--dead) * var(--sweep) * 100% - var(--u) * 1);
  transition: left .52s var(--spring-smooth);
}
.rail-now {
  width: calc(var(--u) * 14); height: calc(var(--u) * 14); border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 calc(var(--u) * 2.5) #0B1119;
  left: calc(var(--used) * var(--sweep) * 100% - var(--u) * 7);
  opacity: 0;
}
.dc.started .rail-now { opacity: 1; }
.dc-legend { display: flex; justify-content: space-between; gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 6); }
.dc-legend > div { display: flex; flex-direction: column; gap: calc(var(--u) * 6); flex: 1; }
.dc-legend > div:nth-child(2) { align-items: center; }
.dc-legend > div:nth-child(3) { align-items: flex-end; }
.dc-legend span { font-size: calc(var(--u) * 13.5); white-space: nowrap; }
.dc-legend span b { font-weight: 600; }
.dc-legend span em { font-style: normal; font-weight: 500; color: rgba(235, 235, 245, .6); }
.dc-legend .depby .cap { color: rgba(255, 159, 10, .8); }
.dc-legend .depby b { color: var(--amber); }
.dc-legend .depby.passed .cap, .dc-legend .depby.passed b { color: rgba(235, 235, 245, .6); }
.dc-hair { display: block; height: calc(var(--u) * 1); background: rgba(255, 255, 255, .09); margin-top: calc(var(--u) * 20); }
.dc-facts { display: flex; margin-top: calc(var(--u) * 18); }
.dc-facts > * { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--u) * 6); padding: 0 calc(var(--u) * 8); border-left: calc(var(--u) * 1) solid rgba(255, 255, 255, .09); text-align: left; }
.dc-facts > :first-child { padding-left: 0; border-left: 0; }
.dc-facts b { font-size: calc(var(--u) * 13.5); font-weight: 600; white-space: nowrap; }
.dc-capline { display: flex; align-items: center; gap: calc(var(--u) * 3); }
.dc-capline .ud { width: calc(var(--u) * 9); height: calc(var(--u) * 9); color: rgba(255, 255, 255, .35); }
.dc-crew { position: relative; border-radius: calc(var(--u) * 8); transition: background-color .3s; }
.dc-crew:hover .ud { color: var(--green); }

/* ── Live Activity (FlightCardView, .phone metrics) ── */
.la {
  width: calc(var(--u) * 364);
  border-radius: calc(var(--u) * 24);
  background: rgba(6, 7, 10, .92);
  position: relative; overflow: hidden;
  --tint: transparent;
}
.la-top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--u) * 11) calc(var(--u) * 16) 0; height: calc(var(--u) * 34); }
.la-id { display: flex; align-items: center; gap: calc(var(--u) * 6); font-size: calc(var(--u) * 16); font-weight: 600; color: rgba(255, 255, 255, .55); }
.la-id .fc-logo { width: calc(var(--u) * 18); height: calc(var(--u) * 18); }
.la-fin { font-size: calc(var(--u) * 11); font-weight: 700; letter-spacing: calc(var(--u) * 1.2); color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .1); padding: calc(var(--u) * 4) calc(var(--u) * 9); border-radius: 999px; }
.la:not(.pre) .la-fin { visibility: hidden; }
.la-route { display: flex; align-items: center; gap: calc(var(--u) * 10); padding: calc(var(--u) * 4) calc(var(--u) * 16) 0; }
.la-route > b { font-size: calc(var(--u) * 22); font-weight: 800; }
.la-route .trk { flex: 1; --bar: 8; --dot: 17; --plane: 7; --rail: .10; }
.la-caps { display: none; justify-content: space-between; padding: calc(var(--u) * 3) calc(var(--u) * 16) 0; font-size: calc(var(--u) * 9); font-weight: 700; letter-spacing: calc(var(--u) * 1.1); color: rgba(255, 255, 255, .45); }
.la-caps > span { display: flex; align-items: center; gap: calc(var(--u) * 4); }
.la-caps .ico { width: calc(var(--u) * 12); height: calc(var(--u) * 12); }
.la.air .la-caps { display: flex; }
.la-times { display: flex; align-items: baseline; justify-content: space-between; padding: calc(var(--u) * 2) calc(var(--u) * 16) 0; position: relative; }
.la-times b { font-size: calc(var(--u) * 22); font-weight: 600; transition: color .6s; }
.la-delta { display: flex; gap: calc(var(--u) * 8); font-size: calc(var(--u) * 11); font-weight: 700; letter-spacing: calc(var(--u) * .9); }
.la-delta i { font-style: normal; }
.la-inbound { display: none; align-items: center; gap: calc(var(--u) * 5); padding: calc(var(--u) * 6) calc(var(--u) * 16) 0; font-size: calc(var(--u) * 11); font-weight: 500; color: rgba(255, 255, 255, .62); }
.la-inbound > .ico { width: calc(var(--u) * 13); height: calc(var(--u) * 13); color: var(--live-green); }
.la-inbound .gate { margin-left: auto; font-size: calc(var(--u) * 13); }
.la-inbound .gate svg { width: calc(var(--u) * 11); height: calc(var(--u) * 11); }
.la.pre .la-inbound { display: flex; }
.la-band {
  display: flex; align-items: stretch; margin-top: calc(var(--u) * 9);
  border-top: calc(var(--u) * 1) solid rgba(255, 255, 255, .09);
  padding: calc(var(--u) * 7) 0 calc(var(--u) * 8);
  position: relative;
}
/* The bloom over the band: the verdict's colour, lit from the seam. */
.la-band::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(var(--u) * -34); height: calc(var(--u) * 34);
  background: radial-gradient(60% 100% at 50% 100%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 70%);
  opacity: 0; transition: opacity .8s; pointer-events: none;
}
.la.lit .la-band::before { opacity: 1; }
.la-band > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 2); }
.la-band .cap { font-size: calc(var(--u) * 9); letter-spacing: calc(var(--u) * 1.3); color: rgba(255, 255, 255, .45); }
.la-band .amber .cap { color: rgba(255, 159, 10, .85); }
.la-val { display: flex; align-items: center; gap: calc(var(--u) * 5); }
.la-val b { font-size: calc(var(--u) * 16.5); font-weight: 600; }
.la-val .ico { width: calc(var(--u) * 14); height: calc(var(--u) * 14); color: rgba(255, 255, 255, .8); }
.la-band .amber b, .la-band .amber .ico { color: var(--amber); }
.la.late .la-band > div:first-child b, .la.late .la-band > div:first-child .cap { color: var(--live-red); }
.la-rule { width: calc(var(--u) * 1); background: rgba(255, 255, 255, .09); margin: calc(var(--u) * 4) 0; }

/* ── Dynamic Island, compact ── */
.island {
  display: flex; align-items: center; justify-content: space-between;
  width: calc(var(--u) * 206); height: calc(var(--u) * 37);
  padding: 0 calc(var(--u) * 14) 0 calc(var(--u) * 13);
  border-radius: 999px; background: #000;
  margin: calc(var(--u) * 11) auto 0;
}
.is-l { width: calc(var(--u) * 17); height: calc(var(--u) * 17); color: var(--green); }
.is-cam { width: calc(var(--u) * 12); height: calc(var(--u) * 12); border-radius: 50%; background: radial-gradient(circle at 40% 40%, #1d2330, #05060a 60%); }
.is-r { font-size: calc(var(--u) * 15); font-weight: 600; min-width: calc(var(--u) * 40); text-align: right; }

/* ── Apple Watch, flight page ── */
.wf { width: calc(var(--u) * 208); height: calc(var(--u) * 248); background: #000; position: relative; overflow: hidden; display: flex; flex-direction: column; --tint: transparent; }
.wf-top { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--u) * 10) calc(var(--u) * 12) 0; }
.wf-id { display: flex; align-items: center; gap: calc(var(--u) * 5); font-size: calc(var(--u) * 14); font-weight: 600; color: rgba(255, 255, 255, .55); }
.wf-id .fc-logo { width: calc(var(--u) * 13); height: calc(var(--u) * 13); }
.wf-clock { font-size: calc(var(--u) * 16); font-weight: 600; }
.wf-codes { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--u) * 10) calc(var(--u) * 12) 0; }
.wf-codes > b { font-size: calc(var(--u) * 30); font-weight: 800; letter-spacing: calc(var(--u) * -.3); }
.wf-wx { display: flex; align-items: center; gap: calc(var(--u) * 3); font-size: calc(var(--u) * 12); font-weight: 600; color: rgba(255, 255, 255, .8); }
.wf-wx svg { width: calc(var(--u) * 14); height: calc(var(--u) * 14); color: #FFD60A; }
.wf .trk { margin: calc(var(--u) * 8) calc(var(--u) * 12) 0; --bar: 6; --dot: 14; --plane: 6; --rail: .14; }
.wf-caps { display: flex; justify-content: space-between; padding: calc(var(--u) * 8) calc(var(--u) * 12) 0; font-size: calc(var(--u) * 8.5); font-weight: 700; letter-spacing: calc(var(--u) * 1); color: rgba(255, 255, 255, .45); }
.wf-caps > span { display: flex; align-items: center; gap: calc(var(--u) * 3); }
.wf-caps i { font-style: normal; }
.wf-caps .ico { width: calc(var(--u) * 10); height: calc(var(--u) * 10); }
.wf-times { display: flex; justify-content: space-between; padding: calc(var(--u) * 1) calc(var(--u) * 12) 0; }
.wf-times b { font-size: calc(var(--u) * 19); font-weight: 600; transition: color .6s; }
.wf-pill { height: calc(var(--u) * 18); display: flex; justify-content: center; margin-top: calc(var(--u) * 2); }
.wf-pill i {
  font-style: normal; font-size: calc(var(--u) * 8); font-weight: 800; letter-spacing: calc(var(--u) * 1);
  color: var(--tint); padding: calc(var(--u) * 3) calc(var(--u) * 8); border-radius: 999px;
  border: calc(var(--u) * 1) solid color-mix(in srgb, var(--tint) 70%, transparent);
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  opacity: 0; transition: opacity .5s;
}
.wf.has-pill .wf-pill i { opacity: 1; }
.wf-band {
  margin-top: auto; display: flex; padding: calc(var(--u) * 12) calc(var(--u) * 8) calc(var(--u) * 14);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 22%, #141619), #0f1012 60%);
  border-top: calc(var(--u) * 1) solid color-mix(in srgb, var(--tint) 55%, rgba(255, 255, 255, .08));
}
.wf-band > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 3); }
.wf-band > div + div { border-left: calc(var(--u) * 1) solid rgba(255, 255, 255, .12); }
.wf-band .cap { font-size: calc(var(--u) * 8.5); letter-spacing: calc(var(--u) * 1); color: rgba(255, 255, 255, .55); }
.wf-band .amber .cap { color: rgba(255, 159, 10, .9); }
.wf-band span { display: flex; align-items: center; gap: calc(var(--u) * 4); }
.wf-band b { font-size: calc(var(--u) * 18); font-weight: 600; }
.wf-band .ico { width: calc(var(--u) * 13); height: calc(var(--u) * 13); color: rgba(255, 255, 255, .8); }
.wf-band .amber b, .wf-band .amber .ico { color: var(--amber); }

/* ── Crew rest card ── */
.cr { --u: 1px; display: flex; align-items: center; gap: calc(var(--u) * 14); width: calc(var(--u) * 364); padding: calc(var(--u) * 14); background: #000; border-radius: calc(var(--u) * 24); font-family: var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.cr-left { display: flex; gap: calc(var(--u) * 6); position: relative; }
.cr-rail { position: relative; width: calc(var(--u) * 22); }
.cr-rail i { position: absolute; left: 50%; top: calc(var(--u) * 4); bottom: calc(var(--u) * 4); width: calc(var(--u) * 3); margin-left: calc(var(--u) * -1.5); border-radius: 3px; background: rgba(255, 255, 255, .28); }
.cr-plane { position: absolute; left: 50%; width: calc(var(--u) * 20); height: calc(var(--u) * 20); transform: translate(-50%, -50%) rotate(90deg); color: var(--green); transition: top .6s var(--spring-smooth); background: #000; border-radius: 50%; }
.cr-plane svg { width: 100%; height: 100%; fill: currentColor; }
.cr-rows { display: flex; flex-direction: column; gap: calc(var(--u) * 3); }
.cr-rows span { font-size: calc(var(--u) * 15); font-weight: 600; color: rgba(255, 255, 255, .45); padding: calc(var(--u) * 3) calc(var(--u) * 10); border-radius: 999px; border: calc(var(--u) * 1.5) solid transparent; white-space: nowrap; transition: color .4s, border-color .4s, box-shadow .4s, font-size .4s; }
.cr-rows span.on { color: #fff; font-size: calc(var(--u) * 17); border-color: var(--green); box-shadow: 0 0 calc(var(--u) * 10) rgba(16, 181, 130, .45), inset 0 0 calc(var(--u) * 6) rgba(16, 181, 130, .18); }
.cr-right { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 2); }
.cr-chip { align-self: flex-end; font-size: calc(var(--u) * 11); font-weight: 600; padding: calc(var(--u) * 3.5) calc(var(--u) * 9); border-radius: 999px; background: rgba(255, 255, 255, .14); margin-bottom: calc(var(--u) * 8); }
.cr-timer { font-size: calc(var(--u) * 38); font-weight: 700; letter-spacing: calc(var(--u) * -.5); line-height: 1; }
.cr-cap { font-size: calc(var(--u) * 12); font-weight: 500; color: rgba(255, 255, 255, .45); }
.t-rest .tile-art { container-type: inline-size; }
.t-rest .cr { --u: clamp(.62px, calc(100cqw / 400), 1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9); }

/* ════════════════════════ Devices ════════════════════════ */

.phone {
  --pw: 380px;
  width: var(--pw);
  padding: calc(var(--pw) * .026);
  border-radius: calc(var(--pw) * .158);
  background:
    linear-gradient(145deg, #3a4048 0%, #16191e 18%, #0b0d10 50%, #16191e 82%, #3a4048 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    inset 0 0 0 calc(var(--pw) * .008) #050608,
    0 50px 90px -30px rgba(0, 0, 0, .85),
    0 24px 40px -20px rgba(0, 0, 0, .7);
  position: relative;
}
.phone::before, .phone::after {   /* side buttons */
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #1b1f25;
}
.phone::before { left: -2px; top: 22%; height: 7%; box-shadow: 0 calc(var(--pw) * .21) 0 #1b1f25; }
.phone::after { right: -2px; top: 28%; height: 11%; }
.phone-screen {
  position: relative; aspect-ratio: 402 / 874; overflow: hidden;
  border-radius: calc(var(--pw) * .132);
  background: #000;
  container-type: inline-size;
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
/* The Dynamic Island is hardware: simulator captures don't include it. */
.phone-screen::after {
  content: ""; position: absolute; z-index: 3; left: 50%; top: calc(11 / 874 * 100%);
  width: calc(126 / 402 * 100%); height: calc(37 / 874 * 100%);
  transform: translateX(-50%); border-radius: 999px; background: #000;
}
.phone-screen.no-island::after { display: none; }
.phone-sm { --pw: 300px; }
.screen-live {
  position: absolute;
  left: calc(var(--x) / 402 * 100%);
  top: calc(var(--y) / 874 * 100%);
  width: calc(var(--w) / 402 * 100%);
}
.screen-live .fc { --u: calc(100cqw / 402); }

.watch { --ww: 170px; }
.watch-case {
  width: var(--ww); aspect-ratio: 416 / 496; position: relative;
  padding: calc(var(--ww) * .07);
  border-radius: calc(var(--ww) * .25);
  background: linear-gradient(150deg, #474d55, #15181c 30%, #0a0b0d 60%, #2a2f35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -24px rgba(0, 0, 0, .9);
}
.watch-screen { width: 100%; height: 100%; border-radius: calc(var(--ww) * .19); overflow: hidden; background: #000; container-type: inline-size; }
.watch-screen > img { width: 100%; height: 100%; object-fit: cover; }
.watch-screen .wf { --u: calc(100cqw / 208); }
.watch-crown { position: absolute; right: calc(var(--ww) * -.035); top: 26%; width: calc(var(--ww) * .05); height: 16%; border-radius: 4px; background: linear-gradient(90deg, #2a2f35, #5a616a); }

/* ════════════════════════ Hero ════════════════════════ */

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: clip; padding: 100px 0 80px; }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero-copy { max-width: 640px; }
.hero h1 { margin-top: 22px; }
.hero h1 .line { display: block; }
.hero-lede { margin-top: 26px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-size: 13px; color: var(--text-3); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero-device { display: flex; flex-direction: column; align-items: center; perspective: 1400px; }
.hero-device .phone { --pw: min(clamp(270px, 27vw, 380px), calc((100svh - 150px) / 2.3)); transform-style: preserve-3d; }
.device-note { margin-top: 22px; font-size: 13px; color: var(--text-3); text-align: center; max-width: 280px; }
.device-note::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--live-green); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--live-green); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; z-index: 2; transform: translateX(-50%); width: 26px; height: 40px; border-radius: 13px; border: 1.5px solid rgba(255, 255, 255, .22); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text-2); animation: wheel 2s var(--ease-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* The intro's wordmark, set letter by letter under the mark. */
.intro-word {
  position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none;
  display: flex; font: 700 clamp(30px, 3vw, 40px)/1 var(--sans); letter-spacing: -.01em;
  transform: translate(-50%, -50%); opacity: 0;
}
.intro-word span { display: inline-block; }

/* Before the intro plays, the page waits for it (JS only; no-JS shows everything).
 * The hero wears the launch canvas meanwhile, so the first frame lands on the same tone. */
.js.intro-pending .hero { background: linear-gradient(180deg, #17242A, #0C1418); }
.js.intro-pending [data-hero], .js.intro-pending [data-hero-device], .js.intro-pending .nav, .js.intro-pending .scroll-hint { opacity: 0; }

@media (max-width: 960px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-device .phone { --pw: min(330px, 78vw); }
  .hero-device { margin-top: 12px; }
}

/* ════════════════════════ Shared layout ════════════════════════ */

.chapter { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-rev .split-copy { order: 2; }
.split-copy .display { margin-top: 18px; }
.split-copy .lede { margin-top: 22px; max-width: 520px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.facts li { font-size: 13px; color: var(--text-2); padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.facts b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
}

.manifesto { padding: clamp(110px, 16vw, 220px) 0 clamp(40px, 6vw, 80px); }
.manifesto .display { max-width: 16ch; font-size: clamp(38px, 6vw, 84px); }
.manifesto-lede { margin-top: 30px; max-width: 620px; }
.manifesto .w { transition: color .25s linear; }
.js .manifesto .display .w { color: rgba(255, 255, 255, .16); }
.js .manifesto .display .accent .w { color: rgba(16, 181, 130, .2); }
.js .manifesto .display .w.lit { color: #fff; }
.js .manifesto .display .accent .w.lit { color: var(--green); }

[data-split] .w { display: inline-block; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; color: var(--green); font-weight: 600; font-size: 16px; }
.text-link::after { content: "→"; transition: transform .3s var(--ease-out); }
.text-link:hover::after { transform: translateX(4px); }

/* ════════════════════════ Chapter pill ════════════════════════ */
.chapters {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 140%); transition: transform .7s var(--spring-card);
  pointer-events: none;
}
.chapters.show { transform: translate(-50%, 0); pointer-events: auto; }
.chapters.show.muted { transform: translate(-50%, 140%); pointer-events: none; }
.chapters-glass {
  position: relative; display: flex; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgba(30, 36, 44, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px -16px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
.chapters a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  font: 600 14px/1 var(--sans); color: rgba(255, 255, 255, .62);
  transition: color .3s;
}
.chapters a .n { font-size: 10.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .32); transition: color .3s; font-variant-numeric: tabular-nums; }
.chapters a.on { color: #fff; }
.chapters a.on .n { color: var(--green); }
.chapters-lens {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .52s var(--spring-smooth), width .52s var(--spring-smooth), opacity .3s;
  opacity: 0;
}
.chapters.has-on .chapters-lens { opacity: 1; }
@media (max-width: 640px) {
  .chapters a { padding: 10px 11px; font-size: 13px; }
  .chapters a .n { display: none; }
}

/* ════════════════════════ 01 Roster ════════════════════════ */
.roster-stage { position: relative; min-height: 560px; }
.paper {
  position: absolute; left: 0; top: 0; width: min(420px, 78%); z-index: 1;
  background: #F4F2EC; color: #1d2126; border-radius: 6px;
  padding: 18px 18px 22px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  transform: rotate(-4deg) translate(-10px, 10px);
  font-family: var(--mono);
}
.paper-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; border-bottom: 1.5px solid #1d2126; padding-bottom: 8px; }
.paper-head b { font-size: 12.5px; letter-spacing: .08em; }
.paper-head span { font-size: 9.5px; opacity: .7; }
.paper-cols, .paper-row { display: grid; grid-template-columns: 34px 44px 50px 70px 36px 36px 1fr; gap: 4px; font-size: 9.5px; }
.paper-cols { opacity: .55; padding: 8px 0 5px; border-bottom: 1px dashed rgba(0, 0, 0, .25); }
.paper-row { padding: 4px 0; border-bottom: 1px dotted rgba(0, 0, 0, .12); position: relative; }
.paper-row.off { opacity: .45; }
.paper-row.hit::after { content: ""; position: absolute; inset: 0 -6px; background: rgba(16, 181, 130, .18); border-radius: 3px; }
.paper-scan { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(180deg, transparent, rgba(16, 181, 130, .22) 70%, rgba(16, 181, 130, .8) 96%, transparent); opacity: 0; pointer-events: none; }

.rail-card {
  position: absolute; right: 0; bottom: 30px; width: min(560px, 96%); z-index: 2;
  border-radius: var(--r-card); padding: 22px 0 18px;
  background: linear-gradient(135deg, var(--ink-2), rgba(13, 19, 27, .92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.rail-head { display: flex; justify-content: space-between; align-items: center; padding: 0 22px 10px; }
.rail-month { font: 600 13px/1 var(--sans); color: var(--text-2); }
.rail-zoom { font: 700 9.5px/1 var(--sans); letter-spacing: .116em; text-transform: uppercase; color: var(--green); padding: 5px 9px; border-radius: 999px; background: rgba(16, 181, 130, .12); }
.timeline { position: relative; height: 150px; }
.timeline svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tl-day { font: 500 11px/1 var(--sans); fill: rgba(255, 255, 255, .55); }
.tl-day .w { fill: rgba(255, 255, 255, .3); }
.tl-code { font: 700 12px/1 var(--sans); fill: #fff; }
.tl-time { font: 500 10.5px/1 var(--mono); fill: rgba(255, 255, 255, .55); }
.tl-bar { fill: #E8EDF2; }
.tl-bar.dh { fill: none; stroke: rgba(232, 237, 242, .7); stroke-width: 1.2; stroke-dasharray: 2 2; }
.tl-lay { fill: rgba(232, 237, 242, .08); }
.tl-today { fill: var(--green); }
.tl-now { stroke: var(--green); stroke-width: 1.5; }
.tl-sel { fill: none; stroke: var(--green); stroke-width: 1.5; }

.toast {
  position: absolute; right: 4%; top: 6%; z-index: 3; width: min(360px, 86%);
  display: flex; gap: 11px; padding: 13px 14px; border-radius: 22px;
  background: rgba(40, 44, 52, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(-14px) scale(.96);
}
.toast-icon { width: 38px; height: 38px; flex: none; border-radius: 9px; background: var(--slate) url("mark.svg") center / 30px no-repeat; }
.toast-body { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.3; }
.toast-top { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.toast-top b { font-weight: 600; color: rgba(255, 255, 255, .7); letter-spacing: .02em; text-transform: uppercase; font-size: 11.5px; }
.toast-title { font-weight: 600; margin-top: 2px; }
.toast-text { color: rgba(255, 255, 255, .8); }

.roster-pair { margin-top: clamp(60px, 8vw, 110px); }
.shot-card { display: flex; align-items: center; gap: clamp(28px, 5vw, 72px); }
.shot-card figcaption { max-width: 360px; font-size: 17px; color: var(--text-2); line-height: 1.55; }
.shot-card figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) {
  .roster-stage { min-height: 600px; margin-top: 30px; }
  .paper { width: 84%; }
  .shot-card { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════ 02 Duty ════════════════════════ */
.duty-stage { display: flex; flex-direction: column; align-items: center; }
.duty-live { position: relative; }
.duty-live .dc { --u: clamp(.9px, calc(100vw / 900), 1.3px); }
.tap-hint {
  position: absolute; pointer-events: none; left: 0; top: 0; opacity: 0;
  width: 34px; height: 34px;
}
.tap-hint i { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--green); background: rgba(16, 181, 130, .15); animation: tap 1.6s var(--ease-out) infinite; }
@keyframes tap { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.stage-note { margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--text-3); text-align: center; }
.stage-note .try { font-weight: 600; color: var(--green); }
.duty-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(60px, 8vw, 110px); align-items: start; }
.crop img { width: 100%; height: auto; border-radius: calc(var(--r-card) * .9); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.crop figcaption { margin-top: 18px; font-size: 16px; color: var(--text-2); max-width: 440px; }
.crop figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .duty-cards { grid-template-columns: 1fr; } }

/* ════════════════════════ 03 Flight (pinned) ════════════════════════ */
.fly { padding-bottom: 0; }
.fly-intro { max-width: var(--max); }
.fly-intro .display { margin-top: 18px; max-width: 12ch; }
.fly-intro .lede { margin-top: 22px; max-width: 580px; }
.fly-pin { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.fly-stage {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center; gap: clamp(24px, 3.4vw, 56px);
  padding: 76px var(--gutter) 108px;
  --fly-u: clamp(.78px, calc((100svh - 210px) / 610), 1.22px);
}
.fly-sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 60% at 85% 118%, rgba(255, 158, 88, calc(var(--dawn, 0) * .20)), transparent 60%),
    radial-gradient(90% 50% at 90% 110%, rgba(255, 210, 150, calc(var(--dawn, 0) * .10)), transparent 60%),
    radial-gradient(100% 80% at 50% 0%, #07101A 0%, transparent 70%);
}
.fly-stage > :not(.fly-sky):not(.scrub) { position: relative; z-index: 1; }
.fly-narr { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.zulu { display: flex; align-items: baseline; gap: 4px; }
.zulu b { font: 600 clamp(44px, 5vw, 72px)/1 var(--sans); letter-spacing: -.02em; }
.zulu span { font: 600 clamp(18px, 1.8vw, 26px)/1 var(--sans); color: var(--text-3); }
.zulu-local { margin-top: 10px; font-size: 13px; color: var(--text-3); letter-spacing: .01em; }
.beats { position: relative; margin-top: 34px; min-height: 190px; }
.beat { position: absolute; inset: 0 0 auto 0; }
.beat .k { font: 700 9.5px/1 var(--sans); letter-spacing: .116em; text-transform: uppercase; color: var(--green); }
.beat h3 { font: 400 clamp(28px, 2.6vw, 38px)/1.08 var(--serif); letter-spacing: -.01em; margin-top: 12px; }
.beat p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); max-width: 340px; }
.oooi { margin-top: 26px; max-width: 320px; border-radius: 20px; background: rgba(13, 19, 27, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); padding: 6px 16px 12px; }
.oooi-head, .oooi-row { display: grid; grid-template-columns: 1fr 72px 56px; align-items: center; }
.oooi-head { font: 700 9.5px/1 var(--sans); letter-spacing: .116em; text-transform: uppercase; color: rgba(255, 255, 255, .42); padding: 10px 0 8px; }
.oooi-head span:not(:first-child) { text-align: right; }
.oooi-row { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14.5px; }
.oooi-row b { text-align: right; font-weight: 600; color: rgba(255, 255, 255, .3); transition: color 1.2s var(--ease-out); }
.oooi-row.set b { color: #fff; }
.oooi-row.fresh b { color: var(--green); transition: color .3s; }
.oooi-sum { display: flex; justify-content: space-between; padding-top: 10px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: var(--text-3); }
.oooi-sum b { color: #fff; font-weight: 600; margin-left: 4px; }
.fly-center { display: flex; flex-direction: column; gap: calc(var(--fly-u) * 16); }
.fly-center .fc { --u: var(--fly-u); --cw: 370; box-shadow: inset 0 0 0 calc(var(--u) * 1) rgba(255, 255, 255, .12), 0 40px 90px -40px rgba(0, 0, 0, .9); }
.fly-center .dc { --u: var(--fly-u); --cw: 370; }
.fly-side { position: relative; justify-self: start; }
.lock { --pw: clamp(210px, 17vw, 262px); }
.lock .lock-screen {
  width: var(--pw); aspect-ratio: 402 / 874; border-radius: calc(var(--pw) * .15);
  overflow: hidden; position: relative; container-type: inline-size;
  background:
    radial-gradient(90% 55% at 30% 18%, rgba(56, 86, 128, .55), transparent 70%),
    radial-gradient(80% 60% at 80% 90%, rgba(16, 181, 130, .16), transparent 70%),
    linear-gradient(180deg, #0b1422, #05070c);
  box-shadow: 0 0 0 calc(var(--pw) * .026) #0b0d10, 0 0 0 calc(var(--pw) * .03) #2c3138, 0 50px 90px -30px rgba(0, 0, 0, .9);
}
.lock .island { --u: calc(100cqw / 402); }
.lock-date { margin-top: calc(100cqw / 402 * 22); text-align: center; font: 600 calc(100cqw / 402 * 19)/1 var(--sans); color: rgba(255, 255, 255, .78); }
.lock-time { text-align: center; font: 600 calc(100cqw / 402 * 92)/1 var(--sans); letter-spacing: -.02em; color: rgba(255, 255, 255, .92); margin-top: calc(100cqw / 402 * 6); }
.lock #fly-la { position: absolute; left: 50%; bottom: calc(100cqw / 402 * 118); transform: translateX(-50%); }
.lock .la { --u: calc(100cqw / 402); }
.fly-side .watch { --ww: clamp(118px, 9.4vw, 150px); position: absolute; right: calc(var(--ww) * -.62); bottom: calc(var(--ww) * -.22); }
.narrow-only { display: none; }
@media (max-width: 820px) { .narrow-only { display: block; } }
.scrub { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; z-index: 2; }
.scrub-line { position: relative; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--green), var(--live-green)); }
.scrub-fill::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--live-green); box-shadow: 0 0 14px var(--live-green); }
.scrub-ticks { position: relative; height: 34px; }
.scrub-ticks button {
  position: absolute; top: 10px; transform: translateX(-50%);
  font: 700 9.5px/1.3 var(--sans); letter-spacing: .1em; color: rgba(255, 255, 255, .36);
  text-align: center; white-space: nowrap; transition: color .3s;
}
.scrub-ticks button::before { content: ""; position: absolute; left: 50%; top: -13px; width: 1px; height: 8px; background: rgba(255, 255, 255, .25); }
.scrub-ticks button.past { color: rgba(255, 255, 255, .85); }
.scrub-ticks button span { display: block; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .35); }

@media (max-width: 1180px) {
  .fly-stage { grid-template-columns: minmax(0, 1fr) auto; }
  .fly-side { display: none; }
}
@media (max-width: 820px) {
  .fly-stage {
    grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start;
    padding: 64px var(--gutter) 96px; gap: 14px;
    --fly-u: min(calc((100vw - 2 * var(--gutter)) / 372), calc((100svh - 300px) / 490));
  }
  .fly-narr { align-self: start; }
  .zulu b { font-size: 40px; }
  .beats { margin-top: 12px; min-height: 104px; }
  .beat h3 { font-size: 24px; margin-top: 8px; }
  .beat p { font-size: 14px; margin-top: 6px; }
  .oooi, .fly-center .dc, .beat p { display: none; }
  .fly-center .la { --u: var(--fly-u); }
  .fly-center { justify-self: center; }
  .scrub-ticks button span { display: none; }
}

/* ════════════════════════ 04 Logbook ════════════════════════ */
.scan-stage { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; min-height: 560px; }
.viewfinder {
  position: relative; width: min(440px, 100%); aspect-ratio: 4 / 3.3; border-radius: 30px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #1b232c, #07090c 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.acars {
  position: absolute; left: 50%; top: 46%; width: 76%; transform: translate(-50%, -50%) perspective(900px) rotateX(9deg) rotateZ(-6deg) scale(.96);
  transform-origin: 50% 50%;
}
.acars-page {
  background: #030604; border-radius: 10px; padding: 14px 16px 12px;
  box-shadow: 0 0 0 6px #14181d, 0 0 0 7px #2a3037, 0 24px 40px -10px rgba(0, 0, 0, .8);
  font: 500 clamp(11px, 1.15vw, 14px)/1.65 var(--mono); color: #3BF06F; letter-spacing: .02em;
  text-shadow: 0 0 6px rgba(59, 240, 111, .35);
}
.ac-l { display: flex; justify-content: space-between; white-space: pre; }
.ac-title { color: #E9F2EC; text-shadow: none; opacity: .9; }
.ac-title span { opacity: .6; }
.ac-gap { margin-top: 6px; }
.ac-foot { margin-top: 6px; color: #7FD8FF; text-shadow: none; opacity: .8; }
.acars [data-f] { position: relative; border-radius: 3px; transition: background-color .3s, box-shadow .3s; }
.acars [data-f].lock { background: rgba(16, 181, 130, .22); box-shadow: 0 0 0 2px rgba(16, 181, 130, .55); }
.vf-corner { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .9); transition: all .6s var(--spring-card); }
.vf-corner.tl { left: 13%; top: 14%; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.vf-corner.tr { right: 13%; top: 14%; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.vf-corner.bl { left: 13%; bottom: 20%; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.vf-corner.br { right: 13%; bottom: 20%; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.viewfinder.locked .vf-corner { border-color: var(--green); }
.vf-status { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); color: rgba(255, 255, 255, .78); }
.vf-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.vf-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; transition: width .35s var(--ease-out); }
.vf-done { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(2, 5, 10, .55); opacity: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vf-done svg { width: 96px; height: 96px; fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.vf-done circle { stroke-dasharray: 214; stroke-dashoffset: 214; }
.vf-done path { stroke-dasharray: 44; stroke-dashoffset: 44; }

.entry { width: min(400px, 100%); margin-top: 26px; position: relative; z-index: 2; padding: 0 6px; }
.entry-title { text-align: center; font: 600 16px/1 var(--sans); margin-bottom: 14px; opacity: .9; }
.entry-group { display: grid; grid-template-columns: 1fr 72px 64px; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(235, 235, 245, .45); padding: 0 18px 8px; }
.entry-group span { text-align: center; }
.entry-card { border-radius: 26px; background: linear-gradient(135deg, var(--ink-2), rgba(13, 19, 27, .92)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -30px rgba(0, 0, 0, .9); padding: 4px 18px; }
.entry-row { display: grid; grid-template-columns: 1fr 72px 64px; align-items: center; padding: 11px 0; font-size: 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
.entry-row:first-child { border-top: 0; }
.entry-row b { text-align: center; font-weight: 500; font-size: 16px; line-height: 1.05; color: rgba(255, 255, 255, .92); transition: color 1.2s var(--ease-out); }
.entry-row b small { display: block; font-size: 9.5px; font-weight: 500; color: rgba(235, 235, 245, .45); margin-top: 2px; transition: color 1.2s; }
.entry-row.sum b { grid-column: 3; text-align: right; font-weight: 600; }
.entry-row.glow b { color: var(--green); transition: color .3s; }
.entry-row.glow b small { color: rgba(16, 181, 130, .7); transition: color .3s; }
.entry-row.hold b { opacity: .18; }

.night { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: center; margin-top: clamp(90px, 12vw, 160px); }
.night-copy .lede { margin-top: 18px; }
.night-readout { display: flex; gap: 34px; margin-top: 30px; }
.night-readout > div { display: flex; flex-direction: column; gap: 8px; }
.night-readout b { font: 600 30px/1 var(--sans); }
.night-readout > div:first-child b { color: #9FB9FF; }
.night-globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 720px; justify-self: center; }
.night-globe canvas { width: 100%; height: 100%; }
.night-clock { position: absolute; right: 6%; top: 6%; font: 600 13px/1 var(--sans); color: var(--text-2); padding: 8px 12px; border-radius: 999px; background: rgba(13, 19, 27, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.logbook-shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); margin-top: clamp(90px, 12vw, 150px); }
.logbook-shots .shot-card { flex-direction: column; align-items: flex-start; }
@media (max-width: 960px) {
  .night { grid-template-columns: 1fr; }
  .logbook-shots { grid-template-columns: 1fr; }
}

/* ════════════════════════ 05 Career ════════════════════════ */
.career { padding-bottom: 0; }
.career-head .display { margin-top: 18px; }
.career-head .lede { margin-top: 22px; max-width: 620px; }
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 30px; }
.counters b { display: block; font: 600 clamp(38px, 5.4vw, 76px)/1 var(--sans); letter-spacing: -.03em; }
.counters span { display: block; margin-top: 10px; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 700px) { .counters { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }
.reel-pin { position: relative; margin-top: clamp(50px, 7vw, 90px); overflow: hidden; }
.reel-pin .reel-track { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.reel { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); padding: 0 var(--gutter); width: max-content; }
.reel-item { flex: none; width: clamp(280px, 30vw, 400px); }
.reel-item img { width: 100%; height: auto; border-radius: calc(var(--r-card) * .85); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.reel-item.tall { width: auto; }
.reel-item .phone { --pw: clamp(260px, 24vw, 320px); }
.reel-item figcaption { margin-top: 14px; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 820px) {
  .reel { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
  .reel-item { scroll-snap-align: center; width: 78vw; }
}

/* ════════════════════════ Everything else ════════════════════════ */
.more { padding: clamp(110px, 14vw, 190px) 0 clamp(60px, 8vw, 100px); }
.more-head .display { max-width: 18ch; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 70px); }
.tile {
  grid-column: span 2; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-card);
  background: linear-gradient(145deg, var(--ink-2), rgba(13, 19, 27, .6));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  min-height: 420px;
}
.tile.t-watch, .tile.t-lock { grid-column: span 3; }
.tile p { padding: 0 26px 26px; font-size: 16px; line-height: 1.5; color: var(--text-2); margin-top: auto; }
.tile p b { color: var(--text); font-weight: 600; }
.tile-art { flex: 1; display: grid; place-items: center; padding: 28px 26px 22px; min-height: 250px; position: relative; }
.crop-art { padding: 0; place-items: start center; overflow: hidden; }
.crop-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); }
.watch-pair { display: flex; gap: 18px; justify-content: center; align-items: center; }
.watch-pair .watch { --ww: clamp(120px, 12vw, 158px); }
.watch-pair .watch:first-child { transform: translateY(14px) rotate(-3deg); }
.watch-pair .watch:last-child { transform: translateY(-10px) rotate(3deg); }
.t-lock .tile-art { container-type: inline-size; }
.t-lock #bento-la .la { --u: clamp(.7px, calc(100cqw / 420), 1.05px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.formats { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; }
.formats span { font: 700 13px/1 var(--sans); letter-spacing: .12em; padding: 16px 18px; border-radius: 14px; background: #F4F2EC; color: #1d2126; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); transform: rotate(var(--r, 0deg)); }
.formats span:nth-child(1) { --r: -4deg; } .formats span:nth-child(2) { --r: 3deg; } .formats span:nth-child(3) { --r: -2deg; } .formats span:nth-child(4) { --r: 4deg; } .formats span:nth-child(5) { --r: -3deg; }
.rest-art { gap: 14px; }
.rest-bar { display: flex; width: 100%; max-width: 300px; height: 44px; border-radius: 12px; overflow: hidden; gap: 3px; }
.rest-bar i { flex: 1; display: grid; place-items: center; font: 600 14px/1 var(--sans); font-style: normal; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .5); }
.rest-bar i.on { background: rgba(48, 209, 89, .16); color: #fff; box-shadow: inset 0 0 0 1.5px var(--live-green); border-radius: 10px; }
.rest-cap { font: 700 10px/1 var(--sans); letter-spacing: .14em; color: var(--live-green); }
.siri-art { flex-direction: column; gap: 14px; }
.siri-q { font: 400 21px/1.3 var(--serif); color: var(--text); text-align: center; max-width: 16ch; }
.siri-a { font: 600 19px/1.35 var(--sans); text-align: center; max-width: 22ch; background: linear-gradient(90deg, #7AD7FF, #B78CFF, #FF8FB1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sync-art { display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--sans); color: var(--text-2); }
.sync-art i { width: 38px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 8px); background-size: 16px 100%; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 16px 0; } }
.sync-art span { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
@media (max-width: 1000px) {
  .tile, .tile.t-watch, .tile.t-lock { grid-column: span 3; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.t-watch, .tile.t-lock { grid-column: auto; min-height: 0; }
}

/* ════════════════════════ Privacy / pricing / download ════════════════════════ */
.privacy { padding: clamp(90px, 12vw, 160px) 0; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.privacy .lede { margin-top: 22px; max-width: 560px; }
.checks { list-style: none; display: grid; gap: 4px; border-radius: var(--r-card); padding: 14px 24px; background: linear-gradient(145deg, var(--ink-2), rgba(13, 19, 27, .6)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; font-size: 15.5px; color: var(--text); border-top: 1px solid rgba(255, 255, 255, .06); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; } }

.pricing { padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 12vw, 160px); }
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto; }
.pricing-head .lede { margin-top: 18px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: clamp(24px, 3vw, 36px) auto 0; }
.plan { display: flex; flex-direction: column; border-radius: var(--r-card); padding: 34px 32px; background: linear-gradient(145deg, var(--ink-2), rgba(13, 19, 27, .6)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.plan.pro { box-shadow: inset 0 0 0 1.5px rgba(16, 181, 130, .45), 0 40px 90px -50px rgba(16, 181, 130, .5); background: radial-gradient(90% 60% at 100% 0%, rgba(16, 181, 130, .14), transparent 60%), linear-gradient(145deg, var(--ink-2), rgba(13, 19, 27, .6)); }
.plan h3 { font: 600 20px/1 var(--sans); display: flex; align-items: center; gap: 10px; }
.plan .tag { font: 700 9.5px/1 var(--sans); letter-spacing: .116em; text-transform: uppercase; color: var(--green); background: rgba(16, 181, 130, .14); padding: 5px 9px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 6px; }
.price b { font: 600 54px/1 var(--sans); letter-spacing: -.03em; }
.price span { font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.plan-desc { color: var(--text-2); font-size: 15px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin: 26px 0 30px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--green); }
.plan .btn { width: 100%; }
.founding { max-width: 860px; margin: clamp(28px, 4vw, 44px) auto 0; text-align: center; font-size: 15px; color: var(--text-2); }
.founding b { color: var(--green); font-weight: 600; }
.pricing-note { max-width: 860px; margin: 22px auto 0; text-align: center; font-size: 13px; color: var(--text-3); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

.download { position: relative; padding: clamp(110px, 14vw, 200px) 0; overflow: clip; text-align: center; }
.download::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 1200px; height: 700px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(16, 181, 130, .14), transparent 70%); pointer-events: none; }
.download-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.download-mark { width: 120px; height: 120px; margin-bottom: 36px; }
.download-mark svg { width: 100%; height: 100%; }
.download .lede { margin-top: 22px; }
.download-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.appstore { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px; background: #fff; color: #000; }
.appstore svg { width: 24px; height: 24px; }
.appstore span { display: flex; flex-direction: column; text-align: left; font: 600 20px/1.05 var(--sans); letter-spacing: -.01em; }
.appstore small { font: 500 11px/1.2 var(--sans); letter-spacing: 0; }
.download-ctas .btn { height: 56px; }

.nav-mark { width: 28px; height: 28px; display: block; }
.nav-mark svg { width: 100%; height: 100%; }
.footer-mark { width: 24px; height: 24px; display: block; }
.footer-mark svg { width: 100%; height: 100%; }

/* Reveal helpers — JS sets the start state; without JS everything is visible. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js.no-motion [data-reveal] { opacity: 1; transform: none; }
