/* ModusGen: modusgen.com
   One stylesheet for every page. Order: fonts, tokens, base, shared pieces,
   the home page, the inner pages, then motion and preferences. */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-VF-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-VF-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* A system face scaled to Mona Sans, so text does not jump when the web font arrives. */
@font-face {
  font-family: "Mona Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 96%;
  ascent-override: 113%;
  descent-override: 33%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ tokens */

:root {
  /* the page is tan stock; panels are lighter sheets laid on it */
  --bg: #d8c6a6;
  --bg-1: #e9dfca;
  --bg-2: #e1d5bd;
  --bg-3: #cdbb98;
  --bg-tint: #dfd1b6;
  --line: rgba(64, 44, 16, 0.15);
  --line-2: rgba(64, 44, 16, 0.26);
  --track: rgba(64, 44, 16, 0.18);
  --wash: rgba(64, 44, 16, 0.06);
  --scroll: #a9956f;
  --ink: #1d1913;
  --ink-2: #40382d;
  --ink-3: #574d3f;
  --tone: #716349;
  --accent: #2346ae;
  --accent-hi: #1a3792;
  --neutral-bar: #6e604b;
  --ok: #17603f;
  --error-line: #a8321f;
  --error-text: #8e2516;

  --font: "Mona Sans", "Mona Fallback", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --nav: 64px;
  --edge: max(var(--pad), calc((100vw - var(--wrap)) / 2));
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 10px;
  --section: 144px;

  interpolate-size: allow-keywords;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* the page is tan cloth: a fine plain weave, drawn as light and shade over the tan (site-build/render-weave.py) */
html {
  background: var(--bg) url("../img/weave.webp") 0 0 / 160px 160px repeat;
  color: var(--ink);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 24px);
  scrollbar-color: var(--scroll) var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-menu {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--accent);
}

::selection {
  background: rgba(35, 70, 174, 0.24);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  font-stretch: 96%;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.875rem, 1.4vw + 1.3rem, 2.625rem);
}

h3 {
  font-size: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* keeps a hyphenated word whole, so "ex-engineers" never breaks after "ex-" */
.nowrap {
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-2);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Figures set in the mono face: prices, counts, timings. */
.num {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.icon {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-2);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn .icon {
  transition: transform 0.35s var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background: #3a3127;
}

.btn--primary:hover .icon {
  transform: translateX(2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn--ghost:hover {
  background: var(--wash);
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 0.875rem;
}

.btn--lg {
  height: 46px;
  padding: 0 20px;
  font-size: 1rem;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.link-arrow .icon {
  color: var(--ink-3);
  transition: transform 0.35s var(--ease), color 0.2s;
}

.link-arrow:hover .icon {
  color: var(--ink);
  transform: translateX(3px);
}

/* ------------------------------------------------------------------ navigation */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
  view-transition-name: site-nav;
}

.nav.is-stuck,
.nav.is-open {
  background: rgba(216, 198, 166, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.brand__name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav__links a {
  padding: 6px 11px;
  border-radius: var(--r-1);
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a[aria-current] {
  color: var(--ink);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
}

.nav__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.nav__toggle path {
  transition: d 0.3s var(--ease);
}

.nav__toggle[aria-expanded="true"] path {
  d: path("M5 5l10 10M5 15L15 5");
}

@media (max-width: 900px) {
  .nav__links {
    position: absolute;
    inset: var(--nav) 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    height: calc(100dvh - var(--nav));
    margin: 0;
    padding: 8px var(--pad) 24px;
    overflow-y: auto;
    background: var(--bg);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links a {
    padding: 16px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }

  .nav__actions {
    margin-left: auto;
  }

  .nav__toggle {
    display: grid;
  }
}

/* ------------------------------------------------------------------ the stack figure */

.stack {
  position: relative;
  width: 100%;
}

.stack__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stack__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* the home page's one figure, pinned beside the hero and the tour */
.stack--story {
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
}

/* on a phone the hero has its own figure, and each chapter shows only its layer */
.stack--hero,
.stack--inline {
  display: none;
}

/* an inner page's figure: one layer in focus, running off the right edge, fading top and bottom */
.stack--page {
  width: calc(100% + var(--edge) - 16px);
  height: min(60vh, 540px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}


/* ------------------------------------------------------------------ home: one figure from the hero through the tour */

.story {
  display: grid;
  grid-template-columns: minmax(0, min(560px, 48%)) minmax(0, 1fr);
  column-gap: clamp(32px, 4vw, 64px);
  padding-top: var(--nav);
}

.story__flow {
  min-width: 0;
}

/* pinned under the nav for the whole hero and tour, bleeding off the right edge */
.story__stage {
  position: sticky;
  top: var(--nav);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: calc(100% + var(--edge) - 16px);
  height: calc(100svh - var(--nav));
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--nav));
  padding-block: 24px 40px;
}

.hero__title {
  font-size: clamp(2.75rem, 4.3vw + 0.4rem, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.tone {
  color: var(--tone);
}

.hero__lede {
  max-width: 31rem;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.hero__logos {
  margin-top: clamp(40px, 7vh, 72px);
}

/* the companies our engineers come from */
.logos {
  display: flex;
  align-items: center;
  gap: 20px 56px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.logos__label {
  flex: none;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

/* The marks sit in one row centred under the line above, so the margin from its left end to the
   first mark equals the margin from the last mark to its right end. */
.logos__list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* in the hero they sit under the actions: the label above, the marks in a row */
.hero .logos {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0 0;
}

.hero .logos__list {
  align-self: stretch;
}

/* Each mark keeps the size that balances it with the others (--h) and is pulled down by the share
   of it that hangs below its word's baseline (--below), so the words sit on one line. */
.logo {
  display: block;
  width: auto;
  height: var(--h);
  margin-bottom: calc(var(--h) * var(--below) * -1);
  opacity: 0.72;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.95;
}

.logo--sk-hynix {
  --h: 43px;
  --below: 0.11;
}

.logo--capital-one {
  --h: 32px;
  --below: 0.2575;
}

.logo--aws {
  --h: 30px;
  --below: 0.48;
}

/* ------------------------------------------------------------------ home: the layer tour */

.tour {
  padding-bottom: clamp(48px, 6vw, 96px);
}

/* each beat of the story, the overview and the three chapters, gets most of a screen to itself */
.tour__head,
.chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  padding-block: 8vh;
}

.tour__head h2 {
  max-width: 15em;
}

.tour__head p {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.tour__head p + p {
  margin-top: 12px;
}

/* the sources behind the claims, linked where they are made */
.tour__head a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.tour__head a:hover {
  text-decoration-color: currentColor;
}

.chapter {
  max-width: 28rem;
}

.chapter h3 {
  font-size: clamp(1.5rem, 1vw + 1.15rem, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.chapter > p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

/* a few lines of real tool output inside a chapter */
.mini-term {
  align-self: stretch;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-1);
}

.mini-term .term__out {
  margin-top: 12px;
  overflow-x: auto;
  font-size: 0.6875rem;
  line-height: 1.75;
  scrollbar-width: none;
}

@media (max-width: 560px) {
  .mini-term .term__out {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

.chapter .link-arrow {
  margin-top: 28px;
}

/* the three layers, as links to their chapters; shown once the tour begins */
.tour__nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding-bottom: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}

.story__stage.is-tour .tour__nav {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}

.tour__nav a {
  position: relative;
  padding: 14px 14px 6px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.3s;
}

.tour__nav a::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 1px;
  background: var(--line-2);
  transition: background-color 0.3s;
}

.tour__nav a:hover {
  color: var(--ink-2);
}

.tour__nav a.is-on {
  color: var(--ink);
}

.tour__nav a.is-on::before {
  background: var(--accent);
}

@media (max-width: 1000px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .story__stage {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-block: 24px 0;
  }

  /* the figure sits between the offer and the buttons */
  .stack--hero {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1 / 0.92;
    max-height: 56vh;
    margin: 8px auto 0;
  }

  .hero__actions {
    margin-top: 8px;
  }

  .hero__logos {
    margin-top: 48px;
  }

  .tour__head,
  .chapter {
    min-height: 0;
  }

  .tour__head {
    padding-block: 88px 8px;
  }

  .chapter {
    max-width: 40rem;
    padding-block: 40px;
  }

  .stack--inline {
    display: block;
    align-self: stretch;
    height: 260px;
    margin: 0 0 20px;
  }
}

@media (max-width: 700px) {
  .logos {
    flex-direction: column;
    align-items: flex-start;
  }

  /* the three marks stay in one centred row under the label, their words on one baseline */
  .logos__list {
    align-self: stretch;
    gap: 24px 36px;
  }
}

@media (max-width: 560px) {
  .stack--hero {
    max-height: 320px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

/* ------------------------------------------------------------------ the pledge */

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

.pledge__text {
  max-width: 17em;
  font-size: clamp(1.875rem, 2.6vw + 0.9rem, 3.25rem);
  font-weight: 500;
  font-stretch: 96%;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.pledge__text span {
  color: var(--tone);
}

.pledge .link-arrow {
  margin-top: 32px;
}

/* ------------------------------------------------------------------ closing call */

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

.cta__inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.cta__title {
  max-width: 15em;
  font-size: clamp(2rem, 2.4vw + 1rem, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.cta__text {
  max-width: 33rem;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.cta .btn {
  margin-top: 32px;
}

/* ------------------------------------------------------------------ inner pages */

.page-hero {
  padding: calc(var(--nav) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.page-hero__title {
  font-size: clamp(2.375rem, 3.2vw + 0.6rem, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-hero__lede {
  max-width: 33rem;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.55;
}

.page-hero__figure {
  margin: 0;
}

.page-hero--text .page-hero__title {
  max-width: 14em;
}

.page-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
}

.page-hero__split .page-hero__lede {
  margin-top: 0;
}

@media (max-width: 900px) {
  .page-hero__split {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero__split .page-hero__lede {
    margin-top: 4px;
  }
}

@media (max-width: 900px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack--page {
    width: 100%;
    height: 280px;
  }
}

.section {
  padding-block: var(--section);
}

.section--tint {
  background: var(--bg-tint) url("../img/weave.webp") 0 0 / 160px 160px repeat;
  border-top: 1px solid var(--line);
}

.section--flush {
  padding-top: 0;
}

/* the first section under a page header follows closely */
.page-hero + .section {
  padding-top: 48px;
}

/* tighter vertical rhythm on small screens */
@media (max-width: 760px) {
  :root {
    --section: 96px;
  }

  .pledge {
    padding-block: 96px;
  }

  .cta {
    padding-block: 104px;
  }

  .page-hero + .section {
    padding-top: 24px;
  }
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  max-width: 18em;
}

.section-head p {
  max-width: 36rem;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

/* a list of named things, a hairline between each */
.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.row__title {
  font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.row__body > p {
  max-width: 36rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.row__body .ticks {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 0;
  }
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.ticks li {
  position: relative;
  padding-left: 26px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 16px;
  height: 16px;
  background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l2.8 2.8L12.5 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='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l2.8 2.8L12.5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.note {
  margin-top: 40px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------ panels */

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-1);
}

/* Screens: tool output stays dark, like a display set into the page. The SEI dashboard
   preview (.console) is paper, like the portal it shows. */
.mini-term,
.term,
.record {
  --bg-1: #1a1611;
  --bg-2: #221d17;
  --bg-3: #2e281f;
  --line: rgba(255, 238, 210, 0.08);
  --line-2: rgba(255, 238, 210, 0.15);
  --scroll: #3d352b;
  --track: rgba(255, 238, 210, 0.1);
  --wash: rgba(255, 238, 210, 0.05);
  --ink: #f1ebdf;
  --ink-2: #b9ae9c;
  --ink-3: #94897b;
  --accent: #6f9bff;
  --accent-hi: #9dbcff;
  --ok: #63d3a0;
  color: var(--ink);
  color-scheme: dark;
}

.panel__title {
  font-size: 1rem;
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.panel__note {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.panel__fine {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* says what a panel shows, where the eye lands first */
.flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.flag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* ------------------------------------------------------------------ platform: sample output */

.proof__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.term {
  grid-column: 1 / -1;
}

.record {
  grid-column: span 4;
}

.console {
  grid-column: span 8;
}

/* the home page's glance at the SEI dashboard: four columns, no opening sentence */
.console--mini {
  align-self: stretch;
  margin-top: 22px;
}

.console--mini .console__table {
  min-width: 0;
}

.console--mini .console__table th,
.console--mini .console__table td {
  padding-block: 9px;
}

/* its column heads are long for a narrow panel, so they may take two lines */
.console--mini .console__table thead th {
  padding-top: 12px;
  white-space: normal;
}

@media (max-width: 1000px) {
  .record,
  .console {
    grid-column: 1 / -1;
  }
}

.term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.term__tabs {
  display: flex;
  gap: 2px;
  margin-left: -10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.term__tabs::-webkit-scrollbar {
  display: none;
}

/* on a phone the three tabs wrap rather than run off the edge with no sign there is more */
@media (max-width: 560px) {
  .term__tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.term__tab {
  margin-bottom: -1px;
  padding: 17px 10px 15px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.term__tab:hover {
  color: var(--ink-2);
}

.term__tab[aria-selected="true"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.term__what {
  padding: 16px 24px 0;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.term__pane {
  padding: 16px 24px 24px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

@media (min-width: 1001px) {
  /* as tall as the longest tab, so the panel does not jump between tabs */
  .term__pane {
    min-height: 21rem;
  }
}

.term__out {
  margin: 0;
  color: var(--ink-2);
  font: 400 0.78125rem/1.75 var(--mono);
  white-space: pre;
}

.term__out b {
  color: var(--ink);
  font-weight: 500;
}

.term__out .t-cmd {
  color: var(--ink);
}

.term__out .t-ps {
  color: var(--ink-3);
}

.term__out .t-ok {
  color: var(--ok);
}

.term__out .t-hi {
  color: var(--accent-hi);
}

.term__out .ln {
  transition: opacity 0.25s;
}

.term__out .ln.is-hid {
  opacity: 0;
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--ink);
  animation: blink 1s steps(2, jump-none) infinite;
}

@keyframes blink {
  to {
    opacity: 0.15;
  }
}

@media (max-width: 760px) {
  .term__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .term__tabs {
    margin: 0;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
  }

  .term__bar .flag {
    padding: 14px 24px 0;
  }

  .term__out {
    font-size: 0.71875rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

/* one usage record */

.record {
  display: flex;
  flex-direction: column;
  padding-top: 22px;
}

.record .panel__title {
  padding-inline: 24px;
}

.record__json {
  flex: 1;
  margin: 14px 0 0;
  padding: 0 24px 18px;
  overflow-x: auto;
  color: var(--ink-2);
  font: 400 0.78125rem/1.85 var(--mono);
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

.record__json .j-p,
.record__json .j-k {
  color: var(--ink-3);
}

.record__json .j-s {
  color: var(--accent-hi);
}

.record__json .j-n,
.record__json .j-b {
  color: var(--ink);
}

/* console preview: the portal's SEI dashboard in miniature, on paper like the portal. An
   opening sentence, then a ledger: heads on a strong rule, figures in mono, meters in blue. */

.console__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}

.console__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.console__brand svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* the period, where the portal keeps its period choice */
.console__period {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* the portal's result sentence and provenance line, at the panel's scale */
.console__head {
  padding: 22px 24px 8px;
}

.console__result {
  max-width: 30em;
  color: var(--ink-2);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* a figure in a heading keeps Mona Sans: in the mono face the comma leaves a gap */
.console__result .fig {
  color: var(--ink);
  font-variant-numeric: proportional-nums lining-nums;
  white-space: nowrap;
}

.console__prov {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.console__scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

.console__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.console__table th,
.console__table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
}

.console__table tr > :first-child {
  padding-left: 24px;
}

.console__table tr > :last-child {
  padding-right: 24px;
}

.console__table .r {
  text-align: right;
}

.console__table thead th {
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom-color: var(--line-2);
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 400;
  vertical-align: bottom;
}

.console__table tbody th {
  font-weight: 500;
}

/* a lead cell's sub-line, such as the small teams folded together */
.console__table th small {
  display: block;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
}

.console__table td {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.console__table tbody tr:last-child > * {
  border-bottom: 0;
}

.console__table tfoot th,
.console__table tfoot td {
  border-top: 1px solid var(--line-2);
  border-bottom: 0;
  color: var(--ink);
  font-weight: 500;
}

/* a meter: the figure, then a short blue bar on a brown track, as in the portal */
.meter {
  display: inline-block;
  width: 56px;
  height: 6px;
  margin-left: 10px;
  overflow: hidden;
  border-radius: 1px;
  background: var(--track);
  vertical-align: 0.12em;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--v));
  transform-origin: left center;
  transition: transform 1.1s var(--ease);
}

.js .console:not(.is-in) .meter i {
  transform: scaleX(0);
}

@media (max-width: 640px) {
  .console__bar {
    padding-inline: 16px;
  }

  .console__head {
    padding: 18px 16px 6px;
  }

  .console__result {
    font-size: 1.125rem;
  }

  .console__table {
    min-width: 0;
  }

  .console__table thead th {
    white-space: normal;
  }

  .console__table tr > :first-child {
    padding-left: 16px;
  }

  .console__table tr > :last-child {
    padding-right: 16px;
  }

  /* on a phone the full table keeps team, weekly activity, PRs with agent work and cost */
  .console:not(.console--mini) .console__table tr > :nth-child(4),
  .console:not(.console--mini) .console__table tr > :nth-child(5) {
    display: none;
  }
}

/* phones narrow the little bars; the narrowest keep only the percentages and tighten the
   columns, so the four that remain fit without scrolling */
@media (max-width: 560px) {
  .console .meter {
    width: 36px;
    margin-left: 8px;
  }
}

@media (max-width: 420px) {
  .console .meter {
    display: none;
  }

  .console__table th,
  .console__table td {
    padding-inline: 7px;
  }

  .console__table thead th {
    font-size: 0.75rem;
  }

  .console__table th small {
    max-width: 7rem;
  }
}

/* ------------------------------------------------------------------ economics */

/* The tier ledger: one row per tier, between hairlines. Name, the work it takes, and what the
   same work costs hosted, drawn as a brown frontier bar over a blue open-weight bar. */
.tiers {
  --cols: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  border-top: 1px solid var(--line-2);
}

.tiers__head {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 0 48px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.tier {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 24px 48px;
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}

.tier__title {
  font-size: clamp(1.5rem, 1vw + 1.15rem, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.tier__models {
  max-width: 15rem;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tier__jobs {
  display: grid;
  gap: 16px;
  margin: 0;
}

.tier__jobs dt {
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.tier__jobs dd {
  max-width: 32rem;
  margin: 4px 0 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.tier__lead {
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.tier__proof {
  max-width: 34rem;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.55;
}

.tier__saving {
  font-size: clamp(1.5rem, 1vw + 1.15rem, 2rem);
  font-weight: 500;
  font-stretch: 96%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tier__saving .num {
  font-size: 1em;
  letter-spacing: -0.05em;
}

.tier__unit {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.pair {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.pair__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 16px;
}

.pair__label {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.pair__value {
  color: var(--ink);
  font-size: 0.8125rem;
}

.pair__row .track {
  grid-column: 1 / -1;
}

.tier--out .tier__title {
  color: var(--ink-3);
}

.tier--out .tier__proof {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.tiers__fine {
  max-width: 62rem;
  margin-top: 24px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .tiers {
    --cols: minmax(0, 5fr) minmax(0, 7fr);
  }

  .tiers__head {
    display: none;
  }

  .tier__cost {
    grid-column: 2;
  }
}

/* on a phone the saving follows the tier's name, before the detail */
@media (max-width: 640px) {
  .tiers {
    --cols: minmax(0, 1fr);
  }

  .tier {
    gap: 24px;
    padding: 32px 0 36px;
  }

  .tier__cost {
    grid-column: auto;
    order: 1;
  }

  .tier__work {
    order: 2;
  }
}

/* Tracks and bars, shared by the ledger and the calculator. Frontier models are brown, hosted open
   weights solid blue, and owned servers split in two: running costs in a half-strength blue, then
   the hardware being written off as a blue outline, which is gone once it is paid off. */
.track {
  position: relative;
  display: block;
  height: 10px;
  background: var(--wash);
}

.bar {
  position: absolute;
  inset-block: 0;
  left: calc(var(--x, 0) * 100%);
  width: max(3px, calc(var(--w) * 100%));
  border-radius: 2px;
}

/* calculator bars glide to each new figure; they sit absolutely in a fixed track, so nothing else reflows */
.calc .bar {
  transition:
    width 0.6s var(--ease),
    left 0.6s var(--ease);
}

.bar--frontier {
  background: var(--neutral-bar);
}

.bar--open {
  background: var(--accent);
}

.bar--run {
  background: rgba(35, 70, 174, 0.5);
}

.bar--run.is-joined {
  border-radius: 2px 0 0 2px;
}

.bar--hw {
  border-radius: 0 2px 2px 0;
  background: rgba(35, 70, 174, 0.12);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Paper tabs: native radios, drawn as words on a hairline with an ink rule under the chosen one. */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}

.seg__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 10px;
  color: var(--ink-3);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s;
}

.seg__opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.seg__opt::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.seg__opt:hover {
  color: var(--ink-2);
}

.seg__opt:has(input:checked) {
  color: var(--ink);
}

.seg__opt:has(input:checked)::after {
  transform: none;
}

.seg__opt:has(input:focus-visible) {
  outline: 2px solid var(--accent-hi);
  outline-offset: -4px;
  border-radius: var(--r-1);
}

.seg--sm {
  display: inline-grid;
  grid-auto-columns: auto;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}

.seg--sm .seg__opt {
  min-height: 40px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* The calculator: tabs on top, inputs on the left, the four costs on the right, the basis below. */
.calc__tiers {
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.calc__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.calc__inputs {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.calc__outputs {
  padding: 32px;
}

.calc__bill {
  display: grid;
}

.calc__label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.calc__out {
  margin-top: 12px;
  color: var(--ink);
  line-height: 1;
}

/* a single display figure, so it takes Mona Sans's proportional figures like a heading */
.calc__amount {
  font-size: clamp(1.875rem, 1.2vw + 1.4rem, 2.375rem);
  font-weight: 500;
  font-stretch: 96%;
  letter-spacing: -0.035em;
}

.calc__per {
  margin-left: 4px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.calc__range {
  width: 100%;
  height: 28px;
  margin: 18px 0 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.calc__range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--track) var(--fill, 50%));
}

.calc__range::-moz-range-track {
  height: 2px;
  background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--track) var(--fill, 50%));
}

.calc__range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.calc__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.calc__range:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 6px;
}

/* labels sit under the thumb's centre at each value: 8px in from either end */
.calc__scale {
  position: relative;
  height: 1rem;
  margin-top: 2px;
  color: var(--ink-3);
  font: 400 0.75rem/1 var(--mono);
}

.calc__scale span {
  position: absolute;
  top: 0;
  left: calc(8px + var(--at) * (100% - 16px));
  transform: translateX(-50%);
}

.calc__scale span:first-child {
  transform: translateX(-8px);
}

.calc__scale span:last-child {
  transform: translateX(calc(-100% + 8px));
}

.calc__basis {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.calc__speed {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.calc__note {
  max-width: 26rem;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.calc__speed > .calc__note:first-child,
.calc__speed > [hidden] + .calc__note {
  margin-top: 0;
}

.calc__rows {
  display: grid;
  gap: 20px;
}

.calc__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 16px;
}

.calc__name {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.calc__fig {
  white-space: nowrap;
}

.calc__fig .num {
  color: var(--ink);
  font-size: 0.875rem;
}

.calc__pct {
  display: inline-block;
  min-width: 5.75rem;
  margin-left: 12px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  text-align: right;
}

.calc__row .track {
  grid-column: 1 / -1;
  height: 12px;
}

.calc__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 0.75rem;
}

.key {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  vertical-align: -1px;
  border-radius: 2px;
}

.key--run {
  background: rgba(35, 70, 174, 0.5);
}

.key--hw {
  background: rgba(35, 70, 174, 0.12);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calc__read {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.55;
}

.calc__fine {
  padding: 16px 32px 18px;
}

/* without scripts the calculator stands as one worked example */
.no-js-only {
  display: none;
}

html:not(.js) .js-only {
  display: none !important;
}

html:not(.js) .no-js-only {
  display: block;
}

.routes .routes__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .calc__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc__inputs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 560px) {
  .calc__tiers {
    padding: 0 4px;
  }

  .seg__opt {
    padding: 12px 6px;
    font-size: 0.875rem;
  }

  .calc__inputs,
  .calc__outputs {
    padding: 24px 20px;
  }

  .calc__fine {
    padding: 14px 20px 16px;
  }

  .calc__pct {
    min-width: 0;
  }
}

/* ------------------------------------------------------------------ infrastructure: the stack */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 48px;
  align-items: start;
}

.split__lead p {
  max-width: 26rem;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.stacklist {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.stacklist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.stacklist li span:last-child {
  color: var(--ink-3);
}

.spec {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.spec th,
.spec td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.spec thead th {
  padding-top: 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.spec tbody th {
  width: 50%;
  padding-right: 24px;
}

.spec td {
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .stacklist li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* infrastructure: hardware per tier */
.section--ruled {
  border-top: 1px solid var(--line);
}

.spec--tiers {
  margin-top: 0;
}

.spec--tiers thead th:nth-child(1) {
  width: 20%;
}

.spec--tiers thead th:nth-child(2) {
  width: 31%;
}

.spec--tiers thead th:nth-child(3) {
  width: 31%;
}

.spec--tiers th,
.spec--tiers td {
  padding: 18px 24px 18px 0;
}

.spec--tiers tbody th {
  width: auto;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.spec--tiers td:last-child,
.spec--tiers th:last-child {
  padding-right: 0;
}

.spec--tiers td .num {
  color: var(--ink);
  font-size: 0.875rem;
  white-space: nowrap;
}

.spec__sub {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 400;
}

.sizing {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 48px;
  margin-top: 56px;
}

.sizing__title {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.sizing__lead p {
  max-width: 22rem;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.sizing__body p {
  max-width: 40rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sizing__body p + p {
  margin-top: 14px;
}

.sizing__body .sizing__rule {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
}

.sizing__body .sizing__basis {
  color: var(--ink-3);
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .sizing {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* on a phone each tier becomes a short block, every figure under its own label */
@media (max-width: 760px) {
  .spec--tiers thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .spec--tiers tr {
    display: grid;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .spec--tiers tbody tr:first-child {
    border-top: 1px solid var(--line);
  }

  .spec--tiers th,
  .spec--tiers td {
    padding: 0;
    border: 0;
  }

  .spec--tiers td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--ink-3);
    font-size: 0.75rem;
  }
}

/* ------------------------------------------------------------------ how it works: the steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line-2);
  list-style: none;
}

/* the line fills as the section is read */
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: calc(var(--prog, 1) * 100%);
  height: 1px;
  background: var(--ink);
}

.step {
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -36px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  transition: background-color 0.5s, border-color 0.5s;
}

.step.is-on::before,
html:not(.js) .step::before {
  border-color: var(--ink);
  background: var(--ink);
}

.step__n {
  display: block;
  color: var(--ink-3);
  font-size: 0.75rem;
}

.step__title {
  margin-top: 10px;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}

.step__time {
  margin-top: 6px;
  color: var(--ink-3);
  font: 400 0.75rem/1.4 var(--mono);
}

.step p:last-child {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px 0;
    padding: 0 0 0 28px;
    border-top: 0;
    border-left: 1px solid var(--line-2);
  }

  .steps::before {
    left: -1px;
    top: 0;
    width: 1px;
    height: calc(var(--prog, 1) * 100%);
  }

  .step::before {
    left: -32px;
    top: 6px;
  }
}

/* ------------------------------------------------------------------ company */

.company-logos .logos {
  padding: 0;
  border-top: 0;
}

.company-logos .logos__label {
  display: none;
}

.company-logos .logos__list {
  gap: 40px 72px;
}

.company-logos .logo {
  opacity: 0.85;
}

.company-logos .logo--sk-hynix {
  --h: 62px;
}

.company-logos .logo--capital-one {
  --h: 46px;
}

.company-logos .logo--aws {
  --h: 44px;
}

/* on phones the Company page's larger marks scale down so the three still fit one row */
@media (max-width: 560px) {
  .company-logos .logos__list {
    gap: 24px 36px;
  }

  .company-logos .logo--sk-hynix {
    --h: 46px;
  }

  .company-logos .logo--capital-one {
    --h: 34px;
  }

  .company-logos .logo--aws {
    --h: 33px;
  }
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 0;
}

.rule {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.rule dt {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.rule dd {
  max-width: 30rem;
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 48px;
  align-items: start;
}

.faq__title {
  position: sticky;
  top: calc(var(--nav) + 32px);
}

.qa {
  border-top: 1px solid var(--line);
}

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

.qa summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--ink-3);
  transition: transform 0.4s var(--ease), background-color 0.2s;
}

.qa summary::after {
  transform: rotate(90deg);
}

.qa[open] summary::after {
  transform: rotate(0deg);
}

.qa summary:hover::before,
.qa summary:hover::after,
.qa[open] summary::before,
.qa[open] summary::after {
  background: var(--ink);
}

.qa__body {
  max-width: 40rem;
  padding: 0 44px 24px 0;
  color: var(--ink-2);
}

.qa::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}

.qa[open]::details-content {
  block-size: auto;
}

@media (max-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__title {
    position: static;
  }
}

/* ------------------------------------------------------------------ booking and 404 */

.page {
  padding: calc(var(--nav) + clamp(48px, 7vw, 96px)) 0 clamp(72px, 9vw, 128px);
}

.page__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.page__copy .ticks {
  max-width: 30rem;
  margin-top: 28px;
}

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.field label {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: rgba(255, 252, 245, 0.42);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23574d3f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-size: 16px;
  background-repeat: no-repeat;
}

.field select option {
  background: var(--bg-2);
  color: var(--ink);
}

.field ::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(64, 44, 16, 0.42);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 1px;
  border-color: transparent;
}

.field [aria-invalid="true"] {
  border-color: var(--error-line);
}

.field__error {
  color: var(--error-text);
  font-size: 0.8125rem;
}

.field__error:empty {
  display: none;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 4px;
}

.form__hint {
  flex: 1 1 14rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.form__hint a {
  color: var(--ink-2);
}

.form__status {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.form__status:empty {
  display: none;
}

.lost {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-height: 56vh;
}

.lost .btn {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .page__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .form {
    padding: 24px 20px;
  }
}

@media (max-width: 520px) {
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.foot {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 40px 48px;
}

.foot__brand p {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.foot__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.foot__title {
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.foot__nav a {
  display: block;
  width: fit-content;
  padding: 4px 0;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.foot__nav a:hover {
  color: var(--ink);
}

.foot__legal {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.78125rem;
  line-height: 1.55;
}

.foot__legal p {
  max-width: 62rem;
}

@media (max-width: 700px) {
  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ platform: six pieces, each its own paper object */

.soft-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(86svh - var(--nav));
  padding-block: 32px 48px;
}

.soft-hero .page-hero__title {
  max-width: 11em;
}

.soft-hero .hero__actions {
  margin-top: 32px;
}

/* the paper objects: the pinned frame holds one at a time; on a phone the opening shows all six and
   each piece carries its own */
.kit {
  position: relative;
  width: 100%;
}

.kit canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kit--stage {
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.kit--lineup,
.kit--solo {
  display: none;
}

.pieces {
  padding-bottom: clamp(48px, 7vw, 112px);
}

/* each piece gets most of a screen, so the figure can settle on it before the next one arrives */
.piece {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 30rem;
  min-height: 68vh;
  padding-block: 7vh;
  border-top: 1px solid var(--line);
}

/* the piece being read: a short ink rule draws in just above its title, and the title comes up to full ink */
.piece__title::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease);
}

.piece.is-on .piece__title::before {
  transform: scaleX(1);
}

.piece__title {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: clamp(1.5rem, 1vw + 1.15rem, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  transition: color 0.5s var(--ease);
}

.js .piece__title {
  color: var(--ink-2);
}

.js .piece.is-on .piece__title {
  color: var(--ink);
}

.piece__title .flag {
  font-weight: 400;
  letter-spacing: 0;
}

/* a status, not data: its marker stays ink, so the blue lit block in the figure is never read as its legend */
.piece__title .flag::before {
  background: var(--ink-3);
}

.piece > p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.piece .ticks {
  margin-top: 20px;
}

/* the six pieces under the figure, as links; they wrap on narrower screens */
.spot__nav {
  flex-wrap: wrap;
  padding-inline: 12px;
}

/* each piece is already readable as it arrives and settles once into place; its ticks follow one by one.
   The figure stays the page's one authored moment, so this is kept quiet. */
.js [data-reveal] {
  opacity: 0.5;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal] .ticks li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 240ms);
}

.js [data-reveal].is-in .ticks li {
  opacity: 1;
  transform: none;
}

[data-reveal] .ticks li:nth-child(2) {
  --i: 1;
}

[data-reveal] .ticks li:nth-child(3) {
  --i: 2;
}

[data-reveal] .ticks li:nth-child(4) {
  --i: 3;
}

[data-reveal] .ticks li:nth-child(5) {
  --i: 4;
}

@media (max-width: 1000px) {
  .soft-hero {
    min-height: 0;
    padding-block: 40px 8px;
  }

  /* on a phone all six objects sit in the opening, between the offer and the buttons, and each piece
     shows its own under its words */
  .kit--lineup {
    display: block;
    aspect-ratio: 1.1 / 1;
    max-height: 60vh;
    margin-top: 20px;
  }

  .kit--solo {
    display: block;
    aspect-ratio: 1.5 / 1;
    margin-top: 18px;
  }

  .piece {
    min-height: 0;
    max-width: 40rem;
    padding-block: 40px;
  }
}

/* ------------------------------------------------------------------ platform: one call, end to end */

/* A timeline of one coding-agent call, lane by lane, drawn from the gateway's record. Times are in
   milliseconds out of --span. When it is first seen a playhead sweeps it and the call rides along as a
   blue dot, hopping from lane to lane; each moment's label and its record lines come up as it passes. */
.trace {
  --span: 6500;
  --name: 9.5rem;
  --gap: 20px;
  --tpad: clamp(16px, 2.4vw, 28px);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-1);
}

.trace__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 14px var(--tpad);
  border-bottom: 1px solid var(--line);
}

.trace__who {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.trace__who span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--ink-3);
}

.trace__plot {
  position: relative;
  padding: 4px var(--tpad) 10px;
}

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

.lane {
  display: grid;
  grid-template-columns: var(--name) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.lane__name {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.lane__track {
  position: relative;
  height: 64px;
}

.span,
.lane__wait {
  position: absolute;
  left: calc(var(--a) / var(--span) * 100%);
  width: calc((var(--b) - var(--a)) / var(--span) * 100%);
}

.span {
  top: 42px;
  height: 10px;
  background: var(--accent);
  transform-origin: left center;
}

/* waiting for the first token, set apart from the tokens that follow it */
.span--first {
  background: var(--accent-hi);
}

.lane__wait {
  top: 46px;
  border-top: 1px dashed var(--line-2);
}

.ev {
  position: absolute;
  left: calc(var(--t) / var(--span) * 100%);
  top: 13px;
  padding-left: 9px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* each moment is a fine ink tick, from its label down to the lane's line */
.ev::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 1px;
  height: 38px;
  background: var(--ink);
  opacity: 0.5;
}

.ev--end {
  padding: 0 9px 0 0;
  transform: translateX(-100%);
}

.ev--end::before {
  right: 0;
  left: auto;
}

.trace__axis {
  position: relative;
  height: 30px;
  margin-left: calc(var(--name) + var(--gap));
  color: var(--ink-3);
  font: 400 0.75rem/1 var(--mono);
}

.trace__axis span {
  position: absolute;
  top: 12px;
  left: calc(var(--t) / var(--span) * 100%);
  transform: translateX(-50%);
}

.trace__axis span:first-child {
  transform: none;
}

/* the playhead, and the call riding it */
.trace__cursor,
.trace__dot {
  position: absolute;
  left: calc(var(--tpad) + var(--name) + var(--gap) + (100% - 2 * var(--tpad) - var(--name) - var(--gap)) * var(--now, 0) / var(--span));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.trace__cursor {
  top: 4px;
  bottom: 40px;
  width: 1px;
  background: var(--ink);
}

.trace__now {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  padding: 2px 5px;
  transform: translateX(-50%);
  background: var(--bg-1);
  color: var(--ink);
  font: 500 0.75rem/1 var(--mono);
  white-space: nowrap;
}

.trace__dot {
  top: var(--dot-y, 47px);
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--accent);
  transition: opacity 0.4s var(--ease), top 0.26s var(--ease);
}

.trace.is-playing .trace__cursor,
.trace.is-playing .trace__dot {
  opacity: 1;
}

/* the call's path, kept once it has played: down from the agent to vLLM at the start; back up, and on
   to the team's totals, at the end. A fine blue line with a dot on each lane it crosses */
.hop {
  position: absolute;
  left: calc(var(--tpad) + var(--name) + var(--gap) + (100% - 2 * var(--tpad) - var(--name) - var(--gap)) * var(--t) / var(--span) + var(--nudge, 0px));
  width: 1px;
  background: rgba(35, 70, 174, 0.45);
  pointer-events: none;
}

.hop i {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
}

.js .trace .hop {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.js .trace .hop.is-on {
  opacity: 1;
}

/* until it plays, each moment waits unlabelled and each span unfilled */
.js .trace .ev {
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.js .trace .ev.is-on {
  opacity: 1;
}

.js .trace .span {
  transform: scaleX(clamp(0, (var(--now, 0) - var(--a)) / (var(--b) - var(--a)), 1));
}

.call__below {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.call__below .record {
  grid-column: span 7;
}

.call__below .totals {
  grid-column: span 5;
}

.record__json .t-cmd {
  color: var(--ink);
}

.record__json .t-ps {
  color: var(--ink-3);
}

/* the record's lines come up as the call reaches them, each lit briefly as it lands */
.js .call .jl {
  opacity: 0.38;
  transition: opacity 0.5s var(--ease), background-color 0.9s var(--ease);
}

.js .call .jl.is-on {
  opacity: 1;
}

.js .call .jl.is-hit {
  background-color: rgba(111, 155, 255, 0.16);
  transition: opacity 0.5s var(--ease), background-color 0s;
}

.record__json .tn {
  font-weight: 400;
  transition: color 0.8s var(--ease);
}

.record__json .tn.is-hit {
  color: var(--accent);
}

@media (max-width: 900px) {
  .call__below .record,
  .call__below .totals {
    grid-column: 1 / -1;
  }
}

/* on a phone each lane's name sits above its timeline */
@media (max-width: 760px) {
  .trace {
    --name: 0px;
    --gap: 0px;
  }

  .lane {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 12px;
  }

  .lane__name {
    font-size: 0.8125rem;
  }

  .lane__track {
    height: 58px;
  }

  .ev {
    top: 8px;
    font-size: 0.75rem;
  }

  .ev::before {
    height: 34px;
  }

  .span {
    top: 34px;
    height: 8px;
  }

  .lane__wait {
    top: 38px;
  }

  .trace__axis span:nth-child(even) {
    display: none;
  }

  /* the command is broken by hand into short lines; a touch smaller on a phone so none of them wraps,
     and if one still would, it wraps rather than running off the screen */
  .totals .record__json {
    font-size: 0.75rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

/* ------------------------------------------------------------------ entrance: one orchestrated moment per page */

.js [data-lines],
.js .hero__lede,
.js .hero__actions,
.js .hero__logos,
.js .page-hero__lede {
  opacity: 0;
}

/* if the script never arrives, show everything after a moment */
.js:not(.is-in) [data-lines],
.js:not(.is-in) .hero__lede,
.js:not(.is-in) .hero__actions,
.js:not(.is-in) .hero__logos,
.js:not(.is-in) .page-hero__lede {
  animation: appear 0.4s linear 3s forwards;
}

.js.is-in [data-lines] {
  opacity: 1;
}

[data-lines] .line {
  display: block;
  overflow: clip;
  overflow-clip-margin: 0.14em;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

[data-lines] .line__in {
  display: inline-block;
  transform: translateY(105%);
  animation: line-up 0.95s var(--ease) calc(var(--i) * 80ms + 40ms) forwards;
}

.js.is-in .hero__lede,
.js.is-in .page-hero__lede {
  animation: settle 0.9s var(--ease) 0.32s both;
}

.js.is-in .hero__actions {
  animation: settle 0.9s var(--ease) 0.44s both;
}

.js.is-in .hero__logos {
  animation: appear 1.2s linear 1.1s both;
}

@keyframes line-up {
  to {
    transform: none;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

/* moving between pages: the navigation stays, the page cross-fades */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 140ms ease-out both vt-out;
}

::view-transition-new(root) {
  animation: 300ms var(--ease) both vt-in;
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ------------------------------------------------------------------ motion preferences */

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
