/* Aporia landing. Values come from the Figma frame (1462 px wide, 1232 px column);
   below that width the column keeps the same type and rhythm and only the grids fold. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.3100e775.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-wght-normal.34b9c504.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-greek-wght-normal.1be3448e.woff2") format("woff2");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --ink: #171717;
  --ink-rgb: 23 23 23;
  --muted: rgb(var(--ink-rgb) / 0.5);
  --faint: rgb(var(--ink-rgb) / 0.36);
  --line: rgb(var(--ink-rgb) / 0.09);
  --bar: rgb(var(--ink-rgb) / 0.13);
  --page: #ffffff;
  --page-rgb: 255 255 255;
  --surface: #f3f3f2;
  --soft: #ececec;
  --ink-hover: #2e2e2e;
  --soft-hover: #e2e2e2;
  --pop: #ffffff;
  --flow: #2f6bff;
  --shadow: 0 0 0;
  --shadow-a: 1;

  --column: 1232px;
  --gutter: clamp(20px, 7.9vw, 115px);
  --text: 626px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light dark;
}

/* Dark follows the system, with no switch: the dashboard's dark palette (web/src/index.css).
   Text stays tints of the ink, so only the tokens flip. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ededec;
    --ink-rgb: 237 237 236;
    --muted: rgb(var(--ink-rgb) / 0.58);
    --faint: rgb(var(--ink-rgb) / 0.4);
    --line: rgb(var(--ink-rgb) / 0.09);
    --bar: rgb(var(--ink-rgb) / 0.15);
    --page: #0e0e0e;
    --page-rgb: 14 14 14;
    --surface: #181818;
    --soft: #232323;
    --ink-hover: #d4d4d3;
    --soft-hover: #2c2c2c;
    --pop: #1c1c1c;
    --flow: #5b8cff;
    --shadow-a: 3;
  }
  /* The logo is black art: turned to the ink. Icons are inline and follow the ink. */
  .logo img,
  img.logo,
  .doc-nav img {
    filter: invert(0.93);
  }
  .tile__shot,
  .showcase__window {
    outline: 0.5px solid rgb(255 255 255 / 0.08);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--muted);
  font:
    400 16px/1.55 "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
p,
h1,
h3,
figure,
ul,
dl,
dd {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
strong,
b {
  font-weight: 500;
  color: var(--ink);
}
em {
  font-style: italic;
}
code {
  font:
    0.9375em/1 ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: rgb(var(--ink-rgb) / 0.12);
}

/* Layout */

.section {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section--gap {
  padding-top: 120px;
}
.section--gap-l {
  padding-top: 160px;
}

.text {
  max-width: var(--text);
  text-wrap: pretty;
}
.text--wide {
  max-width: 726px;
}

/* Phones: the same rhythm, a notch tighter. */
@media (max-width: 719px) {
  .hero {
    padding-top: 64px;
  }
  .section--gap {
    padding-top: 88px;
  }
  .section--gap-l {
    padding-top: 112px;
  }
  .band {
    margin-top: 88px;
    padding-block: 64px;
  }
  .closing {
    padding-top: 112px;
    padding-bottom: 72px;
  }
}

br.wide {
  display: none;
}
@media (min-width: 720px) {
  br.wide {
    display: inline;
  }
}

/* Links and buttons */

.link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.link:hover {
  color: var(--ink);
  border-color: var(--faint);
}
.link--ink {
  color: var(--ink);
}
.link--quiet {
  border-bottom-color: transparent;
}
.sep {
  color: var(--faint);
}

/* Links that leave the site (Hugging Face, the author's page) carry an arrow. */
.link[href^="http"]::after {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.22em;
  vertical-align: 0.06em;
  background: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.5l5-5M3.5 2.5h4v4'/%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 10 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.5l5-5M3.5 2.5h4v4'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease);
}
.link[href^="http"]:hover::after {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Page navigation: the report pages' header, and the landing's bar. */
.doc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}
.doc-nav img {
  width: 117px;
  height: 28px;
}
.doc-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 15px;
}
.doc-nav__links [aria-current] {
  color: var(--ink);
  border-color: var(--faint);
}

/* The landing's bar: absent at the top, it slides in once the hero logo leaves the
   screen, and main.js flies that logo into its slot. Script-only; off while the
   header carries `hidden`. */
.topbar {
  display: none;
}
.js .topbar:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  pointer-events: none;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(var(--page-rgb) / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.topbar .doc-nav {
  position: relative;
  flex-wrap: nowrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.topbar .doc-nav > a {
  flex: none;
  border-radius: 6px;
}
.topbar .doc-nav img {
  visibility: hidden;
  transform-origin: 0 0;
}
.topbar .doc-nav__links {
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease);
}
.topbar.is-on {
  pointer-events: auto;
}
.topbar.is-on::before {
  transform: none;
}
.topbar.is-on .doc-nav img {
  visibility: visible;
}
.topbar.is-on .doc-nav__links {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}
.hero .logo img {
  transform-origin: 0 0;
}
.hero .logo img.is-away {
  visibility: hidden;
}
html:has(.topbar:not([hidden])) {
  scroll-padding-top: 88px;
}
@media (max-width: 719px) {
  .topbar .doc-nav__links {
    gap: 6px 16px;
    font-size: 14px;
  }
  .topbar .doc-nav__links .link[href^="http"] {
    display: none;
  }
}
@media (max-width: 479px) {
  .topbar .doc-nav__links [href="validation/"] {
    display: none;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease);
}
.button:hover {
  background: var(--ink-hover);
}
.button:active {
  transform: scale(0.98);
}
.button--soft {
  background: var(--soft);
  color: var(--ink);
}
.button--soft:hover {
  background: var(--soft-hover);
}

/* Hero */

.hero {
  padding-top: 96px;
  padding-bottom: 48px;
}
.logo {
  margin: 0 0 30px;
}
.logo img,
img.logo {
  width: 183px;
  height: 44px;
}
.lede {
  max-width: 700px;
}
.stat {
  white-space: nowrap;
}
/* Phosphor icons (phosphoricons.com), regular weight, inlined: they take the ink. */
.icon {
  flex: none;
  fill: currentColor;
}
.stat svg {
  display: inline-block;
  color: var(--ink);
  width: 18px;
  height: 18px;
  margin: 0 2px 0 1px;
  vertical-align: -3px;
}

/* Figures */

.caption {
  padding-top: 16px;
  text-wrap: pretty;
}
.caption--center {
  text-align: center;
  color: var(--faint);
}

/* A grey tile with a screenshot set 24 px in from its top-left corner and cropped by
   the tile, as in the design. Inner sizes scale with the tile (1 unit = 1 design px). */
.tile {
  --u: calc(100cqw / 392);
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
}
.tile--4x3 {
  aspect-ratio: 4 / 3;
}
.tile__shot {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 100%;
  border-top-left-radius: 12px;
  box-shadow: 0 14px 40px rgb(var(--shadow) / calc(0.12 * var(--shadow-a)));
  transition: transform 0.6s var(--ease);
}
.figure:hover .tile__shot {
  transform: translate(-3px, -3px);
}

.showcase {
  container-type: inline-size;
}
.showcase__stage {
  display: block;
  padding: calc(100cqw * 72 / 1232) calc(100cqw * 87.72 / 1232);
  border-radius: 18px;
  background: var(--surface);
}
.showcase__window {
  width: 100%;
  border-radius: 8.5px;
  box-shadow:
    0 35px 85px rgb(var(--shadow) / calc(0.16 * var(--shadow-a))),
    0 0 0 0.7px rgb(var(--shadow) / 0.06);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.showcase__stage:hover .showcase__window {
  transform: translateY(-4px);
  box-shadow:
    0 42px 90px rgb(var(--shadow) / calc(0.18 * var(--shadow-a))),
    0 0 0 0.7px rgb(var(--shadow) / 0.06);
}

.steps,
.pair {
  display: grid;
  gap: 36px 28px;
  padding-top: 40px;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
  }
}
@media (min-width: 1100px) {
  .steps {
    column-gap: 28px;
  }
}
@media (min-width: 800px) {
  .pair {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* "Ship": the exported model as a diagram, drawn in SVG at the tile's design size. */
.ship__art {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  /* The panel runs past the viewBox, so the hover shift never shows its cut edge. */
  overflow: visible;
  transition: transform 0.6s var(--ease);
}
.figure:hover .ship__art {
  transform: translate(-3px, -3px);
}
.ship__panel {
  fill: var(--page);
}
.ship__rule {
  stroke: var(--line);
}
.ship__name {
  fill: var(--ink);
}
.ship__faint {
  fill: var(--faint);
  font-size: 12px;
}
.ship__inputs rect {
  fill: var(--surface);
}
.ship__inputs text {
  fill: var(--muted);
}
.ship__inputs .ship__key {
  fill: var(--ink);
  font-weight: 500;
}
.ship__wires path {
  fill: none;
  stroke: rgb(var(--ink-rgb) / 0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.ship__model rect:first-child {
  fill: var(--ink);
}
.ship__glyph {
  fill: rgb(var(--page-rgb) / 0.88);
}
/* Each trail is three dashes sharing one head: a short bright dot, then longer, fainter tails.
   On pathLength 1, a dash of --l with a gap of 2 shows once; the offset slides its head along. */
.ship__pulses path {
  --l: 0.03;
  fill: none;
  stroke: var(--flow);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: var(--l) 2;
  opacity: 0;
}
.ship__pulses path:nth-child(2) {
  --l: 0.12;
  stroke-opacity: 0.35;
}
.ship__pulses path:nth-child(3) {
  --l: 0.28;
  stroke-opacity: 0.12;
}
/* The output wire is a third as long: the same trail in pixels needs longer dashes. */
.ship__pulse--out path {
  --l: 0.08;
}
.ship__pulse--out path:nth-child(2) {
  --l: 0.3;
}
.ship__pulse--out path:nth-child(3) {
  --l: 0.65;
}
.ship__frame {
  fill: none;
  stroke: var(--line);
}
.ship__dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .ship__light {
    display: none;
  }
  .ship__dark {
    display: inline;
  }
}

/* The numbers */

.band {
  margin-top: 120px;
  padding-block: 88px;
  background: var(--surface);
}
/* The (i) after the intro opens a short key to the names and the four charts. */
.info {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -4px 0 -4px 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  vertical-align: middle;
  background: none;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.info:hover,
.info:focus-visible {
  color: var(--ink);
  background: var(--line);
}
.info-pop {
  position: fixed;
  inset: auto;
  width: min(340px, calc(100vw - 32px));
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--pop);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  box-shadow:
    0 14px 40px rgb(0 0 0 / calc(0.12 * var(--shadow-a))),
    0 0 0 0.5px var(--bar);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.15s,
    transform 0.15s var(--ease),
    overlay 0.15s allow-discrete,
    display 0.15s allow-discrete;
}
.info-pop:popover-open {
  opacity: 1;
  transform: none;
}
@starting-style {
  .info-pop:popover-open {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}
.info-pop p,
.info-pop dl,
.info-pop ol {
  margin: 0;
}
.info-pop__head {
  margin-bottom: 10px !important;
  font-weight: 600;
}
.info-pop dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
}
.info-pop dt {
  font-weight: 500;
}
.info-pop dd {
  margin: 0;
  color: var(--muted);
}
.info-pop ol {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
}
.info-pop ol b {
  margin-right: 4px;
  font-weight: 500;
  color: var(--ink);
}
.info-pop__foot {
  margin-top: 10px !important;
  color: var(--faint);
}

.metrics {
  display: grid;
  gap: 0 64px;
  padding-top: 40px;
}
@media (min-width: 1000px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
.metric {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}
.metric__title {
  display: flex;
  gap: 14px;
  margin: 0 0 16px;
  font: inherit;
}
.metric__title svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.bars {
  display: grid;
  grid-template-columns: minmax(60px, max-content) 1fr minmax(56px, max-content);
  gap: 8px 12px;
  padding-left: 36px;
  color: var(--faint);
}
.bars > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
}
.bars dt {
  white-space: nowrap;
}
.bars dd:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bars i {
  display: block;
  width: max(var(--w), 4px);
  height: 8px;
  border-radius: 4px;
  background: var(--bar);
  transform-origin: left;
  transition: transform 1.1s var(--ease) calc(var(--d, 0) * 80ms + 150ms);
}
.bars .is-ours {
  color: var(--ink);
}
.bars .is-ours i {
  background: var(--ink);
}
@media (max-width: 520px) {
  .bars {
    padding-left: 0;
  }
}

/* Features */

.features {
  display: grid;
  gap: 44px 32px;
}
@media (min-width: 560px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.features svg {
  width: 24px;
  height: 24px;
  margin-bottom: 22.8px;
}
.features p {
  max-width: 340px;
  text-wrap: pretty;
}

/* Questions */

.faq {
  display: grid;
  gap: 0 64px;
}
@media (min-width: 900px) {
  .faq {
    grid-template-columns: 432fr 735fr;
  }
}
.faq > .text {
  padding-bottom: 40px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* Plus that turns into a minus. */
.faq summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--faint), var(--faint)) center / 14px 2px no-repeat,
    linear-gradient(var(--faint), var(--faint)) center / 2px 14px no-repeat;
  border-radius: 1px;
  transition:
    transform 0.3s var(--ease),
    background-size 0.3s var(--ease);
}
.faq summary:hover::after {
  --faint: var(--ink);
}
.faq details[open]:not(.is-closing) summary::after {
  transform: rotate(180deg);
  background-size:
    14px 2px,
    2px 0;
}
.faq__answer {
  overflow: hidden;
}
.faq__answer p {
  max-width: 680px;
  padding: 0 48px 22px 2px;
  text-wrap: pretty;
}
@media (max-width: 719px) {
  .faq__answer p {
    padding-right: 8px;
  }
}
.numbers__more {
  padding-top: 32px;
}

/* Closing and footer */

.closing {
  padding-top: 150px;
  padding-bottom: 100px;
}
.closing .text {
  color: var(--muted);
}
.closing .text strong {
  color: var(--ink);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 48px;
  padding-top: 26px;
  padding-bottom: 56px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}
.footer__about {
  color: var(--muted);
}
.footer__note {
  color: var(--faint);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

/* The closing wordmark: the logo across the column, a shade off the page. */
.wordmark {
  padding-bottom: var(--gutter);
}
.wordmark span {
  display: block;
  aspect-ratio: 183 / 44;
  background: var(--surface);
  mask: url(assets/icons/logo.78163540.svg) center / contain no-repeat;
}

/* Reveal on scroll. Hidden only once the script has run, and never for reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.8s var(--ease) calc(var(--d, 0) * 80ms),
      transform 0.8s var(--ease) calc(var(--d, 0) * 80ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal] .bars i {
    transform: scaleX(0);
  }
  .js [data-reveal].is-in .bars i {
    transform: none;
  }

  .js [data-reveal] .ship__inputs g {
    opacity: 0;
    transform: translateX(-6px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease);
    transition-delay: calc(300ms + var(--i) * 70ms);
  }
  .js [data-reveal] .ship__wires path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.6s var(--ease);
    transition-delay: calc(500ms + var(--i) * 70ms);
  }
  .js [data-reveal] .ship__model {
    opacity: 0;
    transform: scale(0.92);
    transform-box: fill-box;
    transform-origin: center;
    transition:
      opacity 0.5s var(--ease) 0.7s,
      transform 0.6s var(--ease) 0.7s;
  }
  .js [data-reveal] .ship__out {
    opacity: 0;
    transition: opacity 0.6s var(--ease) 1.05s;
  }
  .js [data-reveal].is-in .ship__inputs g {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal].is-in .ship__wires path {
    stroke-dashoffset: 0;
  }
  .js [data-reveal].is-in .ship__model {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal].is-in .ship__out {
    opacity: 1;
  }
  /* One forward pass every 3.6 s, once the diagram has drawn in: the four inputs run in a
     ripple, the model takes them in, then the map goes out. */
  :root:not(.js) .ship__pulse path,
  .js [data-reveal].is-in .ship__pulse path {
    animation: ship-in 3.6s infinite;
    animation-delay: calc(1.6s + var(--i) * 90ms);
  }
  :root:not(.js) .ship__pulse--out path,
  .js [data-reveal].is-in .ship__pulse--out path {
    animation-name: ship-out;
    animation-delay: 2.75s;
  }
  :root:not(.js) .ship__glyph,
  .js [data-reveal].is-in .ship__glyph {
    animation: ship-take 3.6s infinite 1.6s;
  }

  .hero > * {
    animation: rise 0.9s var(--ease) both;
  }
  .hero > :nth-child(2) {
    animation-delay: 80ms;
  }
  .hero > :nth-child(3) {
    animation-delay: 160ms;
  }
}
/* The head starts at the wire's start and runs past its end, so the tails clear it too. */
@keyframes ship-in {
  0% {
    stroke-dashoffset: calc(var(--l) * 1px);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1);
  }
  4% {
    opacity: 1;
  }
  26% {
    opacity: 1;
  }
  32%,
  100% {
    stroke-dashoffset: calc((var(--l) - 1.3) * 1px);
    opacity: 0;
  }
}
@keyframes ship-out {
  0% {
    stroke-dashoffset: calc(var(--l) * 1px);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1);
  }
  3% {
    opacity: 1;
  }
  14% {
    opacity: 1;
  }
  22%,
  100% {
    stroke-dashoffset: calc((var(--l) - 1.7) * 1px);
    opacity: 0;
  }
}
/* The glyph brightens a touch as the inputs land, then settles. */
@keyframes ship-take {
  0%,
  24%,
  48%,
  100% {
    fill: rgb(var(--page-rgb) / 0.88);
  }
  32% {
    fill: color-mix(in srgb, var(--flow) 30%, var(--page));
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation: none !important;
  }
}
