:root {
  --charcoal: #171918;
  --paper: #e8e0d2;
  --smoke: #b8bcb5;
  --orange: #d85c2b;
  --green: #5d765c;
  --graphite: #3a3e3c;
  --cream: #f3eee4;
  --burgundy: #6e3537;
  --air: #858b87;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Archivo", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --mx: 0;
  --my: 0;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100%;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

address {
  font-style: normal;
}

::selection {
  background: var(--orange);
  color: var(--cream);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--charcoal);
  color: var(--cream);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
}

.skip:focus {
  top: 12px;
}

.tiny {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--air);
}

.seal {
  width: 7px;
  height: 7px;
  background: var(--burgundy);
  display: inline-block;
  transform: rotate(45deg);
  flex: none;
}

/* Controls */

.ctl {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 14px;
  background: var(--orange);
  color: var(--cream);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ctl i {
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: block;
  position: relative;
}

.ctl i::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: currentColor;
  border-radius: 50%;
  transform: scale(0.2);
  opacity: 0.7;
}

.ctl:hover,
.ctl:focus-visible {
  background: #c24e22;
}

.ctl--ghost {
  background: transparent;
  color: var(--charcoal);
  clip-path: none;
  padding-left: 0;
  border-bottom: 1px solid var(--smoke);
  border-radius: 0;
}

.ctl--ghost:hover,
.ctl--ghost:focus-visible {
  background: transparent;
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.ctl--light {
  background: var(--cream);
  color: var(--charcoal);
}

.ctl--light:hover,
.ctl--light:focus-visible {
  background: var(--paper);
}

.ctl:focus-visible,
.menu-toggle:focus-visible,
.dest-nav a:focus-visible,
.overlay-nav a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Header */

.route-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 4.5vw;
  min-height: var(--header-h);
  background: transparent;
  color: var(--charcoal);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.route-head[data-solid="true"] {
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--charcoal) 8%, transparent);
  backdrop-filter: blur(10px);
}

.route-head[data-on="charcoal"] {
  color: var(--cream);
}

.route-head[data-on="charcoal"][data-solid="true"] {
  background: color-mix(in srgb, var(--charcoal) 90%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--cream) 8%, transparent);
}

.logo {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 12px;
  align-items: center;
  isolation: isolate;
  margin-right: 1vw;
  flex: none;
}

.logo b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--air);
  grid-column: 2;
}

.logo i {
  width: 22px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 99px;
  position: relative;
  opacity: 0.7;
}

.logo i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 10px;
  height: 4px;
  border-radius: 99px;
  background: var(--orange);
}

.dest-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.4vw;
  min-width: 0;
  flex: 1;
  margin-left: auto;
}

.dest-nav a {
  display: grid;
  gap: 4px;
  font-size: 13px;
  position: relative;
  padding-bottom: 4px;
}

.dest-nav a small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--air);
}

.dest-nav a[data-active]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
}

.menu-toggle b,
.menu-toggle b::before,
.menu-toggle b::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.menu-toggle b::before,
.menu-toggle b::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle b::before {
  top: -6px;
}

.menu-toggle b::after {
  top: 6px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  color: var(--cream);
  z-index: 50;
  display: none;
  padding: 28px 7vw 8vh;
  overflow: auto;
}

.overlay[data-open="true"] {
  display: grid;
  align-content: start;
  gap: 8vh;
  width: 100vw;
  height: 100dvh;
}

.overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay-nav {
  display: grid;
  gap: 18px;
}

.overlay-nav a {
  display: grid;
  gap: 4px;
  font-family: var(--serif);
  font-size: clamp(32px, 9vw, 56px);
  line-height: 1;
}

.overlay-nav a small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--air);
}

/* Manifold */

.manifold {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  height: calc(100svh - var(--header-h));
  background: var(--cream);
  overflow: hidden;
  padding: 0;
}

.manifold::before {
  content: "R/04";
  position: absolute;
  right: -2vw;
  top: 6vh;
  font-family: var(--serif);
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.7;
  color: var(--charcoal);
  opacity: 0.06;
  pointer-events: none;
  font-weight: 500;
}

.manifold-field {
  position: relative;
  height: 100%;
  margin-left: 4.5vw;
  z-index: 2;
}

.tubes {
  position: absolute;
  inset: -8% -6% 0 -8%;
  width: 114%;
  height: 108%;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px), 0);
  transition: transform 0.6s var(--ease);
}

.tubes path.conduit {
  fill: none;
  stroke: color-mix(in srgb, var(--graphite) 38%, transparent);
  stroke-width: 18;
  stroke-linecap: round;
  opacity: 0;
}

.tubes path.glass {
  fill: none;
  stroke: color-mix(in srgb, var(--smoke) 55%, white);
  stroke-width: 10;
  stroke-linecap: round;
  opacity: 0;
  filter: url(#smoke);
}

body.is-booted .tubes path.conduit,
body.is-booted .tubes path.glass {
  animation: route-draw 1.4s var(--ease) forwards;
}

body.is-booted .tubes path.glass {
  animation-delay: 0.15s;
}

.junction {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--graphite) 45%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--cream) 55%, transparent);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--smoke) 35%, transparent);
}

.junction--a {
  left: 18%;
  top: 28%;
}

.junction--b {
  left: 46%;
  top: 18%;
}

.junction--c {
  left: 63%;
  top: 46%;
}

.junction--d {
  left: 38%;
  top: 62%;
}

.junction--e {
  left: 74%;
  top: 70%;
}

.capsule {
  position: absolute;
  left: 22%;
  top: 24%;
  width: 86px;
  height: 32px;
  border-radius: 99px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cream) 70%, transparent), color-mix(in srgb, var(--smoke) 70%, var(--graphite)));
  border: 1px solid color-mix(in srgb, var(--graphite) 35%, transparent);
  box-shadow: calc(var(--mx) * 10px) 8px 16px color-mix(in srgb, var(--charcoal) 18%, transparent);
  transform: translate3d(0, 0, 0);
  opacity: 0;
}

.capsule::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  width: 18px;
  height: 16px;
  border-radius: 99px;
  background: var(--orange);
}

body.is-booted .capsule {
  animation: capsule-nudge 1.6s 0.45s var(--ease) forwards;
}

.ctl {
  flex: none;
}

.intake-mouth {
  position: absolute;
  left: 3.5vw;
  bottom: 14%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, color-mix(in srgb, var(--charcoal) 80%, transparent) 36% 100%),
    url("../assets/intake-mouth.png") center / cover;
  box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--cream) 20%, transparent);
}

.output-mouth {
  position: absolute;
  right: 9vw;
  top: 22%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--graphite);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}

.output-mouth::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.15;
  transform: scale(0.4);
}

body.is-booted .output-mouth::after {
  animation: ready-pulse 0.9s 1.1s var(--ease) forwards;
}

.ready-flag {
  position: absolute;
  right: 8vw;
  top: 33%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--air);
}

body.is-booted .ready-flag {
  color: var(--green);
}

.ready-flag::before {
  content: "IDLE · ";
}

body.is-booted .ready-flag::before {
  content: "READY · ";
}

.inspect {
  position: absolute;
  right: 26vw;
  bottom: 32%;
  width: 120px;
  height: 84px;
  border: 1px solid color-mix(in srgb, var(--graphite) 40%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, white 18%, transparent), transparent 42%),
    url("../assets/acrylic-clamp.png") center / cover;
  box-shadow: inset calc(var(--mx) * -12px) calc(var(--my) * -8px) 18px color-mix(in srgb, white 22%, transparent);
  transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 4px), 0);
}

.line-id {
  position: absolute;
  left: 52%;
  top: 8%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--graphite);
}

.h-stack {
  position: relative;
  z-index: 2;
  max-width: 74vw;
  padding: 5vh 0 0 7vw;
  display: grid;
  gap: 0.12em;
}

.h-xl,
.h-md,
.h-sm {
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 0.88;
  opacity: 0;
  transform: translateY(16px);
}

.h-xl {
  font-size: clamp(58px, 10.4vw, 148px);
  max-width: 11ch;
}

.h-md {
  font-size: clamp(28px, 4.4vw, 62px);
  margin-left: 18vw;
}

.h-sm {
  font-size: clamp(16px, 1.8vw, 24px);
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.3;
  margin-left: 4vw;
  max-width: 22ch;
  font-weight: 400;
}

body.is-booted .h-xl,
body.is-booted .h-md,
body.is-booted .h-sm {
  animation: fragment-in 0.9s var(--ease) forwards;
}

body.is-booted .h-xl:nth-of-type(1) { animation-delay: 0.55s; }
body.is-booted .h-sm { animation-delay: 0.75s; }
body.is-booted .h-md { animation-delay: 0.9s; }
body.is-booted .h-xl:nth-of-type(4) { animation-delay: 1.05s; }

.manifest {
  position: absolute;
  z-index: 3;
  right: 4.5vw;
  bottom: 5vh;
  width: min(300px, 34vw);
  margin: 0;
  padding: 16px 16px 14px;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--graphite) 16%, transparent);
  box-shadow: 8px 10px 0 color-mix(in srgb, var(--charcoal) 6%, transparent);
  opacity: 0;
  transform: translateY(12px);
}

body.is-booted .manifest {
  animation: fragment-in 0.8s 1.2s var(--ease) forwards;
}

.manifest header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed color-mix(in srgb, var(--graphite) 25%, transparent);
}

.manifest dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 6px 10px;
  margin: 0 0 14px;
  font-size: 12px;
}

.manifest dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--air);
}

.manifest p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--graphite);
}

.hero-actions {
  position: absolute;
  z-index: 4;
  left: calc(3.5vw + 132px);
  bottom: 16%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
  opacity: 0;
}

body.is-booted .hero-actions {
  animation: fragment-in 0.8s 1.35s var(--ease) forwards;
}

.route-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--air);
}

/* Shared section chrome */

.sec {
  position: relative;
  overflow: hidden;
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--air);
}

.sec-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* 02 Intake conditions */

.conditions {
  background: var(--charcoal);
  color: var(--cream);
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(240px, 34vw) 1fr;
  gap: 6vw;
  padding: 12vh 5vw 14vh;
}

.conditions h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 450;
  max-width: 8ch;
  margin: 18px 0 20px;
}

.conditions .lede {
  max-width: 34ch;
  color: var(--smoke);
}

.mouth-col {
  position: relative;
  min-height: 70vh;
}

.giant-mouth {
  position: sticky;
  top: 18vh;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  margin-left: -8vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, transparent 31%, var(--charcoal) 33%),
    url("../assets/intake-mouth.png") center / cover;
  filter: saturate(0.85);
}

.giant-mouth::after {
  content: "INTAKE";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--cream);
}

.fragments {
  display: grid;
  gap: 0;
  padding-top: 8vh;
}

.frag {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  position: relative;
}

.frag::after {
  content: "";
  position: absolute;
  left: -6vw;
  top: 50%;
  width: 6vw;
  height: 1px;
  background: color-mix(in srgb, var(--orange) 55%, var(--smoke));
  opacity: 0.45;
}

.frag:nth-child(2) { margin-left: 4vw; }
.frag:nth-child(3) { margin-left: -2vw; width: calc(100% + 2vw); }
.frag:nth-child(4) { margin-left: 7vw; }
.frag:nth-child(5) { margin-left: 1vw; }
.frag:nth-child(6) { margin-left: 5vw; }

.frag b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.frag p {
  font-size: 18px;
  line-height: 1.35;
  max-width: 28ch;
}

.frag em {
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--air);
}

/* 03 Principle */

.principle {
  background: var(--cream);
  min-height: 88vh;
  padding: 18vh 0 16vh;
  display: grid;
  align-content: center;
}

.principle .sec-label {
  margin-left: 6vw;
  margin-bottom: 8vh;
}

.principle-line {
  font-family: var(--serif);
  font-size: clamp(36px, 6.4vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 450;
  padding: 0 6vw;
  max-width: none;
  position: relative;
}

.principle-line span {
  display: block;
}

.principle-line span:nth-child(2) {
  margin-left: 11vw;
}

.cross-route {
  height: 2px;
  margin: 4.5vh 0;
  background: linear-gradient(90deg, transparent, var(--orange) 12%, var(--graphite) 48%, var(--smoke) 82%, transparent);
  position: relative;
}

.cross-route i {
  position: absolute;
  left: 62%;
  top: -7px;
  width: 42px;
  height: 16px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--smoke) 70%, white);
  border: 1px solid var(--graphite);
}

.principle-copy {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 38ch) minmax(240px, 38ch) 1fr;
  gap: 4vw;
  margin-top: 8vh;
}

.principle-copy p:first-child {
  grid-column: 2;
}

.principle-copy p {
  color: var(--graphite);
  font-size: 16.5px;
  line-height: 1.65;
}

/* 04 Destinations */

.destinations {
  background:
    linear-gradient(180deg, var(--paper), var(--cream) 28%);
  padding: 12vh 4.5vw 16vh;
}

.dest-head {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 36ch);
  gap: 4vw;
  align-items: end;
  margin-bottom: 8vh;
}

.dest-head h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 450;
  max-width: 10ch;
}

.dest-map {
  position: relative;
  min-height: 920px;
}

.hub {
  position: absolute;
  left: 42%;
  top: 38%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--graphite);
  background: radial-gradient(circle, var(--cream), color-mix(in srgb, var(--smoke) 40%, var(--paper)));
  display: grid;
  place-items: center;
  z-index: 2;
}

.hub span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dest {
  position: absolute;
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--graphite) 18%, transparent);
  padding: 22px 22px 18px;
}

.dest header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dest h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 500;
}

.dest p {
  color: var(--graphite);
  font-size: 15px;
  max-width: 36ch;
}

.status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.dest--tall {
  left: 0;
  top: 0;
  width: min(34%, 380px);
  min-height: 520px;
  padding-top: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cream) 70%, transparent), var(--cream)),
    url("../assets/cylinder-paper.png") center top / cover;
}

.dest--tall h3 {
  font-size: clamp(32px, 3.4vw, 48px);
  max-width: 8ch;
  margin-top: 28vh;
}

.dest--strip {
  left: 38%;
  top: 4%;
  width: min(46%, 560px);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  align-items: center;
}

.dest--strip h3 {
  font-size: 22px;
}

.dest--window {
  right: 0;
  top: 22%;
  width: min(32%, 360px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cream) 78%, transparent) 40%, var(--cream)),
    url("../assets/inspection-window.png") center / cover;
  min-height: 280px;
  box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--paper) 50%, transparent);
}

.dest--mouth {
  left: 36%;
  top: 52%;
  width: min(28%, 320px);
  border-radius: 0 72px 72px 0;
  padding-right: 42px;
}

.dest--bay {
  left: 0;
  bottom: 0;
  width: min(40%, 420px);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
}

.dest--bay img {
  width: 88px;
  height: 120px;
  object-fit: cover;
}

.dest--branch {
  right: 4%;
  bottom: 6%;
  width: min(34%, 380px);
  border-left: 3px solid var(--orange);
}

/* 05 Output */

.output {
  background: var(--charcoal);
  color: var(--cream);
  padding: 12vh 0 8vh;
}

.output-head {
  display: flex;
  justify-content: space-between;
  gap: 4vw;
  padding: 0 5vw 8vh;
  align-items: end;
}

.output-head h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.4vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 450;
  max-width: 9ch;
}

.output-head p {
  max-width: 36ch;
  color: var(--smoke);
}

.major-route {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  min-height: 62vh;
  margin: 0 0 4vh;
}

.major-visual {
  background: url("../assets/tube-charcoal.png") center / cover;
  min-height: 420px;
  position: relative;
}

.major-visual span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cream);
}

.major-copy {
  background: #121413;
  padding: 6vh 5vw;
  display: grid;
  align-content: center;
  gap: 22px;
}

.major-copy h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 500;
}

.io {
  display: grid;
  gap: 14px;
}

.io div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  font-size: 15px;
}

.io dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.secondaries {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  background: color-mix(in srgb, var(--cream) 12%, transparent);
}

.secondaries article {
  background: var(--charcoal);
  padding: 5vh 5vw;
  display: grid;
  gap: 16px;
}

.secondaries h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4vh 5vw 6vh;
}

.chips b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  color: var(--smoke);
  font-weight: 400;
}

/* 06 Pressure break */

.break {
  background: var(--cream);
  min-height: 62vh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16vh 6vw;
  gap: 4vw;
}

.break h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 450;
  max-width: 10ch;
}

.riser {
  width: 18px;
  height: 42vh;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--smoke) 70%, white), var(--graphite));
  position: relative;
}

.riser i {
  position: absolute;
  left: -16px;
  top: 28%;
  width: 50px;
  height: 22px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--cream) 40%, var(--smoke));
  border: 1px solid var(--graphite);
}

.riser i::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 12px;
  height: 10px;
  border-radius: 99px;
  background: var(--orange);
}

.break aside {
  align-self: end;
}

.break aside p {
  max-width: 28ch;
  color: var(--graphite);
}

/* 07 Assembly */

.assembly {
  background: var(--paper);
  padding: 12vh 0 14vh;
}

.assembly h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.9;
  margin: 0 5vw 8vh;
  max-width: 12ch;
  font-weight: 450;
  letter-spacing: -0.03em;
}

.stages {
  display: grid;
  gap: 18px;
}

.stage {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--graphite) 12%, transparent);
  padding: 28px 4.5vw;
  display: grid;
  gap: 10px;
}

.stage:nth-child(1) {
  width: 72%;
  margin-left: 0;
}

.stage:nth-child(2) {
  width: 48%;
  margin-left: 28%;
  text-align: right;
}

.stage:nth-child(3) {
  width: 100%;
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.stage:nth-child(4) {
  width: 56%;
  margin-left: 8%;
  min-height: 240px;
  align-content: end;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cream) 82%, transparent), var(--cream)),
    url("../assets/graphite-route.png") center / cover;
}

.stage:nth-child(5) {
  width: 40%;
  margin-left: 54%;
  box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--paper) 70%, transparent);
}

.stage:nth-child(6) {
  width: 66%;
  margin-left: 34%;
  border-right: 10px solid var(--orange);
}

.stage strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.stage h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.stage p {
  color: var(--graphite);
  max-width: 48ch;
}

.stage:nth-child(2) p,
.stage:nth-child(5) p,
.stage:nth-child(6) p {
  margin-left: auto;
}

/* 08 Windows */

.windows {
  background: var(--cream);
  padding: 12vh 4.5vw 10vh;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 22px;
}

.windows .sec-label,
.windows h2 {
  grid-column: 1 / -1;
}

.windows h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 450;
  max-width: 16ch;
  margin-bottom: 2vh;
}

.window-a {
  grid-row: span 1;
}

.window-a img {
  width: 100%;
  height: 52vh;
  object-fit: cover;
  filter: saturate(0.88);
}

.window-a p {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 18px;
}

.window-b {
  background: var(--charcoal);
  color: var(--cream);
  padding: 28px 24px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--smoke);
}

.window-b h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.window-c {
  display: grid;
  gap: 0;
  align-content: start;
}

.window-c li {
  list-style: none;
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--graphite) 16%, transparent);
  display: grid;
  gap: 4px;
}

.window-c ul {
  margin: 0;
  padding: 0;
}

.window-c b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.window-c span {
  color: var(--graphite);
  font-size: 14px;
}

/* 09 Company */

.company {
  background: var(--charcoal);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.15fr 18px 1fr;
  gap: 4.5vw;
  padding: 0 0 0 0;
  min-height: 90vh;
}

.company-visual {
  min-height: 90vh;
  background: url("../assets/service-corridor.png") center / cover;
  position: relative;
}

.company-visual span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.v-route {
  background: linear-gradient(180deg, transparent, var(--orange), var(--smoke), transparent);
  width: 2px;
  margin-top: 12vh;
  min-height: 64vh;
}

.company-copy {
  padding: 14vh 5vw 12vh 0;
  display: grid;
  align-content: center;
  gap: 22px;
}

.company-copy h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 450;
  max-width: 12ch;
}

.company-copy p {
  max-width: 46ch;
  color: var(--smoke);
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 12px;
}

.principles dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.principles dd {
  margin: 0;
  color: var(--cream);
  font-size: 15px;
}

.locale {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--air);
  letter-spacing: 0.04em;
}

/* 10 Terminal index */

.index {
  background: var(--paper);
  padding: 12vh 5vw 8vh;
}

.index h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 450;
  letter-spacing: -0.03em;
  margin: 10px 0 6vh;
}

.index-table {
  display: grid;
}

.index-row {
  display: grid;
  grid-template-columns: 88px minmax(180px, 1.1fr) 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--graphite) 16%, transparent);
}

.index-row code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
}

.index-row b {
  font-size: 16px;
}

.index-row span {
  color: var(--graphite);
  font-size: 14.5px;
}

/* 11 Belt */

.belt-wrap {
  background: var(--charcoal);
  overflow: hidden;
  padding: 18px 0;
  display: grid;
  gap: 10px;
}

.belt {
  display: flex;
  gap: 0;
  width: max-content;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.belt span {
  padding: 0 28px;
  position: relative;
}

.belt span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.35em;
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
}

.belt--a {
  animation: belt-left 42s linear infinite;
}

.belt--b {
  animation: belt-right 48s linear infinite;
  color: var(--smoke);
}

/* 12 Final intake */

.final {
  background: var(--charcoal);
  color: var(--cream);
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(280px, 48%) 1fr;
  align-items: center;
  padding: 10vh 5vw 12vh;
  gap: 6vw;
}

.final-mouth {
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, transparent 32%, var(--charcoal) 33.4%),
    url("../assets/intake-mouth.png") center / cover;
  justify-self: start;
  position: relative;
}

.final-mouth i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  height: 2px;
  background: var(--orange);
  transform: translate(-10%, -50%);
}

.final h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 450;
  max-width: 9ch;
  margin: 12px 0 22px;
}

.final .hint {
  margin-top: 18px;
  color: var(--air);
  font-size: 14px;
  max-width: 36ch;
}

/* 13 Contact */

.contact {
  background: var(--cream);
  padding: 10vh 5vw 8vh;
}

.contact-sheet {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--graphite) 14%, transparent);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 64vh;
}

.sheet-meta {
  padding: 36px 32px;
  border-right: 1px dashed color-mix(in srgb, var(--graphite) 22%, transparent);
  display: grid;
  align-content: start;
  gap: 16px;
}

.sheet-meta h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.rows {
  display: grid;
  gap: 10px;
}

.rows div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  font-size: 14px;
}

.rows dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--air);
}

.rows a:hover {
  color: var(--orange);
}

.intake-form {
  padding: 36px 32px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.intake-form label {
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--air);
}

.intake-form input,
.intake-form textarea {
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--graphite) 28%, transparent);
  background: transparent;
  padding: 8px 0 10px;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  width: 100%;
  border-radius: 0;
}

.intake-form textarea {
  min-height: 120px;
  resize: vertical;
}

.intake-form input:focus,
.intake-form textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}

.intake-form .ctl {
  justify-self: start;
  width: auto;
}

.form-status {
  font-size: 13px;
  min-height: 1.3em;
  color: var(--graphite);
}

.form-status[data-state="ready"] {
  color: var(--green);
}

.form-status[data-state="hold"] {
  color: var(--burgundy);
}

/* Footer */

.foot {
  background: #121413;
  color: var(--smoke);
  padding: 7vh 5vw 5vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 4vw;
  font-size: 14px;
}

.foot strong {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

.foot a:hover {
  color: var(--cream);
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.foot h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--air);
  margin-bottom: 14px;
}

.foot-end {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6vh;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 8%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Legal pages */

.legal {
  background: var(--cream);
  padding: 10vh 0 12vh;
}

.legal-wrap {
  width: min(780px, 88vw);
  margin-left: 10vw;
  display: grid;
  gap: 22px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 450;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-top: 12px;
}

.legal p,
.legal li {
  color: var(--graphite);
  max-width: 68ch;
}

.legal ul {
  padding-left: 18px;
}

.legal-hero {
  padding: 8vh 10vw 4vh;
  background: var(--paper);
}

/* Motion */

@keyframes route-draw {
  from { opacity: 0; stroke-dasharray: 2800; stroke-dashoffset: 2800; }
  to { opacity: 1; stroke-dasharray: 2800; stroke-dashoffset: 0; }
}

@keyframes capsule-nudge {
  from { opacity: 0; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(92px, 18px, 0); }
}

@keyframes ready-pulse {
  to { opacity: 0.85; transform: scale(1); }
}

@keyframes fragment-in {
  to { opacity: 1; transform: none; }
}

@keyframes belt-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes belt-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

body.is-static .tubes path,
body.is-static .capsule,
body.is-static .h-xl,
body.is-static .h-md,
body.is-static .h-sm,
body.is-static .manifest,
body.is-static .hero-actions {
  opacity: 1;
  transform: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .belt--a,
  .belt--b,
  .tubes path,
  .capsule {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1320px) {
  .dest-nav { display: none; }
  .menu-toggle { display: grid; margin-left: 0; }
}

@media (max-width: 1280px) {
  .nav-quiet { display: none; }
}

@media (max-width: 1080px) {
  .manifold,
  .manifold-field { height: auto; min-height: calc(100svh - var(--header-h)); }
  .dest-map { min-height: 0; display: grid; gap: 16px; }
  .manifest,
  .hero-actions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 20px 5vw 24px;
  }
  .hero-actions { margin-top: 0; padding-bottom: 4vh; }
  .intake-mouth { position: relative; left: 5vw; bottom: auto; margin: 4vh 0 0; }
  .dest-map { min-height: 0; display: grid; gap: 16px; }
  .hub,
  .hub-lines { display: none; }
  .dest,
  .dest--tall,
  .dest--strip,
  .dest--window,
  .dest--mouth,
  .dest--bay,
  .dest--branch {
    position: static;
    width: auto;
    min-height: 0;
    margin: 0;
    border-radius: 0;
  }
  .dest--strip { grid-template-columns: 1fr; }
  .dest--tall { min-height: 360px; }
  .dest--tall h3 { margin-top: 18vh; }
  .conditions { grid-template-columns: 1fr; min-height: 0; }
  .giant-mouth { position: relative; top: auto; width: min(64vw, 280px); margin: 0 0 4vh; }
  .mouth-col { min-height: 0; }
  .frag::after { display: none; }
  .frag { margin-left: 0 !important; width: auto !important; }
  .principle-copy { grid-template-columns: 1fr; padding: 0 6vw; }
  .major-route,
  .secondaries,
  .windows,
  .company,
  .contact-sheet,
  .final,
  .foot,
  .break {
    grid-template-columns: 1fr;
  }
  .v-route { display: none; }
  .company-visual { min-height: 42vh; }
  .company-copy { padding: 8vh 5vw 10vh; }
  .stage,
  .stage:nth-child(1),
  .stage:nth-child(2),
  .stage:nth-child(3),
  .stage:nth-child(4),
  .stage:nth-child(5),
  .stage:nth-child(6) {
    width: auto;
    margin: 0 4.5vw;
    text-align: left;
    min-height: 0;
  }
  .stage:nth-child(2) p,
  .stage:nth-child(5) p,
  .stage:nth-child(6) p { margin-left: 0; }
  .stage:nth-child(3) { display: grid; }
  .index-row { grid-template-columns: 72px 1fr; }
  .index-row span { grid-column: 1 / -1; }
  .riser { height: 24vh; margin: 4vh 0; }
  .h-md { margin-left: 0; }
  .inspect { display: none; }
}

@media (max-width: 720px) {
  .route-head { gap: 12px; padding-inline: 5vw; }
  .route-head > .ctl { display: none; }
  .h-stack { padding-left: 5vw; max-width: 92vw; }
  .intake-mouth { width: 72px; height: 72px; bottom: auto; top: 18%; }
  .output-mouth { width: 42px; height: 42px; }
  .junction { display: none; }
  .principles { grid-template-columns: 1fr; }
  .foot-end { flex-direction: column; }
  .legal-wrap,
  .legal-hero { margin-left: 0; padding-inline: 6vw; width: auto; }
}
