/* =========================================================
   OG VISION HUB — /assets/site.css
   Shared shell: reset, tokens, Chinese typography, header,
   footer, buttons, crumbs, prose, grids, media, motion.
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(96px, 12vw, 136px);
}
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #08111C;
  --ink-800: #0E1B29;
  --rock-600: #3B4A57;
  --cyan-400: #35E0D0;
  --signal-500: #FF7A3D;
  --paper-100: #F4F0E6;
  --amber-300: #C9A26A;
  --clay-400: #B46B52;
  --moss-400: #7D9B74;
  --haze-200: #9FB3C8;

  --line: rgba(159, 179, 200, 0.20);
  --line-soft: rgba(59, 74, 87, 0.50);
  --line-cyan: rgba(53, 224, 208, 0.42);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --rail: 216px;
  --notch: 20px;

  --t-fast: 0.18s;
  --t-mid: 0.28s;
  --t-slow: 0.55s;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 3. Base / Chinese typography ---------- */
body {
  background:
    radial-gradient(85% 55% at 82% -8%, rgba(53, 224, 208, 0.10), transparent 62%),
    radial-gradient(55% 38% at 6% 0%, rgba(180, 107, 82, 0.10), transparent 66%),
    var(--ink-900);
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
#main-content { position: relative; z-index: 1; display: block; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--paper-100);
  text-wrap: balance;
  font-stretch: condensed;
}
h1 { font-size: clamp(32px, 5.4vw, 62px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

::selection { background: var(--cyan-400); color: #04191A; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--haze-200);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan-400);
  flex: 0 0 auto;
}
.sec-num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1;
  color: var(--rock-600);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.rule {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--haze-200);
  border: 1px solid var(--line);
  background: rgba(59, 74, 87, 0.18);
  white-space: nowrap;
}
.tag--live { color: var(--cyan-400); border-color: var(--line-cyan); background: rgba(53, 224, 208, 0.10); }
.tag--alert { color: var(--signal-500); border-color: rgba(255, 122, 61, 0.42); background: rgba(255, 122, 61, 0.10); }
.tag--ok { color: var(--moss-400); border-color: rgba(125, 155, 116, 0.48); background: rgba(125, 155, 116, 0.12); }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--cyan-400);
  color: #04191A;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--paper-100);
  outline-offset: 2px;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color var(--t-fast) linear, color var(--t-fast) linear,
              border-color var(--t-fast) linear, transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ink-900), inset 0 0 0 4px var(--cyan-400);
}
.btn--signal { background: var(--signal-500); color: #1A0A03; }
.btn--signal:hover { background: #FF9561; }
.btn--cyan { background: var(--cyan-400); color: #04191A; }
.btn--cyan:hover { background: #63EBDE; }
.btn--line {
  background: transparent;
  border-color: var(--line-cyan);
  color: var(--cyan-400);
}
.btn--line:hover { background: rgba(53, 224, 208, 0.13); color: #7FF0E6; }

/* ---------- 7. Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--haze-200);
}
.crumbs a {
  color: var(--haze-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear;
}
.crumbs a:hover { color: var(--cyan-400); border-bottom-color: var(--cyan-400); }
.crumbs__sep { color: var(--rock-600); font-family: var(--font-mono); }
.crumbs [aria-current="page"] { color: var(--paper-100); }

/* ---------- 8. Prose ---------- */
.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.86);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 2em;
  padding-top: 0.2em;
}
.prose h3 { margin-top: 1.7em; }
.prose strong { color: var(--paper-100); font-weight: 700; }
.prose a {
  color: var(--cyan-400);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: #7FF0E6; }
.prose ul, .prose ol { padding-left: 0; line-height: 1.9; }
.prose ul li { position: relative; padding-left: 18px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--cyan-400);
}
.prose ol { counter-reset: og-ol; }
.prose ol li { position: relative; padding-left: 30px; counter-increment: og-ol; }
.prose ol li::before {
  content: counter(og-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.12em;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--signal-500);
  letter-spacing: 0.06em;
}
.prose blockquote {
  border-left: 3px solid var(--amber-300);
  background: rgba(201, 162, 106, 0.10);
  padding: 14px 20px;
  color: var(--paper-100);
}

/* ---------- 9. Panels / grids ---------- */
.panel {
  background: var(--ink-800);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.6vw, 30px);
}
.panel--notch {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}
.panel-amber {
  position: relative;
  background: linear-gradient(100deg, rgba(201, 162, 106, 0.18), rgba(201, 162, 106, 0.06));
  border-left: 3px solid var(--amber-300);
  padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.6vw, 28px);
  color: var(--paper-100);
}
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--asym { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .grid--asym { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- 10. Media containers (for page-stage images) ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: var(--ink-800);
  background-image:
    linear-gradient(rgba(59, 74, 87, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 74, 87, 0.55) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 1px solid var(--line);
  isolation: isolate;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--band { aspect-ratio: 3 / 1; }
.media--hero { aspect-ratio: 16 / 10; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(53, 224, 208, 0.16), transparent 46%, rgba(255, 122, 61, 0.13)),
    repeating-linear-gradient(0deg, rgba(8, 17, 28, 0.22) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--haze-200);
}

/* ---------- 11. Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 17, 28, 0.94);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .hdr {
    background: rgba(8, 17, 28, 0.80);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }
}
.hdr__top { border-bottom: 1px solid var(--line-soft); }
.hdr__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper-100);
}
.brand__mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 26px;
  height: 26px;
  padding: 4px 5px;
  background: rgba(53, 224, 208, 0.08);
  border: 1px solid var(--line-cyan);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.brand__mark i {
  display: block;
  width: 4px;
  background: var(--cyan-400);
  border-radius: 1px;
}
.brand__mark i:nth-child(1) { height: 42%; }
.brand__mark i:nth-child(2) { height: 100%; background: var(--signal-500); animation: og-pulse 2.6s ease-in-out infinite; }
.brand__mark i:nth-child(3) { height: 66%; }
@keyframes og-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper-100);
}
.brand__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--haze-200);
  white-space: nowrap;
}
.brand--ftr .brand__name { font-size: 18px; }
.brand--ftr .brand__sub { color: var(--moss-400); }

/* chips */
.hdr__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--haze-200);
  border: 1px solid var(--line);
  white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.chip--ver::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss-400);
  box-shadow: 0 0 0 3px rgba(125, 155, 116, 0.18);
  flex: 0 0 auto;
}
.chip--period {
  background: var(--amber-300);
  border-color: transparent;
  color: var(--ink-900);
  font-weight: 700;
  transition: background-color var(--t-fast) linear, color var(--t-fast) linear;
}
.chip--period:hover { background: #E0BC85; color: #08111C; }
.chip__k { font-size: 11px; letter-spacing: 0.1em; opacity: 0.78; }
.chip__v { font-weight: 800; font-size: 12.5px; }

/* mobile toggle */
.navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--paper-100);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: border-color var(--t-fast) linear, color var(--t-fast) linear;
}
.navtoggle[aria-expanded="true"] { border-color: var(--line-cyan); color: var(--cyan-400); }
.navtoggle__bars { display: grid; gap: 4px; }
.navtoggle__bars span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) linear;
}
.navtoggle[aria-expanded="true"] .navtoggle__bars span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.navtoggle__label { font-weight: 700; }

/* channel nav */
.hdr__navwrap { border-top: 0; }
.chan-nav {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 2vw, 26px);
}
.chan-nav__list {
  display: flex;
  align-items: stretch;
  gap: clamp(6px, 1.8vw, 24px);
  flex-wrap: nowrap;
  min-width: 0;
}
.chan {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 2px 13px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(244, 240, 230, 0.86);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) linear;
}
.chan__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(159, 179, 200, 0.62);
  transition: color var(--t-fast) linear;
}
.chan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-mid) var(--ease);
}
.chan:hover,
.chan:focus-visible { color: var(--cyan-400); }
.chan:hover::after,
.chan:focus-visible::after { transform: scaleX(1); }
.chan[aria-current="page"] { color: var(--cyan-400); }
.chan[aria-current="page"] .chan__num { color: var(--signal-500); }
.chan[aria-current="page"]::after { transform: scaleX(1); }
.chan-nav__cta {
  margin-left: auto;
  align-self: center;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 6px 18px;
  font-size: 13.5px;
}

/* scroll beam */
.hdr__beam {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400), var(--signal-500));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
  pointer-events: none;
}

/* ---------- 12. Footer ---------- */
.ftr {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 9vw, 116px);
  background: linear-gradient(180deg, rgba(14, 27, 41, 0.42), rgba(14, 27, 41, 0.96));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.ftr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-400) 32%, var(--signal-500) 62%, transparent);
  opacity: 0.55;
}
.ftr::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8%;
  width: 44%;
  height: 1px;
  background: var(--clay-400);
  transform: rotate(-6deg);
  opacity: 0.45;
  pointer-events: none;
}
.ftr__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(36px, 5.5vw, 64px) var(--gutter) clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 54px);
}
.ftr__brand { max-width: 34ch; }
.ftr__note {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--haze-200);
}
.ftr__stamp {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--clay-400);
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.2vw, 40px);
}
.ftr__col { min-width: 0; }
.ftr__h {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--cyan-400);
  text-transform: uppercase;
}
.ftr__h::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--signal-500);
  flex: 0 0 auto;
}
.ftr__list { font-size: 14.5px; line-height: 1.75; }
.ftr__list li + li { margin-top: 9px; }
.ftr__list a {
  color: var(--haze-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear;
}
.ftr__list a:hover,
.ftr__list a:focus-visible { color: var(--paper-100); border-bottom-color: var(--cyan-400); }
.ftr__list--info { color: var(--haze-200); }
.ftr__list--info li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: start;
}
.ftr__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 2.2;
  color: var(--rock-600);
  color: rgba(159, 179, 200, 0.62);
}
.ftr__icp {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--haze-200);
}
.ftr__base { border-top: 1px solid var(--line); background: rgba(8, 17, 28, 0.62); }
.ftr__base-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--haze-200);
}
.ftr__base-inner p:last-child { color: rgba(159, 179, 200, 0.55); }

/* ---------- 13. Disclosure component ---------- */
.disc {
  border: 1px solid var(--line);
  background: rgba(14, 27, 41, 0.55);
}
.disc + .disc { margin-top: 10px; }
.disc__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px clamp(14px, 2vw, 20px);
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--paper-100);
  cursor: pointer;
  transition: color var(--t-fast) linear, background-color var(--t-fast) linear;
}
.disc__btn:hover { background: rgba(53, 224, 208, 0.07); color: var(--cyan-400); }
.disc__sign {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}
.disc__sign::before,
.disc__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--cyan-400);
  transform: translateY(-50%);
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) linear;
}
.disc__sign::after { transform: translateY(-50%) rotate(90deg); }
.disc__btn[aria-expanded="true"] .disc__sign::after { opacity: 0; transform: translateY(-50%) rotate(0deg); }
.disc__panel {
  padding: 2px clamp(14px, 2vw, 20px) 18px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(244, 240, 230, 0.82);
  border-top: 1px solid var(--line-soft);
  margin-top: 0;
  padding-top: 14px;
}
.disc__panel[hidden] { display: none; }

/* ---------- 14. Motion / reveal ---------- */
[data-motion="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
[data-motion="on"] [data-reveal="shown"] {
  opacity: 1;
  transform: none;
}

/* ---------- 15. Breakpoints ---------- */
@media (min-width: 640px) {
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ftr__inner { grid-template-columns: minmax(230px, 0.85fr) minmax(0, 2fr); }
  .ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .ftr__grid { grid-template-columns: 1fr 1.35fr 0.95fr; }
}

/* tablet: tighten the channel rail, keep it horizontal */
@media (max-width: 1080px) and (min-width: 900px) {
  .chan { font-size: 14px; gap: 6px; }
  .chan__num { font-size: 10px; }
  .chan-nav__cta { padding: 6px 13px; font-size: 13px; }
}

/* mobile: drawer navigation */
@media (max-width: 899px) {
  .navtoggle { display: inline-flex; }
  .hdr__meta { margin-left: auto; }
  .chip--ver { display: none; }
  .chan-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
  }
  .chan-nav[data-open] { display: flex; }
  .chan-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .chan {
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
    gap: 12px;
  }
  .chan::after { display: none; }
  .chan:hover { background: rgba(53, 224, 208, 0.07); }
  .chan[aria-current="page"] {
    border-left-color: var(--cyan-400);
    background: linear-gradient(90deg, rgba(53, 224, 208, 0.14), transparent 72%);
  }
  .chan-nav__cta {
    margin: 16px 0 0;
    align-self: flex-start;
    min-height: 42px;
    padding: 8px 20px;
    font-size: 14px;
  }
}

@media (max-width: 559px) {
  body { font-size: 16px; }
  .hdr__inner { padding: 10px var(--gutter); }
  .brand__name { font-size: 15.5px; }
  .brand__sub { font-size: 8.5px; letter-spacing: 0.14em; }
  .chip { padding: 4px 9px; }
  .chip__k { font-size: 10px; }
  .chip__v { font-size: 11.5px; }
  .navtoggle { padding: 8px 11px; font-size: 12px; }
  .ftr__list--info li { grid-template-columns: 40px 1fr; }
  .media--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 16. 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;
  }
  .brand__mark i { animation: none !important; }
  [data-motion="on"] [data-reveal],
  [data-motion="on"] [data-reveal="shown"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .chan::after { transition: none !important; }
}
