/* =========================================================
   亿百中心 · 共享站点样式 /assets/site.css
   速度刻度 · 双轨撞色 · 坐标索引
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B0F14;
  --ink-2: #111B2E;
  --ink-3: #0E1626;
  --blue: #1E6BFF;
  --blue-deep: #0A3FA8;
  --cyan: #38D6FF;
  --orange: #FF7A1A;
  --amber: #FFB547;
  --mist: #E8EDF3;
  --paper: #F7F9FC;
  --graphite: #6B7785;
  --green: #2ED47A;
  --violet: #7C5CFF;

  --line-dark: rgba(232, 237, 243, 0.13);
  --line-soft: rgba(232, 237, 243, 0.07);
  --line-ink: rgba(11, 15, 20, 0.12);
  --text-soft: rgba(232, 237, 243, 0.74);
  --text-mute: rgba(232, 237, 243, 0.55);
  --text-on-light: #3B4859;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 18px 44px rgba(5, 9, 16, 0.48);

  --display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 6px;
  --rail: 1400px;
  --pad-x: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--body);
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; }
h4 { font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.35; letter-spacing: 0; }

p { max-width: 68ch; }
strong { font-weight: 700; color: var(--paper); }

.mono {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

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

/* ---------- 4. Header ---------- */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--orange);
  color: #0B0F14;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 3px;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.2s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 32%, rgba(56,214,255,0) 62%, var(--orange) 100%);
  opacity: 0.55;
  pointer-events: none;
}
.site-header.is-scrolled { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42); }

.header-rail {
  max-width: var(--rail);
  margin-inline: auto;
  padding: 13px var(--pad-x);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-inline-end: auto;
  color: var(--paper);
  flex: none;
}
.brand-glyph { position: relative; width: 28px; height: 28px; flex: none; }
.brand-glyph::before,
.brand-glyph::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 8px;
  transform: skewX(-18deg);
  border-radius: 1px;
}
.brand-glyph::before { left: 1px; background: linear-gradient(180deg, var(--blue), var(--blue-deep)); }
.brand-glyph::after { left: 14px; background: linear-gradient(180deg, var(--amber), var(--orange)); }

.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-latin {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  color: var(--cyan);
  opacity: 0.9;
  margin-top: 2px;
}
.brand-tag {
  margin-inline-start: 8px;
  padding: 4px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  white-space: nowrap;
}

.rail-slash { position: relative; width: 30px; height: 30px; flex: none; }
.rail-slash::before,
.rail-slash::after {
  content: "";
  position: absolute;
  top: 2px; bottom: 2px;
  width: 1px;
  transform: skewX(-22deg);
}
.rail-slash::before { left: 11px; background: var(--blue); }
.rail-slash::after { left: 18px; background: var(--orange); opacity: 0.85; }

.site-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(6px, 1.3vw, 22px); counter-reset: navidx; }
.nav-list li { counter-increment: navidx; }
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 2px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}
.nav-list a::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--graphite);
  transition: color 0.18s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}
.nav-list a:hover { color: var(--paper); }
.nav-list a:hover::before { color: var(--cyan); }
.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--paper); }
.nav-list a[aria-current="page"]::before { color: var(--orange); }
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--mist);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--blue); color: var(--paper); }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; flex: none; }
.nav-toggle-bars i {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars i:first-child { top: 0; }
.nav-toggle-bars i:last-child { bottom: 0; }
.nav-toggle-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.header-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.header-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 55%, var(--orange));
}

/* ---------- 5. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}
.site-footer::before {
  content: "YIBAI";
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  z-index: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(96px, 20vw, 250px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(30, 107, 255, 0.07);
  -webkit-text-stroke: 1px rgba(56, 214, 255, 0.13);
  pointer-events: none;
  user-select: none;
}

.footer-rail {
  position: relative;
  z-index: 1;
  max-width: var(--rail);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) var(--pad-x) clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(22px, 3vw, 46px);
  align-items: start;
}

.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-mark {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.footer-summary {
  max-width: 34ch;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.footer-tag {
  justify-self: start;
  padding: 4px 10px;
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.footer-nav {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
}
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-links { display: grid; gap: 2px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 0.94rem;
  color: rgba(232, 237, 243, 0.76);
  transition: color 0.16s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 10px;
  height: 1px;
  flex: none;
  background: var(--graphite);
  transition: width 0.18s var(--ease), background 0.18s var(--ease);
}
.footer-links a:hover { color: var(--paper); }
.footer-links a:hover::before { width: 18px; background: var(--orange); }

.footer-col--contact {
  padding-inline-start: clamp(0px, 1.6vw, 22px);
  border-inline-start: 1px solid var(--line-soft);
}
.footer-contact { display: grid; gap: 12px; font-style: normal; }
.footer-contact-row { display: grid; gap: 2px; }
.footer-contact-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}
.footer-contact-value {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: var(--rail);
  margin-inline: auto;
  padding: 16px var(--pad-x) 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.8rem;
  color: var(--text-mute);
}
.footer-legal { max-width: none; color: var(--text-mute); }
.footer-icp { color: var(--graphite); font-size: 0.7rem; }

/* ---------- 6. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.section--deck { background: var(--ink-2); }
.section--light { background: var(--mist); color: var(--ink); }
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--ink); }
.section--light p { color: var(--text-on-light); }
.section--light strong { color: var(--ink); }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 68ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section--light .eyebrow { color: var(--blue-deep); }

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.85;
  color: var(--text-soft);
}
.section--light .lede { color: var(--text-on-light); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid > * { grid-column: span 12; }

.hairline { height: 1px; border: 0; background: var(--line-dark); }

/* ---------- 7. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--orange);
  color: #0B0F14;
  box-shadow: 0 8px 22px rgba(255, 122, 26, 0.22);
}
.btn--primary:hover { background: var(--amber); box-shadow: 0 10px 26px rgba(255, 181, 71, 0.26); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(232, 237, 243, 0.28); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--blue { background: var(--blue); color: var(--paper); }
.btn--blue:hover { background: #3C82FF; }
.section--light .btn--ghost { color: var(--ink); border-color: rgba(11, 15, 20, 0.24); }
.section--light .btn--ghost:hover { color: var(--blue-deep); border-color: var(--blue-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cyan);
  border-bottom: 1px solid rgba(56, 214, 255, 0.32);
  padding-bottom: 2px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.16s var(--ease); }
.link-arrow:hover { color: var(--paper); border-color: var(--orange); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--light .link-arrow { color: var(--blue-deep); border-color: rgba(10, 63, 168, 0.3); }
.section--light .link-arrow:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- 8. Breadcrumbs ---------- */
.breadcrumbs { padding-block: 18px 0; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(107, 119, 133, 0.55); }
.breadcrumbs a { color: rgba(232, 237, 243, 0.7); transition: color 0.16s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }
.section--light .breadcrumbs a { color: var(--text-on-light); }
.section--light .breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 9. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(232, 237, 243, 0.18);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 237, 243, 0.82);
}
.tag::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; border-radius: 50%; }
.tag--ok { color: var(--green); border-color: rgba(46, 212, 122, 0.36); }
.tag--hot { color: var(--amber); border-color: rgba(255, 181, 71, 0.38); }
.tag--blue { color: var(--cyan); border-color: rgba(56, 214, 255, 0.36); }
.tag--violet { color: var(--violet); border-color: rgba(124, 92, 255, 0.42); }
.section--light .tag { color: var(--blue-deep); border-color: rgba(11, 15, 20, 0.2); }

/* ---------- 10. Cards & steps ---------- */
.card {
  position: relative;
  background: rgba(17, 27, 46, 0.86);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 28px);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.card:hover { border-color: rgba(30, 107, 255, 0.65); box-shadow: var(--shadow-2); }
.card--flat { background: transparent; }
.card--offset { margin-top: clamp(0px, 2vw, 28px); }
.card--light { background: var(--paper); border-color: var(--line-ink); color: var(--ink); }
.card--light h3, .card--light h4 { color: var(--ink); }
.card--light p { color: var(--text-on-light); }
.section--light .card { background: var(--paper); border-color: var(--line-ink); }

.steps { display: grid; gap: 12px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  padding: clamp(16px, 2vw, 24px);
  background: rgba(17, 27, 46, 0.72);
  border: 1px solid var(--line-dark);
  border-left: 2px solid var(--blue);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.step:hover { border-left-color: var(--orange); box-shadow: var(--shadow-1); }
.step-num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}
.step-body { display: grid; gap: 6px; }
.step-title {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.step-text { font-size: 0.94rem; line-height: 1.75; color: var(--text-soft); max-width: 60ch; }
.section--light .step { background: var(--paper); border-color: var(--line-ink); border-left-color: var(--blue); }
.section--light .step-title { color: var(--ink); }
.section--light .step-text { color: var(--text-on-light); }

/* ---------- 11. Legend ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.legend-dot { width: 9px; height: 9px; flex: none; border-radius: 1px; background: var(--blue); transform: skewX(-14deg); }
.legend-dot--orange { background: var(--orange); }
.legend-dot--cyan { background: var(--cyan); }
.legend-dot--green { background: var(--green); }
.legend-dot--violet { background: var(--violet); }
.legend-dot--graphite { background: var(--graphite); }
.section--light .legend { border-color: var(--line-ink); }
.section--light .legend-item { color: var(--text-on-light); }

/* ---------- 12. Media ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink-2), #0A1220);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(30, 107, 255, 0.14), rgba(30, 107, 255, 0) 58%, rgba(255, 122, 26, 0.12));
  pointer-events: none;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--banner { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--layered {
  box-shadow: 12px 12px 0 -1px rgba(30, 107, 255, 0.2), 24px 24px 0 -1px rgba(255, 122, 26, 0.1);
}
.media-caption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.section--light .media { border-color: var(--line-ink); }

/* ---------- 13. Horizontal rail ---------- */
.rail-scroll {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 107, 255, 0.62) rgba(232, 237, 243, 0.08);
  -webkit-overflow-scrolling: touch;
}
.rail-scroll > * { flex: 0 0 auto; width: min(78vw, 320px); scroll-snap-align: start; }
.rail-scroll::-webkit-scrollbar { height: 6px; }
.rail-scroll::-webkit-scrollbar-track { background: rgba(232, 237, 243, 0.08); border-radius: 99px; }
.rail-scroll::-webkit-scrollbar-thumb { background: rgba(30, 107, 255, 0.6); border-radius: 99px; }

/* ---------- 14. Stats ---------- */
.stat { display: grid; gap: 4px; }
.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.stat-num em { font-style: normal; color: var(--orange); }
.stat-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}
.section--light .stat-num { color: var(--ink); }

/* ---------- 15. Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(232, 237, 243, 0.18);
  border-radius: 3px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(232, 237, 243, 0.78);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.filter-btn:hover { color: var(--paper); border-color: var(--cyan); transform: translateY(-1px); }
.filter-btn[aria-pressed="true"] {
  color: var(--paper);
  background: rgba(124, 92, 255, 0.18);
  border-color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.34);
}
.filter-btn[aria-pressed="true"]::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  background: var(--cyan);
  border-radius: 1px;
  transform: skewX(-14deg);
}
.filter-status {
  margin-inline-start: auto;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
[data-filter-item][hidden] { display: none !important; }
.section--light .filter-bar { border-color: var(--line-ink); }
.section--light .filter-btn { color: var(--text-on-light); border-color: rgba(11, 15, 20, 0.18); }
.section--light .filter-btn[aria-pressed="true"] { color: var(--ink); background: rgba(124, 92, 255, 0.14); }

/* ---------- 16. Disclosure ---------- */
.disclosure {
  margin-bottom: 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(17, 27, 46, 0.6);
  overflow: hidden;
}
.disclosure summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: "+";
  margin-inline-start: auto;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--cyan);
}
.disclosure[open] summary::after { content: "–"; }
.disclosure[open] summary { border-bottom: 1px solid var(--line-soft); }
.disclosure-body { padding: 14px 18px 18px; font-size: 0.94rem; line-height: 1.8; color: var(--text-soft); }
.disclosure-body p { max-width: 66ch; }
.section--light .disclosure { background: var(--paper); border-color: var(--line-ink); }
.section--light .disclosure summary { color: var(--ink); }

/* ---------- 17. Note ---------- */
.note {
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 181, 71, 0.08);
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(232, 237, 243, 0.88);
}
.note p { max-width: 64ch; }
.section--light .note { background: rgba(255, 181, 71, 0.16); color: #4A3B22; }

/* ---------- 18. Reveal ---------- */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(-12px, 12px, 0);
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
html.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1180px) {
  .brand-tag { display: none; }
  .nav-list a { font-size: 0.9rem; }
}

@media (max-width: 1024px) {
  .footer-rail { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-column: auto; }
  .footer-col--contact { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line-soft); padding-top: 16px; }
}

@media (max-width: 900px) {
  body { padding-bottom: 86px; }

  .site-header {
    position: fixed;
    top: auto; bottom: 0; left: 0; right: 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-dark);
    background: var(--ink);
  }
  .site-header::after { bottom: auto; top: -1px; }
  .site-header.is-scrolled { box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.45); }

  .header-rail { padding: 10px var(--pad-x); gap: 10px; }
  .rail-slash { display: none; }
  .brand-name { font-size: 1.16rem; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0; right: 0; bottom: 100%;
    max-height: 72vh;
    overflow-y: auto;
    padding: 8px var(--pad-x) 20px;
    background: var(--ink-2);
    border-top: 1px solid rgba(56, 214, 255, 0.26);
    box-shadow: 0 -26px 54px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.2s var(--ease), transform 0.24s var(--ease), visibility 0.2s linear;
  }
  .site-header[data-open="true"] .site-nav { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    justify-content: space-between;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.02rem;
  }
  .nav-list a::before { order: 2; font-size: 0.72rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--amber); }

  .site-header[data-open="true"] .nav-toggle { border-color: var(--orange); color: var(--paper); }
  .site-header[data-open="true"] .nav-toggle-bars i:first-child { transform: translateY(5px) rotate(45deg); }
  .site-header[data-open="true"] .nav-toggle-bars i:last-child { transform: translateY(-5px) rotate(-45deg); }

  .header-progress { top: -1px; bottom: auto; }

  .footer-rail { padding-top: clamp(36px, 8vw, 56px); }
}

@media (min-width: 761px) {
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
}

@media (max-width: 620px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .filter-status { margin-inline-start: 0; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step-num { font-size: 1.5rem; }
  .media--layered { box-shadow: 8px 8px 0 -1px rgba(30, 107, 255, 0.2), 16px 16px 0 -1px rgba(255, 122, 26, 0.1); }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.reveal-ready [data-reveal] { transform: none; opacity: 0; }
  html.reveal-ready [data-reveal].is-in { opacity: 1; }
  .rail-scroll { scroll-snap-type: none; }
}
