/* BedSet — site.css. Tokens from DESIGN.md (revised 24 Nov 2026: navy hero, General Sans). */

@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --blue: #2A3294;          /* primary: buttons, links, accents */
  --blue-press: #222A7E;    /* primary, hover and press */
  --ink: #151A4E;           /* body text, dark sections, hero, footer */
  --ink-2: #1C2260;         /* a step lighter than ink: fields on ink */
  --bg: #F1F3F7;            /* cool off-white */
  --surface: #FFFFFF;
  --tint: #E4E7F4;          /* the one tint of primary */
  --muted: #4A5070;         /* 7.1:1 on --bg, 8:1 on white */
  --on-ink: #F1F3F7;
  --on-ink-muted: #B9BDD6;  /* 8.6:1 on --ink */
  --rule: rgba(21, 26, 78, .12);
  --rule-strong: rgba(21, 26, 78, .24);
  --rule-ink: rgba(241, 243, 247, .16);
  --error: #B42318;
  --error-bg: #FDECEA;
  --error-on-ink: #FFB4A9;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --gutter: 24px;
  --max: 1200px;
  --pad: 88px;
  --header: 72px;
  --shadow: 0 1px 2px rgba(21, 26, 78, .06), 0 8px 24px rgba(21, 26, 78, .08);

  --font: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* sized so 'The right bed height.' (9.13em wide) holds one line in its column */
  --t-h1: clamp(1.75rem, 10.4vw - .3rem, 4.5rem);
  --t-h2: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);
  --t-h3: 1.25rem;
  --t-lede: clamp(1.1875rem, 1rem + .5vw, 1.375rem);
  --t-body: 1.125rem;
  --t-ui: 1rem;
  --t-small: .9375rem;
  --t-label: .8125rem;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
@media (min-width: 768px) { :root { --gutter: 48px; --pad: 112px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; --pad: 144px; --header: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); accent-color: var(--blue); caret-color: var(--blue); }
::selection { background: var(--blue); color: #fff; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
cite { font-style: italic; }
figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--r-sm); }
.band :focus-visible, .section--ink :focus-visible, .footer :focus-visible, .header.is-dark :focus-visible { outline-color: var(--on-ink); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 12px 18px; border-radius: var(--r-md);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-ink-muted); margin-bottom: 24px;
}

/* Buttons */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-md);
  font: 500 1.0625rem/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transform: translateY(var(--lift));
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; --lift: 0px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-press); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { background: var(--tint); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--t-ui); }
@media (hover: hover) and (pointer: fine) { .btn:hover { --lift: -1px; } }
/* On ink, the primary action turns light so it keeps its contrast */
.header.is-dark .btn--primary { background: var(--surface); color: var(--ink); }
.header.is-dark .btn--primary:hover { background: var(--tint); }

/* Header: ink over the hero, light once the page scrolls past it */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .98);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header.is-dark { background: var(--ink); box-shadow: none; }
.header__row { display: flex; align-items: center; gap: 32px; height: var(--header); }
.header__logo { display: grid; flex: none; border-radius: var(--r-sm); }
.header__logo img { grid-area: 1 / 1; height: 36px; width: auto; transition: opacity .3s ease; }
.header .logo--light { opacity: 0; }
.header.is-dark .logo--light { opacity: 1; }
.header.is-dark .logo--dark { opacity: 0; }
.header__nav { display: none; gap: 36px; margin-left: auto; }
.header__nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-ui);
  padding: 10px 0; background: linear-gradient(currentColor 0 0) 0 100% / 0 1.5px no-repeat;
  transition: background-size .25s var(--ease-out), color .3s ease;
}
.header.is-dark .header__nav a { color: var(--on-ink); }
@media (hover: hover) and (pointer: fine) { .header__nav a:hover { background-size: 100% 1.5px; } }
.header__nav a:focus-visible { background-size: 100% 1.5px; }
.header .btn { margin-left: auto; }
@media (min-width: 900px) {
  .header__nav { display: flex; }
  .header .btn { margin-left: 12px; }
  .header__logo img { height: 40px; }
}

/* Sections */
.section { padding-block: var(--pad); }
.section--tight { padding-block: calc(var(--pad) * .6); }
.section--tint { background: var(--bg); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h2, .section--ink h3 { color: var(--on-ink); }
.section__title { max-width: 22ch; }
.section__head { margin-bottom: 64px; }
.section__intro { margin-top: 24px; color: var(--muted); max-width: 48ch; font-size: var(--t-lede); line-height: 1.5; }
.section--ink .section__intro { color: var(--on-ink-muted); }

/* Frames */
.frame { display: block; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--rule); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }

/* Hero: full-bleed exploded view on the page ground, the words laid over its quiet left side */
.hero { position: relative; overflow: hidden; background: var(--bg); padding-block: 32px 0; }
.hero__grid { display: grid; }
.hero__text { position: relative; z-index: 2; }
.display { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.display span { display: block; white-space: nowrap; }
.hero .label { color: var(--blue); }
.lede { margin-top: 28px; font-size: var(--t-lede); line-height: 1.5; color: var(--muted); max-width: 30em; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__fact { margin-top: 20px; font-size: var(--t-small); color: var(--muted); }

.hero__media { position: relative; margin: 24px calc(-1 * var(--gutter)) 0; }
.stage { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--bg); }
.stage img, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.loop__video { opacity: 0; transition: opacity .4s ease; }
.stage.is-ready .loop__video { opacity: 1; }
.loop__still { transition: opacity .4s ease; }
.stage.is-ready .loop__still { opacity: 0; }

@media (min-width: 1024px) {
  .hero { padding-block: 0; min-height: calc(100svh - var(--header)); display: flex; align-items: center; }
  .hero .wrap { width: 100%; }
  .hero__grid { grid-template-columns: repeat(12, 1fr); gap: 32px; padding-block: 72px 120px; }
  .hero__text { grid-column: 1 / span 6; }
  .display { font-size: min(5.3vw - .53rem, 3.875rem); }
  /* the stage bleeds off the right edge; its left side fades into the page under the words */
  .hero__media { position: absolute; inset: 0 0 0 50%; margin: 0; }
  .stage { position: absolute; inset: 0; aspect-ratio: auto; }
}

/* Problem: heading beside an edge-to-edge picture of the risk, then the evidence grid */
.problem { padding-top: 0; }
.problem__lead { display: grid; }
.problem__title { padding: 56px var(--gutter) 0; }
.problem__title h2 { font-size: var(--t-h2); max-width: 16ch; }
@media (min-width: 1024px) {
  .problem__lead { grid-template-columns: 1fr 1fr; min-height: min(56svh, 520px); }
  .problem__title {
    display: flex; align-items: center;
    padding: 96px 64px 96px max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
}
.problem .stats { margin-top: 56px; }
@media (min-width: 1024px) { .problem .stats { margin-top: 96px; } }

.problem__gap { padding: 40px var(--gutter) 0; display: grid; gap: 24px; align-content: center; }
.gap__lead { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: #fff; max-width: 26ch; }
.gap__note { color: var(--on-ink-muted); font-size: var(--t-lede); line-height: 1.5; max-width: 40ch; }
@media (min-width: 1024px) {
  .problem__gap { padding: 96px max(var(--gutter), calc((100vw - var(--max)) / 2)) 96px 64px; border-left: 1px solid var(--rule-ink); }
}

/* Evidence grid */
.stats { display: grid; margin-top: 72px; border-top: 1px solid var(--rule-strong); }
.stat { padding-block: 32px; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; }
.stat__figure {
  font-size: var(--t-h2); font-weight: 600; line-height: 1; letter-spacing: -0.035em;
  color: var(--blue); font-variant-numeric: tabular-nums lining-nums;
}
.stat__text { color: var(--muted); max-width: 32ch; }
.section--ink .stats { border-top-color: var(--rule-ink); }
.section--ink .stat { border-bottom-color: var(--rule-ink); }
.section--ink .stat__figure { color: #fff; }
.section--ink .stat__text { color: var(--on-ink-muted); }
.section--ink .ref { background: var(--ink-2); color: var(--on-ink); }
.section--ink .ref:hover { background: var(--on-ink); color: var(--ink); }
.ref {
  display: inline-block; margin-left: 3px; min-width: 1.4em; padding: 0 .3em;
  font-size: .72em; line-height: 1.5; font-weight: 600; vertical-align: super;
  text-decoration: none; color: var(--blue); background: var(--tint); border-radius: var(--r-sm); text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.ref:hover { background: var(--blue); color: #fff; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .stat { padding-block: 40px; }
}

/* Statement: one centred type moment */
.statement__inner { text-align: center; display: grid; justify-items: center; }
.statement__line { font-size: var(--t-h2); max-width: 20ch; }
.statement__line span { display: block; color: var(--blue); }
.statement__body { margin-top: 32px; max-width: 54ch; color: var(--muted); font-size: var(--t-lede); line-height: 1.5; }

/* How it works: an edge-to-edge pair, then the corridor band */
.section--flush { padding-bottom: 0; }
.journey { display: grid; }
.pair__item { position: relative; }
.pair__item .frame { border: 0; border-radius: 0; background: var(--surface); aspect-ratio: 810 / 950; --reveal-r: 0px; }
.overlay { padding: 0 var(--gutter) 56px; max-width: 34rem; }
.pair__item .frame { margin-bottom: 8px; }
.step__num {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; color: var(--blue);
  font-variant-numeric: tabular-nums; margin-bottom: 12px;
}
.overlay h3, .band__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 12px; }
.overlay p:not(.step__num) { color: var(--muted); max-width: 34ch; }
@media (min-width: 768px) {
  .journey { grid-template-columns: 1fr 1fr; }
  .pair__item + .pair__item { border-left: 1px solid var(--rule); }
  .overlay { padding-inline: 32px; }
}
@media (min-width: 1024px) {
  .pair__item .frame { margin-bottom: 0; }
  .overlay { position: absolute; left: 56px; right: 56px; top: 68%; padding: 0; max-width: 30rem; }
}
.band { position: relative; grid-column: 1 / -1; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.band__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 88% 18%; }
@media (min-width: 768px) { .band__video { object-position: 62% 20%; } }
@media (min-width: 1024px) { .band__video { object-position: 50% 20%; } }
.band__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 26, 78, .94) 0%, rgba(21, 26, 78, .78) 34%, rgba(21, 26, 78, .1) 70%, rgba(21, 26, 78, 0) 100%); }
.band__text { position: relative; padding-bottom: 72px; }
.band__text .step__num { color: var(--on-ink-muted); }
.band__title { color: #fff; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.03em; max-width: 18ch; }
.band__text p:not(.step__num) { color: var(--on-ink-muted); max-width: 46ch; font-size: var(--t-lede); line-height: 1.5; }
@media (min-width: 1024px) { .band { min-height: min(88svh, 58vw); } .band__text { padding-bottom: 96px; } }

/* Summary + counters */
/* Two-tone headings: the second clause steps back (Abridge-style), never a second colour family */
.quiet { color: var(--muted); }
.section--ink .quiet, .hero--dark .quiet { color: var(--on-ink-muted); }
.section__lede { margin-top: 24px; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; max-width: 30ch; color: var(--ink); }
.summary { font-size: var(--t-h2); }
.summary span { display: block; }
.counters { display: grid; margin-top: 72px; border-top: 1px solid var(--rule-strong); }
.counters li { padding: 28px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 16px; align-items: start; }
.counters__num {
  grid-row: span 2; font-size: var(--t-h2); line-height: 1; font-weight: 600; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.counters h3 { padding-top: .35em; }
.counters li p:not(.counters__num) { color: var(--muted); grid-column: 2; margin-top: 4px; }
@media (min-width: 768px) { .counters { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1024px) {
  .counters { grid-template-columns: repeat(4, 1fr); column-gap: 40px; border-bottom: 0; }
  .counters li { display: block; border-bottom: 0; padding: 36px 0 0; }
  .counters__num { margin-bottom: 20px; }
  .counters h3 { padding-top: 0; }
  .counters li p:not(.counters__num) { margin-top: 8px; }
}

/* Instrument: the device centre-stage on ink, against a height scale; specs at the corners */
.instrument { overflow: hidden; }
.instrument__head { text-align: center; display: grid; justify-items: center; }
.instrument__head .section__intro { margin-inline: auto; }
.instrument__grid { display: grid; gap: 0; margin-top: 64px; border-top: 1px solid var(--rule-ink); }
.spec { position: relative; padding: 28px 0; border-bottom: 1px solid var(--rule-ink); }
.spec h3 { color: #fff; margin-bottom: 8px; }
.spec p:not(.spec__num) { color: var(--on-ink-muted); max-width: 30ch; }
.spec__num { font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.instrument__stage { position: relative; margin: 0; display: grid; place-items: center; padding: 48px 0; min-height: 420px; }
.instrument__stage img { position: relative; z-index: 1; width: min(52%, 260px); height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.instrument__stage::before {
  /* the green glow of the set height */
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 231, 170, .16), rgba(110, 231, 170, 0));
}
/* a measuring scale behind the device: ticks every 8px, a longer one every 40px, and the set-height line */
.scale { position: absolute; inset: 24px 0; left: 50%; width: 1px; transform: translateX(-50%); }
.scale::before {
  content: ""; position: absolute; inset: 0 -40px; opacity: .5;
  background:
    repeating-linear-gradient(to bottom, var(--rule-ink) 0 1px, transparent 1px 8px) left / 14px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(241, 243, 247, .35) 0 1px, transparent 1px 40px) left / 24px 100% no-repeat;
}
.scale__set {
  position: absolute; z-index: 0; left: 0; right: 0; top: 33%; border-top: 1px dashed rgba(110, 231, 170, .55);
  padding-top: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(110, 231, 170, .9);
}
.instrument .counters { margin-top: 72px; border-top-color: var(--rule-ink); }
.instrument .counters li { border-bottom-color: var(--rule-ink); }
.instrument .counters__num { color: #fff; }
@media (min-width: 1024px) {
  .instrument .counters li { text-align: center; padding-inline: 16px; }
  .instrument .counters li p:not(.counters__num) { margin-inline: auto; max-width: 24ch; }
}
.instrument .counters h3 { color: #fff; }
.instrument .counters li p:not(.counters__num) { color: var(--on-ink-muted); }
@media (min-width: 1024px) {
  .instrument__grid {
    grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: auto auto;
    grid-template-areas: "a stage b" "c stage d"; border: 0;
  }
  .spec--a { grid-area: a; } .spec--b { grid-area: b; } .spec--c { grid-area: c; } .spec--d { grid-area: d; }
  .instrument__stage { grid-area: stage; min-height: 600px; }
  .spec { padding: 40px 36px; border: 1px solid var(--rule-ink); align-self: stretch; }
  .spec--a, .spec--c { border-right: 0; } .spec--b, .spec--d { border-left: 0; }
  .spec--a, .spec--b { border-bottom: 0; }
  /* corner ticks on each cell */
  .spec::before, .spec::after { content: ""; position: absolute; width: 9px; height: 9px; border-color: rgba(241, 243, 247, .55); border-style: solid; }
  .spec::before { top: -5px; left: -5px; border-width: 1px 0 0 1px; }
  .spec::after { bottom: -5px; right: -5px; border-width: 0 1px 1px 0; }
  .spec--b, .spec--d { text-align: right; }
  .spec--b p:not(.spec__num), .spec--d p:not(.spec__num) { margin-left: auto; }
}

/* Settings: three columns divided by hairlines */
.settings { display: grid; border-top: 1px solid var(--rule-strong); }
.settings li { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.settings .spec__num { color: var(--blue); }
.settings h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 12px; }
.settings li p:not(.spec__num) { color: var(--muted); max-width: 36ch; }
@media (min-width: 1024px) {
  .settings { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .settings li { padding: 40px 40px 48px; border-bottom: 0; }
  .settings li:first-child { padding-left: 0; }
  .settings li + li { border-left: 1px solid var(--rule); }
}

.regulatory { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule-ink); text-align: center; font-size: var(--t-body); font-weight: 500; color: var(--on-ink); }

/* Supporters */
.supporters { display: grid; gap: 56px; }
.logos {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule-ink); border-left: 1px solid var(--rule-ink);
}
.logos li {
  display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 24px;
  border-right: 1px solid var(--rule-ink); border-bottom: 1px solid var(--rule-ink);
}
.logos li:last-child:nth-child(odd) { grid-column: span 2; }
.logos img { max-height: 44px; width: auto; max-width: 100%; filter: brightness(0) invert(1); opacity: .9; }
@media (min-width: 768px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .logos li { min-height: 152px; } }

/* Waitlist */
.waitlist { display: grid; gap: 48px; }
.price { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price__label { width: 100%; font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.price__value { font-size: var(--t-h2); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price__unit { color: var(--muted); }
.waitlist .form__note { margin-top: 16px; }
.price--ink { justify-content: center; margin-top: 36px; }
.price--ink .price__label { text-align: center; color: var(--on-ink-muted); }
.price--ink .price__value { color: #fff; }
.price--ink .price__unit { color: var(--on-ink-muted); }
.instrument__head .btn { margin-top: 24px; }
.waitlist .form--panel { background: var(--surface); }
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; font-weight: 500; cursor: pointer; align-self: end; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); margin: 0; }
@media (min-width: 1024px) {
  .waitlist { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
  .waitlist__text { grid-column: 1 / span 5; }
  .waitlist .form { grid-column: 7 / span 6; }
}

/* Contact */
.contact { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .contact { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
  .contact__text { grid-column: 1 / span 5; }
  .contact .form { grid-column: 7 / span 6; }
}
.contact__email { margin-top: 32px; font-size: var(--t-h3); font-weight: 500; }

/* Forms */
.form { display: grid; gap: 20px; align-content: start; }
.form--panel { background: var(--bg); border-radius: var(--r-lg); padding: 28px; }
@media (min-width: 768px) { .form--panel { padding: 40px; } }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--t-ui); font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 400 1.0625rem/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--rule-strong); border-radius: var(--r-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 50, 148, .25);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--t-small); font-weight: 500; }
.form__note { font-size: var(--t-small); color: var(--muted); }
.form__status, .field__error { transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
@starting-style { .form__status:not([hidden]), .field__error:not([hidden]) { opacity: 0; transform: translateY(-4px); } }
.form__status { font-weight: 500; color: var(--ink); padding: 14px 16px; background: var(--tint); border-radius: var(--r-md); }
.form__status.is-error { background: var(--error-bg); color: var(--error); }
.hp { position: absolute; left: -9999px; }

/* Sources */
.sources__title { font-size: var(--t-h3); margin-bottom: 28px; }
.sources { counter-reset: src; display: grid; gap: 16px; font-size: var(--t-small); line-height: 1.55; color: var(--muted); }
@media (min-width: 1024px) { .sources { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.sources li { counter-increment: src; position: relative; padding-left: 2.25em; }
.sources li::before {
  content: counter(src); position: absolute; left: 0; top: .1em;
  font-size: .8em; font-weight: 600; color: var(--blue); background: var(--tint); border-radius: var(--r-sm); min-width: 1.6em; text-align: center;
}
.sources li:target { color: var(--ink); }
.sources a { overflow-wrap: anywhere; }

/* Footer, with the newsletter as its first row */
.footer { background: var(--ink); color: var(--on-ink); padding-block: 88px 56px; }
.footer a { color: var(--on-ink); }
.news { display: grid; gap: 32px; padding-bottom: 64px; margin-bottom: 48px; border-bottom: 1px solid var(--rule-ink); }
.news h2 { color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.news__text p { margin-top: 16px; color: var(--on-ink-muted); max-width: 44ch; }
.news__text .news__note { font-size: var(--t-small); margin-top: 12px; }
.news__form { display: grid; gap: 16px; align-content: end; }
.news__form .field label { color: var(--on-ink); }
.news__form input, .news__form select { background: var(--ink-2); border-color: var(--rule-ink); color: #fff; }
.news__form input:hover, .news__form select:hover { border-color: var(--on-ink-muted); }
.news__form input:focus-visible, .news__form select:focus-visible { border-color: #fff; box-shadow: 0 0 0 3px rgba(241, 243, 247, .25); }
.news__form .field__error { color: var(--error-on-ink); }
.news__form [aria-invalid="true"] { border-color: var(--error-on-ink); }
.news__form .form__status { background: var(--ink-2); color: var(--on-ink); }
.news__form .form__status.is-error { color: var(--error-on-ink); }
.news__form .btn { justify-self: start; }
@media (min-width: 900px) {
  .news { grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
  .news__form { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .news__form .form__status { grid-column: 1 / -1; }
}
.footer__grid { display: grid; gap: 28px; }
.footer__logo { height: 40px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__nav a { text-decoration: none; padding: 10px 0; display: inline-block; }
.footer__nav a:hover { text-decoration: underline; }
.footer__legal { color: var(--on-ink-muted); font-size: var(--t-small); display: grid; gap: 4px; }
.footer__legal a { display: inline-block; padding-block: 10px; }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1fr auto auto; align-items: center; gap: 64px; } }

/* Motion. One authored moment per viewport: the hero's assembling video, then a few
   reveals on scroll. Hidden states exist only when JS has marked an element as starting
   below the fold (.is-pending), so no-JS, print and above-the-fold content never hide. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__text[data-enter] { animation: enter-rise .6s var(--ease-out) both; }
  .js .hero__media[data-enter] { animation: enter-fade .5s ease .1s both; }
  @keyframes enter-rise { from { opacity: 0; transform: translateY(12px); } }
  @keyframes enter-fade { from { opacity: 0; } }

  [data-reveal="photo"] .frame { clip-path: inset(0 0 0 0 round var(--reveal-r, var(--r-lg))); transition: clip-path .9s var(--ease-out), opacity .6s ease; }
  [data-reveal="photo"].is-pending .frame { clip-path: inset(0 0 18% 0 round var(--reveal-r, var(--r-lg))); opacity: 0; }
  [data-reveal="photo"].is-in .frame { transition-delay: var(--delay, 0ms); }
}
[data-reveal="tone"] { transition: opacity .9s ease; }
[data-reveal="tone"].is-pending { opacity: .28; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal="photo"] .frame { transition: opacity .4s ease; }
  [data-reveal="photo"].is-pending .frame { opacity: 0; }
  .btn { transform: none !important; }
  .header__nav a { transition: none; }
  .loop__video { transition: none; }
}
@media print { [data-reveal].is-pending, [data-reveal].is-pending .frame { opacity: 1 !important; clip-path: none !important; } }
