/* ==========================================================================
   乐鱼体育 · oldscore-leyu.com.cn
   /assets/site.css — reset / tokens / header / footer / shared components
   ========================================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5,
p, ul, ol, li, figure, blockquote, dl, dd, details, summary {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

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

input, select, textarea { font: inherit; color: inherit; }

/* ---------- tokens ---------- */
:root {
  /* deep sea */
  --ink-950: #050B14;
  --deep-900: #0A1B2E;
  --deep-700: #10304F;
  --deep-600: #164066;
  /* warm paper */
  --paper-50: #F5F0E6;
  --paper-100: #E7DECD;
  --ink-on-paper: #33404F;
  /* accents */
  --cyan-400: #35E8D2;
  --cyan-700: #0E8E85;
  --orange-500: #FF9B45;
  --green-400: #A6E85C;
  /* neutrals */
  --mist-300: #B7C4D4;
  --stone-500: #7E8FA3;

  --font-head: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shell-max: 1280px;
  --rail-max: 1320px;
  --prose-max: 720px;

  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-float: 0 18px 40px -22px rgba(5, 11, 20, .78);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glass: rgba(16, 48, 79, .55);
  --glass-line: rgba(183, 196, 212, .18);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background: var(--deep-900);
  color: var(--mist-300);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--paper-50);
  text-wrap: balance;
}

p { text-wrap: pretty; }

main { display: block; }

::selection {
  background: var(--cyan-400);
  color: var(--ink-950);
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--cyan-400);
  color: var(--ink-950);
  font-weight: 700;
  font-size: 14px;
  transition: top .18s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(5, 11, 20, .94), rgba(10, 27, 46, .80));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--glass-line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 232, 210, .5), transparent);
  pointer-events: none;
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100% - 32px, var(--rail-max));
  margin-inline: auto;
  padding: 10px 0;
}

/* brand island */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 7px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.brand:hover {
  border-color: rgba(53, 232, 210, .55);
  background: rgba(16, 48, 79, .75);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan-400);
  color: var(--ink-950);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .03em;
  color: var(--paper-50);
}

.brand-suffix {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

/* nav capsule */
.nav-capsule {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(16, 48, 79, .5);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
  color: var(--mist-300);
  transition: color .16s var(--ease), background .16s var(--ease);
}

.nav-link:hover {
  color: var(--paper-50);
  background: rgba(53, 232, 210, .13);
}

.nav-link[aria-current="page"] {
  background: var(--cyan-400);
  color: var(--ink-950);
  font-weight: 700;
}

.nav-link.is-pinned::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 155, 69, .18);
  transition: background .16s var(--ease), box-shadow .16s var(--ease);
}

.nav-link.is-pinned[aria-current="page"]::before {
  background: var(--ink-950);
  box-shadow: none;
}

/* header actions */
.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--stone-500);
  white-space: nowrap;
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(53, 232, 210, .6);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper-50);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* reading progress */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan-400), var(--orange-500));
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 21px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  transition: transform .16s var(--ease), background .16s var(--ease),
              color .16s var(--ease), border-color .16s var(--ease),
              box-shadow .16s var(--ease);
}

.btn--primary {
  background: var(--cyan-400);
  color: var(--ink-950);
  box-shadow: 0 12px 28px -16px rgba(53, 232, 210, .9);
}

.btn--primary:hover {
  background: #5DF0DE;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(53, 232, 210, .08);
  border-color: rgba(53, 232, 210, .45);
  color: var(--cyan-400);
}

.btn--ghost:hover {
  background: rgba(53, 232, 210, .17);
  transform: translateY(-2px);
}

.btn--line {
  border-color: rgba(183, 196, 212, .34);
  color: var(--mist-300);
}

.btn--line:hover {
  border-color: var(--paper-50);
  color: var(--paper-50);
  transform: translateY(-2px);
}

.btn--paper {
  background: var(--ink-950);
  color: var(--paper-50);
}

.btn--paper:hover {
  background: var(--deep-700);
  transform: translateY(-2px);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--deep-900) 0%, var(--ink-950) 100%);
  color: var(--mist-300);
  border-top: 1px solid rgba(53, 232, 210, .22);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 232, 210, .16), transparent 68%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  width: min(100% - 40px, var(--shell-max));
  margin-inline: auto;
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: 48px;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.brand--footer {
  align-self: flex-start;
  background: rgba(16, 48, 79, .7);
  border-color: rgba(53, 232, 210, .3);
}

.footer-slogan {
  max-width: 20ch;
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--paper-50);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--stone-500);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--mist-300);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-list a:hover {
  color: var(--paper-50);
  border-bottom-color: var(--cyan-400);
}

.footer-base {
  position: relative;
  background: rgba(5, 11, 20, .68);
  border-top: 1px solid rgba(183, 196, 212, .14);
}

.footer-base-inner {
  width: min(100% - 40px, var(--shell-max));
  margin-inline: auto;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  font-size: 13px;
  color: var(--stone-500);
}

.footer-base-inner--copy {
  padding-top: 0;
  border-top: 1px solid rgba(183, 196, 212, .1);
  padding-bottom: 30px;
  justify-content: space-between;
}

.footer-contact { color: var(--mist-300); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}

.footer-legal a {
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-legal a:hover {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
}

/* ---------- layout primitives ---------- */
.container {
  width: min(100% - 40px, var(--shell-max));
  margin-inline: auto;
}

.section { padding: clamp(56px, 7vw, 104px) 0; }

.band--paper {
  background: var(--paper-50);
  color: var(--ink-950);
}

.band--paper h1,
.band--paper h2,
.band--paper h3,
.band--paper h4 { color: var(--ink-950); }

.band--paper p,
.band--paper li { color: var(--ink-on-paper); }

.band--paper .eyebrow { color: var(--cyan-700); }

.band--paper .stamp { color: #C4650F; }

.band--deep { background: var(--deep-900); }
.band--deep-700 { background: var(--deep-700); }
.band--ink { background: var(--ink-950); }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(183, 196, 212, .34), transparent);
}

.band--paper .divider {
  background: linear-gradient(90deg, rgba(10, 27, 46, .22), transparent);
}

.grid--12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}

.grid--12 > * { grid-column: span 12; }

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

/* ---------- type utilities ---------- */
.display {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: none;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.stamp {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--orange-500);
}

.section-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: .84;
  letter-spacing: -.03em;
  color: rgba(183, 196, 212, .2);
  user-select: none;
}

.band--paper .section-number { color: rgba(10, 27, 46, .12); }

.prose {
  max-width: var(--prose-max);
}

.prose p + p { margin-top: 1.05em; }

.prose h2 { margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.5em 0 .5em; }

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .16s var(--ease);
}

.link-underline:hover::after,
.link-underline:focus-visible::after { transform: scaleX(1); }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone-500);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  opacity: .5;
}

.breadcrumb a:hover { color: var(--cyan-400); }

.band--paper .breadcrumb a:hover { color: var(--cyan-700); }

/* ---------- chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(183, 196, 212, .3);
  background: rgba(16, 48, 79, .42);
  color: var(--mist-300);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.2;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease);
}

.chip:hover {
  border-color: var(--cyan-400);
  color: var(--paper-50);
  transform: translateY(-1px);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-950);
  font-weight: 700;
}

.band--paper .chip {
  background: var(--paper-100);
  border-color: rgba(10, 27, 46, .18);
  color: var(--ink-on-paper);
}

.band--paper .chip:hover { border-color: var(--cyan-700); }

.band--paper .chip.is-active,
.band--paper .chip[aria-pressed="true"] {
  background: var(--cyan-700);
  border-color: var(--cyan-700);
  color: var(--paper-50);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 155, 69, .14);
  border: 1px solid rgba(255, 155, 69, .4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--orange-500);
}

/* ---------- card ---------- */
.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 232, 210, .45);
  box-shadow: var(--shadow-float);
}

.band--paper .card {
  background: var(--paper-100);
  border-color: rgba(10, 27, 46, .14);
  color: var(--ink-950);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.band--paper .card:hover { border-color: rgba(14, 142, 133, .5); }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, var(--deep-700) 0%, var(--ink-950) 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(183, 196, 212, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 196, 212, .13) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .55;
}

.media-frame--film::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background:
    linear-gradient(180deg, rgba(255, 155, 69, .16), rgba(10, 27, 46, .5)),
    repeating-linear-gradient(0deg, rgba(5, 11, 20, .18) 0 1px, transparent 1px 3px);
}

.media-frame--night::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 155, 69, .34), transparent 46%),
    linear-gradient(190deg, rgba(5, 11, 20, .12) 0%, rgba(5, 11, 20, .72) 62%, rgba(5, 11, 20, .92) 100%);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--poster { aspect-ratio: 3 / 4; }

.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 5px 11px;
  border-left: 2px solid var(--orange-500);
  border-radius: var(--radius-sm);
  background: rgba(5, 11, 20, .68);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--paper-50);
}

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(53, 232, 210, .6), transparent);
}

.timeline__node {
  position: relative;
  padding: 14px 0;
}

.timeline__node::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--deep-900);
  border: 2px solid var(--cyan-400);
  transition: transform .16s var(--ease), background .16s var(--ease),
              box-shadow .16s var(--ease);
}

.timeline__node:hover::before {
  transform: scale(1.15);
  background: var(--cyan-400);
  box-shadow: 0 0 0 5px rgba(53, 232, 210, .18);
}

.band--paper .timeline__node::before { background: var(--paper-50); }

/* ---------- data grid ---------- */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(183, 196, 212, .18);
}

.data-grid__cell {
  padding: 16px 18px;
  background: var(--deep-900);
}

.band--paper .data-grid { background: rgba(10, 27, 46, .16); }
.band--paper .data-grid__cell { background: var(--paper-50); }

.data-grid__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone-500);
}

.data-grid__value {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  line-height: 1.3;
  color: var(--paper-50);
}

.band--paper .data-grid__value { color: var(--ink-950); }

/* ---------- fold (details/summary) ---------- */
.fold {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  background: rgba(16, 48, 79, .4);
  overflow: hidden;
}

.fold + .fold { margin-top: 10px; }

.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--paper-50);
  list-style: none;
  transition: background .16s var(--ease);
}

.fold > summary::-webkit-details-marker { display: none; }

.fold > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan-400);
}

.fold[open] > summary::after { content: "–"; }

.fold > summary:hover { background: rgba(53, 232, 210, .08); }

.fold__body {
  padding: 0 18px 18px;
  font-size: 15px;
  color: var(--mist-300);
  animation: fold-in .12s var(--ease);
}

@keyframes fold-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.band--paper .fold {
  background: var(--paper-100);
  border-color: rgba(10, 27, 46, .16);
}

.band--paper .fold > summary { color: var(--ink-950); }
.band--paper .fold > summary::after { color: var(--cyan-700); }
.band--paper .fold__body { color: var(--ink-on-paper); }

/* ---------- reveal ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1239px) {
  .header-tagline { display: none; }
}

@media (max-width: 1023px) {
  .header-rail {
    flex-wrap: wrap;
    row-gap: 0;
    padding: 9px 0;
  }

  .nav-toggle { display: inline-flex; }

  .nav-capsule {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: block;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
  }

  .site-header[data-open] .nav-capsule {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(10, 27, 46, .98);
    border-color: rgba(53, 232, 210, .3);
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav-link {
    justify-content: flex-start;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 52px 0 40px;
  }

  .footer-base-inner { gap: 10px 24px; }
  .footer-legal { margin-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-base-inner--copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .header-rail { width: min(100% - 24px, var(--rail-max)); }
  .brand { padding: 5px 13px 5px 6px; }
  .brand-name { font-size: 15.5px; }
  .brand-mark { width: 30px; height: 30px; font-size: 13.5px; }

  .btn { padding: 10px 15px; font-size: 13.5px; }

  .container,
  .footer-inner,
  .footer-base-inner { width: min(100% - 28px, var(--shell-max)); }

  .card { padding: 20px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .btn:hover,
  .chip:hover,
  .timeline__node:hover::before {
    transform: none;
  }
}
