/* ========================================
   乐宝赛场 · Site Kit
   /assets/site.css
   ======================================== */

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream-base);
  color: var(--ink-black);
}

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

body {
  font-family: var(--body-font);
  font-size: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a {
  color: var(--red-ace);
  text-decoration: none;
  transition: color var(--ease-quick);
}

a:hover {
  color: var(--ink-black);
}

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

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

[hidden] {
  display: none !important;
}

/* ---------- Variables ---------- */
:root {
  /* palette */
  --cream-base: #F4EFE5;
  --cream-deep: #E9E0CF;
  --ink-black: #1A1614;
  --red-ace: #CE3A1F;
  --gold-mark: #B8860B;
  --card-surface: #FCF8F0;
  --line-warm: #D3C5AE;
  --muted-brown: #6F6155;
  --dark-zone: #211C18;
  --white-out: #FFFFFF;

  /* fonts */
  --display-font: 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;
  --body-font: 'Source Han Serif SC', 'Noto Serif CJK SC', serif;
  --numeric-font: 'DIN Alternate', 'Bahnschrift', sans-serif;

  /* type sizes */
  --hero-display: clamp(3.5rem, 8vw, 7rem);
  --section-title: clamp(2rem, 4vw, 3.5rem);
  --body: 1rem;
  --footnote: 0.875rem;
  --small-caption: 0.75rem;

  /* weights */
  --w-light: 200;
  --w-bold: 800;
  --w-regular: 400;
  --w-medium: 500;

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* layout */
  --wrap-width: 1200px;
  --wrap-narrow: 840px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* motion */
  --ease-quick: 0.18s ease;
  --ease-smooth: 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dist: 14px;
}

@media (max-width: 767px) {
  :root {
    --header-h: 60px;
    --space-8: 4rem;
  }
}

/* ---------- Base typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display-font);
  font-weight: var(--w-bold);
  line-height: 1.2;
}

h1 {
  font-size: var(--hero-display);
  font-weight: var(--w-light);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--section-title);
  line-height: 1.15;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.05rem;
}

strong, b {
  font-weight: var(--w-bold);
}

small, .footnote {
  font-size: var(--footnote);
  color: var(--muted-brown);
}

::selection {
  background: var(--red-ace);
  color: var(--white-out);
}

/* ---------- Utilities & containers ---------- */
.wrap {
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 {
  grid-template-columns: 1fr 1fr;
}

.grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

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

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

.text-center { text-align: center; }
.text-red { color: var(--red-ace); }
.text-gold { color: var(--gold-mark); }
.text-muted { color: var(--muted-brown); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--red-ace);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  background: var(--ink-black);
  color: var(--cream-base);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--display-font);
  font-size: var(--footnote);
  font-weight: var(--w-bold);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--red-ace);
  outline-offset: 2px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-ace), var(--gold-mark));
  z-index: 2000;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-zone);
  color: var(--cream-base);
  border-bottom: 1px solid rgba(244, 239, 229, 0.1);
}

.site-head::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 96px;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--red-ace) 0 6px, transparent 6px 12px);
  opacity: 0.55;
  pointer-events: none;
  border-radius: 0 0 0 10px;
}

.site-head__inner {
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}

/* brand */
.site-head__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-base);
  text-decoration: none;
  flex-shrink: 0;
}

.site-head__brand:hover {
  color: var(--white-out);
}

.site-head__brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--cream-base);
}

.site-head__brand-name {
  font-family: var(--display-font);
  font-weight: var(--w-bold);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-head__brand-suffix {
  font-family: var(--display-font);
  font-size: 0.7rem;
  color: var(--line-warm);
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-left: 0.6rem;
  border-left: 1px solid var(--line-warm);
  padding-top: 2px;
}

.site-head__cn-badge {
  display: inline-flex;
  align-items: center;
  background: var(--red-ace);
  color: var(--white-out);
  font-size: 0.62rem;
  font-weight: var(--w-bold);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* --- nav --- */
.cmd-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.cmd-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.cmd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  color: rgba(244, 239, 229, 0.78);
  text-decoration: none;
  font-family: var(--display-font);
  font-size: 0.85rem;
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  transition: background var(--ease-quick), color var(--ease-quick);
}

.cmd-nav__link:hover {
  color: var(--white-out);
  background: rgba(244, 239, 229, 0.08);
}

.cmd-nav__link[aria-current="page"] {
  color: var(--white-out);
  background: rgba(244, 239, 229, 0.12);
}

.cmd-nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-ace);
}

.cmd-nav__index {
  font-family: var(--numeric-font);
  font-size: 0.7rem;
  font-weight: var(--w-bold);
  color: var(--gold-mark);
  letter-spacing: 0.04em;
}

.cmd-nav__link[aria-current="page"] .cmd-nav__index {
  color: var(--white-out);
}

.cmd-nav__status {
  font-family: var(--display-font);
  font-size: 0.76rem;
  color: var(--line-warm);
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 0.35rem 0 0.35rem var(--space-4);
  border-left: 1px solid rgba(244, 239, 229, 0.16);
}

/* --- mobile toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(244, 239, 229, 0.08);
  border: 1px solid rgba(244, 239, 229, 0.18);
  flex-shrink: 0;
}

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

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--dark-zone);
  color: var(--cream-base);
  margin-top: var(--space-8);
  border-radius: 32px 32px 0 0;
  position: relative;
}

.site-foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-ace), var(--gold-mark));
  border-radius: 32px 32px 0 0;
}

.site-foot__inner {
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding: var(--space-7) var(--gutter) var(--space-6);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-5) var(--space-6);
}

.site-foot__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-foot__brandline {
  font-family: var(--display-font);
  font-size: 1.4rem;
  font-weight: var(--w-bold);
  color: var(--white-out);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.site-foot__about {
  font-size: var(--footnote);
  color: rgba(244, 239, 229, 0.72);
  line-height: 1.8;
  max-width: 36ch;
  margin-bottom: var(--space-3);
}

.site-foot__seal {
  width: 48px;
  height: 48px;
  color: var(--gold-mark);
  margin-top: var(--space-2);
}

.site-foot__title {
  font-family: var(--display-font);
  font-size: 0.82rem;
  font-weight: var(--w-bold);
  color: var(--gold-mark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(244, 239, 229, 0.14);
}

.site-foot__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-foot__list a {
  color: rgba(244, 239, 229, 0.78);
  font-size: var(--footnote);
  text-decoration: none;
  transition: color var(--ease-quick), padding-left var(--ease-quick);
}

.site-foot__list a:hover {
  color: var(--white-out);
  padding-left: 4px;
}

.site-foot__list a[aria-current="page"] {
  color: var(--white-out);
  font-weight: var(--w-bold);
}

.site-foot__note {
  font-size: var(--small-caption);
  color: rgba(244, 239, 229, 0.55);
  line-height: 1.7;
  margin-top: var(--space-3);
}

.site-foot__contact {
  font-size: var(--footnote);
  color: rgba(244, 239, 229, 0.78);
  line-height: 1.9;
}

.site-foot__bottom {
  border-top: 1px solid rgba(244, 239, 229, 0.1);
}

.site-foot__bottom-inner {
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding: var(--space-4) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.site-foot__trust {
  font-size: var(--small-caption);
  color: rgba(244, 239, 229, 0.5);
  max-width: 68ch;
  line-height: 1.6;
}

.site-foot__icp {
  font-size: var(--small-caption);
  color: rgba(244, 239, 229, 0.6);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--display-font);
  font-weight: var(--w-bold);
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  min-height: 44px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform var(--ease-quick), box-shadow var(--ease-quick), background var(--ease-quick), color var(--ease-quick);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--red-ace);
  color: var(--white-out);
}

.btn--primary:hover {
  background: #B8321B;
  color: var(--white-out);
  box-shadow: 0 10px 24px rgba(206, 58, 31, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink-black);
  color: var(--ink-black);
}

.btn--ghost:hover {
  background: var(--ink-black);
  color: var(--cream-base);
}

.btn--dark {
  background: var(--dark-zone);
  color: var(--cream-base);
}

.btn--dark:hover {
  background: #2E2722;
  color: var(--white-out);
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  min-height: 38px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display-font);
  font-size: var(--footnote);
  color: var(--muted-brown);
  padding: var(--space-4) 0 var(--space-3);
  list-style: none;
}

.breadcrumb a {
  color: var(--muted-brown);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red-ace);
}

.breadcrumb__sep {
  color: var(--line-warm);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-black);
  font-weight: var(--w-bold);
}

/* ---------- Chapter ---------- */
.section-chapter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-6);
  margin-bottom: var(--space-5);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.chapter-index {
  font-family: var(--numeric-font);
  font-weight: var(--w-bold);
  font-size: 1rem;
  color: var(--gold-mark);
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chapter-index::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold-mark);
}

.chapter-title {
  font-size: var(--section-title);
  font-weight: var(--w-light);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink-black);
}

.chapter-note {
  font-size: var(--footnote);
  color: var(--muted-brown);
}

/* ---------- Cards ---------- */
.sport-card {
  background: var(--card-surface);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 2px 8px rgba(26, 22, 20, 0.04);
  transition: transform var(--ease-smooth), box-shadow var(--ease-smooth);
}

.sport-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 22, 20, 0.08);
}

.sport-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-warm);
}

.sport-card__title {
  font-family: var(--display-font);
  font-weight: var(--w-bold);
  font-size: 1.1rem;
  color: var(--ink-black);
}

.sport-card__foot {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-warm);
}

/* ---------- Data ---------- */
.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream-deep);
  color: var(--ink-black);
  font-size: var(--small-caption);
  font-family: var(--display-font);
  font-weight: var(--w-medium);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.data-chip--red {
  background: var(--red-ace);
  color: var(--white-out);
}

.data-chip--gold {
  background: transparent;
  border-color: var(--gold-mark);
  color: var(--gold-mark);
}

.data-chip--dark {
  background: var(--dark-zone);
  color: var(--cream-base);
}

.data-stat {
  font-family: var(--numeric-font);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: var(--w-bold);
  line-height: 1;
  color: var(--ink-black);
  font-variant-numeric: tabular-nums;
}

.data-stat__label {
  display: block;
  font-family: var(--display-font);
  font-size: var(--footnote);
  color: var(--muted-brown);
  letter-spacing: 0.05em;
  margin-top: var(--space-1);
}

/* ---------- Tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.tag-list__item {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background: var(--cream-deep);
  border-radius: var(--radius-pill);
  font-family: var(--display-font);
  font-size: 0.85rem;
  font-weight: var(--w-medium);
  color: var(--ink-black);
}

/* ---------- Tabs ---------- */
.tabs__list {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line-warm);
  overflow-x: auto;
  padding: 0;
  margin: 0 0 var(--space-4);
  list-style: none;
}

.tabs__btn {
  font-family: var(--display-font);
  font-weight: var(--w-bold);
  font-size: 0.9rem;
  color: var(--muted-brown);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: none;
  background: transparent;
  min-height: 44px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--ease-quick), border-color var(--ease-quick);
}

.tabs__btn:hover {
  color: var(--ink-black);
}

.tabs__btn[aria-selected="true"] {
  color: var(--red-ace);
  border-bottom-color: var(--red-ace);
}

.tabs__panel {
  display: none;
}

.tabs__panel.is-active {
  display: block;
}

.tabs--segmented .tabs__list {
  border-bottom: none;
  background: var(--cream-deep);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  gap: 2px;
}

.tabs--segmented .tabs__btn {
  border-radius: var(--radius-pill);
  border: none;
  margin-bottom: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted-brown);
}

.tabs--segmented .tabs__btn[aria-selected="true"] {
  background: var(--ink-black);
  color: var(--white-out);
}

/* ---------- Table ---------- */
.table-sport {
  width: 100%;
  font-size: var(--footnote);
}

.table-sport th,
.table-sport td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-warm);
  vertical-align: middle;
}

.table-sport th {
  font-family: var(--display-font);
  font-weight: var(--w-bold);
  color: var(--white-out);
  background: var(--dark-zone);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.table-sport tr:nth-child(even) td {
  background: var(--cream-deep);
}

.table-sport td {
  font-family: var(--body-font);
}

.table-sport__num {
  font-family: var(--numeric-font);
  font-weight: var(--w-bold);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .table-sport {
    font-size: 0.8rem;
  }

  .table-sport th,
  .table-sport td {
    padding: 0.5rem 0.6rem;
  }
}

/* ---------- Path nodes ---------- */
.path-node {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  position: relative;
}

.path-node::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 60px;
  bottom: -12px;
  width: 2px;
  background: var(--line-warm);
}

.path-node:last-child::before {
  display: none;
}

.path-node__index {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-zone);
  color: var(--cream-base);
  font-family: var(--numeric-font);
  font-size: 0.85rem;
  font-weight: var(--w-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold-mark);
}

.path-node__body {
  flex: 1;
}

/* ---------- Image frames ---------- */
.img-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--card-surface);
  border: 1px solid var(--line-warm);
  overflow: hidden;
  min-height: 120px;
}

.img-frame--16-9 {
  aspect-ratio: 16 / 9;
}

.img-frame--4-3 {
  aspect-ratio: 4 / 3;
}

.img-frame--1-1 {
  aspect-ratio: 1 / 1;
}

.img-frame__ph {
  font-family: var(--display-font);
  font-size: var(--small-caption);
  color: var(--muted-brown);
  letter-spacing: 0.08em;
  text-align: center;
  padding: var(--space-2);
}

/* ---------- Divider ornament ---------- */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--space-7) 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  max-width: 280px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-warm) 0 6px, transparent 6px 12px);
}

.divider-ornament__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-ace);
  box-shadow: 0 0 0 4px var(--cream-deep);
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-dist));
  transition: opacity 0.12s ease, transform 0.12s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Main content ---------- */
#main-content {
  min-height: 60vh;
  outline: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .site-head__brand-suffix,
  .cmd-nav__status {
    display: none;
  }
}

@media (max-width: 1023px) {
  .cmd-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-zone);
    border-bottom: 1px solid var(--red-ace);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: var(--space-3) var(--gutter) var(--space-4);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  .cmd-nav[data-open] {
    display: flex;
  }

  .cmd-nav__status {
    border-left: none;
    color: var(--gold-mark);
    padding: var(--space-2);
    margin-bottom: var(--space-2);
    border-bottom: 1px solid rgba(244, 239, 229, 0.12);
  }

  .cmd-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .cmd-nav__item {
    width: 100%;
  }

  .cmd-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
  }

  .cmd-nav__link[aria-current="page"] {
    background: var(--red-ace);
    color: var(--white-out);
  }

  .cmd-nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-foot__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-foot__inner {
    grid-template-columns: 1fr;
  }

  .site-foot {
    border-radius: 24px 24px 0 0;
  }

  .site-foot::before {
    border-radius: 24px 24px 0 0;
  }

  .site-foot__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 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;
  }

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