/* ============================================================
   非凡体育入口 · 共享外壳样式表  /assets/site.css
   框架式导航 / 竞技夜场数据指挥室
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

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

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

ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }

a { color: inherit; }

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

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-green: #0C211C;
  --charcoal: #121512;
  --moss: #1E3A32;
  --stone: #2A2E2B;
  --cyan: #4FE3C1;
  --orange: #FF6B35;
  --warm-white: #F2EFE6;
  --sand: #D9D2C3;
  --clay: #A8552F;
  --deep-teal: #17332D;

  --muted: #9EADA6;
  --line: rgba(217, 210, 195, .14);
  --line-strong: rgba(217, 210, 195, .30);

  --font-display: "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    "SF Mono", Consolas, "Liberation Mono", monospace;

  --rail-h: 74px;
  --rail-h-sm: 56px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --shell: 1360px;
  --radius-cut: 2px 14px 2px 14px;
  --ease: cubic-bezier(.22, .68, .28, 1);
  --t-fast: 160ms;
}

/* ---------- 3. Base typography ---------- */
body {
  background-color: var(--ink-green);
  background-image:
    radial-gradient(circle at 10% -4%, rgba(30, 58, 50, .78), transparent 44%),
    radial-gradient(circle at 92% 4%, rgba(23, 51, 45, .62), transparent 40%);
  background-repeat: no-repeat;
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--warm-white);
}

h1, .h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.05; }
h2, .h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; }
h3, .h3 { font-size: clamp(20px, 2.1vw, 26px); letter-spacing: -.01em; }
h4, .h4 { font-size: clamp(17px, 1.4vw, 20px); letter-spacing: 0; }

p { max-width: 40ch; }
p.wide { max-width: 62ch; }

strong, b { font-weight: 700; color: var(--warm-white); }

small { font-size: 12.5px; }

.num,
.score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.02em;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .92em;
  color: var(--cyan);
}

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

/* ---------- 4. Utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 900px; }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--rail-h) + 18px);
}

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

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--ink-green);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 2px 10px 2px 10px;
  transform: translateY(-180%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 3px;
}

/* ---------- 6. Header frame ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 33, 28, .96);
  border-bottom: 1px solid var(--stone);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-rail {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 32px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--rail-h);
  transition: height var(--t-fast) var(--ease);
}

.site-header[data-compact] .header-rail { height: var(--rail-h-sm); }

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: var(--cyan);
  color: var(--ink-green);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  border-radius: 2px 10px 2px 10px;
  transition: background-color var(--t-fast) var(--ease);
}

.brand__link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--warm-white);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}

.brand__link:hover { color: var(--cyan); }
.brand:hover .brand__mark { background: var(--warm-white); }

.brand__tail {
  color: var(--cyan);
  font-weight: 700;
  margin-left: 2px;
}

.brand__version {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--stone);
  border-radius: 2px 6px 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

/* nav */
.site-nav {
  margin-left: auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px clamp(6px, 1vw, 14px) 12px;
  border-radius: 2px 8px 2px 8px;
  color: var(--sand);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}

.site-nav__text { white-space: nowrap; }

.site-nav__link::after {
  content: "";
  position: absolute;
  left: clamp(6px, 1vw, 14px);
  right: clamp(6px, 1vw, 14px);
  bottom: 5px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-fast) var(--ease);
}

.site-nav__link:hover {
  color: var(--warm-white);
  background: var(--deep-teal);
}

.site-nav__link:hover .site-nav__num { color: var(--orange); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(23, 51, 45, .55);
}

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

/* toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--stone);
  border-radius: 2px 10px 2px 10px;
  color: var(--warm-white);
  transition: border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

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

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease),
    top var(--t-fast) var(--ease);
}

.nav-toggle__bars::before {
  top: 0;
  box-shadow: 0 5px 0 currentColor;
}

.nav-toggle__bars::after { top: 10px; }

.site-header[data-open] .nav-toggle {
  border-color: var(--cyan);
  color: var(--cyan);
}

.site-header[data-open] .nav-toggle__bars::before {
  top: 5px;
  box-shadow: none;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* scale + progress */
.header-scale {
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--stone) 0 1px,
    transparent 1px 14px
  );
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  overflow: hidden;
}

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

/* ---------- 7. Mobile navigation ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin-left: 0;
    max-height: calc(100vh - var(--rail-h));
    max-height: calc(100dvh - var(--rail-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px var(--gutter) 24px;
    background: var(--charcoal);
    border-bottom: 1px solid var(--stone);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .38);
  }

  .site-header[data-open] .site-nav { display: block; }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(79, 227, 193, .14), transparent 72%);
    border-bottom-color: rgba(79, 227, 193, .4);
  }

  .site-nav__item:last-child .site-nav__link { border-bottom: 0; }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .site-nav__link {
    font-size: 14px;
    padding-inline: 8px;
  }
  .brand__version { display: none; }
}

@media (max-width: 400px) {
  .brand__version { display: none; }
  .brand__link { font-size: 18px; }
}

/* ---------- 8. Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--charcoal);
  border-top: 1px solid var(--stone);
  color: var(--sand);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(210px, 1.45fr)
    minmax(150px, 1fr)
    minmax(210px, 1.25fr)
    minmax(150px, .95fr);
  gap: clamp(24px, 3.4vw, 56px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 68px) var(--gutter) clamp(26px, 3vw, 42px);
}

.footer-col { min-width: 0; }
.footer-col--brand { padding-right: 6px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--warm-white);
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background: var(--cyan);
  color: var(--ink-green);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  border-radius: 2px 9px 2px 9px;
  transition: background-color var(--t-fast) var(--ease);
}

.footer-brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.footer-brand__text span {
  color: var(--cyan);
  margin-left: 2px;
}

.footer-brand:hover .footer-brand__mark { background: var(--warm-white); }

.footer-lede {
  margin-top: 16px;
  max-width: 27ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sand);
}

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

.footer-col__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  color: var(--warm-white);
}

.footer-col__en {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--cyan);
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer-links a {
  display: inline-block;
  padding-block: 2px;
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(79, 227, 193, .55);
  transform: translateX(3px);
}

.footer-links--utility {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-contact {
  display: grid;
  gap: 13px;
  font-size: 14px;
  line-height: 1.65;
}

.footer-contact__key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact__val {
  display: block;
  color: var(--warm-white);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: grid;
  gap: 11px;
  font-size: 13px;
  line-height: 1.65;
}

.footer-legal__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.footer-legal__key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-base {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

.footer-base p { max-width: none; }

.footer-scale {
  height: 14px;
  border-bottom: 1px solid var(--stone);
  background-image: repeating-linear-gradient(
    90deg,
    var(--stone) 0 1px,
    transparent 1px 24px
  );
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 24px 6px;
  opacity: .85;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-lede { max-width: 34ch; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-lede { max-width: none; }
}

/* ---------- 9. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--cyan);
  border-radius: 2px 12px 2px 12px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-green);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-green);
}

.btn--solid:hover {
  background: var(--warm-white);
  border-color: var(--warm-white);
  color: var(--ink-green);
}

.btn--warm {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0D06;
}

.btn--warm:hover {
  background: var(--warm-white);
  border-color: var(--warm-white);
  color: var(--ink-green);
}

.btn--ghost {
  border-color: var(--stone);
  color: var(--sand);
}

.btn--ghost:hover {
  background: var(--deep-teal);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn__arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: .85;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb {
  padding-block: clamp(18px, 2.4vw, 28px) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(217, 210, 195, .32);
}

.breadcrumb a {
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

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

.breadcrumb [aria-current="page"] { color: var(--warm-white); }

/* ---------- 11. Layout & grids ---------- */
.split {
  display: grid;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.split--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .split--4-8,
  .split--5-7,
  .split--7-5 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.stack {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
}

/* ---------- 12. Panels & content atoms ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--moss);
  border: 1px solid var(--stone);
  border-radius: var(--radius-cut);
  transition: transform var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.panel--hover:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: var(--deep-teal);
}

.panel--quiet {
  background: rgba(30, 58, 50, .5);
  border-color: var(--line);
}

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--cyan);
}

.stat__unit {
  font-size: .48em;
  font-weight: 500;
  color: var(--sand);
  margin-left: 4px;
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.stat--warm .stat__value { color: var(--orange); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--stone);
  border-radius: 2px 7px 2px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
}

.tag--cyan {
  border-color: rgba(79, 227, 193, .45);
  color: var(--cyan);
}

.tag--live {
  border-color: rgba(255, 107, 53, .5);
  color: var(--orange);
}

.tag--clay {
  border-color: rgba(168, 85, 47, .6);
  color: var(--sand);
  background: rgba(168, 85, 47, .22);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--stone));
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-green);
  border: 2px solid var(--cyan);
}

.timeline__time {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- 13. Image containers ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stone);
  border-radius: var(--radius-cut);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(79, 227, 193, .07) 0 2px,
      transparent 2px 12px
    ),
    linear-gradient(150deg, var(--moss), var(--charcoal));
  aspect-ratio: 16 / 10;
}

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(12, 33, 28, .82);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--sand);
}

@media (max-width: 620px) {
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 14. Reveal protocol ---------- */
[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}

[data-js="on"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

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

  [data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .panel--hover:hover,
  .btn:hover,
  .footer-links a:hover {
    transform: none;
  }

  .site-header[data-compact] .header-rail { height: var(--rail-h); }
}
