/* Homepage light restyle. The light sibling of landing-home-dark.css — imported
   only by public/index.html. Same page and display face as the dark one; the
   ink is simply not inverted, and the hero is drawn in code, not filmed.

   landing-v2.css is already a complete light world (light canvas, white cards,
   washed panels, one dark ink CTA band as the page's heaviest object, and a
   photo hero whose `.hero-rail-line` was written as "the hand-off line back to
   the light page below"). So this file adds only what the dark overlay
   contributed that was never *about* darkness: the Syne display face and the
   hero entrance. The hero picture is not a file: it is the coded train below.

   Do not @import this from landing-v2.css or marketing-layout.css — those leak
   into the SPA and the light marketing shell. */

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/syne-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/syne-latin-700-normal.woff2') format('woff2');
}

body.home-light {
  --display: 'Syne', var(--sans);
  color-scheme: light;
}

/* Browser surfaces the palette should own, not the UA. The dark page themed
   these; the light one has the same obligation. */
body.home-light ::selection {
  background: rgba(22,62,104, 0.18);
  color: var(--v-fg);
}
body.home-light :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Display face: homepage headlines and labels only. Nav/body/buttons stay Geist. */
body.home-light .kicker,
body.home-light .eyebrow,
body.home-light h1,
body.home-light h2,
body.home-light h3 {
  font-family: var(--display);
}

/* Sentence case since the 2026-10 soft refresh — wide tracking only suits caps. */
body.home-light .kicker,
body.home-light .eyebrow {
  letter-spacing: 0.01em;
}

/* ---- hero ---- */
/* Copy on the base hero's own paper wash, with a train drawn in code beside
   and behind it (see "the train" below). It replaced a rendered still plus a
   3.7 MB video loop: nothing is downloaded for the picture now, and the
   headline is the LCP element with nothing queued ahead of it.

   Wide: the hero is as tall as its copy, and the train runs along a rail set
   level with the buttons. The locomotive and first cars sit sharp in the open
   space on the right; the rest of the train carries on behind the copy as a
   faint, blurred ghost, so when it pulls in it passes behind the headline and
   comes into focus as it clears it.
   Stacked (920px and under): there is no beside, so the train is a band under
   the copy. */
body.home-light header.hero.hero-bright {
  --hero-pad-b: clamp(48px, 5vw, 72px);
  /* x where the train is clear of the copy: the column's left edge (the same
     max() the .hero-in centring resolves to) plus the 520px paragraph, the
     widest thing at the train's height. The headline's longer first line sits
     above the roofs. */
  --copy-end: calc(max(var(--gutter), (100vw - var(--hero-maxw)) / 2) + 540px);
  /* the rail's seat: bottom padding plus the 48px button row */
  --train-seat: calc(var(--hero-pad-b) + 50px);
  color: var(--v-fg);
  padding-top: calc(var(--nav-total) + clamp(24px, 2.8vw, 40px));
  padding-bottom: var(--hero-pad-b);
}
body.home-light header.hero.hero-bright .hero-in {
  z-index: 3;
  width: 100%;
  grid-template-columns: 1fr;
}
body.home-light header.hero.hero-bright .hero-rail-line {
  z-index: 4;
  background: rgba(16, 38, 56, 0.10);
}
body.home-light header.hero.hero-bright .hero-rail-line span {
  background: linear-gradient(90deg, rgba(22,62,104,0) 0%, rgba(22,62,104,.85) 50%, rgba(22,62,104,0) 100%);
}
body.home-light header.hero.hero-bright .hero-text {
  max-width: 640px;
}
body.home-light header.hero.hero-bright h1 {
  font-size: clamp(40px, 4.9vw, 68px);
}
body.home-light header.hero.hero-bright .hero-sub {
  max-width: 520px;
  color: #3f3f3f;
}
/* --brand-ink is the palette's deeper blue: 4.69:1 on the paper where --brand
   gives 3.41, and it matches the locomotive. */
body.home-light header.hero.hero-bright h1 .b {
  color: var(--brand-ink);
}
/* The 40px floor needs ~321px of line and a 360px phone has a 328px column —
   seven pixels of slack, and the sentence breaks to four lines by 320px. Give
   the floor somewhere to go. */
@media (max-width: 560px) {
  body.home-light header.hero.hero-bright h1 {
    font-size: clamp(30px, 7.2vw, 40px);
  }
}

body.home-light .hero-text > * {
  animation: home-rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.home-light .hero-text > *:nth-child(1) { animation-delay: 80ms; }
body.home-light .hero-text > *:nth-child(2) { animation-delay: 160ms; }
body.home-light .hero-text > *:nth-child(3) { animation-delay: 240ms; }
body.home-light .hero-text > *:nth-child(4) { animation-delay: 340ms; }

@keyframes home-rise-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* The hero already closes with its own bottom padding, its fade into the page
   canvas and the rail line, so a full --pad-section above the first section
   stacks a second gap on top of an ending that has already happened. Step it
   to the tight token — an existing rhythm in the system, not a new number.
   122px -> 86px at desktop, 76px -> 56px on a phone. Only the section that
   meets the hero; the rest of the page keeps its spacing. */
body.home-light #features {
  padding-top: var(--pad-section-tight);
}

/* The capsule sits on the art at rest. Base opacity (.82) is tuned for the flat
   wash and lets the tunnel read through the links; firm it up. */
body.home-light .nav-in {
  background: rgba(255, 255, 255, 0.92);
}

/* ---- the train ---- */
/* A side elevation in three flat values: ink, paper, and one amber for the
   cited passage and the lamp. Geometry only, no shading, so it stays a drawing
   and never tries to be the picture it replaced.

   The camera rides alongside: the train holds its place while sleepers, masts
   and the messenger wire stream past at one speed (--dt-v, in drawing units
   per second; every duration below is a distance divided by it, so changing
   the one number keeps track, masts and skyline in step).

   The drawing is 3200 units wide and anchored right. --train-h sets the scale
   (286 units tall); at 17.4vw nearly the whole train (1650 units + margin) is
   as wide as the viewport; the tail always runs off to the left. */
body.home-light header.hero.hero-bright {
  --train-h: clamp(160px, 17.4vw, 320px);
  --dt-v: 260;
  --dt-ink: var(--brand);
  --dt-paper: #fff;
  --dt-amber: #f3d078;
}
body.home-light .hero-train {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: var(--train-seat);
  height: var(--train-h);
  overflow: hidden;
  pointer-events: none;
  /* The frosted layer over the train where it runs behind the copy. These two
     numbers are how much of the train shows through it: .08 at the far left
     rising to .18 beside the column, then whole once clear. LOWER = a more
     solid, more opaque layer and a fainter train (Jordan's "more opaque" /
     "more solid" means lowering these, not raising them). */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0, rgba(0,0,0,.18) calc(var(--copy-end) - 70px), #000 calc(var(--copy-end) + 40px));
  mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0, rgba(0,0,0,.18) calc(var(--copy-end) - 70px), #000 calc(var(--copy-end) + 40px));
}
/* ...and out of focus. A blur over what is behind the copy, itself fading out
   to the right, so the train sharpens as it emerges. This is the one place the
   page uses backdrop blur, and it is doing depth of field, not glass. */
body.home-light .hero-veil {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: var(--train-seat);
  width: calc(var(--copy-end) + 20px);
  height: var(--train-h);
  pointer-events: none;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 200px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 200px), transparent 100%);
}
body.home-light .hero-train svg {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  height: 100%;
  width: calc(var(--train-h) * 3200 / 286);
  max-width: none;
}

/* values. Bare class selectors on purpose: the car body and masts are
   drawn once in <defs> and stamped with <use>, and Chromium will not match a
   selector whose ancestor (.hero-train) sits outside the stamped copy. */
.dt-ink { fill: var(--dt-ink); }
.dt-paper { fill: var(--dt-paper); }
.dt-tint { fill: #dfe6f0; }
.dt-soft { fill: #a9bcd3; }
.dt-faint { fill: rgba(22, 62, 104, 0.14); }
.dt-page { fill: var(--dt-paper); stroke: var(--dt-ink); stroke-width: 1.6; stroke-linejoin: round; }
.dt-fold { fill: #dfe6f0; stroke: var(--dt-ink); stroke-width: 1.6; stroke-linejoin: round; }
.dt-gangway { fill: var(--brand-ink); }
.dt-skirt-line { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; stroke-linecap: round; }
/* No wheels: a full-length underbody fairing with flush bogie covers, riding
   just clear of the rail over its own shadow. */
.dt-under { fill: var(--brand-ink); }
.dt-cover { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; stroke-linejoin: round; }
.dt-shadow { fill: rgba(4, 46, 87, 0.16); }
.dt-door { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.2; }
.dt-slide { fill: #f3f6fa; stroke: rgba(22, 62, 104, 0.3); stroke-width: 1; }
.dt-lines { fill: none; stroke: rgba(22, 62, 104, 0.26); stroke-width: 4; stroke-linecap: round; }
.dt-lines.dt-cited { stroke: rgba(22, 62, 104, 0.62); }
.dt-dots { fill: none; stroke: var(--dt-ink); stroke-width: 4; stroke-linecap: round; }
.dt-faint-line { fill: none; stroke: rgba(22, 62, 104, 0.3); stroke-width: 1; }
.dt-sprockets { fill: none; stroke: rgba(22, 62, 104, 0.3); stroke-width: 4; stroke-dasharray: 5 7; }
.dt-wave { fill: var(--dt-ink); }
.dt-mark { fill: var(--dt-amber); }
.dt-glass { fill: #cfdbea; }
.dt-mullion { fill: none; stroke: var(--dt-ink); stroke-width: 1.4; }
.dt-livery { fill: none; stroke: rgba(255, 255, 255, 0.34); stroke-width: 1.6; stroke-linecap: round; }
.dt-lamp { fill: none; stroke: #ffe29a; stroke-width: 3.6; stroke-linecap: round; }
.dt-panto { fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dt-rail { fill: var(--brand-ink); }
#dt-sleepers rect { fill: rgba(22, 62, 104, 0.34); }
.dt-contact { stroke: rgba(22, 62, 104, 0.42); stroke-width: 1.3; }
.dt-mast-post { fill: rgba(22, 62, 104, 0.3); }
.dt-mast-arm { fill: none; stroke: rgba(22, 62, 104, 0.3); stroke-width: 2.2; stroke-linejoin: round; }
.dt-mast-wire { fill: none; stroke: rgba(22, 62, 104, 0.26); stroke-width: 1.1; }
.dt-label {
  font: 600 14px/1 var(--mono);
  letter-spacing: 0.1em;
  fill: var(--dt-ink);
}
.dt-chip-n {
  font: 600 9px/1 var(--mono);
  text-anchor: middle;
  fill: #fff;
}
.dt-wordmark {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.26em;
  fill: rgba(255, 255, 255, 0.92);
}

/* Far behind the line, a skyline of pages drifts by at a sixth of the speed.
   It is the old tunnel of paper, kept as scenery: pale enough to be air, and
   masked so it only rises where the copy is not. Same scale as the train
   (600 units tall against the train's 286), standing on the rail. It also
   fades upward, and the hero clips whatever is left above the nav. */
body.home-light .hero-city {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: calc(var(--train-seat) + var(--train-h) * 22 / 286);
  width: 100%;
  height: calc(var(--train-h) * 600 / 286);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 66%), linear-gradient(0deg, #000 30%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 38%, #000 66%), linear-gradient(0deg, #000 30%, transparent 96%);
  mask-composite: intersect;
}
body.home-light .hero-city svg {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  height: 100%;
  width: calc(var(--train-h) * 4800 / 286);
  max-width: none;
}
.dt-tower { fill: rgba(22, 62, 104, 0.07); }
.dt-tower-b { fill: rgba(22, 62, 104, 0.045); }
.dt-tower-lines { fill: none; stroke: rgba(22, 62, 104, 0.07); stroke-width: 5; stroke-linecap: round; }
.hero-city .dt-far { animation: dt-far calc(1600s / (var(--dt-v) * 0.16)) linear infinite; }
@keyframes dt-far { to { transform: translateX(-1600px); } }

/* the world going by */
.dt-sleepers { animation: dt-sleepers calc(44s / var(--dt-v)) linear infinite; }
.dt-masts { animation: dt-masts calc(800s / var(--dt-v)) linear infinite; }
@keyframes dt-sleepers { to { transform: translateX(-44px); } }
@keyframes dt-masts { to { transform: translateX(-800px); } }

/* The one authored moment: the train pulls in from the left and settles. */
.dt-arrive {
  animation: dt-arrive 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@keyframes dt-arrive {
  from { transform: translateX(-1920px); }
  to { transform: translateX(0); }
}
/* the cargo at work */
.dt-mark,
.dt-typing,
.dt-progress,
.dt-chip,
.dt-bars rect,
.dt-wave rect {
  transform-box: fill-box;
}
/* PDF: the passage is found, then cited */
.dt-mark {
  transform-origin: 0 50%;
  animation: dt-mark 8s cubic-bezier(0.22, 1, 0.36, 1) 2.2s infinite both;
}
@keyframes dt-mark {
  0%, 8% { transform: scaleX(0); opacity: 1; }
  24%, 88% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}
.dt-chip {
  transform-origin: 50% 50%;
  animation: dt-chip 8s cubic-bezier(0.22, 1, 0.36, 1) 2.2s infinite both;
}
@keyframes dt-chip {
  0%, 24% { transform: scale(0.4); opacity: 0; }
  31%, 88% { transform: scale(1); opacity: 1; }
  96%, 100% { transform: scale(1); opacity: 0; }
}
/* DOCX: a line being written */
.dt-typing {
  transform-origin: 0 50%;
  animation: dt-type 6s linear 2.6s infinite both;
}
.dt-caret {
  /* rests at the end of the written line (reduced motion shows it there) */
  transform: translateX(142px);
  animation: dt-caret 6s linear 2.6s infinite both;
}
@keyframes dt-type {
  0%, 6% { transform: scaleX(0); }
  56%, 100% { transform: scaleX(1); }
}
@keyframes dt-caret {
  0%, 6% { transform: translateX(0); opacity: 1; }
  56% { transform: translateX(142px); opacity: 1; }
  64% { opacity: 0; }
  72% { opacity: 1; }
  80% { opacity: 0; }
  88%, 100% { transform: translateX(142px); opacity: 1; }
}
/* PPTX: the chart builds */
.dt-bars rect {
  transform-origin: 50% 100%;
  animation: dt-bar 7s cubic-bezier(0.22, 1, 0.36, 1) 3s infinite both;
}
.dt-bars rect:nth-child(2) { animation-delay: 3.12s; }
.dt-bars rect:nth-child(3) { animation-delay: 3.24s; }
.dt-bars rect:nth-child(4) { animation-delay: 3.36s; }
@keyframes dt-bar {
  0%, 4% { transform: scaleY(0.12); }
  20%, 100% { transform: scaleY(1); }
}
/* MP4: playback */
.dt-progress {
  transform-origin: 0 50%;
  animation: dt-progress 9s linear 2s infinite both;
}
@keyframes dt-progress {
  from { transform: scaleX(0.02); }
  to { transform: scaleX(1); }
}
/* MP3: the level moves */
.dt-wave rect {
  transform-origin: 50% 50%;
  animation: dt-wave 1.5s ease-in-out infinite alternate;
}
.dt-wave rect:nth-child(3n + 1) { animation-duration: 1.15s; animation-delay: -0.5s; }
.dt-wave rect:nth-child(3n + 2) { animation-duration: 1.8s; animation-delay: -1.1s; }
.dt-wave rect:nth-child(5n) { animation-duration: 0.95s; animation-delay: -0.2s; }
@keyframes dt-wave {
  from { transform: scaleY(0.38); }
  to { transform: scaleY(1); }
}

/* Off screen, nothing runs (class set by landing.js). */
.hero-train.is-paused *,
.hero-city.is-paused * {
  animation-play-state: paused !important;
}

/* Stacked: the copy column is the page width, so nothing can sit beside it.
   The train becomes a band under the copy, whole and in focus, riding the
   hero's bottom edge; the skyline and the blur have nowhere to be and go. */
@media (max-width: 920px) {
  body.home-light header.hero.hero-bright {
    padding-bottom: 0;
  }
  body.home-light header.hero.hero-bright .hero-in {
    padding-bottom: clamp(20px, 2vw, 28px);
  }
  body.home-light .hero-train {
    position: relative;
    bottom: auto;
    margin: 0 calc(-1 * var(--gutter));
    -webkit-mask-image: none;
    mask-image: none;
  }
  body.home-light .hero-city,
  body.home-light .hero-veil,
  body.home-light header.hero.hero-bright .hero-rail-line {
    display: none;
  }
  /* On a phone the power car and the car behind it are 440px with the nose's
     margin. Give the margin up before clipping the car. */
  body.home-light .hero-train svg {
    right: clamp(-50px, 100vw - 440px, 0px);
  }
}

/* Reduced motion: the train is simply there, stopped, with its cargo shown
   finished (passage marked, line written, chart built). */
@media (prefers-reduced-motion: reduce) {
  body.home-light .hero-text > * {
    animation: none;
  }
  .hero-train *,
  .hero-city * {
    animation: none !important;
  }
}
