/* ==========================================================================
   BunaData v2 — palette
   Monochrome: black, white, greys, with dark forest/sage accents from the logo.
   Moody and architectural — never neon. Change the look here, in one place.
   ========================================================================== */
:root {
  --bg: #0b0b0b;                              /* page */
  --bg-raised: #101010;                       /* alternate band */
  --surface: #151515;                         /* tiles */
  --surface-2: #1a1a1a;                       /* tile insets */
  --line: rgba(255, 255, 255, 0.08);          /* hairlines */
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f1;                            /* headlines */
  --text-2: #a9a9a5;                          /* body */
  --text-3: #8b8b87;                          /* labels, captions (AA on tiles) */
  --white: #ffffff;
  --button: #f3f3f1;
  --button-hover: #cfcfcb;
  --button-ink: #0b0b0b;
  --forest: #1d3a27;                          /* deepest wash, from the logo's dark green family */
  --forest-mid: #264d34;
  --pine: #366544;
  --moss: #4b7a52;
  --sage: #6a8856;                            /* logo sage: ticks, badges, hairline highlights */
  --sage-light: #8fae7a;                      /* sage that still passes AA as small text/ticks on dark */
  --line-accent: rgba(106, 136, 86, 0.28);
  --line-accent-strong: rgba(106, 136, 86, 0.5);
  --wash-forest: rgba(29, 58, 39, 0.58);
  --glow-forest: rgba(54, 101, 68, 0.32);

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --radius: 4px;
  --header-h: 4rem;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Font — self-hosted, no third-party request
   ========================================================================== */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-spacing: 0.08em;                       /* the face has a narrow space; open it a touch */
  overflow-x: hidden;
}

/* Film grain: one small generated tile, repeated over the whole page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url("assets/grain.png") 0 0 / 160px 160px repeat;
  opacity: 0.42;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--pine);
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ==========================================================================
   Type
   ========================================================================== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: var(--sage);
}

.display {
  font-size: clamp(2.375rem, 0.9rem + 3.9vw, 4.375rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}

.h2 .dim {
  color: var(--text-3);
}

.h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text);
}

.lede {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34rem;
  text-wrap: pretty;
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  background: var(--button);
  color: var(--button-ink);
  border: 1px solid var(--button);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.btn:hover {
  background: var(--button-hover);
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(54, 101, 68, 0.35);
}

.btn:active {
  background: var(--text-2);
  border-color: var(--text-2);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--small {
  min-height: 2.25rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.text-link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.2em;
}

.text-link svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.25s var(--ease-out);
}

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

.text-link:hover svg {
  transform: translateY(2px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.site-header.is-stuck {
  background: rgba(11, 11, 11, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 2.5rem;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

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

/* The one place sage shows in the header: a 1px tick under the section in view. */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 1px;
  background: var(--sage-light);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease-out);
}

.site-nav a[aria-current="true"] {
  color: var(--text);
}

.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.site-header .btn {
  justify-self: end;
}

@media (max-width: 47.99rem) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  :root {
    --header-h: 4rem;
  }

  .brand img {
    height: 2rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  --glow-at: 50% 70%;                         /* the light sits behind the basin */
  --glow-size: 90% 34%;
}

@media (min-width: 62rem) {
  .hero {
    --glow-at: 73% 50%;
    --glow-size: 46% 42%;
  }
}

/* Soft grainy light, far behind everything (after reference 06). */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse var(--glow-size) at var(--glow-at), rgba(54, 101, 68, 0.28), transparent 70%),
    radial-gradient(ellipse 80% 42% at var(--glow-at), rgba(29, 58, 39, 0.4), transparent 78%),
    radial-gradient(ellipse 70% 30% at 100% 104%, rgba(29, 58, 39, 0.35), transparent 72%),
    radial-gradient(ellipse 50% 36% at -6% -6%, rgba(38, 77, 52, 0.22), transparent 70%);
}

/* A second, heavier pass of grain that only shows inside the light. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/grain.png") 40px 60px / 160px 160px repeat;
  opacity: 0.65;
  -webkit-mask-image: radial-gradient(ellipse var(--glow-size) at var(--glow-at), #000, transparent 72%);
  mask-image: radial-gradient(ellipse var(--glow-size) at var(--glow-at), #000, transparent 72%);
}

.hero__topo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 6vw, 4rem);
}

.hero__copy {
  max-width: 38rem;
}

.hero__copy .display {
  margin-top: 1.5rem;
}

.hero__copy .lede {
  margin-top: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    min-height: min(calc(100svh - var(--header-h)), 52rem);
    padding-block: 3rem 3.5rem;
  }
}

/* ---- The flow figure ---------------------------------------------------- */
.flow {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.flow__stage {
  position: relative;
  aspect-ratio: 1 / 1.3;
  font-size: 0.75rem;
  line-height: 1.3;
}

@media (min-width: 30rem) {
  .flow__stage {
    aspect-ratio: 1 / 1.12;
    font-size: 0.8125rem;
  }

  .flow__stage {
    --dest-w: 10rem;
  }
}

@media (min-width: 62rem) {
  /* Keep the whole figure inside the first screen on shorter laptops. */
  .flow {
    max-width: clamp(25rem, calc((100svh - var(--header-h) - 12.5rem) / 1.06), 40rem);
  }

  .flow__stage {
    aspect-ratio: 1 / 1.06;
  }
}

.flow__canvas {
  position: absolute;
  left: -6%;
  top: -4%;
  width: 112%;
  height: 108%;
  max-width: none;
  pointer-events: none;
}

/* Static drawing: shown when there is no script to draw the particles. */
.flow__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.js .flow__still {
  display: none;
}

.flow__still path,
.flow__still ellipse,
.flow__still circle {
  fill: none;
  stroke: #fff;
  vector-effect: non-scaling-stroke;
}

.flow__still .still-ring {
  stroke-width: 1;
  stroke-opacity: 0.22;
}

.flow__still .still-trail {
  stroke-width: 2;
  stroke-opacity: 0.75;
  stroke-linecap: round;
  stroke-dasharray: 0.1 7;
}

.flow__still .still-node {
  stroke-width: 1;
  stroke-opacity: 0.8;
}

.flow__src,
.flow__dest,
.flow__core {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  text-align: center;
  color: var(--text);
}

.flow__src {
  transform: translate(-50%, -100%);
  padding-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.flow__dest {
  transform: translate(-50%, 0);
  width: max-content;
  max-width: var(--dest-w, 7.25rem);
  padding-top: 0.55rem;
}

.flow__dest strong,
.flow__core strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

.flow__dest > span,
.flow__core > span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-2);
}

/* The nameplate on the basin: a dark plate so it reads over the particles. */
.flow__core {
  transform: translate(-50%, -50%);
  padding: 0.6rem 1rem 0.65rem;
  background: rgba(11, 11, 11, 0.86);
  border: 1px solid var(--line-accent-strong);
  box-shadow: 0 0 0 1px rgba(29, 58, 39, 0.35), 0 0 28px rgba(29, 58, 39, 0.45);
  white-space: nowrap;
}

.flow__core::before,
.flow__core::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: solid var(--sage);
}

.flow__core::before {
  left: -1px;
  top: -1px;
  border-width: 1px 0 0 1px;
}

.flow__core::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.flow__core strong {
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
}

.flow__core span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow__caption {
  display: flex;
  gap: 0.875rem;
  margin-top: 1.25rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-3);
}

.flow__caption b {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.65;
  color: var(--sage-light);
}

/* Labels arrive with the particles: sources, then the basin, then the outflows. */
@media (prefers-reduced-motion: no-preference) {
  .js .flow__src,
  .js .flow__dest,
  .js .flow__core {
    opacity: 0;
    animation: flow-label 0.9s var(--ease-out) forwards;
  }

  .js .flow__src {
    animation-delay: calc(0.25s + var(--i) * 0.12s);
  }

  .js .flow__core {
    animation-delay: 1.5s;
  }

  .js .flow__dest {
    animation-delay: calc(2.5s + var(--i) * 0.14s);
  }
}

@keyframes flow-label {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  position: relative;
  padding-block: var(--section);
}

.section--raised {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 44rem;
}

.section__head .h2 {
  margin-top: 1.25rem;
}

.section__head .lede {
  margin-top: 1.25rem;
}

.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 174, 122, 0.28), transparent);
  pointer-events: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tile:hover {
  border-color: var(--line-accent-strong);
  box-shadow: 0 0 0 1px rgba(54, 101, 68, 0.16), 0 12px 32px rgba(0, 0, 0, 0.28);
}

/* Generated line art. Empty (and hidden) until the script draws it. */
.art {
  position: relative;
  overflow: hidden;
  color: #fff;
}

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

html:not(.js) .art {
  display: none;
}

/* ---- What it is --------------------------------------------------------- */
.what__grid {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.idea {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.idea .art {
  flex: 1 1 auto;
  min-height: 12.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.idea__body {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.idea__body p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  max-width: 34rem;
}

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1.25rem;
}

.kinds li {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line-accent-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-light);
}

.what__not {
  display: grid;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px dashed var(--line-accent-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
}

.what__not b {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6rem;
  color: var(--sage-light);
}

@media (min-width: 56rem) {
  .what__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
  }

  .idea--lead {
    grid-row: span 2;
  }

  .idea--lead .art {
    min-height: 22rem;
  }

  .idea--row {
    flex-direction: row;
  }

  .idea--row .art {
    flex: 0 0 40%;
    min-height: 13.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .idea--row .idea__body {
    align-self: center;
  }

  .what__not {
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }
}

/* ---- How it works ------------------------------------------------------- */
.how__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.how__art {
  min-height: 21rem;
  aspect-ratio: 1 / 1.02;
  max-height: 34rem;
  width: 100%;
}

.how__art svg [data-layer] {
  opacity: 0.55;
  transition: opacity 0.6s var(--ease-out);
}

.how__art svg [data-layer].is-active {
  opacity: 1;
  color: var(--sage-light);
}

.how__art.is-still svg [data-layer] {
  opacity: 1;
}

.how__art.is-still svg [data-layer]:nth-child(even) {
  color: var(--sage-light);
}

.how__card {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.how__card .h2 {
  margin-top: 1.25rem;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
}

.steps {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 0.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--sage);
  transition: color 0.4s var(--ease-out);
}

/* Sage hint: a 1px tick on the step whose layer is lit in the drawing. */
.step::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 3.25rem;
  height: 1px;
  background: var(--sage-light);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}

.step.is-active::before {
  color: var(--text);
}

.step.is-active::after {
  transform: scaleX(1);
}

.step p {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 56rem) {
  .how__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .how__art {
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
    min-height: 34rem;
  }
}

/* ---- Use cases ---------------------------------------------------------- */
.cases {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.case {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.case__mark {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 150;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: #fff;
}

.case__mark * {
  vector-effect: non-scaling-stroke;
}

.case__mark .accent {
  color: var(--sage-light);
  stroke: var(--sage-light);
}

.art .accent {
  color: var(--sage-light);
  stroke: var(--sage-light);
}

.case__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
}

.case .h3 {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: balance;
}

.case > p:not(.case__tag) {
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
}

.case__example {
  margin-top: auto;
  padding: 0.875rem 1rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.case__example figcaption {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-3);
}

.case__example p {
  position: relative;
  margin-top: 0.625rem;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
}

.case__example p::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--sage);
}

@media (min-width: 56rem) {
  .cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Plain answers ------------------------------------------------------ */
.answers__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.answers__list > div {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

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

.answers__list dt {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text);
}

.answers__list dd {
  font-size: 0.9375rem;
  max-width: 36rem;
}

@media (min-width: 40rem) {
  .answers__list > div {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 62rem) {
  .answers__grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .answers__grid .section__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

/* ==========================================================================
   Closing: demo + footer
   ========================================================================== */
.demo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 9rem) clamp(11rem, 24vw, 19rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 55% at 70% 100%, rgba(29, 58, 39, 0.55), transparent 72%),
    radial-gradient(ellipse 50% 40% at 20% 100%, rgba(38, 77, 52, 0.28), transparent 70%),
    var(--bg);
}

.demo__hills {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.demo__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.demo .h2 {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  max-width: 34rem;
}

.demo__line {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--text-2);
}

.demo .btn {
  margin-top: 2rem;
}

.waitlist-form {
  position: relative;
  display: grid;
  gap: 0.7rem;
}

.waitlist-form__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
}

.waitlist-form__input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.waitlist-form__input::placeholder {
  color: var(--text-3);
}

.waitlist-form__input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(54, 101, 68, 0.35);
}

.waitlist-form__input:disabled {
  opacity: 0.7;
}

.waitlist-form .btn {
  margin-top: 0.35rem;
  width: 100%;
}

.waitlist-form__status {
  min-height: 1.25em;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-2);
}

.waitlist-form__status.is-success {
  color: var(--sage-light);
}

.waitlist-form__status.is-error {
  color: #d4a8a8;
}

.waitlist-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.demo__slot {
  display: grid;
  gap: 0.875rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(11, 11, 11, 0.72);
  border: 1px solid var(--line-accent-strong);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.demo__slot:focus-visible {
  outline-offset: 4px;
}

.demo__slot b {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
}

.demo__slot strong {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text);
}

.demo__slot span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

@media (min-width: 56rem) {
  .demo__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}

.site-footer {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
}

.site-footer__brand img {
  width: auto;
  height: 2.5rem;
}

.site-footer__brand p {
  margin-top: 1.25rem;
  max-width: 19rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-2);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer__cols h2 {
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text);
}

.site-footer__cols ul {
  margin-top: 0.5rem;
}

.site-footer__cols a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.site-footer__cols a:hover {
  color: var(--sage-light);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-3);
}

.site-footer__base span:last-child {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-light);
}

@media (min-width: 48rem) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .site-footer__cols {
    justify-self: end;
    width: 100%;
    max-width: 24rem;
  }
}

/* ==========================================================================
   Reveal on scroll — only with script, only when motion is welcome
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
