/* ============================================================
   Reel — Refract image API. Cinematic editorial language.
   Pure black, single typeface (Inter), full-bleed frames,
   letterbox slate bars, zero shadow, zero hue.
   ============================================================ */

/* ---------- Fonts: self-hosted Inter, rebuilt from upstream
   InterVariable.ttf to preserve tnum / zero / case features
   (hosted CDN subsets strip zero and case). ---------- */
@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-450.woff2") format("woff2");
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette — black, white, two cool slates, one hairline. No hue anywhere. */
  --void: #000000;
  --void-deep: #030303;
  --surface: #1a1a1a;
  --light: #ffffff;
  --slate: #767d88;
  --slate-mid: #7d848e;
  --hairline: #27272a;

  /* Spacing scale — 8px base */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-96: 96px;
  --s-128: 128px;

  /* Radii — small, never a pill, never a statement 0px corner */
  --r-button: 6px;
  --r-panel: 8px;

  /* Layout */
  --cinema: 1600px;   /* frames run edge-to-edge to this cap */
  --measure: 720px;   /* text band measure */
  --docs-col: 960px;  /* docs table + code column */

  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--light);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
}

/* Single app landmark note: this is a standalone bundle, its own <main> is fine here. */

/* ---------- Typography roles ---------- */
.t-display-xl {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.0;
  letter-spacing: -1.2px;
  margin: 0;
}
.t-display-l {
  font-weight: 400;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -1.0px;
  margin: 0;
}
.t-display-m {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.9px;
  margin: 0;
}
.t-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.2px;
  margin: 0;
}
.t-readout {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.0;
  letter-spacing: -1.2px;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.t-body {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
}
.t-body-s {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.16px;
}
/* Slate label layer — uppercase, weight 450, positive tracking, cool slate.
   The one structural signpost. `case` shifts punctuation to cap height. */
.t-slate {
  font-weight: 450;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  font-feature-settings: "case" 1;
  color: var(--slate);
}
.t-slate-sm {
  font-size: 11px;
}
/* URL / code role — Inter with tnum + zero doing a monospace's alignment work. */
.t-code {
  font-weight: 450;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums slashed-zero;
}

.ink-soft {
  color: var(--slate);
}

/* ---------- Layout primitives ---------- */
.cinema {
  max-width: var(--cinema);
  margin-inline: auto;
}
.band {
  padding-block: var(--s-96);
  padding-inline: var(--s-24);
}
.band--deep {
  background: var(--void-deep);
}
.measure {
  max-width: var(--measure);
  margin-inline: auto;
}
.eyebrow {
  display: block;
  margin-bottom: var(--s-16);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--s-24);
  padding-inline: var(--s-24);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
}
.nav.is-scrolled {
  background: var(--void);
  border-bottom: 1px solid var(--hairline);
}
.nav__wordmark {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--light);
  text-decoration: none;
}
.nav__tabs {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--s-24);
  margin: 0;
  list-style: none;
  padding: 0;
}
.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-16);
}
.nav__tab {
  position: relative;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.16px;
  color: var(--slate);
  text-decoration: none;
  padding-block: var(--s-8);
  transition: color 160ms ease;
}
.nav__tab:hover {
  color: var(--light);
}
.nav__tab[aria-current="page"] {
  color: var(--light);
}
.nav__tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--light);
}
.nav__menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-button);
  color: var(--light);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.16px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-button);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.16px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.btn--primary {
  background: var(--light);
  color: var(--void);
  border-color: var(--light);
}
.btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}
.btn--primary:active {
  background: rgba(255, 255, 255, 0.88);
}
.btn--ghost {
  background: transparent;
  color: var(--light);
  border-color: var(--hairline);
}
.btn--ghost:hover {
  border-color: var(--slate-mid);
}
.btn--block {
  width: 100%;
}
.btn--text {
  background: transparent;
  border: none;
  color: var(--light);
  height: auto;
  padding: 0;
  font-weight: 600;
}
.btn--text:hover {
  text-decoration: underline;
}

/* ---------- Focus: 2px white ring, never removed ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 2px;
}

/* ---------- Frame + scrim + slate bar ---------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--void);
}
.frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Scrim — the only gradient permitted. Reaches >=85% black under text. */
.frame__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.frame__scrim--bottom {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.92) 26%,
    rgba(0, 0, 0, 0.82) 44%,
    rgba(0, 0, 0, 0.5) 62%,
    rgba(0, 0, 0, 0) 88%
  );
}
/* Over a scrim, type is white only — slate fails on a bright still.
   Any slate-role label inside an on-image caption renders in --light. */
.hero__caption .t-slate,
.cta__caption .t-slate,
.cap__caption .t-slate {
  color: var(--light);
}
.frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-48) var(--s-48) var(--s-64);
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  max-width: 760px;
}
/* Letterbox slate bar — solid void strip carrying uppercase slate metadata. */
.slate-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 44px;
  background: var(--void);
  display: flex;
  align-items: center;
  gap: var(--s-16);
  padding: var(--s-12) var(--s-24);
  flex-wrap: wrap;
}
.slate-bar--top {
  bottom: auto;
  top: 0;
}
.slate-bar .t-code {
  color: var(--light);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
}
.hero .frame {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}
.kenburns {
  animation: kenburns 30s ease-in-out infinite alternate;
  transform-origin: 35% 45%;
}
@keyframes kenburns {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.09) translate(-1.4%, -1.1%);
  }
}
.hero__caption {
  position: relative;
  z-index: 2;
  padding: var(--s-48);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-24);
  max-width: 760px;
}
.hero .slate-bar {
  position: relative;
  z-index: 2;
}
.hero__sub {
  color: var(--light);
  max-width: 40ch;
  margin: 0;
}

/* ---------- Capability trio — asymmetric editorial grid ---------- */
.capabilities {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  height: 92vh;
  min-height: 720px;
}
.cap {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.cap--lead {
  grid-row: 1 / span 2;
}
.cap__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cap__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  padding: var(--s-32);
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
.cap__title {
  color: var(--light);
}
.cap__lede {
  color: var(--light);
  max-width: 38ch;
  margin: 0;
}

/* ---------- Live-transform demo ---------- */
.demo {
  padding-block: var(--s-96);
}
.demo__head {
  padding-inline: var(--s-24);
  margin-bottom: var(--s-48);
}
.demo__stage-wrap {
  max-width: var(--cinema);
  margin-inline: auto;
}
.demo__stage {
  position: relative;
}
.demo__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--void);
  display: grid;
  place-items: center;
}
.demo__bg {
  position: absolute;
  inset: 0;
  background: var(--void);
}
/* two stacked layers for the SOURCE / RESULT cut / dissolve */
.demo__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.demo__img {
  /* result layer: box driven by w/h state (fraction of a 1600x1000 canvas ref) */
  width: calc(var(--demo-w, 1200) / 1200 * 100%);
  height: var(--demo-h, 100%);
  object-fit: var(--demo-fit, cover);
  object-position: var(--demo-pos, 35% 30%);
  transform: rotate(var(--demo-rot, 0deg));
  filter: blur(var(--demo-blur, 0px));
}
.demo__img--source {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 30%;
  transform: none;
  filter: none;
}
.demo__layer--source {
  opacity: 0;
  transition: opacity 200ms ease;
}
.demo.is-source .demo__layer--source {
  opacity: 1;
}
.demo.is-source .demo__layer--result {
  opacity: 0;
  transition: opacity 200ms ease;
}
.demo__layer--result {
  transition: opacity 200ms ease;
}

/* demo slate bar — the interactive control surface */
.demo-slate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--void);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: var(--s-24);
  padding: var(--s-16) var(--s-24);
}
.demo-toggle {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: var(--r-button);
  overflow: hidden;
}
.demo-toggle button {
  background: transparent;
  border: none;
  color: var(--slate);
  font-weight: 450;
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  font-feature-settings: "case" 1;
  padding: 8px 14px;
  cursor: pointer;
}
.demo-toggle button[aria-pressed="true"] {
  background: var(--light);
  color: var(--void);
}
.ctrl {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}
.ctrl > label,
.ctrl > .ctrl__label {
  color: var(--slate);
}
.ctrl__value {
  color: var(--light);
  font-weight: 450;
  font-size: 14px;
  letter-spacing: 0;
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums slashed-zero;
}
.ctrl input[type="range"] {
  width: 120px;
  accent-color: var(--light);
  background: transparent;
}
.ctrl input[type="number"] {
  width: 76px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-button);
  color: var(--light);
  font-family: inherit;
  font-size: 14px;
  font-feature-settings: "tnum" 1, "zero" 1;
  padding: 6px 8px;
}
.ctrl input[type="text"] {
  width: 96px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-button);
  color: var(--light);
  font-family: inherit;
  font-size: 14px;
  font-feature-settings: "tnum" 1, "zero" 1;
  padding: 6px 8px;
}
.ctrl input:focus {
  border-color: var(--light);
  outline: none;
}
.ctrl__options {
  display: inline-flex;
  gap: var(--s-4);
}
.ctrl__options button {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-button);
  color: var(--slate);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0;
  padding: 6px 10px;
  cursor: pointer;
  font-feature-settings: "tnum" 1, "zero" 1;
}
.ctrl__options button[aria-pressed="true"] {
  color: var(--void);
  background: var(--light);
  border-color: var(--light);
}
.ctrl.is-disabled {
  opacity: 0.4;
}
.ctrl.is-disabled input,
.ctrl.is-disabled button {
  pointer-events: none;
}

/* live URL under the demo frame */
.demo__url {
  max-width: var(--cinema);
  margin: var(--s-24) auto 0;
  padding-inline: var(--s-24);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  color: var(--light);
  word-break: break-word;
}
.demo__url .t-code {
  color: var(--light);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.negotiated {
  margin-left: 6px;
  color: var(--slate);
}

/* ---------- Stats band — credits roll ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-48);
  max-width: var(--cinema);
  margin-inline: auto;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
.stat__figure {
  color: var(--light);
}
.stat__label {
  color: var(--slate);
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  height: 78vh;
  min-height: 480px;
}
.cta .frame {
  position: absolute;
  inset: 0;
}
.cta__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-32);
  padding: var(--s-24);
}
.cta__line {
  color: var(--light);
  max-width: 18ch;
}

/* ---------- Page opener ---------- */
.opener {
  padding-block: var(--s-128) var(--s-64);
  padding-inline: var(--s-24);
}
.opener__inner {
  max-width: var(--docs-col);
  margin-inline: auto;
}
.opener__title {
  color: var(--light);
}
.opener__sub {
  color: var(--slate);
  margin: var(--s-16) 0 0;
  max-width: 52ch;
}

/* ---------- Docs: quickstart ---------- */
.docs-band {
  padding-block: var(--s-96);
  padding-inline: var(--s-24);
}
.docs-col {
  max-width: var(--docs-col);
  margin-inline: auto;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-24);
  padding-block: var(--s-48);
  border-top: 1px solid var(--hairline);
}
.step:first-of-type {
  border-top: none;
}
.step__num {
  color: var(--slate);
  font-weight: 450;
  font-size: 13px;
  letter-spacing: 0.35px;
  font-feature-settings: "tnum" 1, "zero" 1, "case" 1;
}
.step__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}
.step__title {
  color: var(--light);
}
.step__text {
  color: var(--slate);
  margin: 0;
  max-width: 60ch;
}
.step__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-panel);
  margin-top: var(--s-8);
}
.step__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step__frame .slate-bar {
  border-radius: 0;
}

/* the request-form inline URL block */
.url-line {
  color: var(--light);
  word-break: break-word;
}

/* Code block — --surface, white text only, 8px radius, no shadow */
.code {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-panel);
  padding: var(--s-24);
  min-width: 0;
  overflow-x: auto;
}
.code pre {
  margin: 0;
  font-family: inherit;
  color: var(--light);
  font-weight: 450;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums slashed-zero;
  white-space: pre;
}
.code__copy {
  position: absolute;
  top: var(--s-12);
  right: var(--s-12);
  height: 32px;
  padding: 0 12px;
}
.code b {
  font-weight: 500;
}

/* ---------- Parameter table — one long slate ---------- */
.param-table {
  width: 100%;
  border-collapse: collapse;
}
.param-table caption {
  text-align: left;
}
.param-table thead th {
  text-align: left;
  padding: var(--s-12) var(--s-16);
  border-bottom: 1px solid var(--hairline);
  color: var(--slate);
  font-weight: 450;
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  font-feature-settings: "case" 1;
  white-space: nowrap;
}
.param-table tbody td {
  padding: var(--s-16);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.param-table td.p-name {
  color: var(--light);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: slashed-zero;
  white-space: nowrap;
}
.param-table td.p-values {
  color: var(--slate);
  font-size: 14px;
  font-feature-settings: "tnum" 1, "zero" 1;
}
.param-table td.p-desc {
  color: var(--slate);
  font-size: 14px;
}
.tag-neg {
  display: inline-block;
  margin-left: var(--s-8);
  color: var(--slate);
  font-weight: 450;
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  font-feature-settings: "case" 1;
  vertical-align: middle;
}
.table-scroll {
  min-width: 0;
  overflow-x: auto;
}

/* ---------- Hairline figure rows (caching, overage) ---------- */
.rows {
  border-top: 1px solid var(--hairline);
}
.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-24);
  padding-block: var(--s-24);
  border-bottom: 1px solid var(--hairline);
}
.row__label {
  color: var(--slate);
}
.row__value {
  color: var(--light);
  text-align: right;
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums slashed-zero;
}

/* ---------- Pricing tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
  max-width: var(--docs-col);
  margin-inline: auto;
}
.tier {
  background: var(--void-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: var(--s-32);
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
}
.tier__name {
  color: var(--light);
}
.tier__price {
  color: var(--light);
  display: flex;
  align-items: baseline;
  gap: var(--s-8);
}
.tier__per {
  color: var(--slate);
  font-size: 14px;
  letter-spacing: -0.16px;
}
.tier__quota {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
.tier__quota li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-16);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--hairline);
}
.tier__quota li:last-child {
  border-bottom: none;
}
.q-label {
  color: var(--slate);
  font-size: 14px;
}
.q-value {
  color: var(--light);
  font-size: 14px;
  text-align: right;
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums slashed-zero;
}
.tier__extra {
  color: var(--slate);
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--docs-col);
  margin-inline: auto;
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
  padding-block: var(--s-24);
  color: var(--light);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq__q {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.2px;
}
.faq__chev {
  color: var(--slate);
  font-weight: 450;
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}
.faq details[open] .faq__chev {
  transform: rotate(45deg);
}
.faq__a {
  color: var(--slate);
  margin: 0 0 var(--s-24);
  max-width: 60ch;
}

/* ---------- Footer — black, exactly like the page ---------- */
.footer {
  background: var(--void);
  padding: var(--s-96) var(--s-24) var(--s-48);
}
.footer__inner {
  max-width: var(--cinema);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-24);
}
.footer__brand {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--light);
}
.footer__col h4 {
  margin: 0 0 var(--s-16);
  color: var(--slate);
  font-weight: 450;
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  font-feature-settings: "case" 1;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
.footer__col a {
  color: var(--slate);
  font-size: 14px;
  text-decoration: none;
}
.footer__col a:hover {
  color: var(--light);
}
.footer__legal {
  max-width: var(--cinema);
  margin: var(--s-64) auto 0;
  padding-top: var(--s-24);
  border-top: 1px solid var(--hairline);
  color: var(--slate-mid);
  font-size: 14px;
}

/* ---------- Section eyebrow head (text bands) ---------- */
.section-head {
  max-width: var(--cinema);
  margin: 0 auto var(--s-48);
  padding-inline: var(--s-24);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .t-display-xl {
    font-size: 40px;
    letter-spacing: -1.0px;
  }
  .capabilities {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .cap {
    aspect-ratio: 4 / 3;
  }
  .cap--lead {
    grid-column: 1 / span 2;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-48) var(--s-24);
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }
  .band {
    padding-block: var(--s-64);
  }
  .t-display-xl {
    font-size: 32px;
    letter-spacing: -0.9px;
  }
  .t-display-l {
    font-size: 32px;
    letter-spacing: -0.9px;
  }
  .t-display-m {
    font-size: 26px;
  }
  .t-readout {
    font-size: 40px;
  }

  /* nav collapses to wordmark + menu */
  .nav__tabs {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: auto;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    background: var(--void);
    border-bottom: 1px solid var(--hairline);
    padding: var(--s-8) var(--s-24) var(--s-16);
    display: none;
  }
  .nav__tabs.is-open {
    display: flex;
  }
  .nav__tab {
    width: 100%;
    padding-block: var(--s-12);
  }
  .nav__tab[aria-current="page"]::after {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__menu-btn {
    display: inline-flex;
  }

  .hero {
    height: 84vh;
  }
  .hero__caption {
    padding: var(--s-24);
  }
  .frame__caption {
    padding: var(--s-24);
  }

  /* capability grid 1-up, full-bleed maintained */
  .capabilities {
    grid-template-columns: 1fr;
  }
  .cap,
  .cap--lead {
    grid-column: 1;
    aspect-ratio: 4 / 3;
  }
  .cap__caption {
    padding: var(--s-24);
  }

  /* demo slate becomes a stacked bottom sheet (static, below the frame) */
  .demo__frame {
    aspect-ratio: 4 / 3;
  }
  .demo-slate {
    position: static;
    border-top: none;
  }
  .demo__stage-wrap {
    background: var(--void);
  }

  /* stats become 2-up */
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-32);
  }

  /* tiers 1-up */
  .tiers {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: var(--s-16);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--s-32);
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  /* stats 2x2 on tablet */
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-48);
  }
}

/* ---------- Reduced motion: drop drift + transitions, cut not dissolve ---------- */
@media (prefers-reduced-motion: reduce) {
  .kenburns {
    animation: none;
  }
  .demo__layer--source,
  .demo__layer--result,
  .faq__chev,
  .nav,
  .btn {
    transition: none !important;
  }
}
