/* ==========================================================================
   Company pages: about, careers, investors, legal, 404.
   Builds on the core tokens and primitives in site.css. Scoped class names
   (about-*, careers-*, ir-*, legal-*, nf-*) keep these rules page-local.
   ========================================================================== */

/* ---------- Shared interior hero ---------- */
.co-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px));
  padding-bottom: clamp(56px, 7vw, 104px);
}
.co-hero__inner {
  position: relative;
  z-index: 1;
}

/* ---------- Sample overlays on illustrative imagery ---------- */
.ov-box {
  fill: rgba(70, 219, 232, 0.07);
  stroke: var(--cyan-300);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.ov-box--dim {
  fill: none;
  stroke: rgba(126, 234, 243, 0.55);
  stroke-dasharray: 4 4;
}
.ov-box--warm {
  fill: rgba(245, 180, 84, 0.12);
  stroke: var(--amber-400);
}
.ov-sight {
  fill: none;
  stroke: rgba(126, 234, 243, 0.75);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}
.ov-node {
  fill: var(--ink-950);
  stroke: var(--cyan-300);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.ov-cone {
  fill: rgba(70, 219, 232, 0.15);
  stroke: rgba(126, 234, 243, 0.7);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.ov-zone {
  fill: rgba(70, 219, 232, 0.08);
  stroke: var(--cyan-300);
  stroke-width: 1.25;
  stroke-dasharray: 7 5;
  vector-effect: non-scaling-stroke;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-hero {
  padding-bottom: clamp(64px, 8vw, 128px);
}
.about-hero__title {
  margin-top: var(--space-5);
  max-width: 12ch;
}
.about-hero__layout {
  display: grid;
  gap: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 96px);
}
.about-hero__intro {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-2);
}
.about-hero__intro .lede {
  max-width: 46ch;
}
.about-hero__strong {
  color: var(--fg);
}
@media (min-width: 960px) {
  .about-hero__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
  .about-hero__intro {
    margin-bottom: 0.9rem;
  }
}
.about-hero__media {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 5vw, 72px);
}
.about-hero__frame {
  aspect-ratio: 16 / 9;
}
.about-hero__svg,
.process__svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.about-hud--space {
  left: 62.3%;
  bottom: 58.6%;
}
.about-hud--cam {
  right: 17.5%;
  top: 5%;
}
.about-hud--zone {
  left: 31%;
  top: 80%;
}
@media (max-width: 599.98px) {
  .about-hero .hud {
    font-size: 0.6rem;
    padding: 4px 7px;
  }
  .about-hud--cam {
    display: none;
  }
}
@media (min-width: 960px) {
  .about-hero__frame {
    aspect-ratio: 2 / 1;
  }
  /* 2:1 crop anchored to the top of a 16:9 image: y% scales by 1.1256. */
  .about-hud--space {
    bottom: 53.2%;
  }
  .about-hud--cam {
    top: 6.2%;
  }
  .about-hud--zone {
    top: 82%;
  }
}

/* Problem (light editorial) */
.about-problem__body p:not(.body-l) {
  color: var(--fg-2);
  max-width: 60ch;
}
.about-problem__body .body-l {
  color: var(--fg);
}
@media (min-width: 960px) {
  .about-problem__split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .about-problem__body {
    padding-top: 0.6em;
  }
}
.q-block {
  margin-top: clamp(64px, 9vw, 136px);
}
.q-block__title {
  margin-bottom: var(--space-5);
}
.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-3);
}
.q-list__item {
  display: grid;
  gap: 8px 32px;
  padding-block: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--rule-2);
}
.q-list__who {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.q-list__q {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
.q-list__q::before {
  content: '\201C';
}
.q-list__q::after {
  content: '\201D';
}
@media (min-width: 960px) {
  .q-list__item {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    align-items: baseline;
  }
  .q-list__q::before {
    margin-left: -0.42em;
  }
}

/* Approach: edge flow diagram */
.flow {
  margin-bottom: clamp(56px, 8vw, 112px);
}
.flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.flow__node {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  padding: 20px;
}
.flow__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-3);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
}
.flow__node:nth-child(5) .flow__icon {
  border-color: color-mix(in srgb, var(--warm) 60%, transparent);
  color: var(--warm);
}
.flow__name {
  align-self: end;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.flow__note {
  align-self: start;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--fg-3);
}
.flow__node--site {
  background: rgba(70, 219, 232, 0.035);
}
.flow__node--site:first-child::before {
  content: 'On site';
  position: absolute;
  top: -0.8em;
  left: 16px;
  padding: 0 8px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.6;
}
/* Connectors between nodes */
.flow__node:not(:last-child)::after {
  content: '';
  position: absolute;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
  opacity: 0.7;
}
.flow__caption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: var(--space-5);
  max-width: 72ch;
  font-size: var(--step--1);
  color: var(--fg-3);
}
.flow__key {
  flex: none;
  width: 18px;
  height: 10px;
  border: 1px dashed var(--rule-3);
  border-radius: 3px;
  transform: translateY(1px);
}
@media (max-width: 959.98px) {
  .flow__node--site {
    border-inline: 1px dashed var(--rule-3);
  }
  .flow__node--site:first-child {
    border-top: 1px dashed var(--rule-3);
    border-radius: 14px 14px 0 0;
  }
  .flow__node--site:nth-child(3) {
    border-bottom: 1px dashed var(--rule-3);
    border-radius: 0 0 14px 14px;
  }
  .flow__node:not(:last-child)::after {
    left: 41px;
    top: 70px;
    bottom: -14px;
    width: 1px;
  }
  .flow__node:nth-child(3)::after {
    bottom: -18px;
  }
}
@media (min-width: 960px) {
  .flow__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .flow__node {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 6px;
    align-content: start;
    padding: 30px 22px 28px;
  }
  .flow__icon {
    grid-row: auto;
    margin-bottom: 14px;
  }
  .flow__node--site {
    border-block: 1px dashed var(--rule-3);
  }
  .flow__node--site:first-child {
    border-left: 1px dashed var(--rule-3);
    border-radius: 16px 0 0 16px;
  }
  .flow__node--site:nth-child(3) {
    border-right: 1px dashed var(--rule-3);
    border-radius: 0 16px 16px 0;
  }
  .flow__node:not(:last-child)::after {
    top: 52px;
    left: 76px;
    right: -14px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
  }
}

.about-principles .rule-list__title {
  text-wrap: balance;
}
.about-principles .rule-list__num {
  color: var(--accent);
}

/* Process: sticky illustrated narrative */
.process {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
.process__frame {
  box-shadow: var(--shadow-float);
}
.process__legend {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 26px;
  padding: 6px 10px;
  border: 1px solid rgba(126, 234, 243, 0.3);
  border-radius: var(--radius-xs);
  background: rgba(5, 9, 17, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6fbfd;
  line-height: 1.3;
}
.process__legend [data-legend] {
  display: none;
}
.process__legend [data-legend='0'] {
  display: inline;
}
.process-hud--a {
  left: 1.5%;
  top: 66%;
}
.process-hud--b {
  left: 30.5%;
  top: 52.5%;
}
.process-hud--c {
  left: 79%;
  top: 80%;
}
.process-hud--moved {
  left: 41.5%;
  bottom: 35.4%;
}
.process-hud--review {
  left: 61.6%;
  bottom: 23.4%;
}
.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-2);
}
.process__step {
  display: grid;
  gap: 14px;
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--rule-2);
}
.process__step :is(.process__num, .process__title, .process__body, .process__out) {
  transition: color 500ms var(--ease-out);
}
.process__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.process__body {
  color: var(--fg-2);
  max-width: 52ch;
}
.process__out {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-2);
  font-size: var(--step--1);
  color: var(--fg);
}
@media (max-width: 599.98px) {
  .process .hud,
  .process__legend {
    font-size: 0.58rem;
    padding: 4px 7px;
  }
  .process__legend {
    top: 18px;
    left: 18px;
  }
  .process-hud--a,
  .process-hud--b,
  .process-hud--c {
    display: none;
  }
}
@media (min-width: 960px) {
  .process {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
  .process__media {
    position: sticky;
    /* Centre the figure in the viewport, never under the fixed header. */
    top: max(calc(var(--header-h) + 32px), calc(50vh - 200px + var(--header-h) / 2));
  }
  .process__step {
    min-height: 54vh;
    align-content: center;
  }
  /* Inactive steps recede by colour, not opacity, so text keeps AA contrast. */
  html.js .process[data-active-step] .process__step:not(.is-active) :is(.process__title, .process__body, .process__out) {
    color: var(--fg-3);
  }
  html.js .process[data-active-step] .process__step:not(.is-active) .process__num {
    color: var(--fg-3);
  }
  /* Staged layers: each step adds to the plan on the image. */
  .layer {
    transition: opacity 700ms var(--ease-out);
  }
  .process[data-active-step] .layer {
    opacity: 0;
  }
  .process[data-active-step='2'] .layer--2,
  .process[data-active-step='3'] :is(.layer--2, .layer--3),
  .process[data-active-step='4'] :is(.layer--2, .layer--3, .layer--4) {
    opacity: 1;
  }
  .process[data-active-step='3'] .layer--2,
  .process[data-active-step='4'] .layer--2 {
    opacity: 0.4;
  }
  .process[data-active-step] .process__legend [data-legend='0'] {
    display: none;
  }
  .process[data-active-step='1'] [data-legend='1'],
  .process[data-active-step='2'] [data-legend='2'],
  .process[data-active-step='3'] [data-legend='3'],
  .process[data-active-step='4'] [data-legend='4'] {
    display: inline;
  }
}

/* Scope: does / stays with your team */
.scope {
  display: grid;
  gap: var(--space-7);
}
.scope__col {
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-3);
}
.scope__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--fg);
}
.scope__list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}
.scope__list li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
}
.scope__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(16px + 0.8em);
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.scope__col + .scope__col .scope__list li::before {
  background: var(--fg-3);
}
@media (min-width: 900px) {
  .scope {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .scope__col + .scope__col {
    padding-left: clamp(32px, 4vw, 64px);
    border-left: 1px solid var(--rule-2);
  }
  .scope__col:first-child {
    padding-right: clamp(32px, 4vw, 64px);
  }
}

/* Link index */
.link-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-2);
}
.link-index__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: center;
  padding-block: clamp(22px, 3vw, 36px);
  border-bottom: 1px solid var(--rule-2);
  color: var(--fg);
  text-decoration: none;
}
.link-index__k {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease-out);
}
.link-index__t {
  grid-column: 1;
  color: var(--fg-2);
}
.link-index__row .icon {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--fg-3);
  transition:
    transform var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}
.link-index__row:hover .link-index__k {
  color: var(--accent-strong);
}
.link-index__row:hover .icon {
  color: var(--accent);
  transform: translateX(6px);
}
@media (min-width: 900px) {
  .link-index__row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
    align-items: baseline;
  }
  .link-index__t {
    grid-column: 2;
    grid-row: 1;
  }
  .link-index__row .icon {
    grid-row: 1;
    grid-column: 3;
    align-self: center;
  }
}

/* ==========================================================================
   Careers
   ========================================================================== */
.careers-hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
}
.careers-hero__title {
  margin-top: var(--space-5);
  max-width: 13ch;
}
.careers-hero__frame {
  aspect-ratio: 3 / 2;
}
.careers-hero__hud {
  left: 26px;
  bottom: 26px;
}
@media (min-width: 960px) {
  .careers-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
  .careers-hero__frame {
    aspect-ratio: 4 / 5;
  }
}

.careers-ways__cols {
  list-style: none;
  margin: 0;
  padding: 0;
}
.careers-ways__cols .col__index {
  color: var(--accent);
}

.disc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-3);
}
.disc-list__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px 16px;
  padding-block: clamp(28px, 3.6vw, 48px);
  border-bottom: 1px solid var(--rule-2);
}
.disc-list__num {
  padding-top: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
}
.disc-list__name,
.disc-list__body,
.disc-list__topics {
  grid-column: 2;
}
.disc-list__body {
  color: var(--fg-2);
  max-width: 56ch;
}
.disc-list__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1080px) {
  .disc-list__item {
    grid-template-columns: 72px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: 16px 40px;
    align-items: start;
  }
  .disc-list__name {
    grid-column: 2;
  }
  .disc-list__body {
    grid-column: 3;
    padding-top: 0.35em;
  }
  .disc-list__topics {
    grid-column: 4;
    padding-top: 0.3em;
  }
}

.look-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-3);
}
.look-list__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-block: clamp(22px, 2.8vw, 32px);
  border-bottom: 1px solid var(--rule-2);
}
.look-list__num {
  padding-top: 0.25em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
}
.look-list__item p {
  margin-top: 6px;
  color: var(--fg-2);
  max-width: 56ch;
}
@media (min-width: 960px) {
  .careers-look__split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .careers-look__head {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
}

.careers-how__grid {
  display: grid;
  gap: var(--space-5);
}
.careers-how__title {
  max-width: 15ch;
}
.careers-how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.careers-how__steps li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-block: 20px;
  border-top: 1px solid var(--rule-2);
}
.careers-how__steps .label {
  color: var(--accent);
}
.careers-how__steps p {
  color: var(--fg);
  max-width: 34ch;
}
@media (min-width: 960px) {
  .careers-how__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
  .careers-how__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .careers-how__steps li {
    padding: 4px 28px 4px;
    border-top: 0;
    border-left: 1px solid var(--rule-2);
  }
}

/* ==========================================================================
   Investors
   ========================================================================== */
.ir-hero {
  padding-bottom: clamp(40px, 5vw, 72px);
}
.ir-hero__title {
  margin-top: var(--space-5);
  max-width: 17ch;
}
.ir-body {
  padding-bottom: clamp(88px, 11vw, 160px);
}
.ir-grid {
  display: grid;
  gap: clamp(48px, 6vw, 96px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--rule-2);
}
.ir-focus__text {
  margin-top: var(--space-5);
  max-width: 36ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2.05rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--fg);
  text-wrap: pretty;
}
.ir-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  list-style: none;
  margin: var(--space-7) 0 0;
  padding: 0;
}
.ir-contact {
  position: relative;
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.ir-contact .ticks {
  inset: 10px;
  --t: 12px;
}
.ir-contact__note {
  margin-top: var(--space-3);
  color: var(--fg-2);
  font-size: 0.95rem;
}
.ir-contact__rows {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
}
.ir-contact__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding-block: 18px;
  border-top: 1px solid var(--rule-2);
  color: var(--fg);
  text-decoration: none;
}
.ir-contact__value {
  grid-column: 1;
  font-size: var(--step-1);
  font-weight: 560;
  overflow-wrap: anywhere;
  transition: color var(--dur) var(--ease-out);
}
.ir-contact__row .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--fg-3);
  transition:
    transform var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}
.ir-contact__row:hover .ir-contact__value {
  color: var(--accent-strong);
}
.ir-contact__row:hover .icon {
  color: var(--accent);
  transform: translateX(4px);
}
@media (min-width: 960px) {
  .ir-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

/* ==========================================================================
   Legal
   ========================================================================== */
.legal-hero {
  padding-bottom: clamp(40px, 5vw, 72px);
}
.legal-hero__title {
  margin-top: var(--space-5);
  max-width: 14ch;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) clamp(28px, 5vw, 64px);
  margin: var(--space-7) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-2);
}
.legal-meta dt {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.legal-meta dd {
  margin: 4px 0 0;
  color: var(--fg);
}
.legal-meta a {
  color: var(--accent-strong);
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.legal {
  padding-block: clamp(48px, 7vw, 112px);
}
.legal__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}
.legal-toc {
  padding: 20px 22px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-toc__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.legal-toc__list a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.legal-toc__list a:hover {
  color: var(--accent);
}
.legal-toc__num {
  flex: none;
  min-width: 2.2ch;
  padding-top: 0.15em;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--fg-3);
}
.legal-toc__related {
  margin-top: var(--space-4);
  font-size: 0.92rem;
}
.legal-toc__related .label {
  margin-right: 6px;
}
.legal-toc__related a {
  color: var(--accent);
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .legal-toc__list {
    columns: 2;
    column-gap: 32px;
  }
  .legal-toc__list li {
    break-inside: avoid;
  }
}
@media (min-width: 1024px) {
  .legal__grid {
    grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr);
    gap: clamp(56px, 7vw, 120px);
    align-items: start;
  }
  .legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    max-height: calc(100vh - var(--header-h) - 64px);
    overflow-y: auto;
    padding: 0;
    border: 0;
    background: none;
  }
  .legal-toc__list {
    border-top: 1px solid var(--rule-2);
  }
  .legal-toc__list a {
    padding: 9px 0;
  }
}
.legal__prose {
  max-width: 720px;
}
.legal__intro {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--fg);
}
.legal-summary {
  margin-top: 2em;
  padding: 22px 26px;
  border: 1px solid var(--rule-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.prose .legal-summary__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-summary ul {
  margin-top: 10px;
}
.legal-summary li {
  font-size: 1rem;
  line-height: 1.6;
}
.prose .legal__section {
  margin-top: 0;
}
.prose .legal__section > h2 {
  margin-top: 2.2em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__num {
  display: block;
  margin-bottom: 0.7em;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  color: var(--accent);
}
.legal__section > * + * {
  margin-top: 1.1em;
}
.legal__section > h2 + * {
  margin-top: 0.8em;
}
.legal__end {
  margin-top: 3.5em !important;
  padding-top: 1.25em;
  border-top: 1px solid var(--rule-2);
  font-size: 0.92rem;
  color: var(--fg-3);
}
.legal__end .label {
  margin-right: 8px;
}

/* ==========================================================================
   404
   ========================================================================== */
.nf {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 1000px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 96px));
  padding-bottom: clamp(56px, 8vw, 120px);
}
.nf__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  width: min(100% - 2 * var(--gutter), var(--container));
}
.nf__title {
  margin-top: var(--space-5);
  max-width: 11ch;
}
.nf__visual {
  order: -1;
  max-width: 420px;
  color: var(--cyan-400);
}
.nf-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.nf-curb {
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 1.5;
}
.nf-line {
  fill: none;
  stroke: var(--rule-3);
  stroke-width: 1.5;
}
.nf-car rect,
.nf-car path {
  fill: none;
  stroke: rgba(169, 182, 199, 0.42);
  stroke-width: 1.2;
}
.nf-ghost {
  fill: rgba(70, 219, 232, 0.035);
  stroke: var(--cyan-400);
  stroke-opacity: 0.5;
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}
.nf-tick {
  fill: none;
  stroke: var(--cyan-300);
  stroke-width: 1.5;
}
.nf-num {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.06em;
  fill: var(--cyan-300);
}
.nf-tag,
.nf-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  fill: var(--fg-3);
}
.nf-label {
  font-size: 10px;
  letter-spacing: 0.2em;
}
.nf-aisle {
  fill: none;
  stroke: var(--rule-2);
  stroke-width: 1.5;
  stroke-dasharray: 18 14;
}
.nf-arrow {
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nf-scan__line {
  fill: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .nf-scan {
    animation: nf-scan 6s var(--ease-in-out) infinite alternate;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nf-scan {
    display: none;
  }
}
@keyframes nf-scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(246px);
  }
}
.nf__nav {
  margin-top: var(--space-7);
}
.nf-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-2);
}
.nf-links__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 2px 14px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}
.nf-links__num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--fg-3);
}
.nf-links__label {
  font-weight: 560;
  transition: color var(--dur) var(--ease-out);
}
.nf-links__note {
  grid-column: 2;
  font-size: var(--step--1);
  color: var(--fg-3);
}
.nf-links__row .icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--fg-3);
  transition:
    transform var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}
.nf-links__row:hover .nf-links__label {
  color: var(--accent-strong);
}
.nf-links__row:hover .icon {
  color: var(--accent);
  transform: translateX(4px);
}
@media (min-width: 640px) {
  .nf-links__row {
    grid-template-columns: 34px minmax(0, 11rem) minmax(0, 1fr) auto;
  }
  .nf-links__note {
    grid-column: 3;
  }
  .nf-links__row .icon {
    grid-column: 4;
    grid-row: 1;
  }
}
@media (min-width: 960px) {
  .nf__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }
  .nf__visual {
    order: 0;
    max-width: none;
    justify-self: end;
    width: 100%;
  }
}
