@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* navy, indigo and blue are sampled from the logo */
  --navy: #003074;
  --indigo: #3a3ca4;
  --blue: #5874f2;
  --blue-soft: #a9b9fb;
  --night: #061233;
  --night-deep: #040c24;
  --ink: #0b1b3d;
  --muted: #4f5b78;
  --line: #dce2ef;
  --mist: #f3f5fa;
  --paper: #fff;
  --on-dark: #fff;
  --on-dark-muted: #b4c0dc;
  --on-dark-line: rgba(255, 255, 255, .16);

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(72px, 9vw, 128px);
  --radius: 4px;
  --header: 76px;
  --banner: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + var(--banner)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(2.75rem, 6.6vw, 5.5rem); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.375rem; letter-spacing: -.012em; line-height: 1.25; }

.wrap { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 8px 14px; background: var(--navy); color: #fff; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.label, .kicker {
  font: 500 .8125rem/1.4 var(--mono);
  letter-spacing: .02em;
  color: var(--indigo);
}
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button--navy { background: var(--navy); color: #fff; min-height: 42px; padding: 0 18px; }
.button--navy:hover { background: var(--indigo); }
.button--light { background: #fff; color: var(--navy); }
.button--light:hover { background: var(--blue-soft); }
.button--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.button--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Header */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mockup-banner {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--banner); padding-inline: var(--gutter);
  background: #ffd24d; color: #2a2000;
  font-size: .875rem; font-weight: 600; line-height: 1.2;
}
.masthead__row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); }
.masthead__logo img { height: 58px; width: auto; }
.masthead__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.masthead__nav a:not(.button) { font-size: .96875rem; color: var(--ink); text-decoration: none; }
.masthead__nav a:not(.button):hover { color: var(--blue); }
.masthead__toggle { display: none; padding: 10px; margin-right: -10px; border: 0; background: none; color: var(--navy); cursor: pointer; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(calc(100vh - var(--header) - var(--banner)), 860px);
  background: radial-gradient(90% 120% at 82% 42%, #12306f 0%, var(--night) 62%);
  color: var(--on-dark);
}
.hero__rings {
  position: absolute; z-index: -1; top: 46%; left: calc(50% + 90px);
  width: min(74vw, 900px); translate: 0 -50%;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 86%);
  mask-image: linear-gradient(to bottom, #000 66%, transparent 86%);
}
.hero__rings svg { width: 100%; overflow: visible; }
.ring { fill: none; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.ring--a { stroke: var(--blue); }
.ring--b { stroke: var(--blue-soft); opacity: .55; }
.waves circle { fill: none; stroke: var(--blue-soft); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ring { animation: turn 150s linear infinite; }
  .ring--b { animation-direction: reverse; animation-duration: 190s; }
  .waves circle { animation: wave 9s ease-out infinite; }
  .waves circle:nth-child(2) { animation-delay: 3s; }
  .waves circle:nth-child(3) { animation-delay: 6s; }
}
@keyframes turn { to { rotate: 360deg; } }
@keyframes wave {
  from { transform: scale(.14); opacity: .55; }
  to { transform: scale(1); opacity: 0; }
}
.hero__body { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.hero__body > * { max-width: 760px; }
.hero h1 { max-width: 9.5em; text-wrap: balance; }
.hero .kicker { color: var(--blue-soft); margin-bottom: 20px; }
.hero__lede { max-width: 580px; margin-top: 26px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: #d5ddf0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--on-dark-line); }
.proof div { padding: 22px 24px 26px 0; }
.proof div + div { padding-left: 24px; border-left: 1px solid var(--on-dark-line); }
.proof dt { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.proof dd { color: var(--on-dark-muted); font-size: 1rem; }

/* Sections */
.section { padding-block: var(--space); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--night); color: var(--on-dark); }
.section--dark .label { color: var(--blue-soft); }
.section--dark .lead { color: var(--on-dark-muted); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 72px); }

.split .lead { margin-top: 12px; }

.statement {
  margin-top: 14px;
  font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500;
  color: var(--navy); text-wrap: pretty;
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.pair p:not(.label) { margin-top: 10px; color: var(--muted); }

.approach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.approach h2 { margin-bottom: 24px; }
.approach .lead + .lead { margin-top: 16px; }
.versus { display: grid; gap: 12px; }
.versus__card { padding: clamp(24px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.versus__words { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--muted); }
.versus__card--brand { background: var(--navy); border-color: var(--navy); }
.versus__card--brand .label { color: var(--blue-soft); }
.versus__card--brand .versus__words { color: #fff; }

.tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(36px, 4vw, 56px); }
.tech__render { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 9%; background: var(--mist); border-radius: var(--radius); }
.tech__render img { width: 100%; max-width: 400px; }
.tech__item h3 { margin-top: 22px; }
.tech__item p { margin-top: 10px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(36px, 4vw, 56px); }
.step figure { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step .step__tile { display: grid; place-items: center; padding: 7%; background: #e8ecf6; }
.step .step__tile img { object-fit: contain; }
.step h3 { margin-top: 4px; }
.step h3 + p { margin-top: 10px; color: var(--on-dark-muted); }

.product { margin-top: var(--space); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--on-dark-line); }
.film { position: relative; margin-top: clamp(28px, 3vw, 40px); overflow: hidden; border-radius: var(--radius); background: #000; }
.film video { width: 100%; }
.film__play {
  position: absolute; inset: 0; margin: auto;
  display: grid; place-items: center; width: 84px; height: 84px; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer;
  transition: transform .15s, background-color .15s;
}
.film__play:hover { transform: scale(1.06); background: var(--blue-soft); }
.film.is-playing .film__play { display: none; }

.ledger__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; padding-block: 24px; border-top: 1px solid var(--line); }
.ledger__row:last-child { border-bottom: 1px solid var(--line); }
.ledger h3 { font-size: 1.125rem; }
.ledger li { color: var(--muted); }
.ledger li + li { margin-top: 6px; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 56px); }
.timeline > li { position: relative; padding: 32px clamp(20px, 3vw, 40px) 0 0; border-top: 2px solid var(--navy); }
.timeline > li::before {
  content: ""; position: absolute; top: -8px; left: 0;
  width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--mist);
}
.timeline h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -.03em; color: var(--navy); }
.timeline ul { margin-top: 16px; }
.timeline ul li { padding-block: 10px; border-top: 1px solid var(--line); color: var(--muted); }

.form { display: grid; gap: 20px; justify-items: start; }
.field { display: grid; gap: 8px; width: 100%; }
.field label { font-size: .9375rem; color: var(--on-dark-muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255, 255, 255, .05); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius);
  font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue-soft); outline-offset: 0; border-color: transparent; }
.form__status { min-height: 1.6em; color: var(--blue-soft); }
.form__note { font-size: .875rem; color: var(--on-dark-muted); }
.form__note a { color: #fff; }

.footer { padding-block: 32px; background: var(--night-deep); color: var(--on-dark-muted); font-size: .9375rem; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer img { height: 54px; width: auto; }

/* Tablet */
@media (max-width: 1040px) {
  .masthead__toggle { display: block; }
  .masthead__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .masthead__nav.is-open { display: flex; }
  .masthead__nav a:not(.button) { padding: 12px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .masthead__nav .button { margin-top: 16px; min-height: 48px; }
  .split, .approach { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 760px) {
  :root { --header: 68px; }
  .masthead__logo img { height: 50px; }
  .hero__rings { top: 26%; left: 30vw; width: 120vw; opacity: .45; }
  .proof, .pair, .tech, .steps, .timeline { grid-template-columns: minmax(0, 1fr); }
  .proof div, .proof div + div { padding: 14px 0; border-left: 0; }
  .proof div + div { border-top: 1px solid var(--on-dark-line); }
  .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .timeline { gap: 36px; }
  .timeline > li { padding-right: 0; }
  .step figure { aspect-ratio: 4 / 3; }
  .film__play { width: 64px; height: 64px; }
}
