/* NIIS 9 · signals lab
   Archivo (variable width) for type, Martian Mono for instrument labels.
   One colormap everywhere: noise floor teal, phosphor, pale, copper hot. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-var.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: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/assets/fonts/martian-mono-latin-var.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;
}

:root {
  --void: #040706;
  --void-2: #07100e;
  --void-3: #0b1714;
  --line: rgba(156, 224, 200, 0.11);
  --line-2: rgba(156, 224, 200, 0.2);
  --line-3: rgba(156, 224, 200, 0.38);
  --ink: #e7efeb;
  --ink-2: #b1c1ba;
  --ink-3: #75887f;
  --phos: #9ce0c8;
  --phos-2: #5caf98;
  --phos-3: #2b5f53;
  --copper: #f0703a;
  --copper-2: #ff9c5e;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --wide: 90rem;
  --narrow: 44rem;
  --header: 4rem;
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  background:
    radial-gradient(90rem 50rem at 78% -10%, rgba(40, 110, 92, 0.16), transparent 60%),
    radial-gradient(60rem 40rem at -10% 110%, rgba(240, 112, 58, 0.05), transparent 60%), var(--void);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--copper);
  color: #140803;
}

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

a {
  color: var(--phos);
  text-decoration-color: var(--line-3);
  text-underline-offset: 0.22em;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--copper);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid var(--copper);
  outline-offset: 4px;
}

.nav-drawer[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 0.9rem;
  background: var(--copper);
  color: #140803;
  font: 500 0.7rem/1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

.skip:focus {
  top: 1rem;
}

/* Layers ------------------------------------------------------------- */

.field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.field-ready .field {
  opacity: 1;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%), url("/assets/img/grain-dark.svg");
  opacity: 0.9;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

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

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

/* Type --------------------------------------------------------------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 400;
  font-stretch: 90%;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--phos);
}

.kicker::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--copper);
  box-shadow: 0 0 12px rgba(240, 112, 58, 0.7);
}

.display {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.6rem, 6.4vw, 6.4rem);
  font-weight: 600;
  font-stretch: 116%;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: 1.6rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.section-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 600;
  font-stretch: 114%;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

/* Header ------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(4, 7, 6, 0.74);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.site-header-inner {
  width: min(100% - 2 * var(--gutter), var(--wide));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.brand img {
  width: 1.85rem;
  height: 1.85rem;
}

.brand-name {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-name span {
  margin-left: 0.28em;
  color: var(--copper);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav a,
.nav-drawer a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-stretch: 90%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}

.nav a i,
.nav-drawer a i {
  font-style: normal;
  font-size: 0.56rem;
  color: var(--ink-3);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

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

.tune {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-stretch: 90%;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tune-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px var(--copper);
  animation: blink 2.4s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-3);
  background: transparent;
  color: var(--ink);
  font: 400 0.62rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-drawer {
  position: fixed;
  inset: var(--header) 0 0;
  z-index: 59;
  padding: 2rem var(--gutter);
  background: rgba(4, 7, 6, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-drawer nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.nav-drawer a {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 1.9rem;
  font-stretch: 116%;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}

.nav-drawer a i {
  font-family: var(--mono);
  font-size: 0.62rem;
}

/* Buttons and links -------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.1rem;
  padding: 0 1.3rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-3);
  background: rgba(4, 7, 6, 0.45);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-stretch: 90%;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--phos);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.btn::after {
  content: "";
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0.3rem -0.2rem 0 -0.05rem transparent;
  transition: width 0.35s var(--ease);
}

.btn:hover {
  color: #06100d;
  border-color: var(--phos);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:hover::after {
  width: 1.8rem;
}

.btn-primary {
  border-color: var(--copper);
  background: var(--copper);
  color: #150803;
}

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

.btn-primary:hover {
  border-color: var(--ink);
  color: #150803;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-stretch: 90%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--phos);
}

.link-arrow::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.link-arrow:hover {
  color: var(--copper-2);
}

.link-arrow:hover::after {
  width: 2.6rem;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(4, 7, 6, 0.72) 0%, rgba(4, 7, 6, 0.3) 42%, transparent 64%);
}

.hud {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: calc(var(--header) + 0.5rem);
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-stretch: 90%;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.hud i {
  margin-right: 0.7em;
  font-style: normal;
  color: var(--phos-2);
}

.hud b {
  font-weight: 400;
  color: var(--ink-2);
}

.hud-grow {
  flex: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(2rem, 7vh, 5.5rem);
}

.hero-title {
  font-size: clamp(2.9rem, 8vw, 8.4rem);
  line-height: 0.9;
}

.hero-title .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-title .ln > span {
  display: inline-block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.hud-scale em {
  display: inline-block;
  width: 4.5rem;
  height: 5px;
  margin-right: 0.7em;
  vertical-align: 1px;
  background: linear-gradient(90deg, #030d0b, #124540 30%, #5cb89e 56%, #ccf2e0 74%, #ffad5c 87%, #f26629);
  box-shadow: 0 0 0 1px var(--line);
}

.axis {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.axis.is-on {
  opacity: 1;
}

.axis span {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% 12px;
  padding-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  font-stretch: 88%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-3);
  will-change: transform;
}

.axis span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 0.4rem;
  background: var(--line-3);
}

.marker {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 0.2rem;
  translate: 18px calc(-100% - 18px);
  padding: 0.6rem 0.75rem;
  min-width: 11rem;
  border: 1px solid var(--line-3);
  background: rgba(4, 7, 6, 0.82);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-stretch: 90%;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.marker.is-on {
  opacity: 1;
}

.marker::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 7px;
  height: 7px;
  translate: -50% 50%;
  border: 1px solid var(--copper);
  border-radius: 50%;
}

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

.marker em {
  font-style: normal;
  color: var(--copper-2);
  text-transform: uppercase;
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding: 1rem 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-stretch: 90%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-foot b {
  font-weight: 500;
  color: var(--copper-2);
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(to bottom, var(--phos), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

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

.ticker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 7, 6, 0.72);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-stretch: 88%;
  letter-spacing: 0.04em;
  line-height: 1;
}

.ticker-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem var(--gutter);
  border-right: 1px solid var(--line);
  color: var(--phos);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ticker-label span {
  color: var(--copper-2);
}

.ticker-window {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 110s linear infinite;
}

.ticker-track span {
  display: flex;
  align-items: center;
  padding: 1rem 1.6rem;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  color: var(--ink-3);
}

.ticker-track i {
  margin-right: 0.9em;
  font-style: normal;
  opacity: 0.55;
}

.ticker-track b {
  margin-right: 0.9em;
  font-weight: 500;
  color: var(--phos);
}

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

/* Sections ----------------------------------------------------------- */

.band {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 0;
}

.band.solid {
  padding-top: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(to bottom, rgba(4, 7, 6, 0), rgba(4, 7, 6, 0.9) 9rem);
}

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.band-head > p {
  margin: 0;
  max-width: 28rem;
  justify-self: end;
}

.intro {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.intro-grid {
  display: grid;
  gap: 0;
}

.intro-text {
  max-width: 38rem;
  margin: 2rem 0 0;
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
}

/* Scrolly: steps on the left, the field fills a sticky stage on the right */

.scrolly {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}

.scrolly-steps {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.scrolly-stage {
  --field-alpha: 1;
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  pointer-events: none;
}

.stage-box {
  position: absolute;
  inset: 16vh 0 16vh 6%;
  --c: var(--line-3);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 14px no-repeat;
}

.stage-caption {
  position: absolute;
  left: 6%;
  bottom: calc(16vh - 2.1rem);
  margin: 0;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-stretch: 88%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rail {
  position: absolute;
  left: 6%;
  top: calc(16vh - 2.2rem);
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-stretch: 88%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rail li {
  display: flex;
  gap: 0.55rem;
  transition: color 0.3s ease;
}

.rail em {
  display: none;
  font-style: normal;
}

.rail li.is-active {
  color: var(--copper-2);
}

.rail li.is-active em {
  display: inline;
  color: var(--ink-2);
}

/* Stations (home practice) */

.station {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 12vh 0;
}

.js .station {
  opacity: 0.28;
  transition: opacity 0.6s ease;
}

.js .station.is-active {
  opacity: 1;
}

.station-body {
  max-width: 34rem;
}

.station-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-stretch: 88%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.idx {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--copper-2);
}

.station-meta .idx {
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(240, 112, 58, 0.45);
}

.station-name {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 600;
  font-stretch: 118%;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.station-desc {
  margin: 1.6rem 0 0;
  font-size: 1.1rem;
}

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

.ticks li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.3rem;
  width: 0.55rem;
  height: 1px;
  background: var(--copper);
}

/* Case files */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.case {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(6, 11, 10, 0.88);
  transition: background 0.4s ease;
}

.case:hover {
  background: rgba(10, 20, 18, 0.92);
}

.case-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-stretch: 88%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.case-id {
  color: var(--copper-2);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 1.4rem 0 0;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-stretch: 88%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-meta div {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.case-meta dt {
  color: var(--ink-3);
}

.case-meta dd {
  margin: 0;
  color: var(--ink-2);
}

.redact {
  display: inline-block;
  padding: 0.18rem 0.4rem;
  background: var(--ink-2);
  color: transparent;
  cursor: help;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  user-select: none;
}

.redact:hover,
.redact:focus-visible {
  background: rgba(240, 112, 58, 0.16);
  color: var(--copper-2);
  outline: 1px solid rgba(240, 112, 58, 0.5);
  outline-offset: 0;
}

.case h3 {
  margin: 1.6rem 0 0.8rem;
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.case p {
  margin: 0;
}

.case .case-find {
  margin-top: auto;
  padding-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-stretch: 88%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--phos);
}

.case-find span {
  margin-right: 0.9rem;
  color: var(--ink-3);
}

/* Method (home) */

.method-steps {
  padding: 22vh 0 18vh;
}

.method-head {
  max-width: 34rem;
  margin-bottom: 12vh;
}

.method-head p:last-child {
  margin: 1.8rem 0 0;
}

.phase-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}

.phase-step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 26vh;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.phase-n {
  padding-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--copper-2);
}

.phase-step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  font-stretch: 116%;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}

.phase-step p {
  margin: 0;
}

.method-more {
  margin: 3rem 0 0;
}

.lock {
  position: absolute;
  left: 6%;
  right: 0;
  bottom: calc(16vh + 1.2rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 0 0;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-stretch: 88%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lock div {
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--line-2);
  background: rgba(4, 7, 6, 0.55);
}

.lock dt {
  color: var(--ink-3);
}

.lock dd {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.lock div:first-child dd {
  color: var(--copper-2);
}

/* Notes */

.note-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  background: rgba(6, 11, 10, 0.88);
  color: inherit;
  text-decoration: none;
  transition: background 0.4s ease;
}

.note-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.note-card:hover {
  background: rgba(10, 20, 18, 0.94);
  color: inherit;
}

.note-card:hover::after {
  transform: scaleX(1);
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-stretch: 88%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.note-meta b {
  font-weight: 500;
  color: var(--copper-2);
}

.note-card h3 {
  margin: 2.2rem 0 0.8rem;
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
}

.note-card p {
  margin: 0;
}

.note-go {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 2rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-stretch: 88%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phos);
}

.note-go::after {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.note-card:hover .note-go::after,
.note-teaser:hover .note-go::after {
  width: 2.4rem;
}

/* Interior pages ----------------------------------------------------- */

.page-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 3rem) 0 3rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2rem;
}

.page-hero-full .page-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.page-hero-full {
  align-items: flex-start;
  padding-top: calc(var(--header) + 12vh);
}

.page-hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 7, 6, 0.7), rgba(4, 7, 6, 0.1) 45%, transparent 70%);
}

.page-hero-copy {
  position: relative;
  z-index: 1;
}

.page-hero-stage {
  --field-alpha: 1;
  position: relative;
  height: 66vh;
}

.page-hero-stage .stage-caption {
  left: 0;
  bottom: -1.6rem;
}

.crumbs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-stretch: 88%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--copper-2);
}

.crumbs span {
  color: var(--line-3);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.prose {
  max-width: 42rem;
}

.prose > p,
.prose li {
  color: var(--ink-2);
  text-wrap: pretty;
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose h2 {
  margin: 3.2rem 0 1rem;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  font-stretch: 114%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

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

.prose li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.8rem;
  border-bottom: 1px solid var(--line);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.55rem;
  width: 0.6rem;
  height: 1px;
  background: var(--copper);
}

.prose blockquote {
  position: relative;
  margin: 2.6rem 0;
  padding: 1.6rem 0 1.6rem 1.8rem;
  border-left: 1px solid var(--copper);
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 500;
  font-stretch: 110%;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(240, 112, 58, 0.07), transparent 70%);
}

.prose-follow {
  margin-top: 1.5rem;
}

.note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 3rem !important;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-stretch: 88%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-links a {
  text-decoration: none;
}

.aside {
  position: sticky;
  top: calc(var(--header) + 2rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(6, 11, 10, 0.8);
}

.aside h2 {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-stretch: 88%;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phos);
}

.spec {
  margin: 0;
  display: grid;
}

.spec div {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.spec dt {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-stretch: 88%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.spec dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.2rem 0 0;
}

.tag {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-stretch: 88%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Figures inside prose */

.figure {
  margin: 0 0 2.6rem;
}

.figure figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-stretch: 88%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.panel-stack,
.panel-flow,
.panel-tree,
.panel-chain {
  border: 1px solid var(--line-2);
  background: rgba(6, 11, 10, 0.85);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-stretch: 88%;
  letter-spacing: 0.03em;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row b {
  flex: none;
  font-weight: 500;
  color: var(--phos);
  text-transform: uppercase;
}

.panel-row-hot {
  background: linear-gradient(90deg, rgba(240, 112, 58, 0.14), transparent);
}

.panel-row-hot b {
  color: var(--copper-2);
}

.panel-flow {
  padding: 1.1rem;
}

.panel-kicker {
  margin: 0 0 0.9rem;
  color: var(--ink-3);
  text-transform: uppercase;
}

.panel-kicker::after {
  content: "  \2192";
  color: var(--copper-2);
}

.panel-flow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.panel-flow li {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
  background: var(--void-2);
}

.panel-flow li:nth-child(1) {
  box-shadow: inset 0 2px 0 var(--phos-3);
}
.panel-flow li:nth-child(2) {
  box-shadow: inset 0 2px 0 var(--phos-2);
}
.panel-flow li:nth-child(3) {
  box-shadow: inset 0 2px 0 var(--phos);
}
.panel-flow li:nth-child(4) {
  box-shadow: inset 0 2px 0 var(--copper);
}

.panel-flow strong {
  font-weight: 500;
  color: var(--ink);
}

.panel-flow span {
  color: var(--ink-3);
}

.panel-tree {
  padding: 1.1rem;
}

.panel-root {
  margin: 0 auto 1.1rem;
  width: max-content;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--copper);
  color: var(--copper-2);
  text-transform: uppercase;
}

.panel-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.panel-branches div {
  padding: 0.9rem;
  background: var(--void-2);
}

.panel-branches h3 {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
}

.panel-branches p {
  margin: 0;
  color: var(--ink-3);
}

.chain-head,
.chain-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.chain-head {
  color: var(--ink-3);
  text-transform: uppercase;
}

.chain-row {
  color: var(--ink-2);
}

.chain-row span:last-child {
  color: var(--phos);
}

.chain-row:last-child {
  border-bottom: 0;
}

.chain-row-hot {
  background: linear-gradient(90deg, rgba(240, 112, 58, 0.14), transparent);
}

.chain-row-hot span:last-child {
  color: var(--copper-2);
}

/* Practice index */

.practice-scrolly .scrolly-steps {
  padding: 4vh 0 16vh;
}

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

.practice-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition:
    padding 0.4s var(--ease),
    background 0.4s ease;
}

.practice-row .idx {
  padding-top: 0.7rem;
}

.practice-name {
  display: block;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 600;
  font-stretch: 116%;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  transition: color 0.3s ease;
}

.practice-text {
  display: block;
  margin-top: 0.8rem;
  max-width: 34rem;
  color: var(--ink-2);
}

.practice-row .more {
  padding-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.3s ease;
}

.practice-row:hover {
  padding-left: 0.8rem;
  color: inherit;
}

.practice-row:hover .practice-name {
  color: var(--copper-2);
}

.practice-row:hover .more {
  color: var(--phos);
}

/* Method page */

.method-page .scrolly-steps {
  padding: 6vh 0 20vh;
}

.phases {
  max-width: 36rem;
}

.phase {
  min-height: 62vh;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

.phase-num {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-stretch: 88%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phos);
}

.phase-num b {
  font-weight: 500;
  color: var(--copper-2);
}

.phase h3 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
  font-stretch: 116%;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.phase p {
  margin: 0;
  font-size: 1.08rem;
}

/* Notes index */

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

.note-teaser {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  gap: 2rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding 0.4s var(--ease);
}

.note-teaser .note-meta {
  padding-top: 0.6rem;
}

.note-teaser h2 {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  font-stretch: 116%;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  transition: color 0.3s ease;
}

.note-teaser p {
  margin: 0;
  max-width: 40rem;
}

.note-teaser .note-go {
  margin: 0;
  padding-top: 0.7rem;
}

.note-teaser:hover {
  padding-left: 0.8rem;
  color: inherit;
}

.note-teaser:hover h2 {
  color: var(--copper-2);
}

/* Footer ------------------------------------------------------------- */

.site-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer-stage {
  --field-alpha: 1;
  flex: 1;
  min-height: 42vh;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.footer-about p:last-child {
  margin: 0;
  max-width: 30rem;
}

.site-footer h2 {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-stretch: 88%;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer li a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--copper-2);
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.3rem 0 1.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-stretch: 88%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Tuner: page scroll as a sweep across the spectrum ----------------- */

.tuner {
  position: fixed;
  right: 1rem;
  top: 50%;
  z-index: 4;
  width: 2.6rem;
  height: 52vh;
  transform: translateY(-50%);
  pointer-events: none;
}

.tuner-ticks {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  border-right: 1px solid var(--line-2);
}

.tick {
  position: absolute;
  right: 0;
  width: 4px;
  height: 1px;
  background: var(--line-2);
}

.tick-major {
  width: 9px;
  background: var(--line-3);
}

.tuner-bands span {
  position: absolute;
  right: 15px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.46rem;
  font-stretch: 80%;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.tuner-needle {
  position: absolute;
  right: -3px;
  width: 16px;
  height: 1px;
  background: var(--copper);
  box-shadow: 0 0 8px var(--copper);
}

.tuner-needle b {
  display: none;
}

/* 404 ---------------------------------------------------------------- */

.lost {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 2rem) 0 4rem;
}

.lost-actions {
  margin-top: 2.4rem;
}

/* Reveal ------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ease) var(--reveal-delay, 0ms),
    transform 1s var(--ease) var(--reveal-delay, 0ms);
}

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

.js .hero-title .ln > span {
  transform: translate3d(0, 108%, 0);
  transition: transform 1.2s var(--ease);
}

.js .hero-title .ln:nth-child(2) > span {
  transition-delay: 0.09s;
}

.js .hero-title .ln:nth-child(3) > span {
  transition-delay: 0.18s;
}

.js .hero .kicker,
.js .hero .lede,
.js .hero-actions,
.js .hud,
.js .hero-foot,
.js .page-hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}

.js .hero .lede {
  transition-delay: 0.35s;
}

.js .hero-actions {
  transition-delay: 0.5s;
}

.js .hero-foot {
  transition-delay: 0.8s;
}

.js .page-hero-copy > :nth-child(2) {
  transition-delay: 0.08s;
}

.js .page-hero-copy > :nth-child(3) {
  transition-delay: 0.16s;
}

.js .page-hero-copy > :nth-child(4) {
  transition-delay: 0.24s;
}

.js.is-loaded .hero-title .ln > span,
.js.is-loaded .hero .kicker,
.js.is-loaded .hero .lede,
.js.is-loaded .hero-actions,
.js.is-loaded .hud,
.js.is-loaded .hero-foot,
.js.is-loaded .page-hero-copy > * {
  opacity: 1;
  transform: none;
}

/* Fallbacks ---------------------------------------------------------- */

.no-field .hero,
.no-field .page-hero,
.no-field .lost {
  background:
    repeating-linear-gradient(90deg, rgba(156, 224, 200, 0.05) 0 1px, transparent 1px 4.5rem),
    repeating-linear-gradient(0deg, rgba(156, 224, 200, 0.04) 0 1px, transparent 1px 4.5rem),
    radial-gradient(70rem 30rem at 70% 100%, rgba(92, 175, 152, 0.18), transparent 70%);
}

.no-field .axis,
.no-field .marker {
  display: none;
}

.no-field .hint-pointer {
  visibility: hidden;
}

@media (hover: none) {
  .hint-pointer {
    visibility: hidden;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ticker-track {
    transform: none;
  }
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 1199px) {
  .tuner {
    display: none;
  }
}

@media (max-width: 1080px) {
  .nav,
  .tune {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 1rem;
  }

  .hud-opt {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.7rem, 12.5vw, 5rem);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(4, 7, 6, 0.55) 0%, rgba(4, 7, 6, 0.2) 55%, transparent 80%);
  }

  .band-head,
  .page-hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .band-head > p {
    justify-self: start;
  }

  /* On narrow screens the stage sits behind the copy, dimmed. */
  .scrolly {
    display: block;
  }

  .scrolly-stage {
    --field-alpha: 0.34;
    height: 100vh;
    margin-bottom: -100vh;
  }

  .stage-box {
    inset: 14vh 0;
  }

  .scrolly-steps {
    position: relative;
  }

  .stage-caption,
  .rail {
    left: 0;
  }

  .lock {
    left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 1.5rem;
    opacity: 0.9;
  }

  .station-body,
  .phase-steps,
  .phases,
  .method-head {
    text-shadow: 0 1px 18px rgba(4, 7, 6, 0.9);
  }

  .method-scrolly .stage-caption,
  .method-page .stage-caption {
    display: none;
  }

  .method-scrolly .scrolly-stage,
  .method-page .scrolly-stage {
    --field-alpha: 0.24;
  }

  .footer-stage {
    min-height: 34vh;
    margin-top: var(--header);
  }

  .footer-grid {
    padding: 2rem 0;
  }

  .page-hero {
    min-height: 0;
    padding-top: calc(var(--header) + 2.5rem);
  }

  .page-hero-stage {
    height: 46vh;
    margin-top: 1rem;
  }

  .case-grid,
  .note-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-card {
    min-height: 0;
  }

  .note-teaser {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .aside {
    position: static;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }

  .legal {
    flex-direction: column;
  }

  .panel-flow ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chain-head,
  .chain-row {
    grid-template-columns: 1fr 1fr;
  }

  .chain-head span:nth-child(2),
  .chain-row span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-foot > span:first-child,
  .hero-foot > span:last-child {
    display: none;
  }

  .hero-foot {
    justify-content: center;
  }

  .ticker-label {
    display: none;
  }

  .axis span[data-f="2402"],
  .axis span[data-f="2426"],
  .axis span[data-f="2480"] {
    display: none;
  }

  .practice-row {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .practice-row .more {
    display: none;
  }

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

  .panel-row {
    flex-direction: column;
    gap: 0.35rem;
  }
}
