/* Storm Graphite: the visual system shared with the Race Debrief PDF. */

/* Fonts: self-hosted (SIL Open Font License) so no visitor data goes to third parties */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/archivo-narrow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-narrow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --storm-950: #0b0d10; --storm-900: #14161a; --storm-800: #1f2228; --storm-600: #373c46;
  --ink-50: #f4f7fa; --ink-200: #dbe0e7; --ink-400: #b6bec9; --ink-500: #9ba3af;
  --cyan: #2fb8d6; /* marks anywhere; text on dark only (fails contrast on light) */
  --cyan-bright: #6fd0e6;
  --cyan-deep: #0f2830; /* chip fill */
  --cyan-ink: #06181d; /* text on cyan */
  --cyan-text: #0b6b80; /* cyan text on light */
  --paper: #fff; --paper-tint: #f4f7fa;
  --text: #11161d; --text-soft: #39434f; --text-mute: #5b6573; --rule: #dbe0e7;
  --error: #9b1c1c;
  --display: "Archivo", Arial, sans-serif;
  --body: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 68px);
  --section: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* The race interface's diagonal hatch, for dark grounds */
  --hatch: repeating-linear-gradient(45deg, transparent 0 53px, rgb(255 255 255 / 3.5%) 53px 106px);
}

/* Surfaces set the colours; components inherit them. */
body, .on-paper { background: var(--paper); color: var(--text-soft); --heading: var(--text); --label: var(--text-mute); --accent: var(--cyan-text); --line: var(--rule); --strong-line: var(--text); }
.on-storm { background: var(--storm-900); color: var(--ink-200); --heading: var(--ink-50); --label: var(--ink-500); --accent: var(--cyan); --line: var(--storm-600); --strong-line: var(--ink-200); }

/* Dark bands carry the hatch; nav, footer and dialogs stay plain */
.section.on-storm, .split .copy.on-storm { background-image: var(--hatch); }

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font: 500 18px/1.6 var(--body); }
img { max-width: 100%; }
a { color: inherit; }
p { max-width: 68ch; }
strong, b { font-weight: 700; color: var(--heading); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.container { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 18px; background: var(--cyan); color: var(--cyan-ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Type: case belongs to the role, not the heading level */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; letter-spacing: -.005em; word-spacing: .08em; line-height: 1.2; color: var(--heading); margin: 0 0 14px; }
h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 22px; }
h3, .headline { font-size: clamp(20px, 1.9vw, 26px); }
.title { margin: 0; font-size: clamp(44px, 7vw, 92px); line-height: .9; letter-spacing: -.02em; text-wrap: balance; text-transform: uppercase; overflow-wrap: break-word; }
.band-title { margin: 0 0 28px; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; text-transform: uppercase; overflow-wrap: break-word; }
.band-title.narrow { max-width: 18em; }
.statement { margin: 0; padding-left: 24px; border-left: 5px solid var(--cyan); font: 700 clamp(22px, 2.6vw, 32px)/1.32 var(--display); letter-spacing: -.01em; color: var(--heading); max-width: 30em; }
.lead { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; max-width: 34em; margin: 0; }
.spaced { margin-top: 36px; }

/* Marks: only these and buttons lean */
.kicker { margin: 0 0 22px; font: 700 13px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
p.kicker { display: flex; align-items: center; gap: 14px; max-width: none; }
p.kicker::before, .section-head::before { content: ""; flex: none; width: 40px; height: 6px; background: var(--cyan); transform: skewX(-8deg); transform-origin: left; }
.num-outline { font: 900 clamp(40px, 4.5vw, 60px)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--cyan); }
/* Section head: lean bar over an outline numeral, tracked label beside it, as in the report */
.section-head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 18px; margin-bottom: 32px; }
.section-head::before { grid-area: 1 / 1; margin-bottom: 14px; }
.section-head .num-outline { grid-area: 2 / 1; font-size: clamp(40px, 4vw, 54px); }
.section-head > :is(h2, .section-label) { grid-area: 2 / 2; margin: 0; padding-bottom: 1px; font: 900 clamp(18px, 1.6vw, 22px)/1.15 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--heading); }
.section-head:not(:has(.num-outline)) > :is(h2, .section-label) { grid-column: 1 / -1; }
.list-label { margin: 0; font: 700 13px/1.4 var(--mono); color: var(--label); }

/* Highlighter: one key phrase per paragraph at most */
.hl { --hl: rgb(47 184 214 / 28%); font-weight: 700; color: var(--heading); background: linear-gradient(var(--hl), var(--hl)) 0 100% / 100% 38% no-repeat; }
.on-storm .hl { --hl: rgb(47 184 214 / 36%); }

/* Chips: short terms only, never sentences */
.chips { display: flex; flex-wrap: wrap; gap: 10px 8px; list-style: none; margin: 24px 0; padding: 0 0 0 4px; }
.chip { display: inline-block; padding: 8px 16px; background: var(--cyan-deep); color: var(--cyan-bright); font: 900 13px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; transform: skewX(-8deg); }
.chip > span { display: inline-block; transform: skewX(8deg); }
.on-storm .chip { box-shadow: inset 0 0 0 1px rgb(47 184 214 / 35%); }

/* Pull quote with the large cyan mark */
.quote { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(14px, 2vw, 28px); margin: 0; }
.quote::before { content: "\201C"; font: 900 clamp(72px, 8vw, 120px)/.78 var(--display); color: var(--cyan); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; max-width: 34em; font: 500 clamp(22px, 2.4vw, 32px)/1.4 var(--body); color: var(--heading); }
.quote figcaption { grid-column: 2; margin-top: 22px; font: 700 13px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.quote figcaption span { color: var(--heading); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 30; background: var(--storm-950); border-bottom: 1px solid var(--line); }
.nav .inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; }
.logo { width: 166px; height: auto; display: block; }
.links { display: flex; align-items: center; gap: 35px; }
.links a { color: var(--ink-50); text-decoration: none; font: 700 15px/1 var(--display); }
.links a:hover, .links a[aria-current="page"]:not(.btn) { color: var(--cyan); }
.links .btn, .links .btn:hover { min-height: 44px; color: var(--cyan-ink); font-weight: 900; font-size: 14px; }
.links .btn[aria-current="page"]::before { background: var(--ink-50); border-color: var(--ink-50); }
.menu { display: none; background: none; border: 0; color: var(--ink-50); padding: 9px; cursor: pointer; }

/* Buttons */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 28px; border: 0; background: none; color: var(--heading); font: 900 14px/1.2 var(--display); letter-spacing: .08em; text-align: center; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 2px solid currentColor; transform: skewX(-8deg); transition: background-color .15s, border-color .15s; }
.btn:hover { color: var(--accent); }
.btn.primary, .btn.primary:hover { color: var(--cyan-ink); }
.btn.primary::before { background: var(--cyan); border-color: var(--cyan); }
.btn.primary:hover::before { background: var(--cyan-bright); border-color: var(--cyan-bright); }
.btn:disabled { opacity: .6; cursor: progress; }
.cta-row { display: flex; gap: 16px 20px; flex-wrap: wrap; margin-top: 34px; padding-left: 4px; }
/* Paired buttons stay side by side and share the width; long labels wrap inside the button */
.cta-row.pair { flex-wrap: nowrap; max-width: 600px; }
.cta-row.pair .btn { flex: 1 1 0; padding: 8px 18px; }

/* Home hero. The left of the photo fades to navy in the file, so the overlay stays opaque past that point. */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(780px, calc(100vh - 78px)); padding: 110px 0 44px; border-bottom: 11px solid var(--cyan);
  background: linear-gradient(0deg, var(--storm-950), rgb(11 13 16 / 0) 46%), linear-gradient(90deg, var(--storm-950) 30%, rgb(11 13 16 / .55) 52%, rgb(11 13 16 / 0) 74%), var(--hero-image, url("../images/hero-fleet.webp")) right center / cover no-repeat var(--storm-950); }
.hero > .container { position: relative; z-index: 2; width: 100%; }
.hero-lead, .page-hero p:not(.kicker) { max-width: 30em; margin: 26px 0 0; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--ink-200); }
/* Video sits over the hero image, which shows until it plays (or if it can't) */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; container-type: size; background: var(--storm-950); opacity: 0; transition: opacity .6s; pointer-events: none; }
.hero-video.playing { opacity: 1; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); transform: translate(-50%, -50%); border: 0; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(11 13 16 / .85), rgb(11 13 16 / 0) 46%), linear-gradient(90deg, rgb(11 13 16 / .82) 20%, rgb(11 13 16 / .15) 78%); }
.hero-pause { position: absolute; right: var(--gutter); top: 24px; z-index: 3; padding: 8px 14px; border: 1px solid var(--ink-400); background: rgb(11 13 16 / .8); color: var(--ink-50); font: 700 13px/1.2 var(--mono); cursor: pointer; }
.hero-pause[hidden] { display: none; }

/* Video modal */
.video-modal { width: min(1100px, calc(100vw - 32px), calc((100vh - 110px) * 16 / 9)); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.video-modal::backdrop { background: rgb(11 13 16 / .92); }
.video-modal-frame { aspect-ratio: 16 / 9; background: #000; }
.video-modal-frame iframe, .video-modal-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-modal-close { display: block; min-height: 44px; margin: 0 0 4px auto; padding: 0 14px; border: 0; background: none; color: var(--ink-50); font: 900 14px/1 var(--display); cursor: pointer; }

/* Inner page cover */
.cover { position: relative; isolation: isolate; overflow: hidden; background: var(--storm-950); border-bottom: 11px solid var(--cyan); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -2; background: repeating-linear-gradient(45deg, transparent 0 53px, rgb(255 255 255 / 2%) 53px 106px); }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--storm-950), transparent 22% 70%, var(--storm-950)), var(--cover-image, url("../images/world-chart.svg")) center / cover no-repeat; }
.page-hero { padding: clamp(90px, 11vw, 160px) 0 clamp(48px, 5vw, 72px); }
.page-hero .title { max-width: 17em; font-size: clamp(40px, 5.2vw, 68px); }
/* Inner cover with a background video (Outcomes): taller, copy sits low, over the video */
.video-cover { display: flex; align-items: flex-end; min-height: min(720px, calc(100vh - 78px)); }
.video-cover > .container { position: relative; z-index: 2; width: 100%; }
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.fact-strip dt { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; color: var(--label); }
.fact-strip dd { margin: 0; font: 700 clamp(20px, 2vw, 27px)/1.3 var(--display); color: var(--heading); }
.hero .fact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin-top: 44px; }
/* The report cover's closing line */
.cover-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); font: 700 12px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--label); }
.cover-foot p { margin: 0; max-width: none; }

/* Sections */
.section { padding: var(--section) 0; }
.section.follow-on { padding-top: 0; }
.question-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(40px, 7vw, 110px); }
.question-band .statement { margin-top: 40px; }
.versus { list-style: none; margin: 0 0 32px; padding: 0; }
.versus li { padding: 14px 0; border-top: 1px solid var(--line); font: 700 clamp(18px, 1.7vw, 23px)/1.35 var(--display); color: var(--heading); }
.versus li:first-child { border-top: 2px solid var(--strong-line); }
.versus span { margin: 0 .25em; font: 700 .8em var(--mono); color: var(--accent); }
.questions { counter-reset: q; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 56px 1fr; align-items: baseline; }
.questions li::before { content: "Q" counter(q); font: 700 16px var(--mono); color: var(--accent); }

.intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px clamp(40px, 6vw, 90px); align-items: start; }
.story > :first-child { margin-top: 0; }
.story .statement { margin: 32px 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--paper-tint); border-top: 2px solid var(--text); padding: 22px 24px 26px; }
.tile h3 { margin: 0 0 10px; }
.tile .kicker { display: block; margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; color: var(--label); }
.tile-value { display: block; }
.tile-value::first-letter { text-transform: uppercase; }
.tile h2 { margin: 0 0 12px; font-size: clamp(22px, 2.1vw, 30px); }
.tile p:not(.kicker) { margin: 0; }
.tile p.kicker::before { width: 24px; height: 4px; }
.tile p.kicker { display: flex; margin-bottom: 14px; }
h2.statement { margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch; }
.split .copy { padding: var(--section) max(28px, 5vw); display: flex; flex-direction: column; justify-content: center; }
.split .copy .statement { margin-top: 12px; font-size: clamp(20px, 1.9vw, 26px); }
.image { min-height: 430px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.image-band { min-height: 0; height: clamp(240px, 36vw, 560px); background-position: center 15%; }
/* Section images are set per section in WordPress (inline background-image and position). */
.section-head + .facts { margin-top: 0; }

/* Large quotation band */
.quote-band .band-title { margin: 0; max-width: 22em; font-family: var(--body); font-weight: 700; line-height: 1.12; color: var(--heading); }

/* Two related points side by side */
.paired { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 20px; padding-top: 24px; border-top: 2px solid var(--strong-line); }
.paired.stacked { grid-template-columns: 1fr; margin-top: 0; padding-top: 0; border-top: 0; }
.paired .headline { font-size: clamp(19px, 1.5vw, 22px); margin-bottom: 8px; }
.paired p { margin: 0; }

/* Lists marked with the lean bar */
.bullets, .checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; padding: 0; list-style: none; margin: 26px 0; }
.bullets.single, .checklist { grid-template-columns: 1fr; }
.bullets li, .checklist li { position: relative; padding-left: 28px; }
.bullets li::before, .checklist li::before { content: ""; position: absolute; left: 1px; top: .68em; width: 15px; height: 4px; background: var(--cyan); transform: skewX(-8deg); }

/* Ledger: numeral, headline, body */
.ledger { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ledger > * { display: grid; grid-template-columns: 110px 1fr 1.25fr; gap: 20px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.ledger > :first-child { border-top: 2px solid var(--strong-line); }
.ledger h3, .ledger p { margin: 0; }

/* Box grid: numbered boxes, three across (Outcomes). Each box carries its own rules so reveals don't leave gaps. */
.box-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.box-grid > li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(26px, 2.8vw, 38px) clamp(22px, 2.4vw, 34px) clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-top: 2px solid var(--strong-line); background: var(--paper); transition: background-color .4s var(--ease); }
.box-grid > li::before { content: ""; position: absolute; left: -1px; right: -1px; top: -2px; height: 4px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.box-grid > li:hover { background: var(--paper-tint); }
.box-grid > li:hover::before { transform: scaleX(1); }
.box-grid .num-outline { margin-bottom: 14px; font-size: clamp(36px, 3.4vw, 48px); }
.box-grid h3 { margin: 0; font-size: clamp(19px, 1.6vw, 23px); text-transform: uppercase; }
.box-grid p { margin: 0; }

/* Photo timeline: numeral, image, headline and body (How It Works) */
.photo-timeline { list-style: none; margin: 48px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.photo-timeline > li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 3.5vw, 48px); align-items: center; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.photo-timeline > li:first-child { border-top: 2px solid var(--strong-line); }
.photo-timeline > li { position: relative; }
.photo-timeline .num-outline { align-self: start; }
/* Spine: a lean cyan line runs down from each numeral towards the next step */
.photo-timeline > li::after { content: ""; position: absolute; left: 14px; top: calc(clamp(32px, 4vw, 48px) + clamp(48px, 5vw, 66px)); bottom: 0; width: 3px; background: linear-gradient(var(--cyan), rgb(47 184 214 / 0)); transform-origin: top; }
.photo-timeline > li:last-child::after { display: none; }
.photo-timeline img, .media-list img { transition: transform .6s var(--ease), filter .6s var(--ease); }
.photo-timeline > li:hover img, .media-list > li:hover img { transform: scale(1.025); filter: saturate(1.15); }
.photo-timeline img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.photo-timeline .headline { margin: 0 0 10px; text-transform: uppercase; }
.photo-timeline p { margin: 0; max-width: 34em; }

/* Media list: image beside headline and body (How It Works) */
.media-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.media-list > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 3.5vw, 48px); align-items: center; padding: clamp(28px, 3.5vw, 40px) 0; border-top: 1px solid var(--line); }
.media-list > li:first-child { border-top: 2px solid var(--strong-line); }
.media-list img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.media-list .headline { margin: 0 0 10px; }
.media-list p { margin: 0; max-width: 34em; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(32px, 4vw, 60px); margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--strong-line); }
.facts .headline { margin-bottom: 10px; }
.facts p { margin: 0; }
.facts.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Icon list: icon tile beside a short headline and line of copy (Formats) */
.icon-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 22px; }
.icon-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.icon-list img { width: 48px; height: 48px; padding: 11px; background: var(--storm-900); display: block; }
.icon-list h3 { margin: 2px 0 4px; font-size: clamp(18px, 1.5vw, 21px); }
.icon-list p { margin: 0; }

/* Format cards: three offers side by side on a dark band (Formats) */
.format-cards { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--strong-line); }
.format-cards > li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(28px, 3vw, 40px) clamp(20px, 2.6vw, 36px) clamp(32px, 3.5vw, 44px); border-left: 1px solid var(--line); transition: background-color .4s var(--ease); }
.format-cards > li:first-child { border-left: 0; padding-left: 0; }
.format-cards > li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.format-cards > li:hover::before { transform: scaleX(1); }
.format-cards h3 { margin: 0; font-size: clamp(24px, 2.3vw, 32px); text-transform: uppercase; }
.format-cards p:not(.chip) { margin: 0; }
.format-cards .chip { margin: 0; }

/* Gallery collage: a large lead shot, one offset top right, one overlapping the lead's corner */
.gallery-band { padding: var(--section) 0; overflow: hidden; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(10, 1fr); aspect-ratio: 16 / 8.6; }
.gallery figure { position: relative; margin: 0; overflow: hidden; background: var(--storm-950); }
.gallery figure:nth-child(1) { grid-area: 1 / 1 / 9 / 9; }
.gallery figure:nth-child(2) { grid-area: 1 / 9 / 5 / 13; margin: clamp(24px, 3vw, 44px) 0 0 clamp(14px, 1.4vw, 20px); }
.gallery figure:nth-child(3) { grid-area: 5 / 7 / 11 / 13; z-index: 2; outline: clamp(8px, .9vw, 12px) solid var(--storm-900); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; background: rgb(11 13 16 / .82); color: var(--ink-50); font: 700 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.gallery figcaption::before { content: ""; width: 18px; height: 4px; background: var(--cyan); transform: skewX(-8deg); transform-origin: left; transition: width .5s var(--ease); }
.gallery figure:hover figcaption::before { width: 32px; }
.gallery figcaption span { color: var(--cyan); }

.cta-band .band-title { max-width: 16em; }
/* minmax(0, 1fr): the marquee track is wider than the screen; let the column shrink and the marquee clip it */
.clients { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 80px); }
.clients .marquee { margin-top: 20px; }

/* Scroll-linked video still: grows from an inset frame to full bleed (see Motion) */
.reel { background: var(--storm-950); }
.reel-stage { position: relative; }
.reel-frame { position: relative; height: min(80vh, 56.25vw); margin: 0; overflow: hidden; }
.reel-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(11 13 16 / .92), rgb(11 13 16 / .5) 22%, rgb(11 13 16 / 0) 50%), linear-gradient(90deg, rgb(11 13 16 / .7), rgb(11 13 16 / 0) 45%); }
.reel-caption { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 48px); z-index: 1; }
.reel-caption .kicker { margin-bottom: 18px; }

/* Client logo strip: two identical tracks scroll as one */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); }
.marquee-track { display: flex; flex: none; gap: 20px; margin: 0; padding: 0 20px 0 0; list-style: none; }
.logo-slot { display: flex; align-items: center; justify-content: center; width: 190px; height: 76px; padding: 0 12px; text-align: center; }
.logo-slot img { max-width: 100%; max-height: 44px; width: auto; height: auto; filter: grayscale(1) brightness(1.6); }
.logo-slot.placeholder { border: 1px dashed var(--storm-600); font: 700 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.marquee-toggle { margin-top: 18px; padding: 6px 0; border: 0; background: none; color: var(--label); font: 700 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.marquee-toggle:hover { color: var(--accent); }
.marquee-toggle[hidden] { display: none; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.form { background: var(--paper); color: var(--text-soft); padding: 36px; border-top: 2px solid var(--text); --heading: var(--text); --label: var(--text-mute); --accent: var(--cyan-text); }
.field { margin-bottom: 18px; }
.field label { display: block; font: 700 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--label); margin-bottom: 7px; }
.field .req { color: var(--error); }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid #7a8994; border-radius: 0; background: var(--paper); color: var(--text); font: 500 17px/1.4 var(--body); }
.field input:focus, .field textarea:focus { border-color: var(--cyan-text); outline: 2px solid var(--cyan-text); outline-offset: 0; }
.field textarea { height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; color: var(--text-mute); margin: 18px 0 0; }
.form-status { margin: 0 0 18px; padding: 14px 16px; border-left: 4px solid var(--error); background: #fdf2f2; color: #6b1414; }
.form-status:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 16px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cyan-text); }
.check + .hp + .btn { margin-top: 10px; }
.narrow-form { max-width: calc(600px + 2 * var(--gutter)); }
.stay-connected { margin: 28px 0 0; text-align: center; }
.stay-connected a { color: var(--accent); }

/* Legal pages */
.text-page { max-width: calc(760px + 2 * var(--gutter)); }
.text-page h2 { font-size: 28px; margin-top: 44px; }
.text-page a { color: var(--accent); }
.text-page h3 { font-size: 21px; margin: 28px 0 8px; }
.text-page .table-wrap { overflow-x: auto; margin: 18px 0; }
.text-page table { width: 100%; border-collapse: collapse; font-size: 16px; }
.text-page th, .text-page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.text-page th { font-weight: 700; color: var(--heading); border-bottom: 2px solid var(--strong-line); }
.text-page code { font-family: var(--mono); font-size: .85em; overflow-wrap: anywhere; }

/* Footer */
.footer { padding: 48px 0 30px; border-top: 1px solid var(--line); background: var(--storm-950); }
.footer .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { max-width: 520px; }
.footer p { font-size: 15px; line-height: 1.5; color: var(--ink-500); }
.footer .logo { width: 150px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font: 700 14px/1.6 var(--display); }
.footer-links a, .footer-legal a { color: var(--ink-400); text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: var(--cyan); }
.footer-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.footer .footer-legal p { margin: 0; font: 500 12px/1.6 var(--mono); max-width: none; }

@media (max-width: 1000px) {
  .intro-grid, .question-band { grid-template-columns: 1fr; }
  .split .bullets, .split .paired { grid-template-columns: 1fr; }
  .ledger > * { grid-template-columns: 80px 1fr; gap: 12px 20px; }
  .ledger .num-outline { grid-row: span 2; }
  .ledger p { grid-column: 2; }
  .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .photo-timeline > li { grid-template-columns: 56px 1fr; align-items: start; }
  .photo-timeline > li > div { grid-column: 2; }
  .facts.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .links { display: none; }
  .links.open { display: flex; position: absolute; left: 0; right: 0; top: 78px; background: var(--storm-950); padding: 28px var(--gutter); flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--line); }
  .menu { display: block; }
  .hero { min-height: 640px; padding-top: 150px; background: linear-gradient(0deg, var(--storm-950) 22%, rgb(11 13 16 / .82) 72%, rgb(11 13 16 / .45)), var(--hero-image-sm, var(--hero-image, url("../images/hero-fleet-1280.webp"))) 75% center / cover var(--storm-950); }
  .hero { padding-bottom: 84px; }
  .hero-video::after { background: linear-gradient(0deg, rgb(11 13 16 / .92) 22%, rgb(11 13 16 / .7) 72%, rgb(11 13 16 / .4)); }
  .video-cover { min-height: 560px; }
  .split, .form-wrap { grid-template-columns: 1fr; }
  .split .image { min-height: 300px; }
  .split.image-first .image { order: -1; }
  .facts, .facts.five, .fact-strip, .tiles.three { grid-template-columns: 1fr; }
  .format-cards { grid-template-columns: 1fr; }
  .format-cards > li { padding-left: 0; padding-right: 0; border-left: 0; border-top: 1px solid var(--line); }
  .format-cards > li:first-child { border-top: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 8px; aspect-ratio: auto; }
  .gallery figure:nth-child(n) { grid-area: auto; margin: 0; outline: 0; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .gallery img { height: auto; aspect-ratio: 16 / 9; }
  .footer .inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .kicker, .cover-foot { letter-spacing: .12em; }
  .quote::before { font-size: 64px; }
  .logo-slot { width: 150px; height: 64px; }
  .hero .cta-row { flex-wrap: nowrap; gap: 14px; }
  .hero .btn { flex: 1; padding: 8px 10px; font-size: 12px; letter-spacing: .04em; }
  .cta-row.pair { gap: 14px; }
  .cta-row.pair .btn { padding: 8px 10px; font-size: 12px; letter-spacing: .04em; }
  .page-hero .title { font-size: clamp(30px, 9.6vw, 40px); }
  .bullets, .gallery, .tiles, .tiles.three { grid-template-columns: 1fr; }
  .split .copy { padding: 56px var(--gutter); }
  .form { padding: 24px; }
  .statement { padding-left: 18px; }
  .ledger > * { grid-template-columns: 56px 1fr; gap: 10px 12px; padding: 26px 0; }
  .photo-timeline > li { grid-template-columns: 1fr; gap: 16px; }
  .photo-timeline > li::after { display: none; }
  .photo-timeline > li > div { grid-column: auto; }
  .media-list > li { grid-template-columns: 1fr; gap: 16px; }
  .box-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero .fact-strip { gap: 16px; }
  .hero .fact-strip dd { font-size: 18px; }
}

/* Motion. Everything is visible without JavaScript and for reduced-motion visitors.
   site.js tags blocks below the fold with .r (or .r-wipe for images) and adds .in as they scroll into view. */
@media (prefers-reduced-motion: no-preference) {
  /* Covers settle in on load */
  :is(.hero, .cover) .container > * { animation: rise .9s var(--ease) both; }
  :is(.hero, .cover) .container > :nth-child(2) { animation-delay: .12s; }
  :is(.hero, .cover) .container > :nth-child(3) { animation-delay: .26s; }
  :is(.hero, .cover) .container > :nth-child(4) { animation-delay: .4s; }
  :is(.hero, .cover) .container > :nth-child(5) { animation-delay: .54s; }
  :is(.hero, .cover) .container > :nth-child(n+6) { animation-delay: .68s; }
  :is(.hero, .cover) .kicker::before { animation: bar .8s var(--ease) .25s both; }
  .cover::after { animation: settle 2.4s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  @keyframes bar { from { transform: skewX(-8deg) scaleX(0); } }
  @keyframes settle { from { opacity: 0; transform: scale(1.06); } }

  /* Blocks rise in */
  .r { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .r.in { opacity: 1; transform: none; }
  .chip.r { transform: skewX(-8deg) translateY(14px); }
  .chip.r.in { transform: skewX(-8deg); }

  /* Lean bars draw, numerals slide in */
  :is(.kicker, .section-head).r::before { transform: skewX(-8deg) scaleX(0); transition: transform .7s var(--ease) calc(var(--i, 0) * 90ms + .2s); }
  :is(.kicker, .section-head).r.in::before { transform: skewX(-8deg) scaleX(1); }
  .r .num-outline { display: inline-block; opacity: 0; transform: translateX(-20px); transition: opacity .7s var(--ease) .15s, transform .8s var(--ease) .15s; }
  .r.in .num-outline { opacity: 1; transform: none; }

  /* Highlights sweep across the line */
  .hl.r-hl { background-size: 0% 38%; transition: background-size 1.1s var(--ease) .45s; }
  .hl.r-hl.in { background-size: 100% 38%; }

  /* Images uncover behind a leaning edge */
  .r-wipe { clip-path: polygon(0 0, 0 0, -14% 100%, 0 100%); transition: clip-path 1.3s var(--ease) calc(var(--i, 0) * 140ms); }
  .r-wipe.in { clip-path: polygon(0 0, 114% 0, 100% 100%, 0 100%); }

  /* Gallery: each shot uncovers in turn while the photo settles from a slight zoom */
  .gallery figure.r-wipe { transition-duration: 1.4s; }
  .gallery figure:nth-child(2).r-wipe { transition-delay: .25s; }
  .gallery figure:nth-child(3).r-wipe { transition-delay: .5s; }
  .gallery figure.r-wipe img { transform: scale(1.14); transition: transform 2s var(--ease) var(--d, 0s); }
  .gallery figure.r-wipe.in img { transform: none; }
  .gallery figure.r-wipe.in:hover img { transform: scale(1.04); transition-duration: 1.2s; transition-delay: 0s; }
  .gallery figure.r-wipe figcaption { opacity: 0; translate: -16px 0; transition: opacity .7s var(--ease), translate .8s var(--ease); }
  .gallery figure.r-wipe.in figcaption { opacity: 1; translate: none; transition-delay: calc(var(--d, 0s) + .9s); }
  .gallery figure:nth-child(2) { --d: .25s; }
  .gallery figure:nth-child(3) { --d: .5s; }

  /* Client logos drift sideways */
  .marquee-track { animation: marquee 45s linear infinite; }
  .marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-100%); } }

  /* Scroll-linked effects where the browser supports them; elsewhere the layout is static */
  @supports (animation-timeline: view()) {
    .image-band { --py: 15%; animation: drift linear both; animation-timeline: view(); }
    .image-band.img-clipper-win { --py: 55%; }
    @keyframes drift { from { background-position-y: clamp(0%, calc(var(--py) - 15%), 100%); } to { background-position-y: clamp(0%, calc(var(--py) + 15%), 100%); } }

    .reel { height: 230vh; view-timeline: --reel block; }
    .reel-stage { position: sticky; top: 78px; height: calc(100svh - 78px); overflow: hidden; }
    .reel-frame { height: 100%; animation: reel-open linear both; animation-timeline: --reel; animation-range: contain 0% contain 65%; }
    .reel-frame img { animation: reel-zoom linear both; animation-timeline: --reel; animation-range: contain 0% contain 65%; }
    .reel-caption { animation: rise linear both; animation-timeline: --reel; animation-range: contain 50% contain 75%; }
    @keyframes reel-open { from { clip-path: inset(14% 18%); } to { clip-path: inset(0); } }
    /* Gallery layers drift at different speeds as the band scrolls past (desktop only) */
    @media (min-width: 851px) {
      .gallery figure:nth-child(2) { animation: drift-up linear both; animation-timeline: view(); --far: 40px; }
      .gallery figure:nth-child(3) { animation: drift-up linear both; animation-timeline: view(); --far: 70px; }
      @keyframes drift-up { from { translate: 0 var(--far); } to { translate: 0 calc(var(--far) * -1); } }
    }
    @keyframes reel-zoom { from { transform: scale(1.18); } to { transform: scale(1); } }
  }
}

/* How It Works timeline spine draws as each step scrolls through */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .photo-timeline > li::after { animation: spine linear both; animation-timeline: view(); animation-range: entry 40% cover 60%; }
    @keyframes spine { from { transform: scaleY(0); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; gap: 16px 20px; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
