/* =====================================
   必博CN · 草原星图 Site Kit
   /assets/site.css
   ===================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html,
body {
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1A1A1A;
  background: #F4F6F9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  flex: 1 0 auto;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
  margin-top: 0;
}
blockquote {
  margin: 1.5em 0;
  padding: 12px 24px;
  border-left: 4px solid #C99A3C;
  background: rgba(201, 154, 60, 0.08);
  border-radius: 0 8px 8px 0;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
code,
pre {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 4px;
}
code {
  padding: 2px 6px;
}
pre {
  padding: 16px 20px;
  overflow-x: auto;
  background: #0B1B3A;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
}
a {
  color: #00D4FF;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #C99A3C;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}
::selection {
  background: #00D4FF;
  color: #0B1B3A;
}
:focus-visible {
  outline: 2px solid #00D4FF;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2. Design Tokens ---------- */
:root {
  --color-deep-space: #0B1B3A;
  --color-electric: #00D4FF;
  --color-grass: #3E8E5A;
  --color-gold: #C99A3C;
  --color-purple: #7B5EA7;
  --color-bg-light: #F4F6F9;
  --color-text: #1A1A1A;
  --color-text-light: #6B7280;
  --color-border: #E0E4E8;
  --color-white: #FFFFFF;

  --font-title: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Courier New', monospace;

  --header-h: 72px;
  --container-w: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. Base Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
}
h2 {
  font-size: clamp(26px, 4vw, 38px);
}
h3 {
  font-size: clamp(20px, 2.5vw, 26px);
}
h4 {
  font-size: 18px;
}
p {
  line-height: 1.8;
  margin-bottom: 1em;
}
strong {
  font-weight: 700;
  color: var(--color-text);
}
em {
  font-style: italic;
}
#main-content:focus {
  outline: none;
}
#main-content {
  scroll-margin-top: var(--header-h);
}

/* ---------- 4. Layout & Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--font-mono);
}
.text-lg {
  font-size: 18px;
}
.text-sm {
  font-size: 14px;
}
.text-gold {
  color: var(--color-gold);
}
.text-electric {
  color: var(--color-electric);
}
.text-grass {
  color: var(--color-grass);
}
.text-light {
  color: var(--color-text-light);
}
.text-center {
  text-align: center;
}
.bg-deep {
  background: var(--color-deep-space);
  color: rgba(255, 255, 255, 0.8);
}
.bg-deep h1,
.bg-deep h2,
.bg-deep h3,
.bg-deep h4,
.bg-deep h5,
.bg-deep h6 {
  color: var(--color-white);
}
.bg-deep a {
  color: var(--color-electric);
}
.bg-deep a:hover {
  color: var(--color-gold);
}
.bg-light {
  background: var(--color-bg-light);
}
.bg-white {
  background: var(--color-white);
}
.bg-grid {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-gradient {
  background: linear-gradient(145deg, #0B1B3A, #102B52 70%, #0E2A2A);
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 5. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -56px;
  left: 16px;
  z-index: 2000;
  background: var(--color-electric);
  color: var(--color-deep-space);
  padding: 10px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: top 0.25s ease;
  white-space: nowrap;
}
.skip-link:focus {
  top: 12px;
  color: var(--color-deep-space);
}

/* ---------- 6. Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-h) + 24px);
  background: linear-gradient(180deg, rgba(11, 27, 58, 0.72) 0%, rgba(11, 27, 58, 0.28) 70%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 27, 58, 0.94);
  border-bottom-color: rgba(0, 212, 255, 0.22);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled::before {
  opacity: 0;
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--color-white);
}
.brand:hover {
  color: var(--color-white);
}
.brand-mark {
  display: block;
  position: relative;
  width: 28px;
  height: 28px;
  background: var(--color-gold);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  background: var(--color-electric);
  border-radius: 50%;
}
.brand-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-white);
}
.brand-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 700;
  color: var(--color-electric);
  margin-left: 2px;
}
.brand--footer .brand-text {
  font-size: 22px;
}

/* Nav */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--color-electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover {
  color: var(--color-white);
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: -2px;
  color: var(--color-white);
}
.nav-link[aria-current="page"] {
  color: var(--color-white);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--color-gold);
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.5);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: 2px;
}
.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease, background 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 859px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(11, 27, 58, 0.98), rgba(11, 27, 58, 0.97));
    border-bottom: 1px solid rgba(0, 212, 255, 0.24);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.25s ease, visibility 0.4s;
  }
  .site-nav[data-open] {
    max-height: calc(100vh - var(--header-h));
    visibility: visible;
    opacity: 1;
    transition: max-height 0.45s ease, opacity 0.3s ease, visibility 0s;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px max(28px, env(safe-area-inset-bottom));
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-link {
    padding: 14px 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(0, 212, 255, 0.07);
    color: var(--color-white);
  }
  .nav-link[aria-current="page"] {
    color: var(--color-electric);
    background: rgba(0, 212, 255, 0.06);
  }
  .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}

/* ---------- 7. Scroll Progress ---------- */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
  background: transparent;
}
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold), var(--color-electric));
  transition: width 0.08s linear;
  will-change: width;
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--color-grass);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-electric);
  border-color: var(--color-electric);
  color: var(--color-deep-space);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--color-electric);
  border-color: var(--color-electric);
}
.btn--ghost:hover {
  background: var(--color-electric);
  color: var(--color-deep-space);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25);
}
.btn--gold {
  background: var(--color-gold);
  color: var(--color-deep-space);
}
.btn--gold:hover {
  background: var(--color-electric);
  color: var(--color-deep-space);
  border-color: var(--color-electric);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-light);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb a {
  color: var(--color-electric);
  font-weight: 500;
}
.breadcrumb a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}
.breadcrumb-sep {
  color: var(--color-gold);
  opacity: 0.7;
}
.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 700;
}
.bg-deep .breadcrumb {
  color: rgba(255, 255, 255, 0.5);
}
.bg-deep .breadcrumb a {
  color: var(--color-electric);
}
.bg-deep .breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- 10. Page Hero ---------- */
.page-hero {
  position: relative;
  background: var(--color-deep-space);
  color: rgba(255, 255, 255, 0.8);
  padding: calc(var(--header-h) + 56px) 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(201, 154, 60, 0.1));
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 30%;
  width: 240px;
  height: 240px;
  background: rgba(62, 142, 90, 0.12);
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero-title {
  color: var(--color-white);
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  max-width: 40em;
  line-height: 1.9;
}

/* ---------- 11. Shared Components ---------- */
/* Paper Panel */
.paper-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Labels */
.num-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  text-transform: uppercase;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-purple);
  padding: 4px 12px;
  border: 1px solid var(--color-purple);
  border-radius: 999px;
  background: rgba(123, 94, 167, 0.06);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--color-gold), var(--color-electric));
  opacity: 0.4;
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 60, 0.16), 0 0 0 8px rgba(201, 154, 60, 0.06);
}
.bg-deep .timeline-item::before {
  background: var(--color-electric);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.16), 0 0 0 8px rgba(0, 212, 255, 0.06);
}
.bg-deep .timeline::before {
  background: linear-gradient(180deg, var(--color-electric), var(--color-gold));
}

/* Index List */
.index-list {
  display: flex;
  flex-direction: column;
}
.index-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}
.index-item:last-child {
  border-bottom: none;
}
.index-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold);
  min-width: 2.5em;
}
.index-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}
.index-item:hover .index-title {
  color: var(--color-electric);
}
.index-date {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-light);
  white-space: nowrap;
}
.bg-deep .index-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.bg-deep .index-title {
  color: rgba(255, 255, 255, 0.85);
}
.bg-deep .index-date {
  color: rgba(255, 255, 255, 0.5);
}
.bg-deep .index-item:hover .index-title {
  color: var(--color-electric);
}

/* Image Frame */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 55%, rgba(255, 255, 255, 0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80% 25%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 75%, rgba(255, 255, 255, 0.25) 50%, transparent 51%),
    linear-gradient(145deg, #16294F 0%, var(--color-deep-space) 55%, #14372A 130%);
}
.img-frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.img-frame:hover img {
  transform: scale(1.03);
}
.img-frame--4x3 {
  aspect-ratio: 4 / 3;
}
.img-frame--1x1 {
  aspect-ratio: 1 / 1;
}
.img-frame--21x9 {
  aspect-ratio: 21 / 9;
}
.img-frame--fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.img-frame--fill::after {
  inset: 0;
  border-radius: 0;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  flex-shrink: 0;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, 0.2) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 58%, rgba(255, 255, 255, 0.18) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 18%, rgba(255, 255, 255, 0.14) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 42%, rgba(255, 255, 255, 0.2) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 28%, rgba(255, 255, 255, 0.16) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 80%, rgba(255, 255, 255, 0.1) 50%, transparent 51%),
    linear-gradient(180deg, #0D1F44 0%, var(--color-deep-space) 40%);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 0;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-electric), var(--color-purple));
  z-index: 1;
}
.footer-top {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.footer-brand {
  max-width: 360px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  margin: 20px 0 20px;
}
.footer-contact {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.5);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}
.footer-list {
  display: flex;
  flex-direction: column;
}
.footer-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-list a {
  display: block;
  padding: 9px 0;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.footer-list a:hover {
  color: var(--color-electric);
  padding-left: 8px;
}
.footer-list a:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: -2px;
}
.footer-note {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}
.footer-action {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-grass);
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.footer-action:hover {
  background: var(--color-electric);
  color: var(--color-deep-space);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.25);
}
.footer-action:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: 3px;
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
}
.footer-bottom-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}
.footer-legal a:hover {
  color: var(--color-electric);
}
.footer-legal-sep {
  color: rgba(255, 255, 255, 0.22);
  font-size: 12px;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-brand {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- 13. Reveal Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] {
  --reveal-delay: 0.08s;
}
[data-reveal-delay="2"] {
  --reveal-delay: 0.16s;
}
[data-reveal-delay="3"] {
  --reveal-delay: 0.24s;
}
[data-reveal-delay="4"] {
  --reveal-delay: 0.32s;
}

/* ---------- 14. 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;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .progress-bar {
    transition: none;
  }
  .nav-link::after,
  .footer-list a,
  .brand-mark,
  .img-frame img {
    transition: none;
  }
}
