/* ==========================================================================
   Legible — base, layout, sections
   One dark theme on every page: a night ground, Mist type, faint vertical
   grid lines, one soft Blue bloom per page hero, hairline dividers.
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  background: var(--bg);
}
body, h1, h2, h3, p, ul, ol, figure, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* the page colour is on html (the canvas), not body: a body background would
   paint over the z-index:-1 grid lines below */
body {
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* faint vertical grid lines behind the content, aligned to .wrap's width and
   gutters: none on phones, 4 columns from 45em, 6 from 67.5em. Decorative. */
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0; left: 50%;
  z-index: -1;
  width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter));
  transform: translateX(-50%);
  border-right: 1px solid var(--grid-line);
  background: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x;
  pointer-events: none;
  display: none;
}
@media (min-width: 45em) { body::before { display: block; } }
@media (min-width: 67.5em) { body::before { background-size: calc(100% / 6) 100%; } }

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--track-heading);
  text-wrap: balance;
}
em { font-style: italic; }
/* Geist has no italic: the second clause of a heading is set upright, lighter
   and softer, on its own line (no synthetic italic, no serif, no blue) */
:is(h1, h2, h3) em { font-style: normal; font-weight: var(--fw-light); color: var(--fg-soft); }
:is(h1, h2) em { display: block; }
p, li { text-wrap: pretty; }

code {
  font-family: var(--font-mono);
  font-size: .84em;
  padding: .08em .32em;
  border-radius: var(--radius-s);
  background: rgba(229, 231, 235, .08);
  letter-spacing: 0;
}

::selection { background: var(--blue-600); color: var(--white); }

/* ---------- focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}
main:focus-visible, .lens:focus-visible { outline-offset: 6px; }

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* mono: code panels and the Lens's machine-reader moments only */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  line-height: 1.4;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: .75rem; left: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--midnight);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ---------- links & buttons ---------- */
/* .button is an understated text link with a hairline underline and a drawn
   arrow: Mist text, no fill (magma). .link-arrow shares the look; its arrow
   is a glyph in the markup (↓ ↑ ↗). */
.button,
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 2.75rem;
  padding: 0;
  background: none;
  color: var(--fg);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-scan), color var(--dur-fast) var(--ease-scan), background-color var(--dur-fast) var(--ease-scan);
}
.button:hover,
.link-arrow:hover { border-bottom-color: var(--fg); }
.button:focus-visible,
.link-arrow:focus-visible { border-radius: var(--radius-s); }
/* the arrow is drawn (a currentColor box masked by an SVG), not a glyph: it stays
   out of the accessible name and doesn't depend on U+2192 being in the font */
.button::after {
  content: "";
  flex: none;
  width: 1.1em; height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h12M9.5 3.5 14 8l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h12M9.5 3.5 14 8l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  forced-color-adjust: none;
  transition: transform var(--dur-fast) var(--ease-scan);
}
.button:hover::after { transform: translateX(3px); }
.button:disabled { opacity: .6; cursor: progress; }

/* the pill: a translucent Mist hairline pill — header CTA and form submit only */
.button--pill {
  justify-content: center;
  padding: .55rem 1.25rem;
  background: rgba(229, 231, 235, .06);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}
.button--pill:hover { background: rgba(229, 231, 235, .12); border-color: rgba(229, 231, 235, .4); }
.button--pill:focus-visible { border-radius: var(--radius-pill); }
.button--sm { min-height: 2.5rem; padding: .4rem 1.1rem; font-size: var(--fs-small); }
.button--sm::after { content: none; }

/* ---------- wordmark: the L mark + Geist ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
  padding-block: .35rem;
}
.wordmark__mark { flex: none; width: auto; height: 1.1em; }
/* the mark's gradient: blue-400 → blue → blue-600 (stop colours live here, not in the markup) */
.wordmark__mark stop:nth-child(1) { stop-color: var(--blue-400); }
.wordmark__mark stop:nth-child(2) { stop-color: var(--blue); }
.wordmark__mark stop:nth-child(3) { stop-color: var(--blue-600); }
/* "Technologies": the quieter descriptor after a hairline, in the mono voice */
.wordmark__sub {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding-left: .75em;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  font-weight: 400;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* ---------- the bloom: one soft Blue radial, top-right of a page hero ----------
   Decorative and static. Clipped sideways only (clip, not hidden: hidden would
   make the section a scroll container), so it fades out below short heroes
   instead of ending in a hard edge. No rim line. */
.has-bloom { position: relative; overflow-x: clip; overflow-y: visible; isolation: isolate; }
.has-bloom::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22rem;
  right: -18rem;
  width: min(64rem, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bloom);
  filter: blur(24px);
  pointer-events: none;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--fg);
  /* the ocean band (assets/hero/ocean-band-*.webp, Midnight-tinted) under a night
     gradient: darkest behind the wordmark, lightest at the right end */
  background:
    linear-gradient(90deg, rgba(7, 26, 46, .95) 0%, rgba(7, 26, 46, .82) 40%, rgba(10, 37, 64, .55) 100%),
    url("../assets/hero/ocean-band-960.webp") center 45% / cover no-repeat,
    var(--bg);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 60em) {
  .site-header {
    background:
      linear-gradient(90deg, rgba(7, 26, 46, .95) 0%, rgba(7, 26, 46, .82) 40%, rgba(10, 37, 64, .55) 100%),
      url("../assets/hero/ocean-band-1920.webp") center 45% / cover no-repeat,
      var(--bg);
  }
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: var(--nav-h);
}
.site-header .wordmark { order: 1; margin-right: auto; flex: none; }
/* below 60em the header row has no room for "Technologies" */
.site-header .wordmark__sub { display: none; }
@media (min-width: 60em) {
  .site-header .wordmark__sub { display: inline-flex; }
}
.site-nav { order: 2; }
.site-header__cta { order: 3; white-space: nowrap; }
/* the pill sits on the band's lightest (right) end: a night backing (the Menu toggle gets the same) */
.site-header__cta { background-color: rgba(7, 26, 46, .6); }
.site-header__cta:hover { background-color: rgba(7, 26, 46, .8); }
@media (min-width: 45em) and (max-width: 52.49em) {
  .site-header__inner { gap: var(--space-s); }
}

.site-nav__list { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-small);
  font-weight: 400;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left calc(100% - .55rem) / 0 1px no-repeat;
  transition: background-size var(--dur-mid) var(--ease-scan);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { background-size: 100% 1px; }
.site-nav__toggle { display: none; }

@media (max-width: 29.99em) {
  .site-header__cta { display: none; } /* "Contact" is in the menu */
}

/* used by hero.css: the answer card's "reading…" cue (4.8s cap, WCAG 2.2.2) */
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 44.99em) {
  /* no-JS, or nav.js failed (.nav-off): links stay visible, wrapped under the wordmark */
  :is(html:not(.js), .nav-off) .site-header__inner { flex-wrap: wrap; padding-block: .25rem; }
  :is(html:not(.js), .nav-off) .site-nav__list { gap: 1rem; flex-wrap: wrap; }

  .js:not(.nav-off) .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    min-height: 2.75rem;
    padding: 0 1.1rem;
    background: rgba(7, 26, 46, .6); /* night backing over the ocean band */
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    font-weight: 400;
    cursor: pointer;
  }
  .js:not(.nav-off) .site-nav__toggle:hover { background: rgba(7, 26, 46, .8); } /* darker, like the CTA */
  .js:not(.nav-off) .site-nav__toggle:focus-visible { border-radius: var(--radius-pill); }
  .js:not(.nav-off) .site-nav__toggle::before {
    content: "";
    width: .45rem; height: .45rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    transition: background-color var(--dur-fast);
  }
  .js:not(.nav-off) .site-nav__toggle[aria-expanded="true"]::before { background: currentColor; }
  .js:not(.nav-off) .site-nav__list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: var(--space-2xs) var(--gutter) var(--space-m);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .js:not(.nav-off) .site-nav__toggle[aria-expanded="true"] + .site-nav__list { display: flex; }
  .js:not(.nav-off) .site-nav__list li + li { border-top: 1px solid var(--line); }
  .js:not(.nav-off) .site-nav__list a {
    width: 100%;
    min-height: 3.5rem;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -.03em;
    background-position: left calc(100% - .7rem);
  }
  .js:not(.nav-off) .site-nav__list a:not([aria-current="page"]) { background-size: 0 1px; }
  .js:not(.nav-off) .site-nav__list a[aria-current="page"] { background-size: 2rem 1px; }
}

/* ==========================================================================
   Section primitives
   ========================================================================== */
.section {
  position: relative;
  padding-block: var(--space-2xl);
}
/* a hairline between consecutive sections, inset to .wrap */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter));
  height: 1px;
  transform: translateX(-50%);
  background: var(--line);
}
.section__title {
  font-size: var(--fs-h2);
  max-width: 16ch;
}
.lede {
  font-size: var(--fs-lede);
  line-height: 1.45;
  max-width: 40ch;
  color: var(--fg-soft);
  letter-spacing: -.01em;
}

/* statement: a centred h2 + lede (diag-nose) */
.statement { text-align: center; }
.statement .section__title,
.statement .lede,
.statement > p { margin-inline: auto; }
.statement .section__title { max-width: 18ch; }
.statement .lede { max-width: 44ch; }

/* split: heading in columns 1–6, lede + link in 7–12 (magma) */
.split { display: grid; gap: var(--space-l) var(--col-gap); align-items: start; }
.split__side { display: grid; gap: var(--space-m); justify-items: start; }
.split__side .lede { color: var(--fg); }
@media (min-width: 67.5em) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split > :first-child { grid-column: 1 / 7; }
  .split > .split__side { grid-column: 7 / 13; padding-top: .6rem; }
}

/* numbered: big light Geist numerals "01" in --fg-soft (decorative: alt text "") */
.numbered { counter-reset: n; }
.numbered > * { counter-increment: n; }
.numbered > *::before {
  content: counter(n, decimal-leading-zero);
  content: counter(n, decimal-leading-zero) / "";
  display: block;
  margin-bottom: var(--space-m);
  color: var(--fg-soft);
  font-size: var(--fs-num);
  font-weight: var(--fw-light);
  line-height: 1;
  letter-spacing: -.05em;
}

/* hairline columns: rows on phones, 2 → 3 or 4 columns wider */
.cols { display: grid; gap: var(--space-xl) var(--col-gap); }
.cols > * { padding-top: var(--space-m); border-top: 1px solid var(--line-strong); min-width: 0; }
@media (min-width: 45em) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 67.5em) {
  .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cols p, .cols dd { color: var(--fg-soft); max-width: 36ch; }

/* checklist: hairline rows with a quiet --fg-soft mark */
.checklist { display: grid; border-top: 1px solid var(--line); }
.checklist li {
  position: relative;
  padding: .9rem 0 .9rem 1.75rem;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.75rem;
  width: .75rem; height: 1px;
  background: var(--fg-soft);
}
.checklist a { text-underline-offset: .2em; text-decoration-color: var(--line-strong); }
.checklist a:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   Home
   ========================================================================== */
/* ---------- hero: headline-led, sparse (magma-00) ---------- */
/* ocean video: poster → video → scrim → grid lines → content */
.hero--media { position: relative; isolation: isolate; overflow: clip; }
.hero__media { position: absolute; inset: 0; z-index: -1; isolation: isolate; }
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the clip is a bright teal shore: mirrored so the surf sits right, away from the
   headline. The shift toward the brand blues is the scrim's Blue layer, not a CSS
   filter (a filter on a full-bleed video cost ~800 ms of blocking time in Lighthouse) */
.hero__poster,
.hero__video { transform: scaleX(-1); }
.hero__video { opacity: 0; transition: opacity var(--dur-slow) var(--ease-scan); }
.hero__video.is-playing { opacity: 1; }
.hero__media.is-static .hero__video { display: none; }
/* scrim: night and midnight alphas over a light Blue wash (which pulls the teal footage
   toward the brand blues); darker behind the text, fully --bg at the foot */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 46, .65) 0%, rgba(7, 26, 46, .7) 35%, rgba(7, 26, 46, .85) 65%, var(--bg) 85%, var(--bg) 100%),
    linear-gradient(rgba(10, 37, 64, .35), rgba(10, 37, 64, .35)),
    rgba(59, 130, 246, .14);
}
/* the faint grid lines, redrawn over the video: keep in sync with body::before */
.hero__media::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0; bottom: 0; left: 50%;
  width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter));
  transform: translateX(-50%);
  border-right: 1px solid var(--grid-line);
  background: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x;
  pointer-events: none;
  display: none;
}
@media (min-width: 45em) { .hero__media::before { display: block; } }
@media (min-width: 67.5em) { .hero__media::before { background-size: calc(100% / 6) 100%; } }
.hero--media .hero__inner { position: relative; }
/* Pause / Play: mirrors .lens__pause (hero.css), on its own night backing */
.hero__media-toggle {
  position: absolute;
  top: var(--space-m);
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 2.25rem;
  padding: 0 .9rem;
  color: var(--fg-soft);
  background: rgba(7, 26, 46, .6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 400;
  cursor: pointer;
}
.hero__media-toggle:hover { color: var(--fg); background: rgba(7, 26, 46, .8); }
.hero__media-toggle:focus-visible { border-radius: var(--radius-pill); }
.hero__media-toggle::before {
  content: "";
  width: .55em; height: .7em;
  border-inline: .2em solid currentColor;
}
.hero__media-toggle.is-paused::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.hero__media-toggle[hidden] { display: none; }
@media (pointer: coarse) { .hero__media-toggle { min-height: 2.75rem; } }

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-l);
  min-height: calc(100svh - var(--nav-h));
  padding-block: var(--space-l);
}
/* keep the title clear of the absolutely placed Pause/Play toggle on short screens */
.hero--media .hero__inner { padding-top: calc(var(--space-m) + 2.75rem + var(--space-xs)); }
.hero__title {
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  max-width: 14ch;
}
.hero__title em { margin-top: .04em; }
.hero__foot { display: grid; gap: var(--space-l); align-items: end; }
.hero__aside { display: grid; gap: var(--space-m); justify-items: start; }
.hero__sub { max-width: 36ch; color: var(--fg-soft); font-size: var(--fs-lede); line-height: 1.45; letter-spacing: -.01em; }
.hero__cue { color: var(--fg-soft); border-bottom-color: transparent; }
.hero__cue:hover { color: var(--fg); }
@media (min-width: 67.5em) {
  .hero__foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .hero__cue { grid-column: 1 / 5; grid-row: 1; align-self: end; }
  .hero__aside { grid-column: 8 / 13; grid-row: 1; }
}

/* ---------- shift + the Lens ---------- */
.hero + .shift { padding-top: var(--space-xl); }
.shift .statement { margin-bottom: var(--space-xl); }
.shift__body { display: grid; gap: var(--space-m); justify-items: center; margin-top: var(--space-l); }
.shift__body p:not(.lede) { color: var(--fg-soft); max-width: 46ch; }
.shift .lens { max-width: 72rem; margin-inline: auto; }
.shift__close {
  max-width: 28ch;
  margin: var(--space-xl) auto 0;
  text-align: center;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: var(--fw-light);
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* ---------- services (magma-01) ---------- */
.services .split { margin-bottom: var(--space-xl); }
.service__title { font-size: var(--fs-h3); line-height: 1.1; margin-bottom: var(--space-s); }
.service__title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  transition: background-size var(--dur-mid) var(--ease-scan);
}
.service__title a:hover { background-size: 100% 1px; }
.service__desc { color: var(--fg-soft); max-width: 36ch; }
.services__extra { margin-top: var(--space-xl); }
.service--extra {
  display: grid;
  gap: var(--space-2xs) var(--col-gap);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}
.service--extra::before {
  content: "05";
  content: "05" / "";
  color: var(--fg-soft);
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.service--extra .service__title { font-size: 1.375rem; margin: 0; }
.service__note { color: var(--fg-soft); font-size: var(--fs-small); }
@media (min-width: 67.5em) {
  .service--extra { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
  .service--extra::before { grid-column: 1 / 2; }
  .service--extra > :nth-child(1) { grid-column: 2 / 6; }
  .service--extra > :nth-child(2) { grid-column: 6 / 11; }
  .service--extra > :nth-child(3) { grid-column: 11 / 13; justify-self: end; }
}

/* ---------- method (magma-02): four steps under one hairline ---------- */
.method .split { margin-bottom: var(--space-xl); }
.method__steps { display: grid; gap: var(--space-xl) var(--col-gap); padding-top: var(--space-l); border-top: 1px solid var(--line-strong); }
.step__title { font-size: var(--fs-h3); margin-bottom: var(--space-xs); }
.step p { color: var(--fg-soft); max-width: 34ch; }
@media (min-width: 45em) { .method__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 67.5em) { .method__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- proof ---------- */
.proof .split .lede { margin-top: var(--space-l); }
.research { margin-top: var(--space-2xl); max-width: 58rem; }
.research__finding {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: var(--fw-light);
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.research__source { margin-top: var(--space-m); color: var(--fg-soft); font-size: var(--fs-small); }
.research__source cite { font-style: normal; }
.research__source a { text-underline-offset: .2em; text-decoration-color: var(--line-strong); overflow-wrap: anywhere; }
.research__source a:hover { color: var(--fg); text-decoration-color: currentColor; }
.research__pilot { margin-top: var(--space-s); color: var(--fg-soft); font-size: var(--fs-small); }

.proof__source { margin-top: var(--space-xl); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__source > summary {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: 4rem;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.proof__source > summary::-webkit-details-marker { display: none; }
.proof__source > summary::after,
.faq__item summary::after {
  content: "+";
  content: "+" / "";
  margin-left: auto;
  color: var(--fg-soft);
  font-size: 1.75rem;
  font-weight: 200;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-scan);
}
.proof__source[open] > summary::after,
.faq__item[open] summary::after { transform: rotate(45deg); }
.proof__source .panel { margin-bottom: var(--space-l); }
.proof__clients[hidden] { display: none; }

/* the code panel: a Midnight panel with Mist mono text */
.panel {
  position: relative;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.panel__block { min-width: 0; }
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem var(--space-s);
  min-height: 3.25rem;
  padding: .45rem .6rem .45rem var(--space-m);
  border-bottom: 1px solid var(--line);
}
.panel__file { font-weight: 500; color: var(--fg); }
.panel__type { color: var(--fg-soft); text-transform: none; font-size: var(--fs-mono-s); }
.copy {
  margin-left: auto;
  min-height: 2.75rem;
  min-width: 4.5rem;
  padding: 0 1rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-scan);
}
.copy:hover { background: rgba(229, 231, 235, .08); }
.copy:focus-visible { border-radius: var(--radius-pill); }
:is(html:not(.js), .nav-off) .copy { display: none; }
.copy__status { flex-basis: 100%; text-align: right; font-size: var(--fs-mono-s); }
.copy__status:empty { display: none; }
.panel__code {
  max-height: 24rem;
  overflow: auto;
  padding: var(--space-s) var(--space-m) var(--space-m);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-l);
  line-height: 1.6;
  color: var(--mist);
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 231, 235, .4) transparent;
}
.panel__code:focus-visible { outline-offset: -3px; }

/* ---------- next: three hairline columns to the other pages ---------- */
.next__title { font-size: var(--fs-h3); line-height: 1.1; }
.next__title a { text-decoration: none; }
.next__title em { display: inline; }
.next__title a::after {
  content: "";
  display: inline-block;
  width: .8em; height: .8em;
  margin-left: .35em;
  vertical-align: -.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h12M9.5 3.5 14 8l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h12M9.5 3.5 14 8l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  forced-color-adjust: none;
  transition: transform var(--dur-fast) var(--ease-scan);
}
.next__title a:hover::after { transform: translateX(4px); }
.next__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.next p { margin-top: var(--space-s); }

/* ==========================================================================
   Inner pages: a statement hero, then a narrow body
   ========================================================================== */
/* the ocean band again, fading down into the page and darkest behind the title;
   it replaces the bloom on inner pages */
.page-hero { position: relative; isolation: isolate; }
.page-hero.has-bloom::after { content: none; }
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(100%, 36rem);
  background:
    linear-gradient(180deg, rgba(7, 26, 46, .35) 0%, rgba(7, 26, 46, .7) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 26, 46, .9) 0%, rgba(7, 26, 46, .6) 45%, rgba(7, 26, 46, .3) 100%),
    url("../assets/hero/ocean-band-960.webp") center top / cover no-repeat;
  pointer-events: none;
}
@media (min-width: 60em) {
  .page-hero::before {
    background:
      linear-gradient(180deg, rgba(7, 26, 46, .35) 0%, rgba(7, 26, 46, .7) 55%, var(--bg) 100%),
      linear-gradient(90deg, rgba(7, 26, 46, .9) 0%, rgba(7, 26, 46, .6) 45%, rgba(7, 26, 46, .3) 100%),
      url("../assets/hero/ocean-band-1920.webp") center top / cover no-repeat;
  }
}
.page-hero__inner { padding-block: var(--space-2xl) var(--space-xl); }
.page-hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  max-width: 16ch;
}
.page-hero__lede { margin-top: var(--space-l); }
.page-hero + .section { padding-top: var(--space-xl); }
.page-hero + .section::before { content: none; }

.page__body { max-width: 46rem; }
.page__body--long { max-width: 64ch; }
.page__body > :first-child { margin-top: 0; }
.page__h2 { font-size: var(--fs-h3); margin: var(--space-xl) 0 var(--space-m); }
.page__body > p { color: var(--fg-soft); }
.page__body > p + p { margin-top: var(--space-s); }
.page__body p { overflow-wrap: anywhere; }
.page__body p a { color: var(--fg); text-underline-offset: .2em; text-decoration-color: var(--line-strong); overflow-wrap: anywhere; }
.page__body p a:hover { text-decoration-color: currentColor; }
.page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); margin-top: var(--space-xl); }
.page__links { display: grid; border-top: 1px solid var(--line); }
.page__links li { border-bottom: 1px solid var(--line); }
.page__links a { display: flex; align-items: center; min-height: 3.5rem; font-size: 1.375rem; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.page__links a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------- packages: hairline-divided columns, no cards ---------- */
.packages__list { display: grid; gap: var(--space-xl) 0; }
.package {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-strong);
  min-width: 0;
}
.package__title { font-size: var(--fs-h3); line-height: 1.1; }
.package__scope { color: var(--fg-soft); max-width: 34ch; }
.package__terms { display: grid; margin-top: auto; padding-top: var(--space-m); }
.package__terms div { display: grid; gap: .1rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.package__terms dt { color: var(--fg-soft); font-size: var(--fs-small); }
.package__terms dd { font-size: 1rem; overflow-wrap: anywhere; min-width: 0; }
.package .button { align-self: flex-start; margin-top: var(--space-s); }
@media (min-width: 67.5em) {
  .packages__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .package { padding-inline: var(--col-gap); border-left: 1px solid var(--line); }
  .package:first-child { padding-left: 0; border-left: 0; }
}
.disclaimer {
  margin-top: var(--space-xl);
  max-width: var(--measure);
  color: var(--fg-soft);
  font-size: var(--fs-small);
}

/* ---------- faq: hairline rows, a thin "+" ---------- */
.faq__list { border-top: 1px solid var(--line); }
@media (min-width: 67.5em) { .split > .faq__list { grid-column: 7 / 13; } }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: 4.5rem;
  padding-block: .9rem;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -.02em;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { padding-bottom: var(--space-l); color: var(--fg-soft); max-width: 60ch; overflow-wrap: anywhere; }

/* ---------- about: how we measure ---------- */
.measure .split { margin-bottom: var(--space-xl); }
.measures dt { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: var(--track-heading); margin-bottom: var(--space-s); }
.measures dd { overflow-wrap: anywhere; }

/* ---------- contact: heading left, the form on a Midnight panel right (the .split
   primitive); stacked below 67.5em ---------- */
.contact__layout { padding-block: var(--space-xl) var(--space-2xl); }
.contact__panel {
  max-width: 40rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
@media (min-width: 67.5em) {
  .contact__intro { grid-column: 1 / 7; position: sticky; top: calc(var(--nav-h) + var(--space-l)); }
  .contact__layout > .contact__panel { grid-column: 7 / 13; max-width: none; }
}
.contact-form { display: grid; gap: var(--space-m); margin-top: var(--space-l); }
.contact-form__field { display: grid; gap: .5rem; }
.contact-form label { font-size: var(--fs-small); color: var(--fg); }
/* field borders: Mist at .45, ≥ 3:1 against the Midnight panel and the night field (WCAG 1.4.11) */
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--fg);
  background: var(--night);
  border: 1px solid var(--field-line);
  border-radius: 10px;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: rgba(229, 231, 235, .7); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); border-radius: 10px; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); margin-top: var(--space-2xs); }
.contact-form__actions .button { cursor: pointer; }
.contact-form__status { color: var(--accent-text); }
.contact-form__status:empty { display: none; }
.contact-form__notice { color: var(--fg); padding-bottom: var(--space-m); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-form__fallback { margin-top: var(--space-l); color: var(--fg-soft); overflow-wrap: anywhere; }
:is(.contact-form__notice, .contact-form__status, .contact-form__fallback) a { color: var(--fg); text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact__meta { margin-top: var(--space-2xs); color: var(--fg-soft); font-size: var(--fs-small); overflow-wrap: anywhere; }

/* ==========================================================================
   Footer: the page surface, a hairline on top, calm small text
   ========================================================================== */
.site-footer {
  padding-block: var(--space-xl) var(--space-l);
  color: var(--fg);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-l);
  align-items: end;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-l); }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  min-height: 2.75rem;
  color: var(--fg-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.site-footer__legal { color: var(--fg-soft); }
@media (min-width: 45em) {
  .site-footer__inner { grid-template-columns: 1fr auto auto; gap: var(--space-xl); }
}

/* ==========================================================================
   Motion: reveals (only once reveal.js has opted in), smooth anchors
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* fade-up: transform and opacity only, so nothing shifts layout */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-scan), transform var(--dur-slow) var(--ease-scan);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   Print: the whole page as Charcoal on white — no nav, no demo, no décor
   ========================================================================== */
@media print {
  :root {
    --bg: var(--white);
    --surface: var(--white);
    --fg: var(--charcoal);
    --fg-soft: var(--slate);
    --line: rgba(31, 41, 55, .2);
    --line-strong: rgba(31, 41, 55, .4);
    --field-line: rgba(31, 41, 55, .6);
    --accent-text: var(--blue-700);
    --focus: var(--blue-700);
  }
  html, body { background: var(--white); color: var(--charcoal); font-size: 11pt; }
  body::before, .has-bloom::after, .page-hero::before, .hero__media, .hero__media-toggle { display: none !important; }
  .site-header, .skip-link, .lens__bar, .lens__stage, .lens__caption, .copy, .copy__status { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__inner { min-height: 0; }
  .section { padding-block: 1.5rem; break-inside: avoid-page; }
  .contact-form input,
  .contact-form textarea { background: none !important; }
  .panel__code { max-height: none; overflow: visible; color: var(--charcoal); white-space: pre-wrap; }
}
