/* ==========================================================================
   Advanced IP Scanner guide — main stylesheet
   Design seed: S17 Technical Lab and Instruments
   Theme: single LIGHT theme (fixed, no switcher)
   Palette family: the brand icon's blues (sky cyan -> ocean -> deep blue)
   on cool white. Legacy token names (signal / tangerine / sand) are kept
   so component rules stay unchanged; they now hold icon colours.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* Brand colours sampled from the icon */
  --sky: #009bd2;        /* bright cyan highlight */
  --ocean: #0586c0;      /* mid blue */
  --azure: #1d70b2;      /* gradient midpoint */
  --deep: #2a68aa;       /* deep blue */
  --brand-gradient: linear-gradient(135deg, var(--ocean) 0%, var(--deep) 100%);

  --bg: #f6f9fc;
  --bg-deep: #eaf2f9;
  --bg-raised: #eef4fa;
  --panel: #ffffff;
  --panel-2: #f1f6fb;
  --line: #dbe5ef;
  --line-strong: #c2d2e2;

  --text: #0e2236;
  --text-2: #3d5266;
  --text-3: #56697d;

  --signal: var(--azure);
  --signal-soft: rgba(0, 155, 210, 0.16);
  --signal-dim: #8fc3e3;
  --tangerine: var(--ocean);
  --tangerine-hover: var(--azure);
  --on-tangerine: #ffffff;
  --sand: var(--deep);

  --font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --r-xs: 3px;
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --hdr-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: clamp(1.95rem, 2.6vw + 0.75rem, 2.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 1.8vw + 0.9rem, 2.2rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ocean); }

code, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
}
code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 0.08em 0.38em;
  color: var(--sand);
}

strong { font-weight: 600; color: var(--text); }

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

::selection { background: rgba(0, 155, 210, 0.22); color: var(--text); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--tangerine);
  color: var(--on-tangerine);
  font-weight: 600;
  border-radius: var(--r-s);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-tangerine); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 36px);
}
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 72px); }

.sec { padding-block: clamp(64px, 8vw, 104px); position: relative; }
.sec--tight { padding-block: clamp(48px, 6vw, 76px); }
.sec--raised { background: var(--bg-raised); }
.sec--deep { background: var(--bg-deep); }
.sec + .sec--raised,
.sec--raised + .sec { border-top: 1px solid var(--line); }

/* Section heading: calibrated rule with a measured tick */
.sec-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.sec-head__rule {
  display: block;
  width: 132px;
  height: 9px;
  margin-bottom: 18px;
  background:
    linear-gradient(var(--signal), var(--signal)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 12px) left bottom / 100% 5px no-repeat;
  position: relative;
}
.sec-head__rule::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2px; height: 9px;
  background: var(--tangerine);
}
.sec-head p { color: var(--text-2); font-size: 1.08rem; max-width: 62ch; }
.sec-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
}
.sec-head--split p { margin: 0; }

.lead { font-size: 1.16rem; color: var(--text-2); max-width: 58ch; }
.muted { color: var(--text-2); }
.small { font-size: 0.92rem; }

/* ---------- 4. Buttons ---------- */
.btn {
  white-space: nowrap;
  --btn-bg: var(--panel);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { color: var(--btn-fg); border-color: var(--signal-dim); }
.btn:not(.btn--accent):hover { color: var(--deep); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }

.btn--accent {
  --btn-bg: var(--brand-gradient);
  --btn-fg: var(--on-tangerine);
  --btn-bd: transparent;
  box-shadow: 0 6px 18px -10px rgba(5, 134, 192, 0.6);
}
.btn--accent:hover {
  --btn-bg: linear-gradient(135deg, var(--azure) 0%, var(--deep) 100%);
  --btn-bd: transparent;
  box-shadow: 0 10px 26px -10px rgba(5, 134, 192, 0.65);
}
.btn--accent:hover svg { transform: translateY(2px); }

.btn--ghost { --btn-bg: transparent; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.94rem; }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 1.06rem; }

.text-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--signal-dim);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.text-link:hover { color: var(--signal); border-color: var(--signal); }

/* ---------- 5. Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
          backdrop-filter: saturate(1.4) blur(10px);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px -18px rgba(14, 34, 54, 0.28);
}

.hdr__inner {
  min-height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand__name { font-weight: 600; font-size: 1.04rem; letter-spacing: -0.01em; }
.brand__tag {
  font-size: 0.78rem;
  color: var(--text-3);
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
  margin-left: 1px;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 10px;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 2px;
  background: var(--tangerine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active,
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link.is-active::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Calibrated ruler under the header */
.hdr__ruler {
  height: 6px;
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10px) top left / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 50px) top left / 100% 6px no-repeat;
  opacity: 0.8;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--text); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 84px) clamp(56px, 7vw, 92px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(0, 155, 210, 0.12), transparent 70%),
    linear-gradient(90deg, rgba(42, 104, 170, 0.08) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(42, 104, 170, 0.08) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.hero__kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.hero h1 { max-width: 19ch; margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-bottom: 38px; }

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-strip div { padding: 12px 22px 12px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.spec-strip div:last-child { border-right: 0; margin-right: 0; }
.spec-strip dt { font-size: 0.8rem; color: var(--text-3); margin-bottom: 2px; }
.spec-strip dd { margin: 0; font-weight: 600; font-size: 0.98rem; }
.spec-strip dd.mono { font-weight: 500; color: var(--sand); }

.hero__visual { position: relative; }
.hero__visual figure { margin: 0; }
.hero__visual figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-3);
}

/* Instrument dial (hero signature) */
.dial { width: 100%; max-width: 540px; margin-inline: auto; overflow: visible; }
.dial text { font-family: var(--mono); fill: var(--text-3); }
.dial .lbl { font-family: var(--font); fill: var(--text-2); font-size: 13px; }
.dial-ring { fill: none; stroke: var(--line-strong); }
.dial-ring--signal { stroke: var(--signal-dim); }
.dial-ticks line { stroke: var(--line-strong); }
.dial-ticks .major { stroke: var(--text-3); }
.dial-arm { transform-box: view-box; transform-origin: 270px 262px; }
.dial-node { transform-box: fill-box; transform-origin: center; }
.dial-node .core { fill: var(--panel); stroke: var(--sky); stroke-width: 1.5; }
.dial-node .glyph { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dial-leader { stroke: var(--line-strong); stroke-dasharray: 2 3; fill: none; }

@keyframes dial-sweep {
  0%   { transform: rotate(-160deg); }
  70%  { transform: rotate(46deg); }
  84%  { transform: rotate(38deg); }
  100% { transform: rotate(41deg); }
}
@keyframes dial-ring-draw { from { stroke-dashoffset: var(--len, 1600); } to { stroke-dashoffset: 0; } }
@keyframes node-in {
  0% { opacity: 0; transform: scale(0.4); }
  70% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.dial-arm { animation: dial-sweep 2.6s var(--ease) 0.25s both; }
.dial-ring--draw { stroke-dasharray: var(--len, 1600); animation: dial-ring-draw 1.6s var(--ease) both; }
.dial-node { animation: node-in 0.55s var(--ease) both; }
.dial-node:nth-of-type(1) { animation-delay: 1.05s; }
.dial-node:nth-of-type(2) { animation-delay: 1.35s; }
.dial-node:nth-of-type(3) { animation-delay: 1.7s; }
.dial-node:nth-of-type(4) { animation-delay: 2.0s; }
.dial-node:nth-of-type(5) { animation-delay: 2.3s; }
.dial-labels { animation: fade-in 0.8s ease 2.5s both; }
.hero__copy > * { animation: rise-in 0.7s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.32s; }

/* ---------- 7. About: editorial strip + labelled components ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.about-copy h2 { max-width: 20ch; }
.about-copy p { max-width: 64ch; color: var(--text-2); }
.about-copy p:first-of-type { color: var(--text); font-size: 1.14rem; }

.parts {
  list-style: none;
  margin: 0;
  padding: 26px 26px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--bg-raised);
  position: relative;
}
.parts__title {
  font-size: 0.86rem;
  color: var(--text-3);
  margin: 0 0 18px;
}
.parts li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
  margin: 0;
}
.parts li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px; top: 34px; bottom: 2px;
  width: 1px;
  background: var(--line-strong);
}
.parts__key {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--signal-dim);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--signal);
  background: var(--bg);
}
.parts h3 { font-size: 1.02rem; margin: 4px 0 2px; }
.parts p { margin: 0; font-size: 0.94rem; color: var(--text-2); }

/* ---------- 8. Features: instrument stations ---------- */
.stations {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.station {
  position: relative;
  grid-column: span 3;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--panel);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.station:hover { border-color: var(--line-strong); background: #fbfdff; box-shadow: 0 14px 30px -22px rgba(14, 34, 54, 0.35); }
.station::before {
  content: "";
  position: absolute;
  top: -1px; left: 28px;
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--deep));
  transition: width 0.35s var(--ease);
}
.station:hover::before { width: 64px; }
.station--wide {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 34px 36px;
  background: transparent;
  border-color: var(--line);
  border-radius: var(--r-l);
}
.station--wide:hover { background: rgba(255, 255, 255, 0.7); }
.station--wide.is-flipped .station__figure { order: -1; }
.station--third { grid-column: span 2; }
.station h3 { margin-bottom: 10px; }
.station p { color: var(--text-2); margin-bottom: 0.8em; }
.station p:last-child { margin-bottom: 0; }
.station__meta {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--sand);
  margin-bottom: 12px;
}
.station__figure {
  margin: 0;
  padding: 18px;
  border-radius: var(--r-m);
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.station__figure svg { width: 100%; }
.station__figure text { font-family: var(--font); font-size: 12px; fill: var(--text-2); }
.station__figure .mono-t { font-family: var(--mono); font-size: 11px; fill: var(--text-3); }

.columns-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.columns-list li {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-size: 0.86rem;
  color: var(--text-2);
}

/* Line-draw diagrams */
.draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }
.reveal.pre .draw { stroke-dashoffset: var(--len, 400); }

/* ---------- 9. How it works: calibration track ---------- */
.track { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.track::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 23px;
  height: 14px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 14px) left center / 100% 14px no-repeat;
}
.track::after {
  content: "";
  position: absolute;
  left: 0; top: 29px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--sky), var(--deep));
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 1.6s var(--ease) 0.2s;
}
.reveal.pre .track::after,
.track.pre::after { transform: scaleX(0); }
.track li { position: relative; margin: 0; padding-top: 74px; }
.track__num {
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--sand);
  z-index: 1;
}
.track li:first-child .track__num { border-color: var(--ocean); color: #fff; background: var(--brand-gradient); }
.track h3 { margin-bottom: 8px; }
.track p { color: var(--text-2); font-size: 0.98rem; margin: 0; }

/* ---------- 10. Release information: data plate ---------- */
.plate-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.plate {
  position: relative;
  padding: 34px 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background:
    linear-gradient(180deg, rgba(0, 155, 210, 0.06), transparent 60%),
    var(--panel);
}
.plate::before, .plate::after,
.plate__screws::before, .plate__screws::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle, var(--line-strong) 0 1px, var(--bg) 1px);
}
.plate::before { top: 12px; left: 12px; }
.plate::after { top: 12px; right: 12px; }
.plate__screws::before { bottom: 12px; left: 12px; }
.plate__screws::after { bottom: 12px; right: 12px; }
.plate__title { font-size: 0.86rem; color: var(--text-3); margin: 0 0 14px; }
.plate dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.plate dt, .plate dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.plate dt { color: var(--text-3); font-size: 0.92rem; padding-right: 28px; }
.plate dd { font-weight: 500; }
.plate dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- 11. Compatibility: reference table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-m); }
.ref-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.98rem; }
.ref-table caption { text-align: left; padding: 14px 20px; color: var(--text-3); font-size: 0.88rem; caption-side: bottom; border-top: 1px solid var(--line); }
.ref-table th, .ref-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table thead th { font-size: 0.85rem; font-weight: 500; color: var(--text-3); background: var(--bg-deep); }
.ref-table tbody th { font-weight: 600; width: 24%; }
.ref-table tbody tr:last-child th, .ref-table tbody tr:last-child td { border-bottom: 0; }
.ref-table tbody tr { transition: background-color 0.2s var(--ease); }
.ref-table tbody tr:hover { background: rgba(0, 155, 210, 0.05); }
.ref-table td { color: var(--text-2); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
}
.status--yes::before { background: var(--signal); border-color: var(--signal); }
.status--no::before { border-color: var(--text-3); background: transparent; }
.status--alt::before { border-color: var(--sand); background: transparent; border-style: dashed; }

/* ---------- 12. Troubleshooting: diagnostic rows ---------- */
.diag { border-top: 1px solid var(--line-strong); }
.diag__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.diag__head { padding: 12px 0; font-size: 0.84rem; color: var(--text-3); border-bottom: 1px solid var(--line-strong); }
.diag__row h3 { font-size: 1.04rem; margin: 0; }
.diag__row p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.diag__label { display: none; font-size: 0.8rem; color: var(--text-3); margin-bottom: 4px; }

/* ---------- 13. Use cases: lab notebook entries ---------- */
.notebook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.entry {
  position: relative;
  padding: 24px 0 24px 26px;
  border-top: 1px solid var(--line);
}
.entry::before {
  content: "";
  position: absolute;
  left: 0; top: 30px;
  width: 9px; height: 9px;
  border: 1px solid var(--sand);
  transform: rotate(45deg);
}
.entry h3 { font-size: 1.1rem; margin-bottom: 6px; }
.entry p { margin: 0; color: var(--text-2); }
.notebook__intro { grid-column: 1 / -1; }

/* ---------- 14. Download panel ---------- */
.dl-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--panel);
}
.dl-panel__visual {
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 36px;
}
.dl-panel__visual img { width: 100%; max-width: 340px; }
.dl-panel__body { padding: clamp(28px, 4vw, 52px); }
.dl-panel__body h2 { margin-bottom: 14px; }
.dl-facts { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.dl-facts li { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 0.97rem; }
.dl-facts li span:first-child { color: var(--text-3); }
.dl-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--sand);
  background: rgba(0, 155, 210, 0.07);
  font-size: 0.93rem;
  color: var(--text-2);
}

/* ---------- 15. Installation: vertical procedure ---------- */
.proc-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 80px); }
.proc-layout .sec-head { position: sticky; top: calc(var(--hdr-h) + 32px); align-self: start; }
.proc { list-style: none; margin: 0; padding: 0; counter-reset: proc; }
.proc li {
  counter-increment: proc;
  position: relative;
  margin: 0;
  padding: 0 0 30px 62px;
}
.proc li::before {
  content: counter(proc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--sand);
}
.proc li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px; top: 46px; bottom: 6px;
  border-left: 1px dashed var(--line-strong);
}
.proc h3 { font-size: 1.08rem; margin: 6px 0 6px; }
.proc p { margin: 0; color: var(--text-2); }
.proc .note { margin-top: 10px; font-size: 0.92rem; color: var(--text-3); }

/* ---------- 16. Guides preview ---------- */
.guides-prev { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 26px; }
.guide-feature {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  align-self: start;
  transition: border-color 0.25s var(--ease);
}
.guide-feature:hover { color: var(--text); border-color: var(--signal-dim); }
.guide-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s var(--ease); }
.guide-feature:hover img { transform: scale(1.02); }
.guide-feature__body { padding: 24px 26px 28px; }
.guide-feature__body p { color: var(--text-2); margin: 0; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.guide-list li { margin: 0; border-bottom: 1px solid var(--line); }
.guide-list a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  text-decoration: none;
  color: var(--text);
}
.guide-list a:hover { color: var(--text); }
.guide-list a:hover .guide-list__title { color: var(--signal); }
.guide-list img { width: 92px; height: 58px; object-fit: cover; border-radius: var(--r-xs); border: 1px solid var(--line); }
.guide-list__title { font-weight: 600; line-height: 1.35; transition: color 0.2s var(--ease); display: block; }
.guide-list__desc { font-size: 0.9rem; color: var(--text-3); display: block; margin-top: 3px; }
.guides-prev__more { margin-top: 20px; }

/* ---------- 17. Pros and cons: ledger ---------- */
.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}
.ledger__col { padding: 30px 32px; }
.ledger__col + .ledger__col { border-left: 1px solid var(--line); background: var(--bg-raised); }
.ledger h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ledger h3 svg { width: 20px; height: 20px; }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li { padding: 12px 0; border-bottom: 1px dashed var(--line); color: var(--text-2); margin: 0; }
.ledger li:last-child { border-bottom: 0; }
.ledger li strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* ---------- 18. Safety notice: full-width callout ---------- */
.safety {
  background:
    repeating-linear-gradient(135deg, rgba(42, 104, 170, 0.025) 0 12px, transparent 12px 24px),
    var(--bg-deep);
  border-block: 1px solid var(--line);
}
.safety__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.safety h2 { max-width: 16ch; }
.safety__mark {
  width: 46px; height: 46px;
  margin-bottom: 18px;
  color: var(--sand);
}
.safety__points { margin: 0; padding: 0; list-style: none; }
.safety__points li {
  margin: 0;
  padding: 14px 0 14px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.safety__points li:first-child { padding-top: 0; }
.safety__points li:first-child::before { top: 6px; }
.safety__points li::before {
  content: "";
  position: absolute;
  left: 4px; top: 21px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--sand);
  border-bottom: 2px solid var(--sand);
  transform: rotate(-45deg);
}
.safety__points strong { color: var(--text); }

/* ---------- 19. FAQ: instrument reference chapters ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); }
.faq-layout > .sec-head { position: sticky; top: calc(var(--hdr-h) + 32px); align-self: start; }
.faq-index { list-style: none; padding: 0; margin: 22px 0 0; }
.faq-index li { margin: 0 0 6px; }
.faq-index a { color: var(--text-2); text-decoration: none; display: inline-flex; gap: 10px; align-items: baseline; }
.faq-index a:hover { color: var(--text); }
.faq-index span { font-family: var(--mono); font-size: 0.8rem; color: var(--sand); }

.faq-chapter + .faq-chapter { margin-top: 48px; }
.faq-chapter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-strong);
}
.faq-chapter__head h3 { margin: 0; font-size: 1.24rem; }
.faq-chapter__head span { font-size: 0.86rem; color: var(--text-3); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h4 { margin: 0; font-size: inherit; font-weight: inherit; }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  padding: 18px 2px;
  background: none;
  border: 0;
  color: var(--text);
  font: 500 1.02rem/1.45 var(--font);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--signal); }
.faq-q__icon {
  position: relative;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease), background-color 0.25s var(--ease);
}
.faq-q__icon::before, .faq-q__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: currentColor;
}
.faq-q__icon::after { transform: rotate(90deg); transition: transform 0.3s var(--ease); }
.faq-q[aria-expanded="true"] { color: var(--text); }
.faq-q[aria-expanded="true"] .faq-q__icon { border-color: var(--ocean); background: var(--brand-gradient); color: #fff; }
.faq-q[aria-expanded="true"] .faq-q__icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 48px 22px 2px; color: var(--text-2); }
.faq-a p { margin: 0; max-width: 66ch; }
.faq-a:not([hidden]) { animation: faq-open 0.32s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 20. Page heads (inner pages) ---------- */
.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -80px; top: 50%;
  width: 340px; height: 340px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 46px rgba(0, 155, 210, 0.0), inset 0 0 0 46px rgba(246, 249, 252, 0), 0 0 0 47px var(--line);
  opacity: 0.6;
  pointer-events: none;
}
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: 0.9rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; display: inline-flex; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--signal); }

/* ---------- 21. Blog index: lab notebook directory ---------- */
.nb-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 56px;
  align-items: center;
}
.nb-featured img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.nb-featured__body { padding: clamp(24px, 3.5vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.nb-featured__body h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.85rem); }
.nb-featured__body h2 a { color: var(--text); text-decoration: none; }
.nb-featured__body h2 a:hover { color: var(--signal); }
.nb-featured__body p { color: var(--text-2); }
.nb-tag { font-size: 0.84rem; color: var(--sand); margin-bottom: 10px; display: block; }

.nb-groups { display: grid; gap: 48px; }
.nb-group__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 18px; border-bottom: 2px solid var(--line-strong); padding-bottom: 10px; margin-bottom: 6px; }
.nb-group__head h2 { font-size: 1.3rem; margin: 0; }
.nb-group__head span { color: var(--text-3); font-size: 0.88rem; }
.nb-list { list-style: none; margin: 0; padding: 0; }
.nb-list li { margin: 0; border-bottom: 1px solid var(--line); }
.nb-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  color: var(--text);
  text-decoration: none;
}
.nb-row:hover { color: var(--text); }
.nb-row img { width: 200px; height: 112px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); }
.nb-row h3 { margin: 0 0 6px; transition: color 0.2s var(--ease); }
.nb-row:hover h3 { color: var(--signal); }
.nb-row p { margin: 0; color: var(--text-2); font-size: 0.97rem; max-width: 62ch; }
.nb-row__go {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.25s var(--ease);
}
.nb-row__go svg { width: 16px; height: 16px; }
.nb-row:hover .nb-row__go { border-color: var(--signal); color: var(--signal); transform: translateX(3px); }

/* ---------- 22. Article ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 60px) clamp(60px, 8vw, 96px);
}
.article-cover { margin: 0 0 34px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; padding-top: 0.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #1f3449; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--sand); }
.prose .callout {
  margin: 1.6em 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--r-s);
  background: var(--bg-raised);
}
.prose .callout p:last-child { margin: 0; }
.prose .callout--warn { border-left-color: var(--tangerine); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.96rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose thead th { color: var(--text-3); font-weight: 500; background: var(--bg-deep); }
.prose td { color: var(--text-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--text-3); margin-top: 18px; }

.related { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--line-strong); }
.related h2 { font-size: 1.3rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related li { margin: 0; }
.related a { display: block; height: 100%; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--panel); transition: border-color 0.2s var(--ease); }
.related a:hover { border-color: var(--signal-dim); color: var(--text); }
.related img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.related span { display: block; padding: 12px 14px 14px; font-weight: 600; font-size: 0.95rem; line-height: 1.4; }

/* Sidebar: lab-notebook margin */
.sidebar { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 18px; }
.side-box { border: 1px solid var(--line); border-radius: var(--r-s); padding: 20px; background: var(--bg-raised); }
.side-box h2 { font-size: 0.98rem; margin: 0 0 12px; color: var(--text); }
.side-box ol, .side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line-strong); color: var(--text-2); font-size: 0.93rem; text-decoration: none; line-height: 1.4; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.toc a:hover, .toc a.is-active { color: var(--text); border-left-color: var(--tangerine); }
.side-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; font-size: 0.9rem; }
.side-facts dt { color: var(--text-3); }
.side-facts dd { margin: 0; }
.side-links a { display: block; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--text-2); font-size: 0.93rem; text-decoration: none; line-height: 1.4; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--signal); }
.side-box--cta { background: var(--panel); border-color: var(--line-strong); }
.side-box--cta p { font-size: 0.93rem; color: var(--text-2); }
.side-box--cta .btn { width: 100%; }

/* ---------- 23. Supporting pages ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 96px); align-items: start; }
.legal-layout .toc { position: sticky; top: calc(var(--hdr-h) + 28px); }
.legal-layout .toc h2 { font-size: 0.92rem; color: var(--text-3); font-weight: 500; margin: 0 0 10px; }
.legal-layout .toc ol { list-style: none; padding: 0; margin: 0; }
.legal-layout .toc li { margin: 0; }
.clause { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.clause:last-child { border-bottom: 0; }
.clause h2 { font-size: 1.32rem; display: flex; gap: 14px; align-items: baseline; }
.clause h2 .mono { color: var(--sand); font-size: 0.9rem; font-weight: 400; }
.clause p, .clause li { color: var(--text-2); max-width: 70ch; }
.updated { font-size: 0.9rem; color: var(--text-3); margin-top: 14px; }

.about-page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 84px); padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 96px); align-items: start; }
.about-page .prose h2:first-child { margin-top: 0; }
.principles { list-style: none; padding: 0; margin: 1.2em 0; border-top: 1px solid var(--line); }
.principles li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; margin: 0; }
.principles strong { color: var(--sand); font-weight: 600; }

.contact-wrap { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.contact-plate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line-strong); border-radius: var(--r-l); overflow: hidden; }
.contact-plate__main { padding: clamp(28px, 4vw, 48px); background: var(--panel); }
.contact-plate__side { padding: clamp(28px, 4vw, 48px); background: var(--bg-raised); border-left: 1px solid var(--line); }
.email-plain {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 12px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-s);
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--sand);
  background: var(--bg);
  user-select: all;
  word-break: break-all;
}
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.reasons li:last-child { border-bottom: 0; }
.reasons strong { display: block; }
.reasons span { color: var(--text-2); font-size: 0.95rem; }

.disclaimer-callout { margin: 0 0 36px; padding: 22px 24px; border: 1px solid var(--line-strong); border-left: 3px solid var(--tangerine); border-radius: var(--r-s); background: var(--panel); }
.disclaimer-callout p { margin: 0; color: var(--text); }

/* ---------- 24. Footer ---------- */
#site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.ftr__ruler {
  height: 10px;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 8px) left top / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--text-3) 0 1px, transparent 1px 80px) left top / 100% 10px no-repeat;
  opacity: 0.55;
}
.ftr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 40px;
  padding-block: 52px 40px;
}
.ftr__brand p { color: var(--text-2); font-size: 0.95rem; max-width: 44ch; margin-top: 14px; }
.ftr__email { font-family: var(--mono); font-size: 0.9rem; color: var(--sand); }
.ftr__h { font-size: 0.86rem; color: var(--text-3); margin: 0 0 14px; font-weight: 500; }
.ftr__links { list-style: none; padding: 0; margin: 0; }
.ftr__links li { margin: 0 0 9px; }
.ftr__links a { color: var(--text); text-decoration: none; font-size: 0.96rem; transition: color 0.2s var(--ease); }
.ftr__links a:hover { color: var(--signal); }
.ftr__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-3);
}
.ftr__base a { color: var(--text-2); text-decoration: none; }
.ftr__base a:hover { color: var(--signal); }

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 8px 20px -12px rgba(14, 34, 54, 0.35);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, border-color 0.2s var(--ease);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--ocean); color: var(--deep); }

/* ---------- 25. Reveal (applied only by JS to below-fold elements) ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal-stagger > * { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.pre > * { opacity: 0; transform: translateY(14px); }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.4s; }

/* ---------- 26. Responsive ---------- */
@media (max-width: 1240px) {
  .brand__tag { display: none; }
}

@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav__link { padding: 8px 6px; font-size: 0.9rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 1020px) {
  :root { --hdr-h: 62px; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px clamp(18px, 4vw, 36px) 22px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 40px -24px rgba(14, 34, 54, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    max-height: calc(100vh - var(--hdr-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { left: 4px; right: auto; width: 24px; bottom: 8px; }
  .nav .btn { width: 100%; }
  .hdr { position: relative; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 20ch; }
  .hero__visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .about-grid,
  .plate-layout,
  .proc-layout,
  .safety__inner,
  .faq-layout,
  .about-page { grid-template-columns: minmax(0, 1fr); }
  .proc-layout .sec-head,
  .faq-layout > .sec-head { position: static; }
  .sec-head--split { grid-template-columns: minmax(0, 1fr); }
  .station--wide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .station--wide.is-flipped .station__figure { order: 0; }
  .station--third { grid-column: span 3; }
  .dl-panel { grid-template-columns: minmax(0, 1fr); }
  .dl-panel__visual { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .dl-panel__visual img { max-width: 260px; }
  .guides-prev { grid-template-columns: minmax(0, 1fr); }
  .nb-featured { grid-template-columns: minmax(0, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-layout .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-s); padding: 18px; background: var(--bg-raised); }
  .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ftr__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip div { margin-right: 0; padding: 12px 12px 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .spec-strip div:nth-child(odd) { border-right: 1px solid var(--line); margin-right: 12px; }
  .spec-strip div:nth-last-child(-n+2) { border-bottom: 0; }
  .stations { grid-template-columns: minmax(0, 1fr); }
  .station, .station--third, .station--wide { grid-column: auto; }
  .station--wide { padding: 26px 22px; }
  .station { padding: 24px 22px; }
  .track { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .track::before { left: 29px; right: auto; top: 0; bottom: 0; width: 14px; height: auto;
    background:
      linear-gradient(var(--line-strong), var(--line-strong)) 50% top / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 14px) center top / 14px 100% no-repeat; }
  .track::after { left: 29px; top: 0; width: 2px; height: 100%; transform-origin: top; transform: scaleY(1); }
  .reveal.pre .track::after, .track.pre::after { transform: scaleY(0); }
  .track li { padding: 6px 0 30px 84px; min-height: 90px; }
  .diag__head { display: none; }
  .diag__row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .diag__label { display: block; }
  .notebook { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger__col + .ledger__col { border-left: 0; border-top: 1px solid var(--line); }
  .ledger__col { padding: 24px 22px; }
  .dl-facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nb-row { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
  .nb-row img { width: 120px; height: 68px; }
  .nb-row__go { display: none; }
  .related ul { grid-template-columns: minmax(0, 1fr); }
  .related a { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; }
  .related img { height: 100%; aspect-ratio: auto; min-height: 66px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .contact-plate { grid-template-columns: minmax(0, 1fr); }
  .contact-plate__side { border-left: 0; border-top: 1px solid var(--line); }
  .principles li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .plate { padding: 28px 22px; }
  .plate dl { grid-template-columns: minmax(0, 1fr); }
  .plate dt { padding-bottom: 0; border-bottom: 0; }
  .plate dd { padding-top: 2px; }
  .plate dl > :nth-last-child(2) { border-bottom: 0; }
  .faq-a { padding-right: 8px; }
  .page-head::after { display: none; }
  .btn--lg { white-space: normal; text-align: center; }
  .dl-panel__body .btn { width: 100%; }

  /* Compatibility table becomes stacked reference rows */
  .table-scroll { overflow: visible; }
  .ref-table { min-width: 0; }
  .ref-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ref-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .ref-table tbody tr:last-child { border-bottom: 0; }
  .ref-table tbody th, .ref-table td { padding: 0; border: 0; width: auto; }
  .ref-table td:last-child { grid-column: 1 / -1; font-size: 0.94rem; }
  .ref-table caption { padding: 12px 18px; }
}


@media (max-width: 460px) {
  .brand__name { font-size: 0.96rem; }
  .hero__actions .btn { width: 100%; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); }
  .guide-list a { grid-template-columns: 72px minmax(0, 1fr); }
  .guide-list img { width: 72px; height: 46px; }
  .nb-row { grid-template-columns: minmax(0, 1fr); }
  .nb-row img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ---------- 27. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal.pre, .reveal-stagger.pre > * { opacity: 1; transform: none; }
  .reveal.pre .draw { stroke-dashoffset: 0; }
  .reveal.pre .track::after, .track.pre::after { transform: none; }
}
