/* ============================================================
   Platform — How It Works
   Mirrors the Tektome theme's per-page CSS pattern. Brand tokens only
   (colors_and_type.css). Light mode; Arch Purple is the single accent.
   Maps to a future page-platform-how-it-works.php + this enqueue.
   ============================================================ */

.hiw-page {
  --hiw-compound-bg: var(--bg-section-alt);
  background: var(--color-draft-white);
}
.hiw-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.hiw-inner--narrow { max-width: 940px; }

.hiw-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--color-arch-purple);
  margin: 0 0 20px;
}
.hiw-h2 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--color-data-black);
  margin: 0 0 18px;
  text-wrap: balance;
}
.hiw-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--fg-secondary);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.hiw-body:last-child { margin-bottom: 0; }
.hiw-body strong { color: var(--color-data-black); font-weight: 600; }

/* ---------- 1. HERO ---------- */
.hiw-hero {
  padding: 104px 0 0;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--purple-50) 0%, rgba(236, 236, 252, 0) 60%),
    var(--color-draft-white);
}
.hiw-hero__inner { max-width: 980px; margin: 0 auto; padding: 0 40px; text-align: center; }
.hiw-hero__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-data-black);
  margin: 0 0 26px;
  text-wrap: balance;
}
.hiw-hero__lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--fg-secondary);
  max-width: 780px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}
.hiw-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 2. LOOP DIAGRAM (doubles as jump-to nav) ---------- */
.hiw-loopwrap { padding: 64px 0 96px; border-bottom: 1px solid var(--border-subtle, #EAEAEA); }
.hiw-loop__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-tertiary, #8B8B8B);
  text-align: center;
  margin: 0 0 34px;
}

/* shared node */
.hiw-node {
  display: block;
  text-decoration: none;
  background: var(--color-draft-white);
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-lg, 8px);
  padding: 16px 16px 18px;
  transition:
    border-color 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)),
    box-shadow 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)),
    transform 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.hiw-node:hover,
.hiw-node:focus-visible {
  border-color: var(--color-arch-purple);
  box-shadow: 0 1px 2px rgba(16, 16, 16, 0.04), 0 8px 24px rgba(16, 16, 16, 0.06);
  transform: translateY(-2px);
  outline: none;
}
.hiw-node:focus-visible { box-shadow: 0 0 0 3px rgba(81, 86, 219, 0.25); }
.hiw-node__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.hiw-node__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--color-arch-purple);
}
.hiw-node__icon svg { width: 100%; height: 100%; display: block; }
.hiw-node__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--color-arch-purple);
}
.hiw-ring__node .hiw-node__head { justify-content: center; }
.hiw-node__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-data-black);
  margin: 0 0 6px;
  text-wrap: balance;
}
.hiw-node__desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* --- variant: track (horizontal, with return arrow) --- */
.hiw-loop[data-loop="ring"] .hiw-track { display: none; }
.hiw-loop[data-loop="track"] .hiw-ring { display: none; }

/* A grid of fixed columns (6 nodes, 5 arrows), not flex: as flex: 1 1 0 the
   first nodes painted 530px wide while the rest of the row was still being
   parsed and then collapsed to 158px as their siblings arrived, a layout
   shift of up to 0.05 on a slow connection. The columns give the same widths
   the flex row settled on, from the first paint. */
.hiw-track__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr) 34px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}
.hiw-track__row .hiw-node { min-width: 0; }
.hiw-track__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400, #D4D4D4);
}
.hiw-track__arrow svg { width: 18px; height: 18px; display: block; }
.hiw-track__return { position: relative; height: 62px; }
.hiw-track__return-path {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  bottom: 18px;
  border: 1.5px solid var(--color-arch-purple);
  border-top: none;
  border-radius: 0 0 12px 12px;
  opacity: 0.5;
}
.hiw-track__return-head {
  position: absolute;
  left: 8%;
  top: 0;
  transform: translate(-50%, -9px);
  color: var(--color-arch-purple);
  line-height: 0;
}
.hiw-track__return-head svg { width: 14px; height: 14px; display: block; }
.hiw-track__return-label {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translate(-50%, -50%);
  background: var(--color-draft-white);
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-arch-purple);
  white-space: nowrap;
}

/* --- variant: ring (circular) --- */
.hiw-ring {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1;
  container-type: inline-size;
  margin: 0 auto;
}
.hiw-ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hiw-ring__node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  margin: -54px 0 0 -95px;
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
  text-align: center;
}
.hiw-ring__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 188px;
  height: 188px;
  border-radius: 999px;
  background: var(--purple-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.hiw-ring__core-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--color-data-black);
  margin: 0 0 8px;
}
.hiw-ring__core-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-secondary);
  margin: 0;
}

/* ---------- 3. STICKY STAGE RAIL ---------- */
.hiw-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-draft-white);
  border-bottom: 1px solid var(--border-subtle, #EAEAEA);
}
.hiw-rail__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hiw-rail__inner::-webkit-scrollbar { display: none; }
.hiw-rail__link {
  flex: 1 1 0;
  min-width: 132px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 8px 13px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.hiw-rail__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-tertiary, #8B8B8B);
}
.hiw-rail__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}
.hiw-rail__link:hover .hiw-rail__label { color: var(--color-data-black); }
.hiw-rail__link.is-active { border-bottom-color: var(--color-arch-purple); }
.hiw-rail__link.is-active .hiw-rail__num,
.hiw-rail__link.is-active .hiw-rail__label { color: var(--color-arch-purple); }

/* ---------- 4. STAGES ---------- */
.hiw-stage { padding: 92px 0; scroll-margin-top: 60px; }
.hiw-stage--alt { background: var(--bg-section-alt); }
.hiw-stage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hiw-stage--flip .hiw-stage__viz { order: -1; }
.hiw-stage__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-arch-purple);
  margin: 0 0 18px;
}
.hiw-stage__lede {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-data-black);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.hiw-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.hiw-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-secondary);
}
.hiw-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-arch-purple);
}

/* shared visual panel */
.hiw-panel {
  background: var(--color-draft-white);
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-lg, 8px);
  padding: 26px 28px;
}
.hiw-panel__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-tertiary, #8B8B8B);
  margin: 0 0 18px;
}
.hiw-panel__foot {
  margin: 20px -28px -26px;
  padding: 14px 28px;
  border-top: 1px solid var(--border-subtle, #EAEAEA);
  background: var(--color-light-gray);
  border-radius: 0 0 var(--radius-lg, 8px) var(--radius-lg, 8px);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-secondary);
}
.hiw-panel__foot strong { color: var(--color-data-black); font-weight: 600; }

/* stage 01 — formats */
.hiw-formats { display: flex; flex-wrap: wrap; gap: 8px; }
.hiw-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-data-black);
  background: var(--color-light-gray);
  border-radius: 999px;
  padding: 7px 14px;
}
.hiw-chip--muted { color: var(--fg-tertiary, #8B8B8B); }

/* stage 02 — record vs generic */
.hiw-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hiw-vs__col {
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-md, 6px);
  padding: 16px 16px 18px;
}
.hiw-vs__col--own { border-color: var(--color-arch-purple); background: var(--purple-50); }
.hiw-vs__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--fg-tertiary, #8B8B8B);
}
.hiw-vs__col--own .hiw-vs__title { color: var(--color-arch-purple); }
.hiw-vs__note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-tertiary, #8B8B8B);
  margin: -4px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle, #EAEAEA);
}
.hiw-vs__col--own .hiw-vs__note { color: var(--color-arch-purple); border-bottom-color: rgba(81, 86, 219, 0.22); }
.hiw-vs__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hiw-vs__items li { font-size: 13.5px; line-height: 1.45; color: var(--fg-secondary); }
.hiw-vs__col--own .hiw-vs__items li { color: var(--color-data-black); }

/* stage 03 — agent lanes */
.hiw-lanes { display: grid; gap: 10px; }
.hiw-lane {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-md, 6px);
  padding: 12px 14px;
}
.hiw-lane__name { font-size: 13.5px; font-weight: 600; color: var(--color-data-black); margin: 0 0 3px; }
.hiw-lane__found { font-size: 12.5px; line-height: 1.4; color: var(--fg-secondary); margin: 0; }
.hiw-lane__src {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--color-arch-purple);
  background: var(--purple-50);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* stage 04 — grades */
.hiw-grades { display: grid; gap: 12px; }
.hiw-grade {
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-md, 6px);
  padding: 15px 16px;
}
.hiw-grade__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.hiw-grade__name { font-size: 14px; font-weight: 600; color: var(--color-data-black); margin: 0; }
.hiw-grade__meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-tertiary, #8B8B8B); }
.hiw-grade__text { font-size: 12.5px; line-height: 1.5; color: var(--fg-secondary); margin: 0 0 12px; }
.hiw-bar { height: 5px; border-radius: 999px; background: var(--color-light-gray); overflow: hidden; }
.hiw-bar span { display: block; height: 100%; border-radius: 999px; background: var(--color-arch-purple); width: var(--v, 50%); }
.hiw-bar--none {
  background: transparent;
  border: 1px dashed var(--gray-400, #D4D4D4);
  height: 5px;
  box-sizing: border-box;
}

/* stage 05 — decision card */
.hiw-decision__q { font-size: 15px; font-weight: 600; color: var(--color-data-black); margin: 0 0 16px; line-height: 1.45; }
.hiw-evidence { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.hiw-evidence li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-secondary);
}
.hiw-evidence svg { width: 16px; height: 16px; margin-top: 2px; color: var(--color-arch-purple); }
.hiw-sign {
  border-top: 1px dashed var(--border-subtle, #EAEAEA);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hiw-sign__name { font-size: 13.5px; color: var(--color-data-black); margin: 0; font-weight: 600; }
.hiw-sign__role { font-size: 12px; color: var(--fg-tertiary, #8B8B8B); margin: 2px 0 0; }
.hiw-sign__stamp {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-arch-purple);
  border: 1px solid var(--color-arch-purple);
  border-radius: 999px;
  padding: 6px 12px;
}

/* stage 06 — delta */
.hiw-delta { display: grid; gap: 10px; }
.hiw-delta__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-md, 6px);
}
.hiw-delta__row--now { border-color: var(--color-arch-purple); background: var(--purple-50); }
.hiw-delta__rev { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg-tertiary, #8B8B8B); }
.hiw-delta__row--now .hiw-delta__rev { color: var(--color-arch-purple); }
.hiw-delta__meter { height: 8px; border-radius: 2px; background: var(--color-light-gray); overflow: hidden; display: flex; }
.hiw-delta__meter i { display: block; height: 100%; }
.hiw-delta__meter i:first-child { background: var(--color-arch-purple); width: var(--new, 20%); }
.hiw-delta__meter i:last-child { background: var(--color-lavender); width: var(--carried, 80%); }
.hiw-delta__val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-data-black);
  white-space: nowrap;
  min-width: 84px;
  text-align: right;
}
.hiw-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 0; }
.hiw-legend span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--fg-secondary); }
.hiw-legend i { width: 10px; height: 10px; border-radius: 2px; display: block; }

/* ---------- 5. WHY THIS COMPOUNDS ---------- */
.hiw-compound {
  padding: 96px 0;
  background: var(--hiw-compound-bg);
  border-top: 1px solid var(--border-subtle, #EAEAEA);
}
/* Background choices — standard brand set. Content cards stay white with
   dark text on every option; only the bold purple band flips section copy. */
.hiw-compound[data-bg="light-blue"]     { --hiw-compound-bg: var(--bg-section-alt); }
.hiw-compound[data-bg="light-lavender"] { --hiw-compound-bg: var(--purple-50); }
.hiw-compound[data-bg="lavender-wash"] {
  --hiw-compound-bg:
    radial-gradient(120% 90% at 50% -10%, var(--purple-50) 0%, rgba(236, 236, 252, 0) 60%),
    var(--color-draft-white);
}
.hiw-compound[data-bg="indigo-fade"] {
  --hiw-compound-bg: linear-gradient(135deg, var(--color-arch-purple), #8A8DE8);
  border-top-color: transparent;
}
.hiw-compound[data-bg="indigo-fade"] .hiw-eyebrow,
.hiw-compound[data-bg="indigo-fade"] .hiw-h2 { color: var(--color-draft-white); }
.hiw-compound[data-bg="indigo-fade"] .hiw-body,
.hiw-compound[data-bg="indigo-fade"] .hiw-body strong { color: var(--color-draft-white); }
.hiw-compound__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.hiw-chart {
  background: var(--color-draft-white);
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-lg, 8px);
  padding: 28px 30px 22px;
}
.hiw-chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.hiw-accum { margin-top: 34px; }
.hiw-accum__scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -30px; padding: 0 30px; }
/* Unconditional floor: the 1000-unit viewBox scales in-SVG type below the page's
   10.5px minimum any time the SVG renders under ~940px. Inert on wide screens. */
.hiw-accum__svg { min-width: 940px; }
.hiw-accum__svg { padding: 6px 0 2px; }
.hiw-chart__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-tertiary, #8B8B8B);
  margin: 0;
}
.hiw-chart__flag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-arch-purple);
  background: var(--purple-50);
  border-radius: 999px;
  padding: 5px 12px;
}
.hiw-chart svg { display: block; width: 100%; height: auto; }
.hiw-chart__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, #EAEAEA);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-secondary);
}
.hiw-compound__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.hiw-card {
  background: var(--color-draft-white);
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-lg, 8px);
  padding: 24px 24px 26px;
}
.hiw-card__title { font-size: 16px; font-weight: 600; color: var(--color-data-black); margin: 0 0 10px; }
.hiw-card__text { font-size: 14.5px; line-height: 1.6; color: var(--fg-secondary); margin: 0; text-wrap: pretty; }

/* ---------- 6. WHERE TO GO NEXT ---------- */
.hiw-next { padding: 96px 0; }
.hiw-next__head { max-width: 720px; margin: 0 0 44px; }
.hiw-next__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hiw-next__grid--wide { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.hiw-nextcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  background: var(--color-draft-white);
  border: 1px solid var(--border-subtle, #EAEAEA);
  border-radius: var(--radius-lg, 8px);
  padding: 24px 24px 26px;
  transition:
    border-color 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)),
    box-shadow 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)),
    transform 200ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.hiw-nextcard:hover,
.hiw-nextcard:focus-visible {
  border-color: var(--color-arch-purple);
  box-shadow: 0 1px 2px rgba(16, 16, 16, 0.04), 0 8px 24px rgba(16, 16, 16, 0.06);
  transform: translateY(-2px);
  outline: none;
}
.hiw-nextcard__icon { width: 24px; height: 24px; color: var(--color-arch-purple); }
.hiw-nextcard__icon svg { width: 100%; height: 100%; display: block; }
.hiw-nextcard__title { font-size: 16px; font-weight: 600; color: var(--color-data-black); margin: 0; }
.hiw-nextcard__text { font-size: 14px; line-height: 1.55; color: var(--fg-secondary); margin: 0; text-wrap: pretty; }
.hiw-nextcard__go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-arch-purple);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hiw-nextcard__go svg { width: 13px; height: 13px; }
.hiw-next__stage {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-tertiary, #8B8B8B);
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hiw-stage__grid { gap: 48px; }
  .hiw-next__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hiw-inner { padding: 0 24px; }
  .hiw-hero { padding-top: 72px; }
  .hiw-hero__inner { padding: 0 24px; }
  .hiw-loopwrap { padding: 48px 0 64px; }
  .hiw-track__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hiw-track__arrow { display: none; }
  .hiw-track__return { display: none; }
  .hiw-ring { display: none; }
  .hiw-loop[data-loop="ring"] .hiw-track { display: block; }
  .hiw-rail { display: none; }
  .hiw-stage { padding: 64px 0; scroll-margin-top: 16px; }
  .hiw-stage__grid { grid-template-columns: 1fr; gap: 36px; }
  .hiw-stage--flip .hiw-stage__viz { order: 0; }
  .hiw-compound { padding: 64px 0; }
  .hiw-compound__grid { grid-template-columns: 1fr; }
  .hiw-next { padding: 64px 0; }
}
@media (max-width: 560px) {
  .hiw-track__row { grid-template-columns: 1fr; }
  .hiw-vs { grid-template-columns: 1fr; }
  .hiw-next__grid,
  .hiw-next__grid--wide { grid-template-columns: 1fr; }
  .hiw-panel { padding: 20px; }
  .hiw-panel__foot { margin: 18px -20px -20px; padding: 13px 20px; }
}
