/* Ember Fabric website.
   Every colour is a token in :root; nothing below this block spells a literal colour.
   The hero film (hero-film.js) reads --bg, --surface, --surface-2, --text, --muted, --ember,
   --ember-soft, --ok, --plum-deep, --plum, --plum-glow, --sans and --mono at runtime. */
:root {
  color-scheme: dark;
  --bg: #0c1118;
  --surface: #121a24;
  --surface-2: #0f1620;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f5f1e8;
  --muted: #8b98a9;
  --code-text: #c9d4e2;
  --ember: #FF1774;
  --ember-soft: #FF5C97;
  --on-ember: #2b0316;
  --ok: #4ade80;
  --plum-deep: #2a0f26;
  --plum: #5b1f52;
  --plum-glow: #a23a8c;
  --plum-light: #d68ac8;
  --shade: rgba(0, 0, 0, 0.45);
  --brand-ink: linear-gradient(100deg, var(--ember-soft) 10%, var(--plum-light) 90%);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.22, .9, .3, 1);
  --top-h: 76px;       /* header height; the hero fills the rest of the first screen */
  --bar-h: 56px;       /* film control bar height (one row) */
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ember-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glow {
  position: absolute;
  inset: 0 0 auto;
  height: 60rem;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 50% -8rem, color-mix(in srgb, var(--plum) 55%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--ember) 7%, transparent), transparent 34rem);
}

main, .top, .foot {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-inline: 28px;
}

.brand-ink {
  background: var(--brand-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--top-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.wordmark strong { font-weight: 700; }

.flame {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50% 50% 50% 2px;
  background: linear-gradient(160deg, var(--ember-soft), var(--ember));
  box-shadow: 0 0 14px color-mix(in srgb, var(--ember) 70%, transparent);
  transform: rotate(-45deg);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-link:hover { color: var(--text); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 80%, transparent);
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--ember-soft), var(--ember));
  color: var(--on-ember);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 28px color-mix(in srgb, var(--ember) 35%, transparent);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 34px color-mix(in srgb, var(--ember) 50%, transparent);
}

.button-small { padding: 8px 16px; font-size: 0.88rem; }

.button-ghost {
  display: inline-block;
  padding: 12px 21px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.button-ghost:hover {
  border-color: color-mix(in srgb, var(--ember-soft) 55%, transparent);
  background: color-mix(in srgb, var(--ember-soft) 6%, transparent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 34px 0 0;
}

/* ---------- type ---------- */

h1, .display {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.3rem); }

.nowrap { white-space: nowrap; }

h1, .display, .lede, .idea-lede { text-wrap: balance; }

.display { font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.02; }

.display.small,
.path .display,
.ship .display { font-size: clamp(2.1rem, 3.8vw, 3.3rem); }

.kicker {
  margin: 0 0 18px;
  color: var(--ember-soft);
  font-size: 0.95rem;
  font-weight: 550;
}

.lede,
.idea-lede {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.idea-lede { max-width: 34rem; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--ember-soft);
}

/* ---------- hero: exactly one screen ----------
   The section is the viewport minus the header. The film sits in a size container and takes
   the largest 16:9 frame that fits beside or above the copy; spacing condenses with the
   viewport height instead of letting the copy fall below the fold. */

.hero-film {
  position: relative;
  left: 50%;
  width: min(1400px, calc(100vw - 32px));
  transform: translateX(-50%);
  height: calc(100vh - var(--top-h));
  height: calc(100svh - var(--top-h));
  min-height: 460px;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(10px, 2.4svh, 28px);
}

.film-fit {
  flex: 1 1 0;
  min-height: 0;
  container-type: size;
  display: grid;
  place-items: center;
}

.hero-copy {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: 12px 48px;
  align-items: center;
  width: min(1124px, 100%);
  margin-inline: auto;
  padding-top: clamp(8px, 2.2svh, 30px);
}

.hero-copy h1 { font-size: clamp(2rem, min(5.6vw, 7.4svh), 5rem); }

.hero-side .lede { margin: 0; font-size: clamp(0.95rem, 2.1svh, 1.12rem); }

.hero-side .cta-row { justify-content: flex-start; margin-top: clamp(10px, 2.2svh, 24px); }

/* Wide, short windows (a laptop at 1470x675, 1280x720): film left, statement right. */
@media (min-aspect-ratio: 8/5) and (max-height: 820px) and (min-width: 1100px) {
  .hero-film {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 24rem);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: 44px;
  }

  .film-fit { grid-column: 1; grid-row: 1; }
  .film-caption { grid-column: 1; grid-row: 2; }

  .hero-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: auto;
    padding: 0;
  }

  .hero-copy h1 { font-size: clamp(2.4rem, 3.5vw, 3.9rem); }
}

/* ---------- hero film (wwwroot/hero-film.js) ---------- */

.film-frame {
  position: relative;
  width: min(100cqw, calc((100cqh - var(--bar-h)) * 16 / 9));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px var(--shade), 0 0 90px color-mix(in srgb, var(--plum) 45%, transparent);
  overflow: hidden;
}

.film-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.film-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.film-play-big {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ember-soft), var(--ember));
  color: var(--bg);
  font: 800 0.95rem var(--sans);
  cursor: pointer;
  box-shadow: 0 8px 40px color-mix(in srgb, var(--ember) 55%, transparent);
  transition: transform 120ms ease;
}

.film-play-big:hover { transform: scale(1.05); }
.film-play-big[hidden] { display: none; }

.film-bar {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 12px 14px;
  height: var(--bar-h);
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.film-btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 600 0.8rem var(--mono);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}

.film-btn:hover { border-color: color-mix(in srgb, var(--ember-soft) 55%, transparent); }
.film-btn[aria-pressed="true"] { border-color: var(--ember-soft); color: var(--ember-soft); }
.film-btn[hidden] { display: none; }

.film-btn:focus-visible,
.film-play-big:focus-visible,
.film-scrub:focus-visible {
  outline: 2px solid var(--ember-soft);
  outline-offset: 3px;
}

.film-scrub {
  flex: 1 1 200px;
  min-width: 120px;
  accent-color: var(--ember);
}

.film-time {
  min-width: 6.4em;
  color: var(--muted);
  font: 400 0.78rem var(--mono);
  text-align: right;
}

.film-caption {
  display: flex;
  gap: 14px;
  flex: none;
  width: min(1124px, 100%);
  margin: clamp(6px, 1.4svh, 16px) auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.film-caption-step {
  flex: none;
  color: var(--ember-soft);
  font: 600 0.78rem/1.9 var(--mono);
}

/* ---------- ideas (shared) ---------- */

.idea { padding-block: 112px; border-top: 1px solid var(--line); }

/* ---------- idea 1: your own metal ---------- */

.idea-head { max-width: 46rem; }

.fleet {
  position: relative;
  margin-top: 64px;
  padding: 36px 36px 40px;
  border-radius: 28px;
  background:
    radial-gradient(42rem 18rem at 50% 0, color-mix(in srgb, var(--plum) 50%, transparent), transparent 75%),
    var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.plane-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin: 0 auto;
  padding: 14px 26px;
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ember-soft) 45%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--ember) 22%, transparent);
  font-weight: 600;
}

.fleet-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 118px;
}

/* the bus the outbound connections join, directly under the plane */
.fleet-row { position: relative; }

.fleet-row::before {
  content: "";
  position: absolute;
  top: -118px;
  left: calc((100% - 60px) / 8);
  right: calc((100% - 60px) / 8);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ember-soft) 55%, transparent), color-mix(in srgb, var(--plum-light) 55%, transparent));
}

.pod {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 16px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 220ms var(--ease-out), border-color 220ms ease;
}

.pod:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.pod.granted { border-style: dashed; border-color: color-mix(in srgb, var(--plum-light) 55%, transparent); }

/* the outbound connection: a hairline from the pod up to the plane, with a spark travelling up it */
.beam {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 118px;
  transform: translateX(-50%);
  background: linear-gradient(0deg, color-mix(in srgb, var(--ember-soft) 60%, transparent), color-mix(in srgb, var(--plum-light) 20%, transparent));
}

.beam::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--ember-soft);
  box-shadow: 0 0 12px var(--ember-soft);
  animation: rise 2.6s var(--ease-out) infinite;
}

.pod:nth-child(2) .beam::after { animation-delay: .65s; }
.pod:nth-child(3) .beam::after { animation-delay: 1.3s; }
.pod:nth-child(4) .beam::after { animation-delay: 1.95s; }
.pod.granted .beam::after { background: var(--plum-light); box-shadow: 0 0 12px var(--plum-light); }

@keyframes rise {
  0% { bottom: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { bottom: 100%; opacity: 0; }
}

.ring {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 8px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 80%, transparent 81%),
    conic-gradient(var(--ember-soft) calc(var(--load) * 1turn), var(--line-strong) 0);
  color: var(--text);
}

.granted .ring {
  background:
    radial-gradient(closest-side, var(--surface) 80%, transparent 81%),
    conic-gradient(var(--plum-light) calc(var(--load) * 1turn), var(--line-strong) 0);
}

.ring .icon { width: 26px; height: 26px; }

.pod-name { font-weight: 600; }

.pod-tag { color: var(--muted); font-size: 0.88rem; }

.granted .pod-tag { color: var(--plum-light); }

/* ---------- idea 2: the data path ---------- */

.path {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 550 0.9rem var(--sans);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.seg-btn:hover { color: var(--text); }

.seg-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.soon-dot {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--plum-light) 18%, transparent);
  color: var(--plum-light);
  font-size: 0.75rem;
}

.seg-btn[aria-pressed="true"] .soon-dot { background: var(--plum); color: var(--text); }

.path-note {
  min-height: 3.2em;
  margin: 18px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.path-figure {
  margin: 0;
  padding: 12px;
  border-radius: 28px;
  background:
    radial-gradient(30rem 16rem at 50% 100%, color-mix(in srgb, var(--plum) 40%, transparent), transparent 75%),
    var(--surface-2);
  border: 1px solid var(--line);
}

.path-figure svg { display: block; width: 100%; height: auto; }

.stop-a { stop-color: var(--ember-soft); }
.stop-b { stop-color: var(--plum-light); }

.svg-plane { fill: var(--surface); stroke: color-mix(in srgb, var(--ember-soft) 55%, transparent); stroke-width: 1.5; }
.svg-control { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.svg-never path, .svg-never circle { fill: none; stroke: var(--ember-soft); stroke-width: 2.4; stroke-linecap: round; }
.svg-never > path:first-child { stroke: var(--line-strong); stroke-dasharray: 2 6; }
.svg-never circle { fill: var(--surface-2); }
.svg-link { fill: none; stroke: url(#g-brand); stroke-width: 4; stroke-linecap: round; }
.svg-node { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.svg-node.relay { stroke: var(--plum-light); stroke-dasharray: 5 5; }
.svg-label { fill: var(--text); font: 500 19px var(--sans); }
.svg-label.strong { font-weight: 650; font-size: 21px; }
.svg-label.small { fill: var(--muted); font-size: 17px; font-weight: 450; }
.packet { fill: var(--ember-soft); }
.packets { filter: drop-shadow(0 0 6px var(--ember-soft)); }

.path-figure[data-mode="relay"] .mode-direct:not(.mode-relay),
.path-figure[data-mode="direct"] .mode-relay,
.path-figure[data-mode="gpu"] .mode-relay { display: none; }

.path-figure[data-mode="gpu"] .svg-link { stroke-dasharray: 12 10; }
.path-figure[data-mode="gpu"] .packet { fill: var(--plum-light); }
.path-figure[data-mode="gpu"] .packets { filter: drop-shadow(0 0 6px var(--plum-light)); }

/* ---------- idea 3: ship and undo ---------- */

.ship {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.term {
  margin: 0;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px var(--shade), 0 0 80px color-mix(in srgb, var(--plum) 30%, transparent);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.traffic { display: inline-flex; gap: 6px; }

.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.term-replay {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 550 0.8rem var(--sans);
  cursor: pointer;
}

.term-replay:hover { border-color: var(--ember-soft); }

.term pre {
  margin: 0;
  padding: 24px 22px 10px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.95;
  color: var(--code-text);
}

.term code { color: inherit; font-size: inherit; }

.term .ln { display: inline-block; transition: opacity 260ms ease, transform 260ms var(--ease-out); }
.term .pr { color: var(--ember-soft); }
.term .out { color: var(--muted); }
.term .ok { color: var(--ok); font-weight: 500; }

.term.typing .ln:not(.on) { opacity: 0; transform: translateY(4px); }

.term-cap {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.facts {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.facts li:last-child { border-bottom: 1px solid var(--line); }

.facts strong { color: var(--text); font-weight: 600; }

/* ---------- products ---------- */

.products { padding-block: 112px; border-top: 1px solid var(--line); }

.products-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 40px;
  margin-bottom: 40px;
}

.products-head .idea-lede { margin: 0; font-size: 1rem; }

.families {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.family { padding: 28px 28px 8px 0; }

.family + .family { padding-left: 28px; border-left: 1px solid var(--line); }

.family h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 620; letter-spacing: -0.01em; }

.family > p { min-height: 3.2em; margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.family ul { margin: 0; padding: 0; list-style: none; }

.fam-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: -10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 520;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.fam-item .icon { width: 20px; height: 20px; flex: none; color: var(--ember-soft); }

a.fam-item:hover { background: color-mix(in srgb, var(--plum) 35%, transparent); }

.fam-item.soon { color: var(--muted); }
.fam-item.soon .icon { color: var(--plum-light); }

.soon-mark {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--plum-light) 16%, transparent);
  color: var(--plum-light);
  font-size: 0.75rem;
  font-weight: 500;
}

.soon-mark.inline { margin-left: 2px; }

/* ---------- ownership ---------- */

.own {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.own-col { padding: 64px 48px 64px 0; }

.own-col + .own-col { padding: 64px 0 64px 48px; border-left: 1px solid var(--line); }

.own-big {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.own-col p:not(.own-big) {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- close ---------- */

.close {
  padding-block: 112px 120px;
  text-align: center;
}

.close .idea-lede { margin-inline: auto; }

.next-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 40px;
}

.next-label { margin-right: 6px; color: var(--muted); font-size: 0.9rem; }

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--plum) 45%, transparent);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.proof-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 64px;
  padding: 12px 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 8%, transparent);
  color: var(--text);
  font-size: 1rem;
}

.proof-line a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--ember-soft) 60%, transparent); text-underline-offset: 3px; }

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 26px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family:nth-child(3) { padding-left: 0; border-left: 0; }
  .family:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav-link, .chip { display: none; }

  .path,
  .ship { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .ship .term { order: 2; }

  .hero-copy { grid-template-columns: minmax(0, 1fr); }

  .own { grid-template-columns: minmax(0, 1fr); }
  .own-col, .own-col + .own-col { padding: 44px 0; border-left: 0; }
  .own-col + .own-col { border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  main, .top, .foot { padding-inline: 16px; }

  .idea, .products { padding-block: 80px; }

  .fleet { margin-top: 40px; padding: 24px 16px; border-radius: 22px; }
  .fleet-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
  .beam { display: none; }
  .ring { width: 62px; height: 62px; }

  .families { grid-template-columns: minmax(0, 1fr); }
  .family, .family + .family { padding: 24px 0 8px; border-left: 0; }
  .family + .family { border-top: 1px solid var(--line); }
  .family > p { min-height: 0; }
  .fleet-row::before { display: none; }
  :root { --top-h: 64px; }
  .hero-copy h1 { font-size: clamp(2rem, 9.4vw, 2.7rem); }
  .hero-side .button, .hero-side .button-ghost { padding: 11px 18px; font-size: 0.92rem; }
  .proof-line { border-radius: 20px; text-align: left; }

  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .svg-label { font-size: 22px; }
  .svg-label.strong { font-size: 24px; }
  .svg-label.small { font-size: 20px; }

  .seg { display: flex; border-radius: 22px; }
  .seg-btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 560px) {
  :root { --bar-h: 88px; }
  .film-bar { padding: 0 14px; }
  .film-scrub { order: 5; flex-basis: 100%; }
  .film-time { display: none; }
  .film-sound { margin-left: auto; }
  .film-play-big { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam::after { animation: none; bottom: 50%; }
  .pod, .fam-item, .button, .term .ln { transition: none; }
  .pod:hover, .button:hover { transform: none; }
}
