/* Industrial Shield landing page.
   Aesthetic: industrial documentary. Plus Jakarta Sans for voice, Geist Mono
   for data. Geist stays reserved for the navbar and wordmark.
   One accent (amber), one radius (sharp), one theme (dark). */

@font-face {
  font-family: 'Geist';
  src: url('./vendor/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('./vendor/GeistMono-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./vendor/PlusJakartaSans-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Matches the render background exactly, so the product sits in the page
     with no visible edge. This is the one non-negotiable brand token. */
  --ground: #202629;
  --sunk: #1a1f21;
  --raised: #262d31;
  --hairline: #313a3e;
  --hairline-lit: #46524f;
  --ink: #eef1ef;
  --ink-dim: #9aa6a3;
  --ink-faint: #6f7b78;
  --accent: #f4db42;

  --shell: clamp(1.25rem, 4vw, 5.5rem);
  --measure: 60ch;
  --gap-section: clamp(5.5rem, 11vh, 10rem);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain, at an opacity that reads as material rather than as an effect. No
   blend mode: blending a fixed full-screen layer costs 2.7ms of every frame. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--sunk);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--accent);
  color: var(--sunk);
  padding: 0.75rem 1.25rem;
  font-weight: 500;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}

/* Hierarchy comes from weight and colour, not from raw scale. */
.t-hero {
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.t-head {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
}
.t-sub {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.2;
  font-weight: 500;
}

p {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-dim);
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-dim);
}
strong {
  color: var(--ink);
  font-weight: 500;
}
a {
  color: var(--accent);
}

/* Mono is reserved for measured quantities and part numbers. Nowhere else. */
.data {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 52ch;
}

/* ---------- shell ---------- */

.masthead {
  /* The one deliberate exception: navigation chrome stays Geist while the
     page's voice moved to Plus Jakarta Sans. Set once here so the wordmark
     and every nav link inherit it without three separate declarations. */
  font-family: 'Geist', system-ui, sans-serif;
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--shell);
  pointer-events: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
/* The scrim overshoots the bar so the fade completes below it. Ending the
   gradient at the element edge leaves a visible band across the hero. */
.masthead::before {
  content: '';
  position: absolute;
  inset: 0 0 -3.5rem 0;
  background: linear-gradient(180deg, rgba(20, 24, 25, 0.75), transparent);
  transition: opacity 0.25s ease;
}
.masthead[data-solid] {
  background: rgba(26, 31, 33, 0.97);
  border-bottom-color: var(--hairline);
}
.masthead[data-solid]::before {
  opacity: 0;
}
.masthead a {
  pointer-events: auto;
}
.wordmark {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.masthead__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* A quiet credibility marker, not a logo wall: one partner, named in plain
   text, with its mark beside it. Hidden before the wordmark, never after. */
.backed-by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.backed-by__rule {
  width: 1px;
  height: 1.1rem;
  background: var(--hairline-lit);
}
.backed-by__text {
  font-size: 0.75rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.backed-by__logo {
  display: block;
  height: 1.05rem;
  width: auto;
}
@media (max-width: 640px) {
  .backed-by {
    display: none;
  }
}
.masthead nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.875rem;
}
.masthead nav a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.masthead nav a:hover {
  color: var(--ink);
}
@media (max-width: 700px) {
  .wordmark {
    font-size: 0.9375rem;
  }
  .masthead nav {
    gap: 0.85rem;
    font-size: 0.75rem;
  }
  /* Four auth-state links (Login/Dashboard/DDROOM/Sign out) got added to
     what was a 3-item nav; there is no width budget left on a phone for all
     of it alongside the wordmark. Explore and Device were already the two
     least essential; DDROOM is reachable from inside the dashboard once
     signed in, so it does not need its own slot in a phone-width nav too. */
  .masthead nav a:nth-child(1),
  .masthead nav a:nth-child(2) {
    display: none;
  }
  [data-nav-ddroom] {
    display: none;
  }
}

.band {
  padding: var(--gap-section) var(--shell);
}
.band--sunk {
  background: var(--sunk);
}
.wrap {
  max-width: 76rem;
  margin-inline: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  padding: 0.8rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.08s ease;
}
.btn--primary {
  background: var(--accent);
  /* Near-black on the accent measures 11.9:1, well clear of AA. */
  color: var(--sunk);
}
.btn--primary:hover {
  /* A lighter tint of the accent, so hover reads as lift rather than a new hue. */
  background: #f6e164;
}
.btn--ghost {
  color: var(--ink);
  border-color: var(--hairline-lit);
}
.btn--ghost:hover {
  border-color: var(--ink-dim);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  cursor: default;
  opacity: 0.45;
}
.btn:disabled:hover {
  background: var(--accent);
}

/* ---------- hero: full-bleed media, left type, one CTA ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-content: end;
  padding: 0 var(--shell) clamp(3.5rem, 10vh, 7rem);
  overflow: hidden;
}
.hero__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.4) contrast(1.05) brightness(0.38);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      95deg,
      rgba(20, 24, 25, 0.93) 0%,
      rgba(20, 24, 25, 0.7) 38%,
      rgba(20, 24, 25, 0.16) 72%,
      rgba(20, 24, 25, 0.3) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 24, 25, 0.62) 0%,
      rgba(20, 24, 25, 0.04) 34%,
      rgba(26, 31, 33, 0.55) 80%,
      var(--sunk) 100%
    );
}
.hero__body {
  position: relative;
  display: grid;
  gap: 1.6rem;
  justify-items: start;
  max-width: 46rem;
}
.hero__body .t-hero {
  max-width: 20ch;
}
.hero__body .lead {
  max-width: 44ch;
}

/* ---------- statement ---------- */

.statement {
  min-height: min(70vh, 32rem);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: var(--gap-section) var(--shell);
  /* Same surface as the signals band, so the two argument sections share a
     tone and the product sections sit on the lighter ground between them. */
  background: var(--sunk);
}
.statement__lead {
  /* Scaled to ~89% of .t-hero (clamp(2.4rem, 5.4vw, 4.5rem)) at every width,
     not just at the clamp's own min/max, so this heading never reads larger
     than the hero above it. */
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  /* Wide enough to hold one line at desktop; text-wrap: balance handles the
     break on narrower screens rather than orphaning "fatalities." */
  max-width: 26ch;
}
/* The accent's second job on the page, after the primary button. 8.3:1 on the
   ground colour, so it clears AA for large text. */
.statement__triad {
  margin-top: clamp(1.25rem, 3vh, 2.25rem);
  max-width: none;
  font-size: clamp(1.45rem, 3.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--accent);
}

/* ---------- pinned scrub ---------- */

.scrub {
  position: relative;
}
.scrub__track {
  height: var(--pin, 400vh);
}
.scrub__pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.scrub__head {
  padding: 5.5rem var(--shell) 0;
  max-width: 44rem;
}
.scrub--offset .scrub__head {
  margin-left: auto;
  text-align: right;
}
/* One heading is centred as a deliberate one-off beat, not a pattern: it
   introduces the mechanic itself rather than describing a part of it. */
.scrub__head--center {
  margin-inline: auto;
  max-width: 40rem;
  text-align: center;
}
/* Same modifier, inside the right-aligned lapel section: needs matching
   specificity (.scrub--offset .scrub__head already sets text-align: right)
   or this loses the cascade regardless of source order. */
.scrub--offset .scrub__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.stage {
  --label-gutter: 4rem;
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(calc(100% - 2 * var(--label-gutter)), calc((100dvh - 17rem) * 16 / 9));
  aspect-ratio: 16 / 9;
}
.stage canvas,
.stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stage canvas {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.stage__fallback {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease;
}
.stage[data-live] canvas {
  opacity: 1;
}
.stage[data-live] .stage__fallback {
  opacity: 0;
}

.scrub__foot {
  padding: 0 var(--shell) clamp(2rem, 5vh, 3rem);
  display: grid;
  gap: 1rem;
}
.scrub__caption {
  font-size: 0.9375rem;
  color: var(--ink-dim);
  max-width: 46ch;
  min-height: 3em;
}
.scrub--offset .scrub__foot {
  justify-items: end;
}
.scrub--offset .scrub__caption {
  text-align: right;
}
.rail {
  width: min(100%, 22rem);
  height: 1px;
  background: var(--hairline);
  position: relative;
}
.rail i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--t, 0));
}

/* Diagram annotations. Mono because they name measured parts, and sentence
   case rather than tracked-out caps so they do not read as section eyebrows. */
.callout {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s linear;
  pointer-events: none;
  white-space: nowrap;
}
.callout[data-on] {
  opacity: 1;
}
.callout__text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  border-left: 1px solid var(--hairline-lit);
  line-height: 1.3;
}
.callout--left .callout__text {
  left: auto;
  right: 0.5rem;
  padding-left: 0;
  padding-right: 1.25rem;
  border-left: 0;
  border-right: 1px solid var(--hairline-lit);
  text-align: right;
}
.callout--up .callout__text,
.callout--down .callout__text {
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  margin: 0;
  border: 0;
  text-align: center;
}
.callout--up .callout__text {
  bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline-lit);
  padding-bottom: 0.6rem;
}
.callout--down .callout__text {
  top: 1.1rem;
  border-top: 1px solid var(--hairline-lit);
  padding-top: 0.6rem;
}
.callout__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.callout__spec {
  display: block;
  margin-top: 0.15rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--ink-faint);
}
@media (max-width: 1100px) {
  .callout__spec {
    display: none;
  }
  .stage {
    --label-gutter: 1.5rem;
  }
}
@media (max-width: 780px) {
  .callout {
    display: none;
  }
  .scrub__pin {
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: 1.5rem;
  }
  .scrub__head {
    padding-top: 0;
  }
  .scrub--offset .scrub__head,
  .scrub--offset .scrub__foot {
    text-align: left;
    margin-left: 0;
    justify-items: start;
  }
  /* The centred heading is exempt from the reset above: it stays centred
     at every width, matching the helmet section's plain .scrub__head--center. */
  .scrub--offset .scrub__head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .scrub--offset .scrub__caption {
    text-align: left;
  }
}

/* ---------- signals: one lead panel, two supporting ---------- */

.signals {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
}
.signal {
  background: var(--ground);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.signal--lead {
  grid-row: span 2;
  align-content: end;
  position: relative;
  overflow: hidden;
  min-height: 26rem;
}
/* Bleeds off the panel corner so it reads as part of the surface rather than
   as a picture placed on it. */
.signal--lead img {
  position: absolute;
  inset: -9% -13% auto auto;
  width: 88%;
}
.signal--lead > * {
  position: relative;
}
.signal__limit {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
  max-width: 40ch;
}
@media (max-width: 900px) {
  .signals {
    grid-template-columns: 1fr;
  }
  .signal--lead {
    grid-row: auto;
    min-height: 22rem;
  }
  .signal--lead img {
    width: 62%;
    inset: auto -8% -14% auto;
  }
}

/* ---------- team ---------- */

/* Flex-wrap rather than a grid: capping the container at four card-widths
   means four sit on the top row and the remaining three centre themselves
   on the row below, with no row breakpoint to maintain by hand. */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
  max-width: 50rem;
  margin: clamp(2.5rem, 5vh, 3.5rem) auto 0;
}
.team__card {
  width: 11rem;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  text-align: center;
}
.team__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
/* An unfilled slot: the same radial treatment the rig's 3D viewport uses
   for an empty stage, so it reads as "photo goes here" rather than a
   generic avatar or a broken image. Real photos already carry their own
   ring and transparent surround, so this only applies to the placeholder. */
span.team__photo {
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: radial-gradient(120% 100% at 50% 25%, #2c3438 0%, var(--sunk) 78%);
}
.team__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.team__role {
  font-size: 0.8125rem;
  color: var(--accent);
}
@media (max-width: 560px) {
  .team__card {
    width: 8.5rem;
  }
}

/* ---------- validation geography (interactive map) ---------- */

.geo-map {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  aspect-ratio: 238 / 90;
  border: 1px solid var(--hairline);
}
.geo-map__base {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.geo-map__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.geo-map__arc {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 0.5;
  stroke-dasharray: 2.4 2.4;
  opacity: 0.55;
  animation: geo-flow 18s linear infinite;
  transition:
    stroke 0.2s ease,
    opacity 0.2s ease;
}
.geo-map__arc.is-active {
  stroke: var(--accent);
  opacity: 1;
}
@keyframes geo-flow {
  to {
    stroke-dashoffset: -96;
  }
}

.geo-map__node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.geo-map__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ink-dim);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink-dim) 18%, transparent);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.geo-map__node:hover .geo-map__dot,
.geo-map__node:focus-visible .geo-map__dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent);
  transform: scale(1.15);
}
.geo-map__tip {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: 15rem;
  padding: 0.6rem 0.75rem;
  background: var(--raised);
  border: 1px solid var(--hairline-lit);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-dim);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.35rem);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.geo-map__tip b {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.geo-map__node:hover .geo-map__tip,
.geo-map__node:focus-visible .geo-map__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* The two end-of-chain nodes sit near the map's edges: a centred tooltip
   would run off the container, so these anchor to their inner side instead. */
.geo-map__node--start .geo-map__tip {
  left: 0;
  transform: translateY(0.35rem);
}
.geo-map__node--start:hover .geo-map__tip,
.geo-map__node--start:focus-visible .geo-map__tip {
  transform: translateY(0);
}
.geo-map__node--end .geo-map__tip {
  left: auto;
  right: 0;
  transform: translateY(0.35rem);
}
.geo-map__node--end:hover .geo-map__tip,
.geo-map__node--end:focus-visible .geo-map__tip {
  transform: translateY(0);
}
@media (max-width: 640px) {
  .geo-map__tip {
    max-width: 11rem;
    font-size: 0.75rem;
  }
}

/* ---------- interactive rig ---------- */

.rig {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  border: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
}
@media (max-width: 900px) {
  .rig {
    grid-template-columns: 1fr;
  }
}
.rig__view {
  position: relative;
  min-height: min(68dvh, 34rem);
  background: radial-gradient(80% 70% at 50% 42%, #262e31 0%, var(--ground) 72%);
  touch-action: pan-y;
}
.rig__view canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.rig__hint {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  pointer-events: none;
}
.rig__side {
  border-left: 1px solid var(--hairline);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: grid;
  gap: 1.4rem;
  align-content: start;
}
@media (max-width: 900px) {
  .rig__side {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
}
.field {
  display: grid;
  gap: 0.6rem;
}
.field__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}
input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}
.choices {
  display: flex;
  gap: 0.4rem;
}
.choice {
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.choice:hover {
  color: var(--ink);
  border-color: var(--hairline-lit);
}
.choice[aria-pressed='true'] {
  color: var(--accent);
  border-color: var(--accent);
}
.readout {
  border-top: 1px solid var(--hairline);
  padding-top: 1.3rem;
  display: grid;
  gap: 0.5rem;
  min-height: 12rem;
  align-content: start;
}
.readout__spec {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--accent);
}
.readout p {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ---------- form factor comparison ---------- */

.compare {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
}
@media (max-width: 820px) {
  .compare {
    grid-template-columns: 1fr;
  }
}
/* The whole card is now the control: click Helmet or Chest clip to select
   it, then confirm with the one shared Cast vote button below. A <button>
   stretches to fill its 1fr grid track the same as the old <div> did, so the
   selection border always frames the full card, not just the image width.
   The border is visible at rest (not transparent-until-hover): a card that
   looks identical to plain content doesn't read as something to click. */
.compare__side {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 1.25rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}
.compare__side:hover {
  border-color: var(--hairline-lit);
  transform: translateY(-2px);
}
.compare__side:active {
  transform: translateY(0);
}
/* color-mix degrades safely: unsupported browsers drop this one declaration
   and keep the transparent background above, so the border still shows. */
.compare__side[aria-checked='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
/* An explicit radio dot, not just a border tint: "pick one of these" is a
   pattern people recognise on sight, and a card's own border alone reads as
   an active/highlighted state rather than a control waiting to be picked. */
.compare__radio {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-lit);
  background: var(--ground);
  transition: border-color 0.2s ease;
}
.compare__side:hover .compare__radio {
  border-color: var(--ink-dim);
}
.compare__radio::after {
  content: '';
  position: absolute;
  inset: 0.3rem;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.compare__side[aria-checked='true'] .compare__radio {
  border-color: var(--accent);
}
.compare__side[aria-checked='true'] .compare__radio::after {
  transform: scale(1);
}
.compare__side img {
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin-bottom: 0.5rem;
}
.compare__side p {
  max-width: 38ch;
}
.compare__tally {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.compare__count {
  font-size: 1.25rem;
  color: var(--ink);
}
.compare__count-label {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ---------- vote ---------- */

.vote-cast {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.vote-cast__hint {
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* The easter egg: the hero's own CTA, reappearing as a reward for voting.
   Kept in flow (not `hidden`) so it can transition in, matching the
   [data-reveal][data-shown] idiom already used for scroll reveals. */
.vote-unlock {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.vote-unlock[data-unlocked] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- shift sequence ---------- */

.sequence {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
}
.sequence > div {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 2px solid var(--hairline-lit);
}
.sequence p {
  max-width: 34ch;
}

/* ---------- closing ---------- */

.closing {
  position: relative;
  min-height: min(78vh, 42rem);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.6rem;
  padding: var(--gap-section) var(--shell);
  overflow: hidden;
}
video.closing__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.34);
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--ground) 0%,
    rgba(20, 24, 25, 0.66) 30%,
    rgba(20, 24, 25, 0.86) 100%
  );
}
.closing > * {
  position: relative;
}
.closing .t-head {
  max-width: 22ch;
}
/* Bottom-right, outside the reading column entirely: this is a control over
   the background media, not part of the pitch copy above it. */
.sound-toggle {
  position: absolute;
  right: var(--shell);
  bottom: var(--shell);
  z-index: 1;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink-dim);
  background: rgba(20, 24, 25, 0.55);
  border: 1px solid var(--hairline-lit);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.sound-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
}
.sound-toggle[aria-pressed='true'] {
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 560px) {
  .sound-toggle {
    right: calc(var(--shell) / 2);
    bottom: calc(var(--shell) / 2);
  }
}

.colophon {
  padding: 2rem var(--shell) 2.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-end;
}
.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.brand-row__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-row__label {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.brand-row__logo {
  display: block;
  width: auto;
}
.brand-row__logo--ff {
  height: 1.05rem;
}
/* Sized up from the Founders Factory mark: a ring-plus-wordmark lockup
   needs more height than a stacked wordmark to read at equal visual weight,
   and the user asked for it larger. */
.brand-row__logo--bosch {
  height: 1.55rem;
}
@media (max-width: 560px) {
  .colophon {
    justify-content: center;
  }
  .brand-row {
    justify-content: center;
    gap: 1.25rem;
  }
  .brand-row__label {
    display: none;
  }
}

/* ---------- reveals ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal][data-shown] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scrub__track {
    height: auto;
  }
  .scrub__pin {
    position: static;
    height: auto;
    padding-bottom: 3rem;
  }
  .stage {
    width: 100%;
  }
  .callout {
    opacity: 1;
  }
  .sound-toggle {
    display: none;
  }
  .geo-map__arc {
    animation: none;
  }
  .compare__side,
  .vote-unlock {
    transition: none;
  }
  .compare__side:hover {
    transform: none;
  }
  .compare__radio::after {
    transition: none;
  }
}

/* ---------- app shell: login / dashboard / DDROOM ---------- */

/* These pages are short utility screens, not a scroll experience, so the
   masthead is permanently in its [data-solid] state rather than fading in
   on scroll -- and content needs top padding to clear the fixed header. */
.app-body {
  padding-top: 66px;
  min-height: 100dvh;
}

/* ---------- login modal ---------- */

/* [hidden] must win the display race: an author-stylesheet class selector
   and the UA's [hidden] { display: none } rule are equal specificity, so
   plain `.modal { display: grid }` would override `hidden` and the modal
   would render even when the attribute is set. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: var(--shell);
}
.modal:not([hidden]) {
  display: grid;
  place-items: center;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 14, 0.72);
}
.modal__panel {
  position: relative;
  z-index: 1;
  max-height: 90dvh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}
.modal__close:hover {
  color: var(--ink);
}

/* ---------- auth card (shared by the modal) ---------- */

.auth-card {
  width: 100%;
  max-width: 26rem;
  border: 1px solid var(--hairline);
  background: var(--sunk);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.auth-card__title {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.auth-field {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.auth-field label {
  font-size: 0.8125rem;
  color: var(--ink-dim);
}
.auth-field input {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--hairline-lit);
  padding: 0.7rem 0.85rem;
}
.auth-field input::placeholder {
  color: var(--ink-faint);
}
.auth-actions {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}
.auth-actions .btn {
  justify-content: center;
}
.auth-link {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  justify-self: start;
}
.auth-link:hover {
  color: var(--ink-dim);
}
.auth-error {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #e5484d;
}

/* ---------- early access wizard ---------- */

.access-card {
  width: 100%;
  max-width: 34rem;
  max-height: 90dvh;
  overflow-y: auto;
  border: 1px solid var(--hairline);
  background: var(--sunk);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.access-progress {
  display: block;
  height: 2px;
  background: var(--hairline);
  margin-bottom: 1.5rem;
}
.access-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.access-prompt {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  max-width: none;
}
.access-form {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.6rem;
}
.access-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-lit);
  padding: 0.6rem 0.1rem;
}
.access-form input:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
}

.access-choices {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.access-choice {
  font: inherit;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--hairline-lit);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.access-choice:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
}

/* The one place these questions need more than words: two real product
   photos, selected the same way the vote section below picks a mount. */
.access-visuals {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.access-visual {
  position: relative;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  text-align: center;
  font: inherit;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 1rem;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.15s ease;
}
.access-visual:hover {
  border-color: var(--hairline-lit);
  transform: translateY(-2px);
}
.access-visual[aria-pressed='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.access-visual img {
  width: 100%;
  max-width: 9rem;
  height: auto;
}
.access-visual__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.access-visual__radio {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-lit);
}
.access-visual__radio::after {
  content: '';
  position: absolute;
  inset: 0.25rem;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.access-visual[aria-pressed='true'] .access-visual__radio {
  border-color: var(--accent);
}
.access-visual[aria-pressed='true'] .access-visual__radio::after {
  transform: scale(1);
}
@media (max-width: 480px) {
  .access-visuals {
    grid-template-columns: 1fr;
  }
}

.access-skip {
  display: block;
  margin: 1rem auto 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.access-skip:hover {
  color: var(--ink-dim);
}

.access-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.access-back {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.access-back:hover {
  color: var(--ink-dim);
}
.access-error {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #e5484d;
}
.access-success {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline-lit);
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ---------- dashboard: fleet KPIs + worker roster ---------- */

/* A supervisor's actual first question is "how many people are on shift and
   who needs attention", not five readings off one anonymous body -- so the
   dashboard leads with fleet-wide counts, then the roster that backs them. */
.stat-row {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: clamp(2rem, 4vh, 3rem);
  grid-template-columns: repeat(4, 1fr);
}
.stat-tile {
  background: var(--ground);
  padding: clamp(1.25rem, 2vw, 1.5rem);
  display: grid;
  gap: 0.4rem;
}
.stat-tile__value {
  font-size: 2.1rem;
  color: var(--ink);
}
.stat-tile__value--alert {
  color: #e5484d;
}
.stat-tile__unit {
  margin-left: 0.25rem;
  font-size: 1rem;
  color: var(--ink-faint);
}
.stat-tile__label {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
@media (max-width: 700px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- charts ---------- */

.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 1px;
}
.chart-card {
  background: var(--ground);
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.chart-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.chart-card__note {
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.chart {
  margin-top: 1rem;
}
.chart__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart__grid {
  stroke: var(--hairline);
  stroke-width: 1;
}
.chart__axis-y,
.chart__axis-x {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  fill: var(--ink-faint);
}
.chart__band {
  opacity: 0.5;
}
.chart__band--watch {
  fill: color-mix(in srgb, var(--accent) 10%, transparent);
}
.chart__band--alert {
  fill: color-mix(in srgb, #e5484d 10%, transparent);
}
.chart__area {
  fill: color-mix(in srgb, var(--ink) 8%, transparent);
}
.chart__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}
.chart__dot {
  fill: var(--accent);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chart-legend__swatch {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink-dim);
}
.chart-legend__swatch--watch {
  background: var(--accent);
}
.chart-legend__swatch--alert {
  background: #e5484d;
}

.status-mix {
  display: flex;
  height: 0.6rem;
  margin-top: 1rem;
  overflow: hidden;
}
.status-mix__seg--good {
  background: var(--ink-dim);
}
.status-mix__seg--watch {
  background: var(--accent);
}
.status-mix__seg--alert {
  background: #e5484d;
}
.status-mix__legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-dim);
}
.status-mix__legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 900px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

.roster-table__trend {
  width: 6.5rem;
}
.spark-svg {
  width: 100%;
  height: 1.6rem;
  display: block;
  overflow: visible;
}
.spark-svg__line {
  fill: none;
  stroke-width: 2;
  stroke: var(--ink-dim);
}
.spark-svg__line--watch {
  stroke: var(--accent);
}
.spark-svg__line--alert {
  stroke: #e5484d;
}
.spark-svg__dot {
  fill: var(--ink-dim);
}
.spark-svg__dot.spark-svg__line--watch {
  fill: var(--accent);
}
.spark-svg__dot.spark-svg__line--alert {
  fill: #e5484d;
}

.roster-table__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
}

/* Real tabular data gets a real <table>, scrolling in its own container
   rather than squeezing seven columns into a phone screen. */
.roster-scroll {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--hairline);
}
.roster-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.roster-table th,
.roster-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.roster-table thead th {
  background: var(--sunk);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--hairline);
}
.roster-table tbody tr {
  border-bottom: 1px solid var(--hairline);
}
.roster-table tbody tr:last-child {
  border-bottom: 0;
}
.roster-table tbody tr.is-alert {
  background: color-mix(in srgb, #e5484d 8%, transparent);
}
.roster-table tbody tr.is-watch {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.roster-table td:first-child {
  color: var(--ink);
}
.roster-table__time {
  color: var(--ink-faint);
}
.badge--good {
  color: var(--ink-faint);
}
.badge--watch {
  color: var(--accent);
  border-color: var(--accent);
}
.badge--alert {
  color: #e5484d;
  border-color: #e5484d;
}

/* ---------- DDROOM ---------- */

/* [hidden] must win the display race here too -- see the .modal rule above
   for why an unconditional `display: grid` on the base class would leak
   this admin-only form to every visitor regardless of role. */
.docroom-upload {
  gap: 1rem;
  border: 1px solid var(--hairline);
  background: var(--sunk);
  padding: clamp(1.25rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vh, 3rem);
}
.docroom-upload:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}
.docroom-upload .auth-field {
  margin-top: 0;
}
.docroom-upload input[type='file'] {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
@media (max-width: 700px) {
  .docroom-upload:not([hidden]) {
    grid-template-columns: 1fr;
  }
}
.docroom {
  margin: clamp(2rem, 4vh, 3rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.docroom__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.docroom__open {
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 500;
}
.docroom__open:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.docroom__meta {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.docroom__delete {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.docroom__delete:hover {
  color: #e5484d;
}
.docroom__empty {
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--ink-faint);
}
