/* =========================================
   浩瀚体育链接网址 — 全站共享样式 /assets/site.css
   ========================================= */

/* ---------- Reset & Tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0B1D33;
  --navy-card: #162A45;
  --orange: #FF4A1C;
  --blue: #00BFFF;
  --white: #FFFFFF;
  --gray-blue: #D0D6E0;
  --yellow: #FFD700;
  --dark: #333333;

  --header-h: 74px;
  --container-w: 1280px;
  --container-pad: clamp(16px, 3vw, 28px);

  --font-heading: "Montserrat", "Impact", "Arial Black", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "Roboto Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-blue);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 44px 44px;
  padding-top: var(--header-h);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 191, 255, 0.35);
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--white);
  text-decoration-color: var(--orange);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.2;
  font-weight: 900;
}

h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

p { margin: 0; }

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

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

#main-content {
  display: block;
  outline: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--navy);
}

::-webkit-scrollbar-thumb {
  background: #24405F;
  border: 2px solid var(--navy);
}

::-webkit-scrollbar-thumb:hover {
  background: #2F4E75;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.sr-only {
  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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 3000;
  background: var(--orange);
  color: var(--white);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transform: translateY(-240%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11, 29, 51, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 29, 51, 0.92);
  border-bottom-color: rgba(0, 191, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 100%);
  z-index: 2;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FF6B2C 0%, var(--orange) 65%, #E4320C 100%);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

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

.brand-text strong {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.03em;
}

.brand-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 7px;
  background: rgba(11, 29, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--orange), 0 10px 30px rgba(0, 0, 0, 0.18);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 14px;
  color: var(--gray-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a + a::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%) skewX(-18deg);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(0, 191, 255, 0.6);
  transition: color 0.2s var(--ease);
}

.nav-label {
  line-height: 1.3;
}

.site-nav a:hover .nav-index {
  color: var(--blue);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

.site-nav a[aria-current="page"] .nav-index {
  color: var(--orange);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 3px;
  background: var(--orange);
}

/* ---------- Header tools ---------- */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gray-blue);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--blue);
  border-color: rgba(0, 191, 255, 0.4);
  background: rgba(0, 191, 255, 0.06);
}

.icon-btn[aria-expanded="true"] {
  color: var(--blue);
  border-color: rgba(0, 191, 255, 0.6);
  background: rgba(0, 191, 255, 0.08);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

/* ---------- Nav toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle-box i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Search panel ---------- */
.search-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: var(--container-pad);
  width: min(400px, calc(100vw - 32px));
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--orange);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
  z-index: 3;
}

.search-panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.search-panel-inner {
  padding: 20px;
}

.search-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
}

.search-panel-eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--orange);
}

.search-panel-text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-blue);
}

.search-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- Header responsive ---------- */
@media (max-width: 920px) {
  :root {
    --header-h: 64px;
  }

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

  .header-tools {
    gap: 6px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--navy);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  }

  .site-nav[data-open] {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
    width: 100%;
  }

  .site-nav a + a::before {
    display: none;
  }

  .nav-index {
    display: inline;
    font-size: 11px;
  }

  .site-nav a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: auto;
  }
}

@media (max-width: 560px) {
  .search-panel {
    right: var(--container-pad);
    left: var(--container-pad);
    width: auto;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text em {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 80px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 55%, var(--blue) 55%, var(--blue) 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 64px);
  padding: 64px 0 48px;
}

.footer-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-blue);
  max-width: 46ch;
}

.trust-statement {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--blue);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(208, 214, 224, 0.72);
  max-width: 52ch;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--gray-blue);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-nav a::before {
  content: "╱";
  margin-right: 8px;
  color: var(--orange);
  font-size: 12px;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-nav a:hover::before {
  opacity: 1;
}

.footer-contact p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray-blue);
}

.contact-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(208, 214, 224, 0.72);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: rgba(208, 214, 224, 0.72);
}

.copyright {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: var(--gray-blue);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
  color: var(--white);
}

.icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-blue);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--orange);
}

@media (max-width: 920px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    padding: 48px 0 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Section primitives ---------- */
.section {
  padding-block: 72px;
  position: relative;
}

@media (max-width: 720px) {
  .section {
    padding-block: 48px;
  }
}

.section-head {
  margin-bottom: 40px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-index::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(to right, var(--orange), transparent);
}

.section-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-blue);
  max-width: 60ch;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

/* ---------- Card ---------- */
.card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: rgba(0, 191, 255, 0.3);
  box-shadow: var(--shadow);
}

.card:hover::before,
.card:focus-within::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-blue);
}

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

/* ---------- Panel cut ---------- */
.panel-cut {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 32px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #FF6130;
  border-color: #FF6130;
  color: var(--white);
}

.btn-outline {
  background: rgba(0, 191, 255, 0.05);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: rgba(0, 191, 255, 0.12);
  border-color: var(--blue);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--gray-blue);
  border-color: var(--gray-blue);
  color: var(--navy);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

/* ---------- Badges & tags ---------- */
.badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.32);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.badge.is-orange {
  background: rgba(255, 74, 28, 0.1);
  border-color: rgba(255, 74, 28, 0.4);
  color: var(--orange);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-blue);
  font-size: 12px;
}

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

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

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.stat {
  padding: 20px 22px;
  background: var(--navy-card);
  border-left: 3px solid var(--blue);
}

.stat.is-orange {
  border-left-color: var(--orange);
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-number.has-accent {
  color: var(--orange);
}

.stat-number.is-blue {
  color: var(--blue);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray-blue);
}

/* ---------- Chapter ---------- */
.chapter {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-index {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

@supports (-webkit-text-stroke: 1px var(--orange)) {
  .chapter-index {
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
  }
}

.chapter-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.chapter-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-blue);
  max-width: 60ch;
}

@media (max-width: 560px) {
  .chapter {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  .chapter-index {
    font-size: 30px;
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(208, 214, 224, 0.7);
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

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

.breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.3);
}

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

/* ---------- Prose ---------- */
.prose {
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-blue);
}

.prose p {
  margin-bottom: 16px;
}

.prose h2,
.prose h3 {
  font-family: var(--font-heading);
  color: var(--white);
  margin: 32px 0 12px;
}

.prose a {
  color: var(--blue);
}

.prose ul li {
  position: relative;
  padding: 4px 0 4px 22px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: 64px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-under-header {
  margin-top: calc(-1 * var(--header-h));
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 48px;
  }

  .hero-visual {
    order: 2;
  }
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
}

.divider::before {
  background: linear-gradient(to right, var(--orange), transparent);
}

.divider::after {
  background: linear-gradient(to left, var(--blue), transparent);
}

/* ---------- Scroll spy ---------- */
[data-spy] {
  position: relative;
}

[data-spy]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--blue);
  opacity: 0;
  transition: width 0.35s var(--ease), opacity 0.35s var(--ease);
}

[data-spy].is-inview::before {
  width: 3px;
  opacity: 0.6;
}

[data-spy].is-inview .section-index {
  color: var(--orange);
}

/* ---------- Scroll reveal ---------- */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-enabled [data-reveal="left"] {
  transform: translateX(-32px);
}

.js-enabled [data-reveal="right"] {
  transform: translateX(32px);
}

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

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

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

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

  .skip-link {
    transition: none;
  }

  .site-nav,
  .search-panel {
    transition: none;
  }
}
