/* ====================================================
   SITE KIT · 中欧视界 / KOK 体育数据视野
   文件：/assets/site.css
   对应 header / footer 外壳与共享基础组件
   ==================================================== */

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

/* ---------- Design Tokens ---------- */
:root {
  --page-bg: #0A1B32;
  --panel-bg: #102A44;
  --surface-alt: #1E3D5C;
  --gold: #C9A227;
  --gold-light: #E5C14E;
  --red: #D32F2F;
  --wine: #7B2F3B;
  --text-high: #E8E8E8;
  --text-mid: #9AA7BD;
  --border: #2E4A6E;

  --font-display: "Noto Sans SC", "PingFang SC", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --container: 1320px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --header-clearance: 96px;
}

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

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 85% -10%, rgba(30, 61, 92, 0.5), transparent 55%),
    var(--page-bg);
  background-attachment: fixed;
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  padding-top: var(--header-clearance);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-high);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
}

::selection {
  background: var(--gold);
  color: var(--page-bg);
}

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

[id] {
  scroll-margin-top: calc(var(--header-clearance) + 1rem);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--page-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-alt);
  border-radius: 999px;
  border: 2px solid var(--page-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---------- Accessibility Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 1.25rem;
  z-index: 130;
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: var(--page-bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  pointer-events: auto;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform 0.25s var(--ease);
}

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

/* ---------- Layout Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.content-wrapper {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-shell > main {
  flex: 1 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.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));
}

/* ---------- Typography Components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex: none;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.diagonal-badge {
  display: inline-block;
  padding: 0.375rem 1.125rem;
  background: var(--wine);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-high);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  clip-path: polygon(0 0, calc(100% - 0.75rem) 0, 100% 0.75rem, 100% 100%, 0 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--page-bg);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--page-bg);
}

.btn-outline {
  background: rgba(10, 27, 50, 0.5);
  color: var(--text-high);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.06);
}

.btn-red {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.btn-red:hover {
  background: #b32727;
  border-color: #b32727;
}

/* ---------- Badge & Tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(201, 162, 39, 0.07);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.tag-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

.tag-dot.is-live {
  animation: tagPulse 1.6s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-mid);
}

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

.breadcrumbs li + li::before {
  content: "·";
  margin-inline: 0.375rem;
  color: var(--border);
}

.breadcrumbs a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

/* ---------- Cards & Data ---------- */
.data-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.data-card + .data-card {
  margin-top: 1rem;
}

.data-card-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.data-card-value.is-hot {
  color: var(--red);
}

.data-card-label {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.exhibit-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.exhibit-card:hover {
  border-color: rgba(201, 162, 39, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.exhibit-card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.exhibit-card-title {
  margin-top: 0.875rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text-high);
}

.exhibit-card-desc {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.exhibit-card .btn {
  margin-top: auto;
  align-self: flex-start;
  margin-top: 1.25rem;
}

.zone-wine {
  background: linear-gradient(135deg, var(--wine) 0%, #5c2230 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.zone-indigo {
  background: linear-gradient(135deg, var(--surface-alt) 0%, var(--panel-bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.zone-deep {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Data Table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  color: var(--text-high);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid rgba(46, 74, 110, 0.5);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table .num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ---------- Table of Contents ---------- */
.toc-list {
  list-style: none;
  display: grid;
  gap: 0.375rem;
}

.toc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.5rem;
  color: var(--text-mid);
  font-size: 0.9375rem;
  text-decoration: none;
  border-left: 2px solid var(--border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc-link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gold);
}

.toc-link:hover,
.toc-link.is-current {
  color: var(--text-high);
  border-left-color: var(--gold);
}

/* ---------- Image Frames ---------- */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(30, 61, 92, 0.8), transparent 60%),
    repeating-linear-gradient(
      135deg,
      var(--panel-bg) 0px,
      var(--panel-bg) 10px,
      var(--surface-alt) 10px,
      var(--surface-alt) 11px
    );
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

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

.image-frame--16-9 img,
.image-frame--4-3 img,
.image-frame--1-1 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.figure-caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-mid);
}

.figure-caption::before {
  content: "— ";
  color: var(--gold);
}

/* ---------- Page Navigation Pager ---------- */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease);
}

.page-nav a:hover {
  color: var(--gold);
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

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

[data-reveal="left"] {
  transform: translateX(-1.5rem);
}

[data-reveal="right"] {
  transform: translateX(1.5rem);
}

[data-reveal="left"].is-revealed,
[data-reveal="right"].is-revealed {
  transform: none;
}

/* ====================================================
   Header
   ==================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem clamp(1rem, 2vw, 2rem) 0;
  pointer-events: none;
}

.nav-capsule {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  background: rgba(10, 27, 50, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(4, 12, 24, 0.5);
  pointer-events: auto;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.nav-capsule:hover {
  border-color: rgba(201, 162, 39, 0.4);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  flex: none;
}

.brand-mark-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--text-high);
  white-space: nowrap;
}

.brand-mark-kok {
  color: var(--gold);
}

.brand-dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  margin-left: 0.375rem;
  margin-bottom: 0.125rem;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18);
}

.brand-mark-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  color: var(--text-mid);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text-high);
  background: rgba(255, 255, 255, 0.045);
}

.nav-link[aria-current="page"] {
  color: var(--page-bg);
  background: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex: none;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold);
}

.nav-toggle-bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 1px;
  background: var(--text-high);
  opacity: 1;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

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

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

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

.scroll-progress {
  --scroll-progress: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.scroll-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(var(--scroll-progress));
  transform-origin: 0 50%;
  transition: transform 0.03s linear;
}

/* ====================================================
   Footer
   ==================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold) 32%,
    var(--wine) 32%,
    var(--wine) 68%,
    var(--red) 68%
  );
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2.5rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--text-high);
}

.footer-brand-kok {
  color: var(--gold);
}

.footer-tagline {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.footer-about {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.footer-trust {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(201, 162, 39, 0.07);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--gold);
}

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

.footer-heading {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.375rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.125rem 0;
  color: var(--text-mid);
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(0.25rem);
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-mid);
}

.footer-contact {
  display: grid;
  gap: 0.375rem;
  align-content: start;
}

.footer-contact-line {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-mid);
}

.footer-bottom {
  background: var(--page-bg);
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem 1.25rem;
  padding-block: 1.25rem;
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}

/* ---------- Back To Top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel-bg);
  color: var(--text-high);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(4, 12, 24, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s,
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
}

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

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

@media (max-width: 960px) {
  .nav-capsule {
    padding-left: 1rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.625rem);
    left: 0;
    right: 0;
    display: block;
    padding: 0.5rem;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 48px rgba(4, 12, 24, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0.25s;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    justify-content: flex-start;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

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

  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  :root {
    --header-clearance: 88px;
  }

  body {
    font-size: 0.9375rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 560px) {
  .brand-mark-tag {
    display: 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;
  }

  [data-reveal],
  [data-reveal="left"],
  [data-reveal="right"] {
    opacity: 1 !important;
    transform: none !important;
  }
}
