/* ==========================================================================
   Veya — Core One
   Design direction F: the scroll story, on ink. Palette, type and voice rules
   are in CLAUDE.md.
   ========================================================================== */

/* ---------- Font: Sora, variable, self-hosted (weight axis 200–600) ------- */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url('assets/fonts/sora-latin.0pCRI6ao.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url('assets/fonts/sora-latin-ext.30KGJEuK.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ------------------------------------------------------- */

:root {
  /* Brand palette. */
  --bone:   #F3F0EA;
  --copper: #A8714B;
  --ink:    #17181C;

  /* Dark-theme steps from the Veya design system. Each is derived from the
     palette; the contrast figures are the design system's. */
  --raised:      #212228; /* cards on ink */
  --quiet:       #2C2D33; /* quiet fills */
  --line:        #34353B; /* hairlines, decorative only */
  --line-strong: #8E8980; /* control borders, 5.1:1 on ink */
  --muted:       #A39E95; /* supporting copy, 5.9:1 on ink */
  --copper-text: #C08660; /* copper for small text, 5.8:1 on ink */

  --bar-h:  64px;
  --gutter: clamp(16px, 5vw, 64px);
  --wide:   1320px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Reset -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Keep the scrollbar's space while the loading screen locks scrolling, so
     the page does not change width when it lifts. */
  scrollbar-gutter: stable;
  scroll-padding-top: var(--bar-h);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--copper); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--bone);
  color: var(--ink);
  border-radius: 0 0 12px 12px;
  transform: translateY(-110%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.u-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Controls that only work with JavaScript. The inline head script sets .js. */
html:not(.js) [data-needs-js] { display: none; }

.copper { color: var(--copper); }

/* ---------- Type --------------------------------------------------------- */

/* Micro labels in caps with wide tracking, as the brand deck sets them. See
   the open question in CLAUDE.md before changing this. */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-text);
}

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--bone); color: var(--ink); }
.btn--primary:hover { background: var(--muted); }
.btn--lg { font-size: 19px; padding: 14px 32px; }
.btn--block { display: flex; width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn:disabled:hover { background: var(--bone); }

.chip {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--bone); }
.chip[aria-pressed='true'] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.chip--lg { min-height: 48px; padding: 0 24px; font-size: 16px; }

/* ---------- Product bar -------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar-h);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Clear space around the lockup is one mark height: 28px, the lockup's height. */
.bar__brand { display: flex; align-items: center; gap: 28px; min-width: 0; }
.bar__logo { display: block; padding: 8px 0; }
/* 31px tall: the lockup's 96px minimum width (design system). */
.bar__logo img { height: 31px; width: auto; }
.bar__product {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

.bar__nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 15px; }
.bar__link { padding: 12px 0; }
.bar__link:hover { color: var(--copper-text); }

@media (max-width: 719px) {
  .bar__link { display: none; }
}
/* Below 440px the lockup, the product name (with the lockup's clear space)
   and "Join the list" do not fit on one line, so the product name goes. */
@media (max-width: 439px) {
  .bar__product { display: none; }
}
@media (max-width: 359px) {
  .bar__nav .btn { padding-inline: 16px; }
}

/* ---------- The scroll story --------------------------------------------
   Four layouts from one set of markup (the fourth, the phone render, is
   section 4 below):
   1. Stacked: text above a 16:9 image. Phones, and the no-JS base.
   2. Overlay: each scene is a 16:9 panel with its text on the image, as in
      the design. Wider screens where the canvas does not run.
   3. Live (.story.is-live): main.js pins the stage under the bar, draws the
      frames on the canvas and fades each scene's text in over its pause.
   ------------------------------------------------------------------------ */

.story__canvas { display: none; }

.scene { position: relative; padding-top: 56px; }

.scene__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-inline: var(--gutter);
}

.scene__media {
  position: relative;
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.scene__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene__waves {
  position: absolute;
  left: 37.5%;
  top: 30%;
  width: 10%;
  height: 40%;
}

/* The clasp sits off-centre in these two, so crop square around it. */
.scene--health .scene__media,
.scene--configurator .scene__media { aspect-ratio: 1 / 1; }
.scene--health .scene__media img { object-position: 100% 50%; }
.scene--configurator .scene__media img { object-position: 0% 50%; }

.scene__display {
  font-size: clamp(40px, 7cqw, 112px);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.scene__heading {
  font-size: clamp(30px, 4.2cqw, 64px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.scene--sensing .scene__heading { font-size: clamp(30px, 3.4cqw, 52px); line-height: 1; }
.scene__statement {
  font-size: clamp(36px, 5.6cqw, 88px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.035em;
}
.scene__battery {
  font-size: clamp(56px, 7.6cqw, 120px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.scene__battery span {
  display: block;
  margin-top: 16px;
  font-size: clamp(22px, 2.4cqw, 32px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0;
}
.scene__note { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.scene--one-core .scene__note { font-size: 18px; }

.config__name {
  margin-top: 20px;
  font-size: clamp(24px, 2.8cqw, 40px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.scene--configurator .scene__note { margin-top: 12px; }

/* A slow nudge down towards the story, above the hero button. */
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero__arrow { color: var(--bone); animation: nudge 2.2s var(--ease) infinite; }
.hero__sub { font-size: clamp(18px, 1.7cqw, 24px); font-weight: 300; line-height: 1.4; color: var(--muted); }
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50%      { transform: translateY(6px); opacity: 1; }
}

.picker { display: flex; flex-direction: column; gap: 12px; }
.picker__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.picker__options { display: flex; flex-wrap: wrap; gap: 10px; }

.scene--hero .scene__copy,
.scene--one-core .scene__copy,
.scene--battery .scene__copy { align-items: center; text-align: center; }
.scene--one-core .scene__note { margin-inline: auto; }

/* 2. Overlay ------------------------------------------------------------- */

@media (min-width: 1024px) {
  .scene {
    padding-top: 0;
    aspect-ratio: 16 / 9;
    container-type: size;
    overflow: hidden;
  }

  .scene__media,
  .scene--health .scene__media,
  .scene--configurator .scene__media {
    position: absolute;
    inset: 0;
    margin: 0;
    aspect-ratio: auto;
  }
  .scene--health .scene__media img,
  .scene--configurator .scene__media img { object-position: 50% 50%; }

  .scene__copy {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 0 var(--gutter);
  }

  .scene--hero .scene__copy {
    justify-content: space-between;
    padding-top: 11cqh;
    padding-bottom: 7cqh;
  }

  .scene--health .scene__copy {
    justify-content: center;
    right: auto;
    width: calc(46cqw + var(--gutter));
    padding-right: 0;
  }

  .scene--configurator .scene__copy {
    justify-content: center;
    left: auto;
    width: calc(min(520px, 44cqw) + var(--gutter));
    padding-left: 0;
    gap: 32px;
  }

  .scene--one-core .scene__copy {
    justify-content: space-between;
    padding-top: 10cqh;
    padding-bottom: 8cqh;
  }

  .scene--sensing .scene__copy {
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    gap: 20px;
    padding-bottom: 6cqh;
  }
  .picker--end .picker__options { justify-content: flex-end; }

  .scene--battery .scene__copy { padding-top: 5cqh; }
}

/* 3. Live ---------------------------------------------------------------- */

.story.is-live { position: relative; }

.story.is-live .story__stage {
  position: sticky;
  top: var(--bar-h);
  height: calc(100vh - var(--bar-h));
  overflow: hidden;
}

.story.is-live .story__canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* main.js sizes this box to the part of the frame that is on screen. */
.story.is-live .story__scenes { position: absolute; }

.story.is-live .scene {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.story.is-live .scene.is-active { pointer-events: auto; }

/* The canvas draws these now, but keep the images for screen readers. Far off
   screen, so the lazy ones are not fetched until the reader reaches them in a
   layout that shows them; the canvas fetches the frames it needs itself. */
.story.is-live .scene__media {
  position: absolute;
  inset: auto;
  left: -10000px;
  top: 0;
  margin: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 4. Live, portrait (board F3) --------------------------------------------
   The phone render fills the screen. The bar slides away while the reader
   scrolls down the story and returns on scroll-up (main.js sets .bar-hidden).
   Positions are fractions of the screen, from F3 at 390x844. */

.phone-only { display: none; }

.bar { transition: transform 0.35s var(--ease); }
.bar-hidden .bar { transform: translateY(-100%); }

.story.is-live.is-portrait .story__stage {
  top: 0;
  height: 100vh;
  height: 100svh;
}

.story.is-live.is-portrait .scene { container-type: size; padding: 0; }
.story.is-live.is-portrait .phone-only { display: block; }
.story.is-live.is-portrait a.phone-only { display: inline-flex; }

.story.is-live.is-portrait .scene__copy {
  position: absolute;
  inset: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0 24px;
  text-align: center;
}

/* 1 Hero: headline above the bracelet, button below it. */
/* Top-placed text never starts under the bar, which slides back on scroll-up. */
.story.is-live.is-portrait .scene--hero .scene__copy { padding-top: max(15cqh, calc(var(--bar-h) + 16px)); }
.scene__kicker { font-size: 17px; font-weight: 300; }
.story.is-live.is-portrait .scene--hero .scene__display { margin-top: 12px; font-size: 48px; line-height: 1; }
.story.is-live.is-portrait .hero__cta { position: absolute; left: 24px; right: 24px; top: 60cqh; }

/* 2 Health: top left, in the ink beside the bracelet. */
.story.is-live.is-portrait .scene--health .scene__copy {
  right: auto;
  width: 214px;
  align-items: flex-start;
  padding: max(9cqh, calc(var(--bar-h) + 16px)) 0 0 20px;
  text-align: left;
}
.story.is-live.is-portrait .scene--health .eyebrow { letter-spacing: 0.12em; white-space: nowrap; }
.story.is-live.is-portrait .scene--health .scene__heading { margin-top: 14px; font-size: 27px; line-height: 1.12; }

/* 3 Configurator: the picker on a panel over the lower strap. */
.story.is-live.is-portrait .scene--configurator .scene__copy {
  /* Anchored to the bottom and sized by its content, so on a short screen it
     grows up over the clasp rather than cutting off the strap buttons. */
  top: auto;
  bottom: 0;
  min-height: 40cqh;
  left: 0;
  width: auto;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 20px 24px;
  text-align: left;
  background: rgb(23 24 28 / 0.9);
  border-top: 1px solid var(--line);
}
.story.is-live.is-portrait .config__name { margin-top: 8px; font-size: 19px; }
.story.is-live.is-portrait .scene--configurator .scene__note { margin-top: 4px; font-size: 13px; }
.story.is-live.is-portrait .picker { gap: 8px; }
.story.is-live.is-portrait .picker__label { display: none; }
.story.is-live.is-portrait .picker__options { gap: 8px; }
.story.is-live.is-portrait .chip { padding: 0 14px; font-size: 13px; }

/* 4 One core: line above Core One, detail below. */
.story.is-live.is-portrait .scene--one-core .scene__statement { margin-top: max(13cqh, calc(var(--bar-h) + 16px)); font-size: 40px; line-height: 1.05; }
.story.is-live.is-portrait .scene--one-core .scene__note {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 68cqh;
  font-size: 15px;
}

/* 5 Everyday sensing: heading at the top, tabs at the bottom. */
.story.is-live.is-portrait .scene--sensing .scene__copy {
  justify-content: space-between;
  padding: max(6cqh, calc(var(--bar-h) + 16px)) 12px 26px;
}
.story.is-live.is-portrait .scene--sensing .scene__heading { font-size: 26px; }
.story.is-live.is-portrait .picker--end .picker__options { justify-content: center; }

/* 6 Battery: the line at the top, a second waiting-list button below. */
.story.is-live.is-portrait .scene--battery .scene__copy { padding-top: max(13cqh, calc(var(--bar-h) + 16px)); }
.story.is-live.is-portrait .scene__battery { font-size: 76px; }
.story.is-live.is-portrait .scene__battery span { margin-top: 12px; font-size: 21px; }
.story.is-live.is-portrait .scene--battery .btn { position: absolute; top: 66cqh; }

/* ---------- Loading screen (board G1) ------------------------------------
   Shown at first paint, with JavaScript, wherever the live story will run:
   the same conditions main.js uses to pick a render. main.js hides it at
   once if it decides otherwise (save-data). */

.loader { display: none; }

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (min-aspect-ratio: 6/5) and (prefers-reduced-motion: no-preference),
       (max-aspect-ratio: 3/4) and (prefers-reduced-motion: no-preference) {
  .js .loader {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--ink);
    transition: opacity 0.6s ease;
  }
}

.js .loader.is-done { opacity: 0; pointer-events: none; }
.js .loader.is-gone { display: none; }
.is-loading, .is-loading body { overflow: hidden; }

.loader__mark { height: 56px; width: auto; }
.loader__line { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader__fill {
  height: 100%;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.16s linear;
}

/* ---------- Technical specifications ------------------------------------ */

.specs { padding-top: clamp(112px, 13vw, 184px); }

.specs__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  padding: clamp(32px, 5vw, 72px);
  background: var(--raised);
  border-radius: 28px;
}

/* Comes second in the markup, so headings run h2 then h3, but shows first. */
.specs__aside { display: flex; flex-direction: column; gap: 32px; order: -1; }
.specs__image { width: 100%; max-width: 460px; height: auto; margin-inline: auto; }

.specs__box { padding: 28px; background: var(--quiet); border-radius: 20px; }
.specs__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.specs__title {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px 48px;
  margin-top: 40px;
}
.specs__term { font-size: 17px; font-weight: 600; line-height: 1.4; }
.specs__grid dd { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- Founding members -------------------------------------------- */

.join { padding-top: clamp(112px, 13vw, 184px); }

.join__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.join__title {
  margin-top: 20px;
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.035em;
}

.signup { display: flex; flex-direction: column; gap: 8px; }
.signup__label { font-size: 14px; font-weight: 600; }
.signup__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 16px;
}
.signup__input::placeholder { color: var(--muted); }
.signup__input:hover { border-color: var(--bone); }
.signup__input[aria-invalid='true'] { border-color: var(--copper); }
.signup__hint { font-size: 14px; line-height: 1.5; color: var(--muted); }
.signup__hint a, .footer__link, .legal__panel a { border-bottom: 1px solid var(--line-strong); }
.signup__hint a:hover, .footer__link:hover, .legal__panel a:hover { color: var(--copper-text); border-color: var(--copper-text); }
.signup .btn { margin-top: 8px; }

/* Off-screen rather than display:none, which some bots check for. */
.signup__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__status { min-height: 1.6em; font-size: 15px; color: var(--muted); }
.signup__status:empty { min-height: 0; }
.signup__status[data-state='ok'] { color: var(--copper-text); font-weight: 600; }
.signup__status[data-state='error'] { color: var(--bone); }

/* ---------- Footer ------------------------------------------------------- */

.footer { padding: clamp(96px, 10vw, 144px) 0 40px; }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.footer__brand img { height: 31px; width: auto; }
.footer__legal { font-size: 13px; color: var(--muted); }
.footer__company { flex-basis: 100%; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* ---------- Inner pages: /privacy/ and /thanks/ ---------------------------
   Built from the home page's parts: the bar and footer, the eyebrow and light
   headline of the signup section, and (on /privacy/) the specs section's
   raised panel holding the design system's definition list. */

.page { min-height: 60vh; padding-top: clamp(64px, 9vw, 128px); }

.page__title {
  margin-top: 20px;
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.035em;
}

.legal__panel {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(8px, 2vw, 24px) clamp(24px, 5vw, 72px);
  background: var(--raised);
  border-radius: 28px;
}

.legal__row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr;
  gap: 8px 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.legal__row:first-child { border-top: 0; }
/* Same size as the detail: emphasis by weight only, per the brand rules. */
.legal__row dt { font-size: 16px; font-weight: 600; line-height: 1.7; }
.legal__row dd { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 60ch; }

@media (max-width: 719px) {
  .legal__row { grid-template-columns: 1fr; padding: 24px 0; }
}

.legal__note { margin-top: 32px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Each sentence of a two-sentence headline on its own line, never one word alone. */
.page__title span { display: block; }
.page__title { text-wrap: balance; }

.page__lead { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.page__action { margin-top: 40px; }

/* ---------- Reveal on scroll -------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .chip, .skip-link, .bar { transition: none; }
  .hero__arrow { animation: none; }
}

/* ---------- Print -------------------------------------------------------- */

/* Print the stacked story, whatever layout was on screen. The !importants
   beat the inline styles main.js sets in the live layout. */
@media print {
  .bar, .story__canvas, .picker, .signup { display: none; }
  body { background: var(--bone); color: var(--ink); }
  .specs__panel, .specs__box { background: none; }
  .story, .story__stage, .story__scenes { position: static !important; height: auto !important; }
  .story__scenes { width: auto !important; }
  .scene { position: relative !important; opacity: 1 !important; transform: none !important; }
  .story.is-live .scene__media { position: relative; width: auto; height: auto; clip: auto; aspect-ratio: 16 / 9; }
}
