/* Scanaro: one long page in full-width bands that alternate between night (scan imagery)
   and paper (reading). Content sits in a 1280px column, headlines left-aligned. The scan
   imagery carries the colour; type stays light and quiet. */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-300.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #050912;
  --night-2: #0b1424;
  --navy: #0c3463;
  --ice: #eef3fa;
  --mist: #a3b1c4;
  --paper: #f3f5f8;
  --white: #ffffff;
  --ink: #0b1a2e;
  --slate: #4a596e;
  --scan: #8fd3ff;
  --scan-deep: #1f6fd1;
  --line-night: rgba(160, 185, 220, 0.16);
  --line-paper: #d8dfe8;

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-display: clamp(3.4rem, 1.4rem + 8vw, 9.25rem);
  --t-h2: clamp(2.1rem, 1.3rem + 3.2vw, 4rem);
  --t-statement: clamp(1.65rem, 1.05rem + 2.4vw, 3.25rem);
  --t-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --t-lead: clamp(1.06rem, 0.98rem + 0.4vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --wrap: 80rem;
  --gutter: clamp(1rem, 4.5vw, 4rem);
  --band: clamp(5rem, 11vw, 10rem);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ice);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
p {
  margin: 0;
  max-width: 58ch;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--scan);
  outline-offset: 3px;
  border-radius: 4px;
}
.paper :focus-visible,
.footer-legal :focus-visible {
  outline-color: var(--scan-deep);
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--ice);
  color: var(--ink);
  text-decoration: none;
}
.skip:focus {
  left: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.doc-page .site-header,
.site-header.is-solid {
  background: rgba(5, 9, 18, 0.9);
  border-bottom-color: var(--line-night);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.logo-mark {
  width: auto;
  height: 2.1rem;
}
.logo-word {
  width: auto;
  height: 0.95rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.9375rem;
}
.nav a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--ice);
}
.nav .nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(238, 243, 250, 0.35);
  border-radius: 999px;
  color: var(--ice);
}
.nav .nav-cta:hover {
  border-color: var(--ice);
}
.menu-button {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--ice);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.menu-icon {
  position: relative;
  width: 1.25rem;
  height: 0.75rem;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-icon::before {
  top: 0;
}
.menu-icon::after {
  top: calc(100% - 1.5px);
}
.menu-button[aria-expanded="true"] .menu-icon::before {
  top: calc(50% - 0.75px);
  transform: rotate(45deg);
}
.menu-button[aria-expanded="true"] .menu-icon::after {
  top: calc(50% - 0.75px);
  transform: rotate(-45deg);
}
@media (max-width: 760px) {
  .menu-button {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    top: calc(4.5rem + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: rgba(5, 9, 18, 0.96);
    border-bottom: 1px solid var(--line-night);
    font-size: 1.25rem;
  }
  .nav[hidden] {
    display: none;
  }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-night);
    color: var(--ice);
  }
  .nav .nav-cta {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    text-align: center;
  }
}
@media (min-width: 761px) {
  .nav[hidden] {
    display: flex;
  }
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-light {
  background: var(--ice);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--white);
}
.btn-ghost {
  border: 1px solid rgba(238, 243, 250, 0.38);
  color: var(--ice);
}
.btn-ghost:hover {
  border-color: var(--ice);
}

/* Hero */
.hero {
  position: relative;
  min-height: 40rem;
  height: 100vh;
  height: 100svh;
  max-height: 64rem;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--night) url("../img/hero-poster.jpg") center / cover no-repeat;
}
.hero-scan::after {
  /* keeps the headline legible where the scan runs under it */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 9, 18, 0.94) 0%, rgba(5, 9, 18, 0.7) 22%, rgba(5, 9, 18, 0) 46%),
    radial-gradient(60% 55% at 58% 38%, rgba(12, 52, 99, 0.35), rgba(5, 9, 18, 0) 70%);
  pointer-events: none;
}
.hero-scan canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-scan.is-live {
  background-image: none;
}
.hero-scan.is-live canvas {
  opacity: 1;
}
.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 1.5rem;
  padding-bottom: clamp(3.5rem, 8vh, 6.5rem);
}
.hero h1 {
  font-size: var(--t-display);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-left: -0.04em;
}
.hero-lead {
  max-width: 44ch;
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ice);
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.hero-row .actions {
  flex: 0 1 auto;
}
.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.25rem, 3vh, 2rem);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: var(--mist);
  max-width: none;
}
.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--scan);
  box-shadow: 0 0 0 0 rgba(143, 211, 255, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 211, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 0.6rem rgba(143, 211, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 211, 255, 0);
  }
}
@media (max-width: 760px) {
  .hero {
    max-height: none;
    min-height: 38rem;
  }
  .hero-scan {
    background-image: url("../img/hero-poster-mobile.jpg");
    background-position: center top;
  }
  .hero-scan::after {
    background: linear-gradient(0deg, rgba(5, 9, 18, 0.96) 0%, rgba(5, 9, 18, 0.75) 32%, rgba(5, 9, 18, 0) 58%);
  }
  .hero-content {
    gap: 1.1rem;
    padding-bottom: 4.25rem;
  }
  .hero .btn {
    min-height: 2.75rem;
    padding: 0 1.1rem;
    font-size: 0.875rem;
  }
  .hero-row {
    gap: 1.25rem;
  }
  .hero-caption {
    left: var(--gutter);
    right: auto;
  }
}

/* Load sequence for the hero text (no JS needed) */
.hero-in {
  animation: hero-in 1.1s var(--ease) both;
}
.hero-in:nth-child(2) {
  animation-delay: 0.2s;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

/* Bands */
.band {
  padding-block: var(--band);
}
.night {
  background: var(--night);
  color: var(--ice);
}
.paper {
  background: var(--paper);
  color: var(--ink);
}
.paper .muted {
  color: var(--slate);
}
.night .muted {
  color: var(--mist);
}
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head h2 {
  font-size: var(--t-h2);
  max-width: 18ch;
}
.section-head p {
  font-size: var(--t-lead);
  font-weight: 300;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.night .kicker {
  color: var(--scan);
}
.paper .kicker {
  color: var(--scan-deep);
}

/* Statement */
.statement {
  padding-block: clamp(5rem, 12vw, 11rem);
}
.statement p {
  max-width: 24ch;
  font-size: var(--t-statement);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.statement .w {
  transition: color 0.35s ease;
}
.js .statement .w {
  color: rgba(238, 243, 250, 0.2);
}
.js .statement .w.is-lit {
  color: var(--ice);
}

/* Technology steps */
.steps {
  position: relative;
  display: grid;
  gap: 3rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.step {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  min-width: 0;
}
.step-rail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--scan-deep);
}
.step-node {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--scan-deep);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.step-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--scan-deep), rgba(31, 111, 209, 0.15));
  transform-origin: left center;
}
.step:last-child .step-line {
  background: linear-gradient(90deg, rgba(31, 111, 209, 0.6), rgba(31, 111, 209, 0));
}
.step h3 {
  font-size: var(--t-h3);
}
.step p {
  color: var(--slate);
}

/* Scan imagery frames */
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
  isolation: isolate;
}
.shot img {
  width: 100%;
}
.shot--ui,
.shot--light {
  background: var(--white);
  border: 1px solid var(--line-paper);
}
.shot-note {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-paper);
  color: var(--slate);
  font-size: 0.75rem;
  line-height: 1.4;
}
.shot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.dim {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.dim-end {
  fill: var(--white);
}
.fitbox {
  fill: none;
  stroke: #4ade80;
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.fitbox-face {
  fill: rgba(74, 222, 128, 0.16);
  stroke: none;
}
.fitbox--no {
  stroke: #ff6b6b;
  stroke-dasharray: none;
}
.fitbox-face--no {
  fill: rgba(255, 107, 107, 0.16);
}
.tag.tag--fit::before {
  background: #4ade80;
}
.tag.tag--nofit::before {
  background: #ff6b6b;
}
.project .tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}
.fit-legend {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  gap: 0.4rem;
}
.fit-legend .tag {
  position: static;
  transform: none;
}

/* Data band */
.data-band {
  padding-top: var(--band);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.data-band .section-head {
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.panorama {
  position: relative;
  margin: 0 auto;
  max-width: 110rem;
}
.panorama img {
  width: 100%;
}
.panorama svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(5, 9, 18, 0.72);
  border: 1px solid rgba(238, 243, 250, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ice);
  font-size: 0.8125rem;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.tag::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--scan);
}
.tag--volume::before,
.panorama-legend li.is-volume::before {
  background: #ffc24a;
}
.panorama-legend {
  display: none;
}
@media (max-width: 760px) {
  .panorama .tag,
  .panorama svg {
    display: none;
  }
  .panorama-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--mist);
  }
  .panorama-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .panorama-legend li::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--scan);
  }
}

/* Roadmap */
.roadmap {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}
.stage {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--line-paper);
  position: relative;
}
.stage::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--scan-deep);
}
.stage.is-now {
  border-top-color: var(--scan-deep);
}
.stage.is-now::before {
  background: var(--scan-deep);
}
.stage-when {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--scan-deep);
}
.stage h3 {
  font-size: var(--t-h3);
}
.stage p {
  color: var(--slate);
}

/* Free trial offer */
.offer {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .offer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}
.offer li {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--line-paper);
}
.offer h3 {
  font-size: var(--t-h3);
}
.offer p {
  color: var(--slate);
}
.offer-icon {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-icon .offer-accent {
  stroke: var(--scan-deep);
  stroke-width: 2.5;
}
.offer-icon .offer-dot {
  fill: var(--scan-deep);
  stroke: none;
}
.trial-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.trial-cta p {
  font-size: var(--t-small);
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy);
}

/* Projects */
.projects {
  display: grid;
  gap: 3.5rem 2rem;
}
@media (min-width: 900px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-night);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(238, 243, 250, 0.025);
}
.project .shot {
  border: 0;
  border-bottom: 1px solid var(--line-night);
  border-radius: 0;
}
.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.project-body .btn {
  margin-top: auto;
}
.project-body p:last-of-type {
  margin-bottom: 0.75rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-night);
  font-size: 0.8125rem;
  color: var(--mist);
}
.chip.is-status {
  border-color: rgba(143, 211, 255, 0.45);
  color: var(--scan);
}
.project h3 {
  margin-top: 0.25rem;
  font-size: clamp(1.75rem, 1.3rem + 1.1vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}
.project .lede {
  font-size: var(--t-lead);
  font-weight: 300;
  color: var(--ice);
}
.project p {
  color: var(--mist);
}
.text-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}
.night .text-link {
  color: var(--scan);
}

/* Contact */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact-grid {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: end;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}
.contact h2 {
  font-size: var(--t-h2);
}
.contact p {
  margin-top: 1.25rem;
  font-size: var(--t-lead);
  font-weight: 300;
  color: #c9d6e8;
}
.contact-detail {
  display: grid;
  gap: 0.5rem;
}
.contact-email {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  justify-self: start;
  overflow-wrap: anywhere;
}
.contact-email:hover {
  border-bottom-color: var(--white);
}
.contact-detail .muted {
  color: #b5c4d9;
}

/* Footer */
.site-footer {
  padding-block: 3.5rem 3rem;
  background: var(--night);
  color: var(--mist);
  font-size: var(--t-small);
}
.footer-grid {
  display: grid;
  gap: 2rem 3rem;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
  }
}
.footer-legal p {
  max-width: 60ch;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-links a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid var(--line-night);
}
.footer-links a:hover {
  border-bottom-color: var(--ice);
}

/* Document pages */
.doc-page .site-header {
  background: var(--night);
}
.doc-page {
  background: var(--paper);
  color: var(--ink);
  padding-top: 4.5rem;
}
.doc {
  max-width: 48rem;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.doc > * + * {
  margin-top: 1rem;
}
.doc h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
}
.doc h2 {
  margin-top: 2.75rem;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.doc h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
}
.doc p {
  color: #2c3a4e;
}
.doc a {
  color: var(--scan-deep);
}
.doc .updated {
  color: var(--slate);
  font-size: var(--t-small);
}
.doc code {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: #e6ebf2;
  font-size: 0.9em;
}
.doc .actions {
  margin-top: 2.25rem;
}
.doc .btn-light {
  background: var(--ink);
  color: var(--white);
}
.doc .btn-ghost {
  border-color: var(--line-paper);
  color: var(--ink);
}

/* Scroll reveals: only hidden once JS has confirmed it can reveal them */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-reveal="scan"] {
  opacity: 1;
  transform: none;
}
.js [data-reveal="scan"] > img,
.js [data-reveal="scan"] > svg {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="scan"].is-in > img,
.js [data-reveal="scan"].is-in > svg {
  clip-path: inset(0 0 0 0);
}
.js [data-reveal="scan"]::after {
  /* the scan line that sweeps down as the image is revealed */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--scan);
  box-shadow: 0 0 18px 4px rgba(143, 211, 255, 0.55);
  opacity: 0;
  z-index: 2;
}
.js [data-reveal="scan"].is-in::after {
  animation: scanline 1.4s var(--ease) var(--d, 0s) both;
}
@keyframes scanline {
  0% {
    top: 0;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.js .step-line {
  transform: scaleX(0);
  transition: transform 1.2s var(--ease) 0.2s;
}
.js .is-in .step-line {
  transform: scaleX(1);
}
.js .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s var(--ease);
  transition-delay: var(--d, 0.4s);
}
.js .is-in .draw {
  stroke-dashoffset: 0;
}
.js .dim-end,
.js .tag,
.js .fitbox-face {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: var(--d, 1s);
}
.js .is-in .dim-end,
.js .is-in .tag,
.js .is-in .fitbox-face {
  opacity: 1;
}
.js .shot-note {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--d, 0s) + 1.2s);
}
.js .is-in .shot-note {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js [data-reveal="scan"],
  .js [data-reveal="scan"] > img,
  .js [data-reveal="scan"] > svg {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .js .step-line {
    transform: none;
  }
  .js .draw {
    stroke-dashoffset: 0;
  }
  .js .dim-end,
  .js .tag,
  .js .fitbox-face,
  .js .shot-note {
    opacity: 1;
  }
  .js .statement .w {
    color: var(--ice);
  }
}
