/* ============================================================
   半岛体育看台 · /assets/site.css
   01 reset · 02 tokens · 03 base type · 04 header/rail
   05 footer · 06 components · 07 utilities · 08 responsive
   ============================================================ */

/* 01 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 {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

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

img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

/* 02 tokens ------------------------------------------------- */
:root {
  --ink-900: #05141F;
  --ink-800: #0A2740;
  --ink-700: #14425F;
  --cyan-400: #3DF2D2;
  --cyan-600: #16B79E;
  --orange-500: #FF6A1F;
  --orange-700: #D8410C;
  --yellow-400: #FFC24B;
  --white-050: #F4F8FA;
  --mist-200: #DFE7EC;
  --cool-400: #93A9B9;
  --stone-600: #41586A;

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-17: 17px;
  --fs-20: 20px;
  --fs-28: clamp(22px, 2.6vw, 28px);
  --fs-40: clamp(28px, 4vw, 40px);
  --fs-64: clamp(36px, 6vw, 64px);
  --fs-96: clamp(48px, 8vw, 96px);
  --fs-160: clamp(60px, 12vw, 160px);

  --rail-w: 88px;
  --topbar-h: 56px;

  --line: 2px solid var(--ink-700);
  --line-ink: 2px solid var(--ink-900);
  --shadow-hard: 6px 6px 0 rgba(5, 20, 31, 0.55);
  --shadow-hard-light: 6px 6px 0 var(--ink-900);

  --ease: 160ms ease-out;
}

/* 03 base type --------------------------------------------- */
body {
  min-height: 100vh;
  background: var(--white-050);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-17);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-64); }
h2 { font-size: var(--fs-40); }
h3 { font-size: var(--fs-28); }
h4 { font-size: var(--fs-20); }

main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(5, 20, 31, 0.35);
}

/* 04 header ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink-900);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 320;
  transform: translateY(-180%);
  padding: 12px 20px;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-hard-light);
  transition: transform var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* top bar (mobile) */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 12px 0 14px;
  background: var(--ink-900);
  color: var(--white-050);
  border-bottom: 2px solid var(--ink-700);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
}

.topbar__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--cyan-400);
  color: var(--cyan-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  flex: none;
}

.topbar__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.topbar__round {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cool-400);
  white-space: nowrap;
}

.topbar__round-text { color: var(--cool-400); }
.topbar__round-time { color: var(--yellow-400); }

.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 106, 31, 0.26);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid var(--ink-700);
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: border-color var(--ease), color var(--ease), background-color var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan-400); background: var(--ink-800); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--cyan-400);
  transition: transform var(--ease), top var(--ease), box-shadow var(--ease);
}

.nav-toggle__bars::before { top: 0; box-shadow: 0 6px 0 var(--cyan-400); }
.nav-toggle__bars::after { top: 12px; }

.nav-toggle__label { display: inline-block; }

.site-header[data-open="true"] .nav-toggle { border-color: var(--cyan-400); }
.site-header[data-open="true"] .nav-toggle__bars::before {
  top: 6px;
  box-shadow: 0 0 0 rgba(61, 242, 210, 0);
  transform: rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle__bars::after {
  top: 6px;
  transform: rotate(-45deg);
}

/* rail (mobile drawer first) */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 240;
  display: flex;
  flex-direction: column;
  width: min(88vw, 340px);
  background: var(--ink-900);
  color: var(--white-050);
  border-right: 2px solid var(--ink-700);
  box-shadow: 14px 0 0 rgba(5, 20, 31, 0.4);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-104%);
  transition: transform 200ms ease-out;
}

.site-header[data-open="true"] .rail { transform: translateX(0); }

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: var(--line);
}

.rail__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.rail__mark {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0 8px;
  border: 2px solid var(--cyan-400);
  color: var(--cyan-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  flex: none;
}

.rail__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--white-050);
}

.rail__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink-700);
  color: var(--cyan-400);
  transition: border-color var(--ease), color var(--ease);
}

.rail__close:hover { border-color: var(--cyan-400); color: var(--white-050); }

.rail__close-x { position: relative; display: block; width: 16px; height: 16px; }

.rail__close-x::before,
.rail__close-x::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.rail__close-x::before { transform: rotate(45deg); }
.rail__close-x::after { transform: rotate(-45deg); }

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-700) transparent;
}

.rail__nav::-webkit-scrollbar { width: 4px; }
.rail__nav::-webkit-scrollbar-thumb { background: var(--ink-700); }

.rail__list { display: flex; flex-direction: column; }
.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--cool-400);
  border-bottom: 1px solid rgba(20, 66, 95, 0.7);
  transition: color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

.rail__link:hover,
.rail__link:focus-visible {
  color: var(--white-050);
  background: var(--ink-800);
  box-shadow: inset 0 0 0 2px var(--cyan-400);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cool-400);
  flex: none;
}

.rail__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: inherit;
}

.rail__full { display: none; }

.rail__link[aria-current="page"] {
  color: var(--white-050);
  background: var(--ink-800);
}

.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange-500);
}

.rail__link[aria-current="page"] .rail__num { color: var(--orange-500); }

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 20px;
  border-top: var(--line);
  background: rgba(10, 39, 64, 0.72);
}

.rail__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--yellow-400);
}

.rail__sync {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--cool-400);
}

.rail__mail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--cyan-400);
  word-break: break-all;
}

.rail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 4px;
  padding: 8px 12px;
  background: var(--orange-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink-900);
  box-shadow: 3px 3px 0 var(--ink-700);
  transition: transform var(--ease), box-shadow var(--ease);
}

.rail__cta:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink-700); }

.rail-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(5, 20, 31, 0.66);
  border: 0;
}

.site-header[data-open="true"] .rail-scrim { display: block; }

.scroll-meter {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-h);
  z-index: 260;
  height: 3px;
  pointer-events: none;
  background: rgba(20, 66, 95, 0.5);
}

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

/* 05 footer ------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--cool-400);
  border-top: 6px solid var(--ink-700);
  padding-top: 56px;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -35%;
  height: 120%;
  background: repeating-radial-gradient(circle at 32% 100%,
      rgba(61, 242, 210, 0.07) 0 1px,
      transparent 1px 28px);
  pointer-events: none;
}

.foot-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 2px solid var(--ink-700);
}

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

.foot-col--brand { display: flex; flex-direction: column; gap: 12px; }
.foot-col--index,
.foot-col--kit,
.foot-col--contact { display: flex; flex-direction: column; }

.foot-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-28);
  letter-spacing: -0.02em;
  color: var(--white-050);
}

.foot-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-17);
  letter-spacing: 0.06em;
  color: var(--cyan-400);
}

.foot-round {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cool-400);
}

.foot-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--yellow-400);
}

.foot-list { display: flex; flex-direction: column; }
.foot-item { display: block; }

.foot-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  min-height: 40px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--white-050);
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.foot-link__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cool-400);
}

.foot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  min-height: 52px;
  background: var(--ink-800);
  color: var(--white-050);
  border: 2px solid var(--ink-700);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.foot-card:hover,
.foot-card:focus-visible {
  border-color: var(--cyan-400);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink-700);
}

.foot-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-500);
}

.foot-card__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.foot-line {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--cool-400);
  word-break: break-word;
}

.foot-line--mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--white-050);
}

.foot-line--icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-200);
}

.foot-note {
  margin: 6px 0 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--cool-400);
  background: rgba(10, 39, 64, 0.8);
  border-left: 2px solid var(--cyan-600);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.foot-mini {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
  border-bottom: 1px solid rgba(61, 242, 210, 0.45);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}

.foot-mini:hover,
.foot-mini:focus-visible {
  color: var(--white-050);
  border-bottom-color: var(--white-050);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cool-400);
}

.foot-copy { color: var(--cool-400); }
.foot-fine { color: var(--stone-600); }

/* 06 components --------------------------------------------- */
.container,
.wrap {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}

.prose {
  max-width: 68ch;
  font-size: var(--fs-17);
  line-height: 1.85;
  color: var(--stone-600);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2,
.prose h3,
.prose h4 { color: var(--ink-900); }

.prose h2 { margin-top: 1.8em; font-size: var(--fs-28); }
.prose h3 { margin-top: 1.5em; font-size: var(--fs-20); }

.prose ul { padding-left: 0; }

.prose li {
  position: relative;
  padding-left: 22px;
  margin-top: 0.5em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 10px;
  height: 2px;
  background: var(--cyan-600);
}

.prose blockquote {
  padding: 16px 20px;
  background: var(--mist-200);
  border-left: 4px solid var(--cyan-600);
  color: var(--ink-800);
}

.prose a {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--cyan-600);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover { background: rgba(61, 242, 210, 0.28); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-900);
  background: var(--white-050);
  border: 2px solid var(--ink-900);
  box-shadow: 5px 5px 0 var(--ink-900);
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease);
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink-900); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-900); }

.btn--solid { background: var(--orange-500); color: var(--ink-900); }
.btn--cyan { background: var(--cyan-400); color: var(--ink-900); }

.btn--ghost {
  background: transparent;
  color: var(--white-050);
  border-color: var(--cyan-400);
  box-shadow: 5px 5px 0 var(--ink-700);
}

.btn--ghost:hover { background: var(--ink-800); box-shadow: 8px 8px 0 var(--ink-700); }

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--ink-900);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone-600);
}

.breadcrumb a {
  color: var(--stone-600);
  border-bottom: 1px solid var(--mist-200);
  transition: color var(--ease), border-color var(--ease);
}

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

.breadcrumb__sep { color: var(--mist-200); }
.breadcrumb__current { color: var(--ink-900); font-weight: 700; }

.dossier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--ink-800);
  color: var(--white-050);
  border: 2px solid var(--ink-700);
  box-shadow: var(--shadow-hard);
}

.dossier--light {
  background: var(--white-050);
  color: var(--ink-900);
  border-color: var(--ink-900);
  box-shadow: 6px 6px 0 var(--mist-200);
}

.dossier__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange-500);
}

.dossier__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-20);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dossier__meta {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cool-400);
}

.dossier--light .dossier__meta { color: var(--stone-600); }

.dossier__body { font-size: 15px; line-height: 1.7; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--cyan-400);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
}

.tag--orange { color: var(--orange-500); border-color: rgba(255, 106, 31, 0.45); }
.tag--solid { color: var(--ink-900); background: var(--cyan-400); border-color: var(--ink-900); }
.tag--light { color: var(--stone-600); background: var(--mist-200); border-color: var(--mist-200); }

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.index-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange-500);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: var(--line-ink);
}

.section-head--dark { border-bottom-color: var(--ink-700); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--stone-600);
}

.section-head--dark .eyebrow { color: var(--cyan-400); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-28);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: var(--line-ink);
  background:
    radial-gradient(120% 90% at 72% 0%, #1b5878 0%, #0a2740 46%, #05141f 100%);
  box-shadow: var(--shadow-hard);
}

.media::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(61, 242, 210, 0.35);
  pointer-events: none;
}

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

.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan-400);
  background: rgba(5, 20, 31, 0.75);
  border: 1px solid var(--ink-700);
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone-600);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

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

/* 07 utilities ---------------------------------------------- */
.band { padding: 64px 0; }
.band--deep { background: var(--ink-900); color: var(--white-050); }
.band--paper { background: var(--white-050); color: var(--ink-900); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }

/* 08 responsive --------------------------------------------- */
@media (max-width: 900px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .grid--12 { grid-template-columns: 1fr; }
  .col-5,
  .col-7 { grid-column: auto; }
}

@media (max-width: 640px) {
  .foot-inner,
  .container,
  .wrap { width: calc(100% - 32px); }

  .band { padding: 44px 0; }
  .media,
  .media--wide,
  .media--tall { aspect-ratio: 4 / 3; }
}

@media (max-width: 420px) {
  .topbar__round-time { display: none; }
  .topbar__name { font-size: 13px; }
}

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

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    background: transparent;
  }

  .topbar { display: none; }

  .skip-link { left: calc(var(--rail-w) + 12px); }

  .rail {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
    transition: none;
    box-shadow: none;
    overflow: hidden;
    border-right: var(--line);
  }

  .rail-scrim { display: none !important; }

  .rail__top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 8px 14px;
  }

  .rail__brand {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .rail__mark {
    width: 32px;
    height: 40px;
    padding: 0;
    writing-mode: vertical-rl;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .rail__word {
    writing-mode: vertical-rl;
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .rail__close { display: none; }

  .rail__link {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding: 12px 4px;
    min-height: 44px;
    border-bottom: 1px solid rgba(20, 66, 95, 0.7);
  }

  .rail__label {
    writing-mode: vertical-rl;
    font-size: 13px;
    letter-spacing: 0.2em;
  }

  .rail__full {
    display: block;
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 5;
    padding: 6px 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-6px, -50%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--white-050);
    background: var(--ink-800);
    border: 2px solid var(--cyan-400);
    box-shadow: 4px 4px 0 rgba(5, 20, 31, 0.5);
    transition: opacity var(--ease), transform var(--ease);
  }

  .rail__link:hover .rail__full,
  .rail__link:focus-visible .rail__full {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .rail__link:hover,
  .rail__link:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan-400); }

  .rail__foot {
    align-items: center;
    gap: 10px;
    padding: 14px 6px 18px;
    text-align: center;
  }

  .rail__hint {
    writing-mode: vertical-rl;
    font-size: 10px;
  }

  .rail__sync {
    writing-mode: vertical-rl;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: 0.08em;
    color: var(--cool-400);
  }

  .rail__mail,
  .rail__cta { display: none; }

  .scroll-meter { left: var(--rail-w); top: 0; }

  .foot-inner { width: min(100% - 96px, 1180px); }
  .foot-grid { grid-template-columns: 1.15fr 0.9fr 1fr 1.25fr; gap: 48px; }
  .foot-bottom { padding-bottom: 32px; }
}

@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;
  }

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

  .status-dot { animation: none; }
}
