/* Regibus
   ---------------------------------------------------------------
   When the Diatype licence lands, self-host the woff2 files in
   /fonts, add @font-face blocks here, set --font and --font-num in
   tokens.css, and update --cap/--asc/--desc to Diatype's metrics
   so the drawn strikes stay on the cap-height midline.
   --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--night);
  scroll-behavior: smooth;
}

/* Lenis drives the scroll when it loads; native smooth scroll would fight it. */
html.lenis { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

.mono {
  font-family: var(--font-num);
  font-size: var(--size-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}

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

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* Film grain over everything: the difference between flat digital black
   and a black that feels photographed. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 0.9s steps(4) infinite; }
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---- Bar ---- */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem var(--gutter);
  transition: background-color 400ms ease, backdrop-filter 400ms ease, border-color 400ms ease;
  border-bottom: 1px solid transparent;
}

.bar.is-solid {
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--smoke);
}

.wordmark {
  justify-self: start;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.bar-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
}

.bar-nav a {
  text-decoration: none;
  color: var(--ash);
  transition: color 200ms ease;
}

.bar-nav a:hover { color: var(--paper); }

.bar-cta {
  justify-self: end;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease;
}

.bar-cta:hover { background: var(--paper); color: var(--night); }

@media (max-width: 40rem) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-nav { display: none; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.strata {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* Before the shader draws, and wherever WebGL is missing. */
.hero {
  background:
    radial-gradient(120% 80% at 70% 30%, #1d1d1b 0%, var(--night) 60%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--night));
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2rem, 5vh, 3.5rem);
}

.hero-title {
  margin: 0 0 clamp(2rem, 6vh, 4rem);
  font-size: var(--size-hero);
  line-height: 0.9;
  letter-spacing: var(--track-hero);
  font-weight: 500;
  text-transform: uppercase;
}

.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.rise { display: inline-block; }

/* The strike: a redline on the cap-height midline, drawn once after the
   words have landed. It is a background on the inline text rather than a
   single rule, so when the phrase wraps on a phone each line gets its own
   strike. An inline box starts at the ascender, so the midline sits at
   asc - cap/2 from its top. */
.struck {
  color: var(--ash);
  text-decoration: none;
  background-image: linear-gradient(var(--redline), var(--redline));
  background-repeat: no-repeat;
  background-position: 0 calc((var(--asc) - var(--cap) / 2 - 0.03) * 1em);
  background-size: 100% 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--smoke);
}

.hero-lede {
  max-width: 30ch;
  margin: 0;
  font-size: var(--size-lede);
  line-height: 1.35;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 2.5rem;
  background: var(--smoke);
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i::after { animation: cue 2.2s var(--ease-out) infinite 1.8s; }
}

@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Entrance. Only with the script, only with motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { transform: translateY(105%); }
  .js .rise-soft { opacity: 0; transform: translateY(1rem); }
  .js .struck { background-size: 0% 0.06em; }

  .js .is-in .rise {
    transform: none;
    transition: transform 1.2s var(--ease-out);
  }
  .js .is-in .mask:nth-child(2) .rise { transition-delay: 0.12s; }

  .js .is-in .rise-soft {
    opacity: 1;
    transform: none;
    transition: opacity 1s ease 0.6s, transform 1.2s var(--ease-out) 0.6s;
  }

  .js .is-in .struck {
    background-size: 100% 0.06em;
    transition: background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1) 1.1s;
  }
}

/* ---- Statement ---- */

.statement {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(7rem, 22vh, 14rem) var(--gutter) clamp(5rem, 14vh, 9rem);
}

.statement-text {
  max-width: 17ch;
  margin: 0;
  font-size: var(--size-state);
  line-height: 1.02;
  letter-spacing: var(--track-big);
  font-weight: 500;
}

/* Words start dim and light up as the paragraph passes through the
   screen, so the sentence is read at the pace it is scrolled. */
.statement-text .w {
  opacity: var(--o, 1);
  transition: opacity 120ms linear;
}

/* ---- Full-bleed image ---- */

.bleed {
  position: relative;
  margin: 0;
  height: clamp(28rem, 92vh, 64rem);
  overflow: hidden;
}

.bleed img,
.adopt-img img,
.close-img img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

.bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.15) 40%, rgba(10, 10, 10, 0.3) 100%);
  pointer-events: none;
}

.bleed figcaption {
  z-index: 1;
  position: absolute;
  left: var(--gutter);
  bottom: 1.5rem;
  color: var(--paper);
}

/* ---- Method: the pinned story ----
   The section is tall; its inner pin sticks for the length of it while
   the script scrubs the drawing and swaps the step. Without the script
   (or with reduced motion) it is a plain list, three steps one under
   another, and the drawing is left out. */

.story {
  position: relative;
  border-top: 1px solid var(--smoke);
}

.story-intro {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(6rem, 16vh, 10rem) var(--gutter) clamp(2rem, 6vh, 4rem);
  font-size: clamp(1.5rem, 2.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  /* A short measure that keeps the page's left edge. */
  padding-right: max(var(--gutter), calc(100% - 62rem));
}

.story-pin {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 10vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

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

.step { padding: 2rem 0; border-top: 1px solid var(--smoke); }

.step-word {
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: var(--track-hero);
  font-weight: 500;
}

.step p {
  max-width: 28ch;
  margin: 0;
  font-size: var(--size-lede);
  line-height: 1.35;
  color: var(--ash);
}

.story-figure { display: none; }

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--smoke);
}

.story-count { color: var(--paper); }

/* The plot: the SVG stretches to fill it exactly (preserveAspectRatio
   none), so a label placed at y/700 of its height sits on its line. */
.story-plot { position: relative; }

.story-lines {
  display: block;
  width: 100%;
  height: min(60vh, 34rem);
  overflow: visible;
}

.story-lines path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.story-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Each step's name rides just above its line. When the step is deleted
   the name is struck in redline, then fades with the line. */
.story-label {
  position: absolute;
  left: 0;
  transform: translateY(calc(-100% - 0.3rem));
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--paper);
  background-image: linear-gradient(var(--redline), var(--redline));
  background-repeat: no-repeat;
  background-position: 0 55%;
  background-size: 0% 1.5px;
  transition: color 300ms ease, background-size 450ms cubic-bezier(0.65, 0, 0.35, 1);
}

.story-label.is-cut {
  color: var(--ash);
  background-size: 100% 1.5px;
}

/* The survivors, once rebuilt. */
.story-label.is-kept { font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .js .story { height: 260vh; }

  .js .story-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .js .story-figure { display: block; }

  /* The steps sit on top of one another; only the current one shows. */
  .js .steps { display: grid; }

  .js .step {
    grid-area: 1 / 1;
    border-top: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 500ms ease, transform 700ms var(--ease-out);
    pointer-events: none;
  }

  .js .step.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 52rem) {
  .story-pin { grid-template-columns: 1fr; align-content: center; }
  .story-figure { order: -1; }
  .story-meta { margin-bottom: 1rem; padding-bottom: 0.75rem; }
  .story-lines { height: 48vh; height: 48svh; }
  .story-label { font-size: 0.6875rem; transform: translateY(calc(-100% - 0.15rem)); }
}

/* ---- What we build ---- */

.absorb {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(7rem, 18vh, 12rem) var(--gutter);
}

.absorb-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "label label"
    "title lede";
  align-items: end;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(4rem, 10vh, 7rem);
}

.absorb-head .mono { grid-area: label; margin: 0; }
.absorb-head .title { grid-area: title; }

.absorb-lede {
  grid-area: lede;
  margin: 0;
  font-size: var(--size-lede);
  line-height: 1.4;
  color: var(--ash);
}

@media (max-width: 52rem) {
  .absorb-head {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "title" "lede";
  }
}

.versus-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem clamp(2rem, 5vw, 5rem);
  align-items: baseline;
  padding: clamp(1.5rem, 3vh, 2.25rem) 0;
  border-top: 1px solid var(--smoke);
}

.versus-labels { padding-block: 1rem; }

.versus .was,
.versus .now {
  font-size: clamp(1.375rem, 2.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Struck in redline: these are the things that get deleted. A background
   rather than a rule so the strike follows the text when it wraps. */
.versus .was {
  color: var(--ash);
  text-decoration: none;
  background-image: linear-gradient(var(--redline), var(--redline));
  background-repeat: no-repeat;
  background-position: 0 calc((var(--asc) - var(--cap) / 2 - 0.035) * 1em);
  background-size: 100% 0.07em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.versus .now { font-weight: 500; }

@media (max-width: 40rem) {
  .versus-row { grid-template-columns: 1fr; }
  .versus-labels { display: none; }
}

/* ---- Ticker ---- */

.ticker {
  position: relative;
  z-index: 1;
  background: var(--night);
  padding: clamp(4rem, 10vh, 6rem) 0;
  border-bottom: 1px solid var(--smoke);
  overflow: hidden;
}

.ticker-label {
  max-width: var(--page);
  margin: 0 auto 2rem;
  padding: 0 var(--gutter);
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-row {
  display: flex;
  gap: 4rem;
  margin: 0;
  padding: 0 2rem;
  list-style: none;
}

.ticker-row li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  white-space: nowrap;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  letter-spacing: -0.02em;
}

.ticker-row li span {
  font-family: var(--font-num);
  font-size: var(--size-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 60s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Without the duplicated row the script adds, just let it wrap. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { width: auto; }
  .ticker-row { flex-wrap: wrap; gap: 1.5rem 3rem; padding: 0 var(--gutter); }
}

/* ---- Shared titles ---- */

.title {
  margin: 0;
  font-size: var(--size-title);
  line-height: 1;
  letter-spacing: var(--track-big);
  font-weight: 500;
}

/* ---- Adoption ---- */

.adopt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  border-top: 1px solid var(--smoke);
}

.adopt-img {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.adopt-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding: clamp(4rem, 12vh, 8rem) var(--gutter);
}

.adopt-body .title { max-width: 12ch; }

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

.rules li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid var(--smoke);
}

.rules p {
  margin: 0;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

@media (max-width: 60rem) {
  .adopt { grid-template-columns: 1fr; min-height: 0; }
  .rules li { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ---- The whole process ----
   Six stages on one continuous rule: the point is that it never breaks,
   because one team carries the work from diagnosis to adoption. The rule
   draws left to right as the section arrives; each stage follows it. */

.whole {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(7rem, 18vh, 12rem) var(--gutter);
  border-top: 1px solid var(--smoke);
}

.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stages::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--paper);
  transform-origin: left center;
}

.stages li { position: relative; padding-top: 2.25rem; }

/* A station on the rule for each stage. */
.stages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--night);
  border: 1px solid var(--paper);
}

.stages h3 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.stages p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ash);
}

@media (max-width: 68rem) {
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 3.5rem; }
}

/* On a phone the rule turns vertical and runs down the left edge. */
@media (max-width: 40rem) {
  .stages { grid-template-columns: 1fr; row-gap: 2.25rem; padding-left: 2rem; }
  .stages::before { left: 4px; right: auto; top: 0.5rem; bottom: 0.5rem; width: 1px; height: auto; transform-origin: center top; }
  .stages li { padding-top: 0; }
  .stages li::before { left: calc(-2rem); top: 0.3rem; }
  .stages h3 { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .stages[data-reveal] { opacity: 1; transform: none; }
  .js .stages::before { transform: scaleX(0); }
  .js .stages li { opacity: 0; transform: translateY(1rem); }

  .js .stages.is-in::before {
    transform: none;
    transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .js .stages.is-in li {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 1s var(--ease-out);
  }
  .js .stages.is-in li:nth-child(1) { transition-delay: 0.15s; }
  .js .stages.is-in li:nth-child(2) { transition-delay: 0.35s; }
  .js .stages.is-in li:nth-child(3) { transition-delay: 0.55s; }
  .js .stages.is-in li:nth-child(4) { transition-delay: 0.75s; }
  .js .stages.is-in li:nth-child(5) { transition-delay: 0.95s; }
  .js .stages.is-in li:nth-child(6) { transition-delay: 1.15s; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 40rem) {
  .js .stages::before { transform: scaleY(0); }
}

/* ---- Team ----
   Credits that open. Each name is a native <details>, so it works with a
   keyboard and without the script; the portrait slot is ready for real
   photography and shows initials until then. */

.team {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(7rem, 18vh, 12rem) var(--gutter);
}

.team-label { margin: 0 0 2.5rem; }

.credits { border-bottom: 1px solid var(--smoke); }

.credit { border-top: 1px solid var(--smoke); }

.credit summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}

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

.credit-name {
  font-size: var(--size-title);
  line-height: 1;
  letter-spacing: var(--track-big);
  font-weight: 500;
  transition: color 250ms ease;
}

.credit summary:hover .credit-name { color: var(--ash); }

.credit summary:focus-visible { outline-offset: 6px; }

/* A plus that turns to a minus. */
.credit-toggle {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
}

.credit-toggle::before,
.credit-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--paper);
  transition: transform 350ms var(--ease-out);
}

.credit-toggle::after { transform: rotate(90deg); }
.credit[open] .credit-toggle::after { transform: rotate(0deg); }

.credit-body {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding: 0.5rem 0 2.5rem;
}

.credit-body p {
  max-width: 36ch;
  margin: 0;
  font-size: var(--size-lede);
  line-height: 1.4;
  color: var(--ash);
}

.credit-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--coal);
  border: 1px solid var(--smoke);
}

.credit-photo span {
  font-family: var(--font-num);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.credit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

@media (prefers-reduced-motion: no-preference) {
  .credit[open] .credit-body { animation: credit-in 600ms var(--ease-out); }
}

@keyframes credit-in {
  from { opacity: 0; transform: translateY(-0.75rem); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 40rem) {
  .credit summary { grid-template-columns: 1fr auto; }
  .credit summary .mono { grid-row: 2; }
  .credit-toggle { grid-row: 1 / span 2; }
  .credit-body { grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: start; }
  .credit-body p { font-size: 1rem; }
}

/* ---- Close ---- */

.close {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.close-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.close-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 5%, rgba(10, 10, 10, 0.3) 60%, rgba(10, 10, 10, 0.55) 100%);
}

.close-body {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 10vh, 6rem);
}

.close-title {
  max-width: 13ch;
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
  font-size: var(--size-state);
  line-height: 1;
  letter-spacing: var(--track-big);
  font-weight: 500;
}

.close-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem 1.25rem 2rem;
  background: var(--paper);
  color: var(--night);
  border-radius: 999px;
  font-size: var(--size-lede);
  font-weight: 500;
  text-decoration: none;
}

.close-cta i {
  font-style: normal;
  transition: transform 300ms var(--ease-out);
}

.close-cta:hover i { transform: translateX(0.4rem); }

/* ---- Foot ---- */

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

.foot a { text-decoration: none; transition: color 200ms ease; }
.foot a:hover { color: var(--paper); }

/* ---- Reveal ----
   Anything marked data-reveal rises in once as it enters. Struck
   figures draw their redline after they land. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 1s ease, transform 1.2s var(--ease-out);
    transition-delay: var(--d, 0s);
  }

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

  .js .versus .was { background-size: 0% 0.07em; }
  .js .versus .is-in .was {
    background-size: 100% 0.07em;
    transition: background-size 0.8s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--d, 0s) + 0.5s);
  }
}
