/* ============================================================
   爱体育优惠 · 共享样式 /assets/site.css
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, figure, blockquote, pre {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; }

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

[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --ink-900: #0B1220;
  --ink-800: #141E33;
  --ink-700: #1A2740;
  --line: #22314C;
  --cyan: #22E0D6;
  --orange: #FF7A29;
  --rose: #FF3D7F;
  --paper: #F2F6FF;
  --muted: #8FA3C0;
  --teal: #0E6E6A;
  --sand: #E8D9C0;

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

  --radius: 4px;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .46);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- base ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(34, 49, 76, .38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 49, 76, .28) 1px, transparent 1px);
  background-size: 108px 108px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

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

/* ---------- layout helpers ---------- */
.shell {
  width: min(1240px, 100% - 2rem);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .shell { width: min(1240px, 100% - 4rem); }
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 20px;
  background: var(--cyan);
  color: var(--ink-900);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .16s var(--ease);
}

.skip-link:focus {
  top: 0;
  outline-offset: -4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 18, 32, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 0 14px;
  transition: padding .24s var(--ease);
}

.masthead__side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transition: opacity .18s linear;
}

.masthead__side--right { justify-content: flex-end; flex-wrap: wrap; }

.masthead__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  color: var(--ink-900);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand__word {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}

/* season chip */
.season-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-800);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.season-chip__value {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cyan);
}

/* quick links */
.quick-link {
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s linear, border-color .16s linear, background-color .16s linear;
}

.quick-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s ease-out;
}

.quick-link:hover {
  color: var(--paper);
  border-color: var(--line);
  background: var(--ink-800);
}

.quick-link:hover::after { transform: scaleX(1); }

.quick-link--fav {
  color: var(--orange);
  border-color: rgba(255, 122, 41, .35);
  background: rgba(255, 122, 41, .07);
}

.quick-link--fav:hover {
  color: var(--ink-900);
  background: var(--orange);
  border-color: var(--orange);
}

.quick-link--fav:hover::after { transform: scaleX(0); }

/* current section (compact only) */
.current-section {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  pointer-events: none;
}

.current-section__value {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--cyan);
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ink-800);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s linear, border-color .16s linear, background-color .16s linear;
}

.nav-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  transition: background-color .16s linear, box-shadow .16s linear;
}

[data-nav-open="true"] .nav-toggle__bars {
  background: var(--orange);
  box-shadow: 0 -5px 0 var(--orange), 0 5px 0 var(--orange);
}

.nav-toggle__text { line-height: 1; }

/* nav */
.nav-wrap {
  max-height: 88px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .24s var(--ease), opacity .16s linear;
}

.nav {
  border-top: 1px solid var(--line);
}

.nav__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2px;
}

.nav__item { display: flex; }

.nav__link {
  position: relative;
  display: block;
  padding: 12px 16px 11px;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s linear, border-color .16s linear, background-color .16s linear;
}

.nav__link::before {
  content: attr(data-index);
  margin-right: 7px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--teal);
  vertical-align: 1px;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s ease-out;
}

.nav__link:hover {
  color: var(--paper);
  background: rgba(34, 224, 214, .05);
}

.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--orange);
  background: rgba(255, 122, 41, .07);
}

.nav__link[aria-current="page"]::before { color: var(--cyan); }
.nav__link[aria-current="page"]::after { transform: scaleX(0); }

/* compact header */
[data-site-header][data-compact="true"] .masthead { padding: 10px 0; }

[data-site-header][data-compact="true"] .nav-wrap {
  max-height: 0;
  opacity: 0;
}

[data-site-header][data-compact="true"] .masthead__side--left {
  opacity: 0;
  pointer-events: none;
}

[data-site-header][data-compact="true"] .brand__tagline { display: none; }

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* ---------- desktop-only states ---------- */
@media (min-width: 900px) {
  [data-site-header][data-compact="true"] .quick-link:not(.quick-link--fav) { display: none; }
  [data-site-header][data-compact="true"] .current-section { display: inline-flex; }
}

/* ---------- mobile header ---------- */
@media (max-width: 899px) {
  html { scroll-padding-top: 96px; }

  .masthead {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }

  .masthead__center {
    align-items: flex-start;
    grid-column: 1;
  }

  .masthead__side { display: none; }

  .brand__word { font-size: clamp(20px, 5.6vw, 28px); }

  .brand__mark { width: 26px; height: 26px; font-size: 13px; }

  .brand__tagline { font-size: 10px; letter-spacing: .14em; }

  .current-section { display: none !important; }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
  }

  .nav-wrap {
    max-height: 0;
    opacity: 0;
  }

  [data-site-header][data-nav-open="true"] .nav-wrap {
    max-height: min(72vh, 520px);
    opacity: 1;
    overflow-y: auto;
  }

  .nav { border-top: 1px solid var(--line); }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 6px 0 14px;
  }

  .nav__item { border-bottom: 1px solid rgba(34, 49, 76, .6); }
  .nav__item:last-child { border-bottom: 0; }

  .nav__link {
    width: 100%;
    padding: 14px 12px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    font-size: 14px;
  }

  .nav__link::after { left: 12px; right: 12px; bottom: 4px; }

  .nav__link[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--orange);
    background: linear-gradient(90deg, rgba(255, 122, 41, .12), transparent 72%);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 72px;
  background: linear-gradient(180deg, #0B1220 0%, #080E19 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(460px, 44%);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding: 54px 0 38px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.7fr 1fr 1fr 1.55fr;
    gap: 42px 34px;
  }
}

.footer-col { min-width: 0; }

.footer-brand {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list--meta { gap: 14px; }

.footer-list--meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s linear;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s ease-out;
}

.footer-link:hover { color: var(--paper); }
.footer-link:hover::after { transform: scaleX(1); }

.meta-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-val {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.footer-copy,
.footer-icp { margin: 0; }

.footer-icp { color: var(--teal); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ink-800);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s linear, border-color .16s linear,
              color .16s linear, transform .16s var(--ease);
}

.btn:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0A00;
  font-weight: 700;
}

.btn--primary:hover {
  background: #FF8E48;
  border-color: #FF8E48;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
}

.btn--ghost:hover {
  background: rgba(34, 224, 214, .08);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

.num--xl {
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1.05;
}

.idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.slash {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--orange) 0 36%, var(--cyan) 36% 62%, var(--line) 62% 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

/* chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-800);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip--cyan { color: var(--cyan); border-color: rgba(34, 224, 214, .4); background: rgba(34, 224, 214, .08); }
.chip--orange { color: var(--orange); border-color: rgba(255, 122, 41, .4); background: rgba(255, 122, 41, .08); }
.chip--rose { color: var(--rose); border-color: rgba(255, 61, 127, .4); background: rgba(255, 61, 127, .08); }

/* panel / card */
.panel {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
  box-shadow: var(--shadow-1);
  transition: border-color .16s linear, transform .16s var(--ease), box-shadow .16s linear;
}

.panel:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.panel--clip {
  border: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

/* stat */
.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat__value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  transition: color .2s linear;
}

.stat__value[data-trend="up"] { color: var(--rose); }
.stat__value[data-trend="down"] { color: var(--cyan); }

.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* section head */
.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 22px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.section-head__index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--teal);
}

.section-head__title {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head__note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* breadcrumbs */
.breadcrumbs {
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li::after {
  content: "/";
  color: var(--line);
}

.breadcrumbs li:last-child::after { content: ""; }

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .16s linear;
}

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

.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* prose */
.prose {
  max-width: 72ch;
  color: var(--paper);
}

.prose p { margin-bottom: 1.05em; }

.prose h2 {
  margin: 2em 0 .6em;
  font-size: clamp(21px, 2.4vw, 30px);
}

.prose h3 {
  margin: 1.7em 0 .5em;
  font-size: clamp(18px, 1.9vw, 22px);
}

.prose ul,
.prose ol {
  margin-bottom: 1.05em;
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: .4em; }

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 224, 214, .4);
}

.prose a:hover { border-bottom-color: var(--cyan); }

.prose blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  background: var(--sand);
  color: #241C10;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p:last-child { margin-bottom: 0; }

/* shelf — 横向滑动索引条 */
.shelf {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.shelf::-webkit-scrollbar { height: 4px; }
.shelf::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.shelf::-webkit-scrollbar-track { background: transparent; }

.shelf__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ink-800);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s linear, border-color .16s linear, background-color .16s linear;
}

.shelf__item:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.shelf__item[data-active="true"],
.shelf__item[aria-current="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(34, 224, 214, .14);
}

/* disclosure */
.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
  overflow: hidden;
}

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

.disclosure__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--paper);
  transition: background-color .16s linear, color .16s linear;
}

.disclosure__btn:hover {
  color: var(--cyan);
  background: rgba(34, 224, 214, .06);
}

.disclosure__marker {
  margin-left: auto;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  transition: transform .18s var(--ease), color .16s linear;
}

.disclosure__btn[aria-expanded="true"] .disclosure__marker {
  transform: rotate(45deg);
  color: var(--cyan);
}

.disclosure__body {
  padding: 0 16px 16px;
  font-size: 15px;
  color: var(--muted);
}

/* media —— 供页面阶段放置图片占位 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 224, 214, .10), transparent 56%),
    linear-gradient(215deg, rgba(255, 122, 41, .10), transparent 56%),
    var(--ink-800);
}

.media img,
.media svg,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }

.media--clip {
  border: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

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

  .btn:hover,
  .panel:hover {
    transform: none;
  }

  .skip-link { transition: none; }

  .quick-link::after,
  .nav__link::after,
  .footer-link::after {
    transition: opacity .12s linear;
    transform: scaleX(1);
    opacity: 0;
  }

  .quick-link:hover::after,
  .nav__link:hover::after,
  .footer-link:hover::after {
    opacity: 1;
  }

  .nav__link[aria-current="page"]::after { opacity: 0; }

  .scroll-progress__bar { transition: none; }

  .nav-wrap,
  .masthead,
  .disclosure__marker {
    transition-duration: .01ms;
  }
}
