/* =========================================================
   赢咖娱乐汇 · Shared Site CSS  /assets/site.css
   深空蓝 · 金沙 · 霓虹橙 · 赛博青
   ========================================================= */

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

html {
  background: var(--color-space);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-zone);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ---------- 2. CSS Variables ---------- */
:root {
  color-scheme: dark;
  --color-space: #0A1F44;
  --color-midnight: #122B54;
  --color-deep: #050C1A;
  --color-gold: #D4AF37;
  --color-neon: #FF6B35;
  --color-cyan: #00F0FF;
  --color-cloud: #E6E8EB;
  --color-frost: #A6B4CC;
  --color-white: #FFFFFF;
  --font-headings: 'Orbitron', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --content-width: 1280px;
  --page-gutter: clamp(20px, 4vw, 48px);
  --header-top: 12px;
  --header-height: 68px;
  --header-zone: calc(var(--header-top) + var(--header-height) + 28px);
  --radius: 18px;
  --shadow-hard: 6px 6px 0 rgba(5, 12, 26, 0.45);
  --shadow-slab: 10px 10px 0 rgba(5, 12, 26, 0.5);
  --text-hero: clamp(2.6rem, 6.5vw, 5rem);
  --text-section: clamp(1.6rem, 3.2vw, 2.6rem);
  --text-sub: clamp(1.05rem, 1.6vw, 1.35rem);
  --text-body: clamp(0.94rem, 1vw, 1.05rem);
  --text-small: 0.82rem;
}

/* ---------- 3. Base Elements ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--color-cloud);
  background-color: var(--color-space);
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  min-height: 100vh;
  padding-top: var(--header-zone);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 65%);
  top: -160px;
  right: -130px;
}

body::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent 65%);
  bottom: -200px;
  left: -180px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.25s;
}

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

a:active {
  color: var(--color-neon);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.22;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 1em;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  background: var(--color-gold);
  color: var(--color-deep);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-hard);
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

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

:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- 5. Layout & Typography ---------- */
.page-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.page-shell--narrow {
  max-width: 880px;
}

#main-content {
  scroll-margin-top: var(--header-zone);
  outline: none;
}

.page-title {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--color-white);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.page-sub {
  font-size: var(--text-sub);
  color: var(--color-frost);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 0 26px;
}

.body-text {
  font-size: var(--text-body);
  line-height: 1.95;
  color: var(--color-frost);
}

.body-text h1,
.body-text h2,
.body-text h3,
.body-text h4 {
  color: var(--color-white);
  margin: 1.6em 0 0.6em;
}

.body-text h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.body-text h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.body-text h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.body-text p {
  margin-bottom: 1.1em;
}

.body-text a {
  color: var(--color-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0, 240, 255, 0.4);
}

.body-text a:hover {
  color: var(--color-gold);
  text-decoration-color: var(--color-gold);
}

.body-text strong {
  color: var(--color-white);
  font-weight: 800;
}

.body-text ul {
  margin-bottom: 1.2em;
}

.body-text ul li {
  position: relative;
  padding-left: 1.7em;
  margin-bottom: 0.45em;
}

.body-text ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.12em;
  font-size: 0.7em;
  color: var(--color-gold);
}

.body-text ol {
  margin-bottom: 1.2em;
  counter-reset: body-ol;
}

.body-text ol li {
  position: relative;
  padding-left: 2.2em;
  margin-bottom: 0.45em;
  counter-increment: body-ol;
}

.body-text ol li::before {
  content: counter(body-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.12em;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.72em;
  color: var(--color-gold);
}

.body-text blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--color-gold);
  border-radius: 0 14px 14px 0;
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-cloud);
}

.body-text blockquote p:last-child {
  margin-bottom: 0;
}

.body-text hr {
  margin: 2.4em 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.45), transparent);
}

figure {
  margin: 1.8em 0;
}

figcaption {
  font-size: 0.8rem;
  color: var(--color-frost);
  text-align: center;
  margin-top: 10px;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

.btn--primary {
  background: var(--color-neon);
  color: var(--color-deep);
  box-shadow: 7px 7px 0 rgba(255, 107, 53, 0.22);
}

.btn--primary:hover {
  background: #ff7f4d;
  color: var(--color-deep);
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 rgba(255, 107, 53, 0.38);
}

.btn--gold {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 5px 5px 0 rgba(212, 175, 55, 0.2);
}

.btn--gold:hover {
  background: rgba(212, 175, 55, 0.14);
  color: var(--color-gold);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(212, 175, 55, 0.32);
}

.btn--ghost {
  background: rgba(10, 31, 68, 0.75);
  color: var(--color-cloud);
  border-color: rgba(230, 232, 235, 0.32);
  box-shadow: 5px 5px 0 rgba(5, 12, 26, 0.35);
}

.btn--ghost:hover {
  color: var(--color-white);
  border-color: var(--color-frost);
  transform: translate(1px, 1px);
}

/* ---------- 7. Map & Index Components ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.coordinate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-frost);
  background: rgba(5, 12, 26, 0.5);
  border: 1px solid rgba(166, 180, 204, 0.28);
  border-radius: 999px;
  padding: 7px 15px;
  white-space: nowrap;
}

.coordinate::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: none;
}

.map-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
}

.map-index__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--color-frost);
}

.map-index__item::before {
  content: '◇';
  color: var(--color-gold);
  font-size: 0.9rem;
  line-height: 1;
}

.legend {
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: rgba(5, 12, 26, 0.42);
  display: grid;
  gap: 12px;
}

.legend__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.legend__title::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--color-gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex: none;
}

.legend__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 0.85rem;
  color: var(--color-frost);
}

.legend__key {
  min-width: 4.2em;
  font-family: var(--font-headings);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--color-gold);
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  margin: 0 0 30px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  font-size: 0.8rem;
  color: var(--color-frost);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  color: rgba(212, 175, 55, 0.55);
}

.breadcrumb__link {
  color: var(--color-frost);
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumb__item[aria-current="page"] {
  color: var(--color-gold);
  font-weight: 700;
}

/* ---------- 9. Grid / Tiles / Media ---------- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
}

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

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

.tile {
  background: linear-gradient(160deg, rgba(18, 43, 84, 0.92), rgba(10, 31, 68, 0.97));
  border: 2px solid rgba(212, 175, 55, 0.32);
  border-radius: 22px 8px 22px 8px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tile:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-slab);
  border-color: rgba(212, 175, 55, 0.55);
}

.media-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px 8px 20px 8px;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(0, 240, 255, 0.05) 12px 13px),
    linear-gradient(160deg, rgba(13, 35, 72, 0.95), rgba(5, 12, 26, 0.95));
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

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

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-headings);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--color-frost);
  opacity: 0.75;
  padding: 10px 20px;
  border: 1px solid rgba(166, 180, 204, 0.24);
  border-radius: 999px;
  background: rgba(5, 12, 26, 0.45);
  text-align: center;
}

/* ---------- 10. Theme Band ---------- */
.theme-band {
  padding: clamp(56px, 8vw, 110px) var(--page-gutter);
}

.theme-band--alt {
  background: rgba(5, 12, 26, 0.38);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.theme-band__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .theme-band__split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
  }
}

/* ---------- 11. Header ---------- */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 var(--page-gutter);
  pointer-events: none;
}

.site-header__shell {
  position: relative;
  height: var(--header-height);
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 16px;
  background: linear-gradient(120deg, rgba(10, 31, 68, 0.92), rgba(18, 43, 84, 0.8));
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 999px;
  box-shadow:
    0 16px 48px rgba(5, 12, 26, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: border-color 0.3s;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--color-cloud);
  text-decoration: none;
}

.site-brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--color-gold);
  color: var(--color-deep);
  font-family: var(--font-headings);
  font-weight: 900;
  font-size: 1.85rem;
  line-height: 1;
  border-radius: 12px 12px 12px 4px;
  transform: skew(-4deg);
  box-shadow: 4px 4px 0 rgba(5, 12, 26, 0.6);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.site-brand__name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  color: var(--color-white);
  transition: color 0.25s;
}

.site-brand__tagline {
  font-size: 0.66rem;
  color: var(--color-frost);
  letter-spacing: 0.22em;
  margin-top: 3px;
  white-space: nowrap;
}

a.site-brand:hover .site-brand__name {
  color: var(--color-gold);
}

.version-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-headings);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  background: rgba(5, 12, 26, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.version-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.9);
  animation: versionPulse 2.6s ease-in-out infinite;
}

@keyframes versionPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

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

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

.site-nav__item {
  flex: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-headings);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-frost);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.site-nav__link:hover {
  color: var(--color-white);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.24);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.1);
}

.site-nav__index {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-gold);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.nav-trigger {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(5, 12, 26, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.35);
  margin-left: auto;
  transition: border-color 0.3s, background 0.3s;
}

.nav-trigger:hover {
  border-color: var(--color-gold);
}

.nav-trigger__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-trigger__line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-cloud);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-trigger--active .nav-trigger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--color-gold);
}

.nav-trigger--active .nav-trigger__line:nth-child(2) {
  opacity: 0;
}

.nav-trigger--active .nav-trigger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--color-gold);
}

@media (max-width: 1024px) {
  .nav-trigger {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-height) + 14px);
    left: 16px;
    right: 16px;
    margin: 0;
    background: linear-gradient(165deg, rgba(10, 31, 68, 0.97), rgba(5, 12, 26, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 24px 64px rgba(5, 12, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px) scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav__link {
    justify-content: flex-start;
    padding: 13px 16px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  .site-nav__index {
    min-width: 30px;
  }
}

@media (max-width: 420px) {
  .site-brand__tagline {
    display: none;
  }

  .version-tag {
    font-size: 0.6rem;
    padding: 4px 10px;
  }

  .site-header__shell {
    padding-left: 12px;
    gap: 8px;
  }

  .site-brand__mark {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(0, 240, 255, 0.07), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(212, 175, 55, 0.1), transparent 60%),
    var(--color-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.42);
  padding: clamp(56px, 7vw, 96px) 0 0;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-gold) 15%, var(--color-neon) 60%, transparent 100%);
}

.site-footer__grid {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.site-footer__brand {
  max-width: 460px;
}

.site-brand--footer {
  margin-bottom: 16px;
}

.site-brand--footer .site-brand__mark {
  width: 50px;
  height: 50px;
  font-size: 2rem;
}

.site-footer__trust {
  font-size: var(--text-small);
  line-height: 1.9;
  color: var(--color-frost);
  border-left: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 0 8px 8px 0;
  padding-left: 16px;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__title {
  font-family: var(--font-headings);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 10px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__title::after {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-frost);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
}

.site-footer__list a::before {
  content: '◆';
  font-size: 0.58rem;
  color: var(--color-gold);
  opacity: 0.7;
  transition: transform 0.25s, opacity 0.25s;
}

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

.site-footer__list a:hover::before {
  transform: translateX(2px);
  opacity: 1;
}

.site-footer__list--contact {
  gap: 14px;
}

.site-footer__contact-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-frost);
}

.site-footer__contact-label {
  flex: none;
  min-width: 2.6em;
  font-family: var(--font-headings);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 20px var(--page-gutter);
  border-top: 1px solid rgba(166, 180, 204, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.78rem;
  color: var(--color-frost);
}

.site-footer__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-footer__extra {
  text-align: right;
}

@media (max-width: 640px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__extra {
    text-align: left;
  }
}

/* ---------- 13. Floating UI ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 30px);
  bottom: clamp(16px, 2.5vw, 30px);
  z-index: 160;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(10, 31, 68, 0.88);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-family: var(--font-headings);
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(5, 12, 26, 0.55), 0 0 18px rgba(212, 175, 55, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.to-top:hover {
  background: var(--color-gold);
  color: var(--color-deep);
  transform: translateY(-3px);
}

.to-top[hidden] {
  display: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 500;
  background: linear-gradient(90deg, var(--color-gold), var(--color-neon), var(--color-cyan));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------- 14. Reveal on Scroll ---------- */
html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.85, 0.35, 1),
              transform 0.6s cubic-bezier(0.22, 0.85, 0.35, 1);
}

html[data-js] [data-reveal][data-inview="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 15. 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;
    transition-delay: 0s !important;
  }
}
