
/* =====================================================================
   EDIT HERE: colours, type and spacing for the whole page
   ===================================================================== */
:root {
  /* colours */
  --ink: #16151B;                    /* text, rules, buttons            */
  --ink-muted: rgba(22, 21, 27, .56); /* section headings                */
  --ink-caption: rgba(22, 21, 27, .48);/* captions, byline, footer        */
  --rule: rgba(22, 21, 27, .16);      /* hairlines                       */
  --paper: #EFEEF3;                  /* page background                 */
  --violet: #8447FF;                 /* the one accent: quote mark, chart */
  --placeholder: #E4E2EA;            /* shown while an image loads      */
  --night: #16151D;                  /* film background                 */

  /* type */
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --size-title: clamp(36px, 3.6vw, 54px);   /* the headline and the closing question */
  --size-heading: clamp(28px, 2.4vw, 36px); /* section headings */
  --size-body: 18px;
  --size-quote: 22px;
  --size-small: 13px;                       /* captions, byline, footer */

  /* layout */
  --margin: 48px;                           /* page side margin */
  --column: clamp(640px, 50vw, 760px);      /* reading column, half the screen like Airbound */
  --ease: cubic-bezier(.19, 1, .22, 1);
}

@media (max-width: 820px) {
  :root { --margin: 20px; --column: 100%; --size-body: 17px; --size-quote: 20px; }
}

/* =====================================================================
   Base
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0 var(--margin);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.42;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; background: var(--placeholder); }
.column { width: var(--column); max-width: 100%; margin-left: auto; margin-right: auto; }

/* =====================================================================
   Navigation
   ===================================================================== */
.nav {
  position: fixed; z-index: 40; left: 0; right: 0; top: 0;
  padding: env(safe-area-inset-top, 0px) var(--margin) 0;
  background: rgba(239, 238, 243, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav-inner { height: 72px; display: flex; align-items: center; gap: 40px; }
.logo { width: 124px; height: auto; display: block; color: var(--ink); }
.logo path, .logo .mi { fill: currentColor; }
.logo .mv { fill: var(--violet); }
.nav-link { font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.nav-link.current { color: var(--ink-caption); }
.button-outline {
  margin-left: auto; display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.button-outline:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 820px) {
  .nav-inner { height: 60px; gap: 16px; }
  .nav-link { display: none; }
  .logo { width: 108px; }
  .button-outline { height: 36px; padding: 0 14px; font-size: 13px; }
}

main { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
@media (max-width: 820px) { main { padding-top: calc(76px + env(safe-area-inset-top, 0px)); } }

/* =====================================================================
   Wide images and the film: they run margin to margin
   ===================================================================== */
.wide { margin: 0; width: 100%; }
.wide img, .wide .film { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; }
.hero img { aspect-ratio: 1.8 / 1; object-position: 50% 27%; }
@media (max-width: 820px) {
  .wide img, .hero img { aspect-ratio: 3 / 2; }
  .wide .film { aspect-ratio: 16 / 9; }
}
.opener { margin-top: 64px; }

/* the launch film under the headline: same width as the text column, so it sits
   with the title as one block and stays smaller than the hero image */
.intro-film { margin-top: 40px; margin-bottom: 0; }
.intro-film .film { width: 100%; aspect-ratio: 16 / 9; }
@media (max-width: 820px) { .intro-film { margin-top: 32px; } }

/* =====================================================================
   Headline, sections, paragraphs
   ===================================================================== */
.head { padding-top: clamp(56px, 6vw, 80px); }
h1 { margin: 0; font-weight: 500; font-size: var(--size-title); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.byline { margin: 24px 0 0; font-size: var(--size-small); line-height: 1.35; color: var(--ink-caption); }

hr { border: 0; border-top: 1px solid var(--rule); margin-top: 48px; margin-bottom: 0; }
section { padding-top: 80px; }
section.after-opener { padding-top: 84px; }
h2 { margin: 0 0 32px; font-weight: 500; font-size: var(--size-heading); line-height: 1.02; letter-spacing: -.02em; color: var(--ink-muted); text-wrap: balance; }
p { margin: 0 0 24px; text-wrap: pretty; }
section > p:last-child { margin-bottom: 0; }
.key { font-weight: 600; }                 /* the sentences set in bold */
@media (max-width: 820px) { section { padding-top: 64px; } }

/* =====================================================================
   Figures and captions
   ===================================================================== */
figure { margin: 48px 0; padding: 0; }
figcaption { margin-top: 14px; font-size: var(--size-small); line-height: 1.35; color: var(--ink-caption); }
.figure-title { margin: 0 0 20px; font-size: 15px; font-weight: 600; color: var(--ink-muted); }
@media (max-width: 820px) { figure { margin: 40px 0; } }

/* Keep every chart and drawing inside the reading column on all screens. */
.scroll-x { width: 100%; max-width: 100%; min-width: 0; }
.scroll-x svg { display: block; width: 100%; max-width: 100%; min-width: 0; height: auto; }
.scroll-x .mobile-graphic { display: none; }
@media (max-width: 600px) {
  .scroll-x .desktop-graphic { display: none; }
  .scroll-x .mobile-graphic { display: block; }
  .scroll-x .chart-mobile text { font-size: 16px; }
  .chart-mobile path { vector-effect: non-scaling-stroke; }
  .scroll-x .lever-mobile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .lever-mobile p { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
  .lever-mobile p b { color: var(--ink); margin-right: 4px; }
  .lever-mobile .lever-batch { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; border-top: 1px solid var(--rule); padding-top: 20px; }
  .lever-mobile .lever-batch p { margin: 0; }
  .scroll-x .process-mobile { display: grid; gap: 22px; }
  .process-mobile > div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 20px; align-items: center; }
  .process-mobile p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
}

/* =====================================================================
   Quotes: italic, with the quote mark in the accent
   ===================================================================== */
blockquote { position: relative; margin: 56px 0; padding: 0 0 0 62px; font-style: italic; font-size: var(--size-quote); line-height: 1.36; letter-spacing: -.012em; }
blockquote::before { content: "\201C"; position: absolute; left: 8px; top: -.08em; font-size: 52px; line-height: 1; color: var(--violet); font-style: italic; }
@media (max-width: 820px) { blockquote { padding-left: 38px; } blockquote::before { left: 0; font-size: 44px; } }

/* =====================================================================
   The chart
   ===================================================================== */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { fill: none; stroke: var(--ink); stroke-opacity: .09; }
.chart .axis { fill: none; stroke: var(--ink); stroke-opacity: .3; }
.chart .line { fill: none; stroke: var(--ink); stroke-opacity: .6; stroke-width: 1.25; }
.chart .line.accent { stroke: var(--violet); stroke-opacity: 1; stroke-width: 1.75; }
.chart .line.dashed { stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart .dot { fill: var(--paper); stroke: var(--ink); stroke-opacity: .7; stroke-width: 1.25; }
.chart .dot-filled { fill: var(--ink); stroke: var(--ink); }
.chart .dot.accent { stroke: var(--violet); stroke-opacity: 1; stroke-width: 1.5; }
.chart .dot-filled.accent { fill: var(--violet); stroke: var(--violet); }
.chart text { font-family: var(--font); font-size: 13px; fill: var(--ink); }
.chart .y-label, .chart .x-sub { fill-opacity: .48; }
.chart .x-label { font-weight: 600; fill-opacity: .72; }
.chart .series { font-weight: 500; fill-opacity: .72; }
.chart .series.accent { fill: var(--violet); fill-opacity: 1; font-weight: 600; }

/* =====================================================================
   The line drawings (process, levers)
   o = outline   d = dashed (not made yet)   t = thin   c = centre line
   v = violet (the answer)   w = paper fill   text.m = muted label
   ===================================================================== */
.drawing { display: block; width: 100%; height: auto; overflow: visible; }
.drawing .o  { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.drawing .d  { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 5 4; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
.drawing .t  { fill: none; stroke: var(--ink); stroke-width: .75; vector-effect: non-scaling-stroke; opacity: .6; }
.drawing .c  { fill: none; stroke: var(--ink); stroke-width: .75; stroke-dasharray: 9 3 2 3; vector-effect: non-scaling-stroke; opacity: .55; }
.drawing .v  { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.drawing .vd { fill: none; stroke: var(--violet); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.drawing .w  { fill: var(--paper); }
.drawing text { font: 500 10.5px var(--font); fill: var(--ink); letter-spacing: .06em; }
.drawing text.m { fill: var(--ink-caption); }

/* =====================================================================
   The end: closing question, signature, buttons, footer
   ===================================================================== */
.end { padding-top: 72px; }
.closing-question { margin: 0; font-weight: 500; font-size: var(--size-title); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.signature { margin: 40px 0 0; font-size: 15px; line-height: 1.4; }
.signature b { font-weight: 600; }
.signature span { display: block; color: var(--ink-caption); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 32px 0 0; }
.button { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.text-link { font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
footer { margin-top: 96px; padding: 20px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); font-size: var(--size-small); color: var(--ink-caption); }

/* =====================================================================
   Reveal on scroll (switched off for people who prefer less motion)
   ===================================================================== */
.reveal { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Load the CDN film only after an explicit play action. */
.film { position: relative; overflow: hidden; background: var(--night); }
.film-launch { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--night); }
.film-launch img { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 72px; height: 72px; padding-left: 4px; background: rgba(22, 21, 30, .65); color: var(--paper); font-size: 26px; border: 1px solid rgba(239, 238, 243, .3); }
.film-launch:hover .film-play { background: var(--violet); }
.film-launch:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.film video:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.film-error { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px; color: #fff; background: #111; font-size: 13px; text-align: center; }
@media (max-width: 640px) { .film-play { width: 60px; height: 60px; } }

.film-launch[hidden] { display: none; }
