/* Unrivaled Supplements: shared site styles */
/* Layout: left-aligned editorial grid on a cool mineral ground; spec-sheet rows with mono labels; one petrol band for hero, CTA and footer */
:root {
  --ground: #F2F5F4;
  --surface: #FFFFFF;
  --ink: #0E2A33;
  --muted: #475B61;
  --line: #D2DBD9;
  --line-strong: #7B8E92;
  --accent: #94500B;
  --amber: #E39A2C;
  --amber-hover: #F0AE4C;
  --on-amber: #1B1307;
  --band: #0E2A33;
  --band-2: #153743;
  --band-fg: #E9F1EF;
  --band-muted: #A7BCBE;
  --band-line: #2B4A54;
  --banner-ground: #0B1418;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.45rem + 3.7vw, 4.5rem);

  --radius: 3px;
  --max: 1280px;
  --header-h: 72px;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0A171B;
    --surface: #10242A;
    --ink: #E4EDEB;
    --muted: #A0B4B6;
    --line: #23404A;
    --line-strong: #5E7A82;
    --accent: #F2B256;
    --amber: #E9A03A;
    --amber-hover: #F4B65E;
    --on-amber: #1B1307;
    --band: #0C2F3A;
    --band-2: #12404D;
    --band-fg: #EAF2F0;
    --band-muted: #A9C1C3;
    --band-line: #2B5562;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0A171B;
  --surface: #10242A;
  --ink: #E4EDEB;
  --muted: #A0B4B6;
  --line: #23404A;
  --line-strong: #5E7A82;
  --accent: #F2B256;
  --amber: #E9A03A;
  --amber-hover: #F4B65E;
  --on-amber: #1B1307;
  --band: #0C2F3A;
  --band-2: #12404D;
  --band-fg: #EAF2F0;
  --band-muted: #A9C1C3;
  --band-line: #2B5562;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--band);
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; font-stretch: 106%; }
p { margin: 0; }
ul, ol { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--amber);
  color: var(--on-amber);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.placeholder {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1px 6px;
  white-space: nowrap;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.on-band .btn-outline { color: var(--band-fg); border-color: var(--band-line); }
.on-band .btn-outline:hover { border-color: var(--band-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--band); color: var(--band-muted); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 6px; }
.utility ul { list-style: none; padding: 0; display: flex; gap: 4px; }
.utility a { color: var(--band-fg); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; }
.utility a:hover { color: var(--amber); }
@media (max-width: 640px) { .utility-note { display: none; } .utility .wrap { justify-content: flex-end; } }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.mark-fill { fill: var(--amber); }
.mark-stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.brand-name { display: grid; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: 0.03em; text-transform: uppercase; }
.brand-name span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius);
}
.primary-nav a:hover { background: var(--ground); }
.primary-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.primary-nav .nav-cta { display: none; }
.header-cta { flex: none; }
.header-cta.btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.menu-toggle .icon-close { display: none; }
.site-header[data-open="true"] .menu-toggle .icon-open { display: none; }
.site-header[data-open="true"] .menu-toggle .icon-close { display: block; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(5, 20, 25, 0.5);
    padding-top: 8px;
    padding-bottom: 20px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .site-header[data-open="true"] .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; max-width: var(--max); margin-inline: auto; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { min-height: 52px; padding: 0 4px; font-size: 17px; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); padding-left: 14px; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .primary-nav .nav-cta { display: block; border-bottom: 0; padding-top: 16px; }
  .primary-nav .nav-cta a { justify-content: center; background: var(--amber); color: var(--on-amber); font-weight: 600; border-radius: var(--radius); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > p { color: var(--muted); font-size: 1.125rem; max-width: 64ch; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > * { min-width: 0; }
.split .section-head { margin-bottom: 0; }
@media (min-width: 901px) { .split .section-head { position: sticky; top: calc(var(--header-h) + 40px); } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Animated banners (home hero + page heroes) ---------- */
/* The banner is a dark, photo-like band in both themes. */
.banner { position: relative; isolation: isolate; overflow: hidden; background: var(--banner-ground); color: var(--band-fg); }
.banner-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(14, 42, 51, 0.62);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--band) 92%, transparent) 0%, color-mix(in srgb, var(--band) 78%, transparent) 34%, color-mix(in srgb, var(--band) 26%, transparent) 64%, color-mix(in srgb, var(--band) 6%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--band) 30%, transparent) 0%, transparent 22%, transparent 70%, color-mix(in srgb, var(--band) 60%, transparent) 100%);
}
@media (max-width: 760px) {
  .banner::after { background: linear-gradient(180deg, color-mix(in srgb, var(--band) 72%, transparent) 0%, color-mix(in srgb, var(--band) 86%, transparent) 100%); }
}
.banner-inner { position: relative; display: flex; align-items: center; }
.banner .eyebrow { color: var(--amber); }
.banner h1 { text-shadow: 0 2px 30px rgba(4, 14, 18, 0.5); }
.banner .lead { color: var(--band-fg); opacity: 0.88; text-shadow: 0 1px 18px rgba(4, 14, 18, 0.6); }

.hero .banner-inner { min-height: clamp(540px, 44vw, 660px); padding-block: clamp(64px, 8vw, 112px) clamp(88px, 9vw, 128px); }
.hero-copy { display: grid; gap: 24px; min-width: 0; max-width: 660px; }
.hero h1 { max-width: 14ch; }
.hero .actions { margin-top: 8px; }

.page-banner .banner-inner { min-height: clamp(340px, 30vw, 440px); align-items: flex-end; padding-block: clamp(48px, 6vw, 80px); }
.page-banner .lead { max-width: 58ch; }

.banner-pause {
  position: absolute;
  z-index: 2;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--band-fg);
  background: rgba(14, 42, 51, 0.55);
  border: 1px solid rgba(233, 241, 239, 0.3);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.banner-pause:hover { background: rgba(14, 42, 51, 0.82); border-color: rgba(233, 241, 239, 0.6); }
.banner-pause .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.banner-pause .icon-play { display: none; }
.banner-pause[aria-pressed="true"] .icon-pause { display: none; }
.banner-pause[aria-pressed="true"] .icon-play { display: block; }
@media (min-width: 720px) { .banner-pause { right: max(40px, env(safe-area-inset-right, 0px)); bottom: 24px; } }

/* Dark content band and the testing split on the home page */
.section--band { background: var(--band); color: var(--band-fg); }
.section--band .eyebrow, .section--band .text-link { color: var(--amber); }
.section--band .section-head > p { color: var(--band-muted); }
.split--center { align-items: center; }
.split--center .section-head { position: static; }

.trace-card { background: var(--band-2); border: 1px solid var(--band-line); border-radius: 6px; overflow: hidden; min-width: 0; }
.trace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--band-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--band-muted);
}
.trace-head b { color: var(--band-fg); font-weight: 500; }
.trace-plot { padding: 14px 12px 0; }
svg.trace { display: block; width: 100%; height: auto; overflow: visible; }
.trace .grid { stroke: var(--band-line); stroke-width: 1; }
.trace .axis { stroke: var(--band-muted); stroke-width: 1; }
.trace .area { fill: var(--amber); fill-opacity: 0.14; }
.trace .line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trace .tick { fill: var(--band-muted); font-family: var(--font-mono); font-size: 12px; }
.trace .peak { fill: var(--band-fg); font-family: var(--font-mono); font-size: 12px; }
.trace .scan { stroke: var(--band-fg); stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 3 4; animation: scan 8s linear infinite; }
@keyframes scan { from { transform: translateX(0); } to { transform: translateX(448px); } }
.trace-axis-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--band-muted); text-align: center; padding: 6px 12px 14px; }
.trace-tests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--band-line); }
.trace-tests > div { padding: 14px 16px; border-left: 1px solid var(--band-line); min-width: 0; }
.trace-tests > div:first-child { border-left: 0; }
.trace-tests dt { font-weight: 600; font-size: 14px; color: var(--band-fg); }
.trace-tests dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--band-muted); }
@media (max-width: 520px) {
  .trace-tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trace-tests > div:nth-child(3) { border-left: 0; }
  .trace-tests > div:nth-child(n+3) { border-top: 1px solid var(--band-line); }
}

/* ---------- Capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px); list-style: none; padding: 0; }
.cap { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--ink); min-width: 0; }
.cap .icon { width: 28px; height: 28px; color: var(--accent); }
.cap p { color: var(--muted); }
.cap .text-link { margin-top: auto; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- Numbered steps (real sequences only) ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 40px 0; }
.steps-3 { --cols: 3; }
.steps-5 { --cols: 5; }
.steps-6 { --cols: 6; }
.steps-8 { --cols: 4; }
.step { position: relative; padding: 24px 24px 0 0; border-top: 1px solid var(--line-strong); min-width: 0; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.step-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); }
.step h3 { margin: 8px 0 10px; font-size: 1.125rem; }
.step p { color: var(--muted); font-size: 0.975rem; }
@media (max-width: 1100px) { .steps-6 { --cols: 3; } }
@media (max-width: 1000px) { .steps-5, .steps-3 { --cols: 1; } .steps-8 { --cols: 2; } }
@media (max-width: 1000px) {
  .steps-5 .step, .steps-3 .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding-right: 0; }
  .steps-5 .step-num, .steps-3 .step-num { grid-row: 1 / span 2; }
  .steps-5 .step h3, .steps-3 .step h3 { margin-top: 0; }
  .steps-5, .steps-3 { gap: 28px; }
}
@media (max-width: 640px) {
  .steps-6, .steps-8 { --cols: 1; gap: 28px; }
  .steps .step { padding-right: 0; }
}

/* ---------- Formats row ---------- */
.formats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.format { display: grid; gap: 10px; align-content: start; padding: 28px 22px 8px 0; min-width: 0; }
.format + .format { padding-left: 22px; border-left: 1px solid var(--line); }
.format .icon { width: 32px; height: 32px; color: var(--accent); }
.format h3 { font-size: 1.125rem; }
.format p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) {
  .formats { grid-template-columns: 1fr; }
  .format, .format + .format { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .format .icon { grid-row: 1 / span 2; }
}

/* ---------- Two-up and three-up grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.principle { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.principle p { color: var(--muted); max-width: 52ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.section--surface .card { background: var(--ground); }
.card p { color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.card .card-foot b { color: var(--ink); font-weight: 500; }
.card .icon { color: var(--accent); width: 28px; height: 28px; }

/* ---------- Spec rows ---------- */
.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec-row { display: grid; grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr); gap: 8px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.spec-row dt { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.spec-row dd { margin: 0; max-width: 62ch; min-width: 0; }
.spec--titles .spec-row dt { font-family: var(--font-display); font-stretch: 106%; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); padding-top: 0; }
.spec--titles .spec-row dd { color: var(--muted); }
@media (max-width: 640px) { .spec-row { grid-template-columns: 1fr; } }

/* ---------- Evidence ladder ---------- */
.ladder-legend { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.ladder { list-style: none; padding: 0; }
.rung { display: grid; grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 32px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line); }
.rung-level { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.rung h3 { font-size: 1.125rem; }
.rung-bar { height: 8px; background: var(--line); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.rung-bar span { display: block; height: 100%; background: var(--amber); border-radius: 4px; }
.rung p { color: var(--muted); font-size: 0.975rem; }
@media (max-width: 760px) { .rung { grid-template-columns: 1fr; } .ladder-legend span:last-child { display: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); -webkit-overflow-scrolling: touch; }
.data { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.975rem; }
.data th { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data td:first-child { font-weight: 600; }
.data td.mono { font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent); }
.data td.muted { color: var(--muted); }
.table-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Interior page hero copy + jump bar ---------- */
.page-hero-copy { display: grid; gap: 20px; min-width: 0; max-width: 820px; }
.page-banner h1 { font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.875rem); max-width: 20ch; }
.crumbs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--band-muted); margin: 0 0 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--band-muted); opacity: 0.6; }
.crumbs a { color: var(--band-fg); }
.crumbs a:hover { color: var(--amber); }

.jumpbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.jumpbar .wrap { display: flex; align-items: center; gap: 24px; }
.jumpbar-title { flex: none; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.jumpbar ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.jumpbar ul::-webkit-scrollbar { display: none; }
.jumpbar a { display: flex; align-items: center; min-height: 56px; padding: 0 12px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; box-shadow: inset 0 -2px 0 transparent; }
.jumpbar a:hover { color: var(--accent); box-shadow: inset 0 -2px 0 var(--amber); }
@media (max-width: 640px) { .jumpbar-title { display: none; } .jumpbar ul { margin-inline: -12px; } }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line-strong); }
.checks li { display: flex; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.checks .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; stroke-width: 2; }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding-block: 16px; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .icon { width: 20px; height: 20px; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 68ch; padding-bottom: 22px; }

/* ---------- Lot chain ---------- */
.chain-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.chain { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.chain li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: grid; gap: 6px; min-width: 0; }
.section--surface .chain li { background: var(--ground); }
.chain li:not(:last-child)::after { content: ""; position: absolute; right: -24px; top: 50%; width: 16px; height: 1.5px; background: var(--line-strong); }
.chain b { font-weight: 600; }
.chain code { font-family: var(--font-mono); font-size: 13px; color: var(--accent); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr; gap: 24px; }
  .chain li:not(:last-child)::after { right: auto; left: 28px; top: auto; bottom: -19px; width: 1.5px; height: 14px; }
}

/* ---------- Statement + misc ---------- */
.statement { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: var(--step-2); line-height: 1.28; letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance; }
.prose { display: grid; gap: 18px; max-width: 64ch; }
.prose p { color: var(--muted); }
.note-box { border: 1px dashed var(--line-strong); border-radius: 6px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 10px; background: var(--surface); }
.section--surface .note-box { background: var(--ground); }
.note-box p { color: var(--muted); max-width: 64ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--band); color: var(--band-fg); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; padding-block: clamp(56px, 8vw, 104px); }
.cta-copy { display: grid; gap: 16px; min-width: 0; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: var(--band-muted); max-width: 56ch; font-size: 1.125rem; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-muted); border-top: 1px solid var(--band-line); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 44px; }
.footer-grid > * { min-width: 0; }
.site-footer .brand { color: var(--band-fg); }
.site-footer .brand-name span { color: var(--band-muted); }
.footer-about { display: grid; gap: 16px; align-content: start; }
.footer-about p { max-width: 34ch; }
.footer-col h2 { font-family: var(--font-mono); font-stretch: 100%; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-fg); margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; display: grid; }
.footer-col a { color: var(--band-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--amber); }
.footer-col li { overflow-wrap: anywhere; }
.site-footer .placeholder { color: var(--band-muted); border-color: var(--band-line); }
.footer-bottom { border-top: 1px solid var(--band-line); padding-block: 24px 36px; display: grid; gap: 10px; font-size: 0.85rem; }
.footer-bottom p { max-width: 90ch; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot p { color: var(--muted); font-size: 0.9rem; max-width: 46ch; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.result { margin-top: 32px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); padding: clamp(20px, 3vw, 28px); display: grid; gap: 14px; }
.result h2 { font-size: var(--step-2); }
.result p { color: var(--muted); }
.result textarea { width: 100%; min-height: 200px; font-family: var(--font-mono); font-size: 14px; line-height: 1.55; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; resize: vertical; }
.result .status { font-size: 0.95rem; color: var(--accent); min-height: 1.5em; }
.email-chip { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); user-select: all; overflow-wrap: anywhere; }

.contact-aside { display: grid; gap: 28px; }
.contact-aside .spec-row { grid-template-columns: 1fr; gap: 4px; padding-block: 18px; }
.contact-aside .spec-row dd { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace .scan { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
