/* ==========================================================================
   ChitoNet — "Instrument / Telemetry" design system
   One stylesheet. No framework, no build step.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --abyss:      #030e17;
  --hull:       #061826;
  --deck:       #0a2334;
  --deck-hi:    #0f2d42;
  --bezel:      #16405b;

  --hairline:        rgba(122, 191, 222, 0.16);
  --hairline-strong: rgba(122, 191, 222, 0.34);

  --text:    #e1eff7;
  --text-2:  #a2c0d1;
  --text-3:  #7599b1;

  --cyan:      #2ad8f0;
  --cyan-deep: #0e93ac;
  --signal:    #5ee68d;
  --amber:     #f0b429;
  --alert:     #ff7263;

  --radius:    4px;
  --radius-lg: 10px;
  --gutter:    clamp(1.15rem, 4vw, 2.5rem);
  --maxw:      1240px;
  --measure:   66ch;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  220ms;

  color-scheme: dark;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--abyss);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

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

::selection { background: var(--cyan); color: var(--abyss); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--hull); }
::-webkit-scrollbar-thumb {
  background: var(--bezel);
  border: 2px solid var(--hull);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan-deep); }

/* --- 3. Typography ------------------------------------------------------- */
.display, h1, h2, h3, h4 {
  font-family: "Exo 2", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); letter-spacing: -0.012em; }
h4 { font-size: 1.1rem; letter-spacing: -0.008em; line-height: 1.3; }

p { text-wrap: pretty; }
.measure { max-width: var(--measure); }

strong, b { color: var(--text); font-weight: 600; }
em { font-style: italic; color: var(--text); }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  color: var(--text-2);
  line-height: 1.6;
}

.mono, code, kbd, .num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

code {
  font-size: 0.87em;
  background: var(--deck);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.12em 0.42em;
  color: var(--cyan);
}

/* Eyebrow: the instrument label strip — a tick rule, uppercase mono */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
  flex: none;
}
.eyebrow--muted { color: var(--text-3); }
.eyebrow--muted::before { background: var(--text-3); }

.overline {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --- 4. Layout ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 920px; }

section { position: relative; }

.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--tight { padding-block: clamp(3rem, 6vw, 4.75rem); }
.band--hull { background: var(--hull); }
.band--deck { background: var(--deck); }
.band + .band { border-top: 1px solid var(--hairline); }

.section-head { margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-head p { color: var(--text-2); max-width: 62ch; margin-top: 0.9rem; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.stack > * + * { margin-top: 1.05rem; }
.stack-lg > * + * { margin-top: 1.9rem; }

/* --- 5. Atmosphere ------------------------------------------------------- */
.atmos { position: relative; isolation: isolate; }
.atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 18% 0%, rgba(42, 216, 240, 0.13), transparent 62%),
    radial-gradient(ellipse 50% 45% at 88% 12%, rgba(94, 230, 141, 0.09), transparent 60%);
  pointer-events: none;
}

/* --- 6. Panels — the instrument bezel ------------------------------------ */
.panel {
  position: relative;
  background: linear-gradient(160deg, var(--deck) 0%, var(--hull) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* Corner registration ticks — the signature detail */
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--hairline-strong);
  pointer-events: none;
  transition: border-color var(--dur) var(--ease);
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.panel--lift:hover,
.panel--lift:focus-within {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}
.panel--lift:hover::before,
.panel--lift:hover::after { border-color: var(--cyan); }

.panel--flush { background: var(--hull); }
.panel--accent { border-left: 2px solid var(--cyan); }

.panel__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}

/* --- 7. Icons ------------------------------------------------------------ */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-chip {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: rgba(42, 216, 240, 0.06);
  color: var(--cyan);
  margin-bottom: 1.15rem;
  flex: none;
}
.icon-chip .icon { width: 1.4rem; height: 1.4rem; }
.icon-chip--signal { color: var(--signal); background: rgba(94, 230, 141, 0.07); }
.icon-chip--amber  { color: var(--amber);  background: rgba(240, 180, 41, 0.07); }
.icon-chip--alert  { color: var(--alert);  background: rgba(255, 114, 99, 0.07); }
.icon-chip--sm { width: 2.15rem; height: 2.15rem; margin-bottom: 0; }
.icon-chip--sm .icon { width: 1.05rem; height: 1.05rem; }

/* --- 8. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.82rem 1.5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--cyan); color: var(--abyss); font-weight: 600; }
.btn--primary:hover { background: #63e6f7; }

.btn--ghost {
  border-color: var(--hairline-strong);
  color: var(--text);
  background: rgba(10, 35, 52, 0.55);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--quiet { color: var(--cyan); padding-inline: 0; }
.btn--quiet:hover { color: #63e6f7; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --- 9. Status ----------------------------------------------------------- */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(94, 230, 141, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(94, 230, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 230, 141, 0); }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 100px;
  background: rgba(6, 24, 38, 0.6);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* --- 10. Readouts -------------------------------------------------------- */
.readout__value {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.readout__value--signal { color: var(--signal); }
.readout__value--text { color: var(--text); }
.readout__unit { font-size: 0.5em; color: var(--text-3); margin-left: 0.2em; }
.readout__label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.6rem;
}
.readout__note { font-size: 0.83rem; color: var(--text-3); margin-top: 0.75rem; }

.readout-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  background: rgba(3, 14, 23, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.readout-strip > * {
  padding: 1.3rem var(--gutter);
  border-right: 1px solid var(--hairline);
}
.readout-strip > *:last-child { border-right: 0; }
/* Word-shaped values ("Real-time", "Network") must not break mid-word */
.readout-strip .readout__value {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  white-space: nowrap;
}

/* --- 11. Lists ----------------------------------------------------------- */
.ticks li,
.arrows li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-2);
  padding-block: 0.32rem;
}
.ticks li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  flex: none;
  background: var(--signal);
  transform: rotate(45deg);
}
.arrows li::before {
  content: "\2192";
  color: var(--cyan);
  flex: none;
  font-family: "IBM Plex Mono", monospace;
}

.specs { border-top: 1px solid var(--hairline); }
.specs > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--hairline);
}
.specs .k { color: var(--text-3); font-size: 0.84rem; }
.specs .v {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  color: var(--text);
  text-align: right;
}

/* --- 12. Numbered steps -------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--hairline); }
.steps > li {
  counter-increment: step;
  background: var(--hull);
  padding: 1.35rem clamp(1.2rem, 2.4vw, 1.75rem);
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 1.1rem;
  align-items: start;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--cyan);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  height: 2.3rem;
}
.steps h4 { margin-bottom: 0.3rem; }
.steps p { color: var(--text-2); font-size: 0.93rem; }
/* On a --hull band the step cards would match the ground exactly; lift them. */
.band--hull .steps > li { background: var(--deck); }

/* Headings inside marker lists must not inherit the list's muted colour. */
.ticks h4, .arrows h4 { color: var(--text); }

/* Monogram avatar (team) */
.monogram {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  margin: 0 auto 1.3rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: rgba(122, 191, 222, 0.08);
  font-family: "Exo 2", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
.monogram--cyan   { color: var(--cyan);   background: rgba(42, 216, 240, 0.08); }
.monogram--signal { color: var(--signal); background: rgba(94, 230, 141, 0.09); }

/* --- 13. Tables ---------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--hull);
}
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 560px; }
caption {
  text-align: left;
  padding: 1rem 1.15rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--hairline);
}
thead th {
  text-align: left;
  padding: 0.8rem 1.15rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--deck);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
tbody td {
  padding: 0.78rem 1.15rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-2);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(42, 216, 240, 0.035); }
td.mono, th.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--cyan); }
td strong { color: var(--text); }
.table-note { font-size: 0.82rem; color: var(--text-3); margin-top: 0.85rem; }

/* --- 14. Navigation ------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 14, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.4rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__brand img { width: 2.1rem; height: 2.1rem; }
.nav__wordmark {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.nav__wordmark span { color: var(--signal); }

.nav__links { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(42, 216, 240, 0.07); }
.nav__link[aria-current="page"] { color: var(--cyan); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.1rem;
  height: 1px;
  background: var(--cyan);
}
.nav__cta { margin-left: 0.7rem; padding-block: 0.62rem; }
/* The Download page's own nav entry is the CTA button, not a .nav__link. */
.btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--abyss); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}
.nav__mobile { display: none; }

/* --- 15. Hero ------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--abyss); }
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 14, 23, 0.72) 0%, rgba(3, 14, 23, 0.86) 55%, var(--abyss) 100%),
    linear-gradient(105deg, rgba(3, 14, 23, 0.9) 12%, rgba(6, 24, 38, 0.55) 62%, rgba(14, 147, 172, 0.22) 100%);
}
.hero__inner { padding-block: clamp(4rem, 11vw, 8.5rem); position: relative; z-index: 1; }

/* Sonar sweep — the one memorable motion moment */
.sonar {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -12%;
  width: min(46rem, 90vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-radial-gradient(circle, transparent 0 58px, var(--hairline) 58px 59px);
  mask-image: radial-gradient(circle, #000 12%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 68%);
}
.sonar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(42, 216, 240, 0.28) 0deg, transparent 52deg);
  mask-image: radial-gradient(circle, #000 12%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 68%);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

/* --- 16. Telemetry demo strip ------------------------------------------- */
.telemetry {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(3, 14, 23, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.telemetry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-3);
}
.telemetry__head b { color: var(--text-2); font-weight: 500; }
.telemetry__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.telemetry__cell { padding: 1.05rem 1.1rem; border-right: 1px solid var(--hairline); }
.telemetry__cell:last-child { border-right: 0; }
.telemetry__name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.telemetry__val {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 500;
  color: var(--cyan);
  margin-top: 0.42rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.telemetry__val small { font-size: 0.54em; color: var(--text-3); margin-left: 0.25em; }
.telemetry__spark { margin-top: 0.6rem; width: 100%; height: 22px; overflow: visible; }
.telemetry__spark polyline {
  fill: none;
  stroke: var(--cyan-deep);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

/* --- 17. CAD viewport & plates ------------------------------------------ */
.viewport {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hull);
}
.viewport__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--deck);
}
.viewport__stage { background: #e8eaec; display: grid; place-items: center; padding: 1rem; }
.viewport__stage img { max-height: 30rem; width: auto; }

.plate {
  background: #f4f6f8;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.plate img { width: 100%; }
figcaption { font-size: 0.85rem; color: var(--text-3); margin-top: 0.9rem; }

/* --- 18. FAQ ------------------------------------------------------------- */
details.faq {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--hull);
  transition: border-color var(--dur) var(--ease);
}
details.faq + details.faq { margin-top: 0.6rem; }
details.faq[open] { border-color: var(--hairline-strong); }
details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
details.faq[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.faq .faq__body { padding: 0 1.2rem 1.2rem; color: var(--text-2); font-size: 0.94rem; }
details.faq a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* --- 19. Charts ---------------------------------------------------------- */
.chart { position: relative; height: 270px; padding: 0.5rem; }
.chart-card {
  background: var(--hull);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.chart-card h4 { margin-bottom: 0.9rem; font-size: 0.98rem; }

/* --- 20. Footer ---------------------------------------------------------- */
.footer {
  background: var(--abyss);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.75rem, 5vw, 4rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.footer h4 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.footer a { color: var(--text-2); transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--cyan); }
.footer li + li { margin-top: 0.48rem; }
.footer__base {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer__contact { display: flex; align-items: center; gap: 0.6rem; }
.footer__contact + .footer__contact { margin-top: 0.7rem; }

/* --- 21. Reveal on scroll ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
      animation-duration: 1ms; /* Firefox requires an explicit duration */
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* --- 22. Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile { display: none; padding-bottom: 1.1rem; border-top: 1px solid var(--hairline); }
  .nav__mobile.is-open { display: block; }
  .nav__mobile .nav__link {
    display: block;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
  }
  .nav__mobile .btn { width: 100%; margin-top: 1rem; }

  .grid-3, .grid-split { grid-template-columns: minmax(0, 1fr); }
  .readout-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout-strip > *:nth-child(2n) { border-right: 0; }
  .readout-strip > *:nth-child(-n + 2) { border-bottom: 1px solid var(--hairline); }
  .telemetry__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry__cell:nth-child(2n) { border-right: 0; }
  .telemetry__cell:nth-child(-n + 2) { border-bottom: 1px solid var(--hairline); }
  .sonar { opacity: 0.3; right: -35%; }
}

@media (max-width: 560px) {
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .steps > li { grid-template-columns: 1fr; gap: 0.7rem; }
  .steps > li::before { width: 2.3rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .viewport__stage img { max-height: 20rem; }
}

/* --- 23. Reduced motion & print ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .sonar::after { animation: none; }
  .btn:hover, .panel--lift:hover { transform: none; }
}

@media print {
  .nav, .footer, .sonar, .telemetry, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { border: 1px solid #999; }
}

/* Completion pass: usable navigation without JavaScript and hardware documentation. */
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 200; padding: .8rem 1rem; background: var(--cyan); color: var(--abyss); }
.skip-link:focus { left: 1rem; }
.hardware-section h2, .hardware-section h3, .hardware-section h4 { margin-block: 1.1rem .8rem; }
.hardware-section .wrap > div + div { margin-top: 1.7rem; }
.hardware-section p { color: var(--text-2); max-width: 75ch; margin-block: .7rem; }
.hardware-section .grid { margin-block: 1.3rem; align-items: start; }
.hardware-section .panel .panel { background: var(--deck); padding: 1rem; }
.hardware-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.2rem; padding-block: .4rem; }
.hardware-section .ticks li { display: list-item; list-style: square; margin-left: 1rem; }
.hardware-section .ticks li::before { content: none; }
.hardware-section a { color: var(--cyan); text-decoration: underline; }
.hardware-section td { overflow-wrap: anywhere; }
.nav__toggle { min-width: 44px; min-height: 44px; }
.telemetry__pause { background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--radius); padding: .45rem .7rem; cursor: pointer; color: var(--text); min-height: 44px; }
.demo-paused .sonar::after { animation-play-state: paused; }
@media (max-width: 860px) {
  html:not(.js) .nav__mobile { display: block; }
  html:not(.js) .nav__toggle { display: none; }
}
.btn { max-width: 100%; white-space: normal; text-align: center; }
.hardware-section .grid > *, .hardware-section .table-scroll { min-width: 0; max-width: 100%; }
