:root {
  --deep-black: #0B0D17;
  --space-blue: #2D5F8A;
  --space-blue-light: #3B7BB0;
  --gold: #D4AF37;
  --gold-light: #E8C96A;
  --terracotta: #C67B4E;
  --moss: #6B8F71;
  --cream: #F5F0E6;
  --neon-blue: #00E5FF;
  --gray-rock: #4A4E56;
  --gray-line: rgba(245, 240, 230, 0.12);
  --text-primary: #F5F0E6;
  --text-secondary: rgba(245, 240, 230, 0.64);
  --text-muted: rgba(245, 240, 230, 0.42);
  --bg-deep: #0B0D17;
  --bg-card: rgba(45, 95, 138, 0.08);
  --bg-card-solid: #131826;
  --border-glow: rgba(0, 229, 255, 0.18);
  --font-heading: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --content-max: 1200px;
  --header-h: 168px;
  --ease-swift: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(45, 95, 138, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(0, 229, 255, 0.06), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(45, 95, 138, 0.2), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: var(--cream);
}

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(212, 175, 55, 0.15);
  z-index: 1200;
  pointer-events: none;
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--neon-blue));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
}

/* ===== Skip link ===== */
.skip-link {
  position: fixed;
  top: -60px;
  left: 24px;
  z-index: 1500;
  background: var(--gold);
  color: var(--deep-black);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 0 0 8px 8px;
  transition: top 0.25s var(--ease-swift);
}

.skip-link:focus-visible {
  top: 0;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-line);
  background:
    linear-gradient(180deg, rgba(11, 13, 23, 0.96), rgba(11, 13, 23, 0.82)),
    linear-gradient(135deg, rgba(45, 95, 138, 0.24), transparent 40%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 10px 28px;
  border-bottom: 1px solid rgba(45, 95, 138, 0.3);
  background: linear-gradient(90deg, rgba(45, 95, 138, 0.18), rgba(11, 13, 23, 0.6) 40%, rgba(11, 13, 23, 0.4));
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-text {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-route {
  color: var(--gold);
  font-family: var(--font-data);
  font-size: 0.68rem;
  flex-shrink: 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
}

.header-main::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0.2));
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-orbit {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(212, 175, 55, 0.8);
  border-radius: 50%;
  transform: rotate(-24deg) scaleX(1.2);
}

.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-blue);
}

.brand-orbit::before {
  top: -3px;
  left: 8px;
}

.brand-orbit::after {
  bottom: 7px;
  right: -2px;
  background: var(--gold);
}

.brand-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--neon-blue), var(--space-blue) 70%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
  transform: translate(-50%, -50%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.1em;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.06);
  transition: border-color 0.3s, background 0.3s;
}

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

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-swift), opacity 0.3s, width 0.3s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  transition: color 0.3s, background 0.3s, text-shadow 0.3s;
  border-radius: 6px;
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-swift);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cream);
  background: rgba(45, 95, 138, 0.18);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a[aria-current="page"]::before {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--cream);
  background: rgba(212, 175, 55, 0.08);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  margin-top: 120px;
  background:
    linear-gradient(180deg, rgba(11, 13, 23, 0.98), rgba(19, 24, 38, 1)),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(45, 95, 138, 0.3), transparent);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--neon-blue), transparent);
  opacity: 0.6;
}

.site-footer .container {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 48px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-col-brand .brand {
  margin-bottom: 22px;
}

.footer-brand .brand-orbit {
  border-color: rgba(0, 229, 255, 0.55);
}

.footer-statement {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.9;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.14em;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0.14));
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s, padding-left 0.3s var(--ease-swift);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  padding-left: 6px;
}

.footer-contact li {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

.footer-contact a {
  color: var(--gold);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-line);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-icp a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.footer-icp a:hover,
.footer-icp a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(212, 175, 55, 0.4);
}

.footer-support {
  color: var(--text-muted);
  max-width: 480px;
}

/* ===== Page hero ===== */
.page-hero {
  position: relative;
  padding: 84px 0 48px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--gray-line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(45, 95, 138, 0.28), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

.page-label {
  font-family: var(--font-data);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.page-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.04em;
  color: var(--cream);
  max-width: 760px;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.14);
}

.page-subtitle {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 600px;
}

/* ===== Section heading with number ===== */
.section-head {
  position: relative;
  margin-bottom: 56px;
  padding-top: 40px;
}

.section-no {
  position: absolute;
  top: -30px;
  left: -12px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: clamp(5rem, 10vw, 8rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.3);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 640px;
  font-size: 0.95rem;
}

/* ===== Cards grid ===== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.info-card {
  position: relative;
  background: linear-gradient(150deg, rgba(45, 95, 138, 0.13), rgba(19, 24, 38, 0.95));
  border: 1px solid rgba(45, 95, 138, 0.25);
  border-radius: 16px;
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-swift), border-color 0.35s, box-shadow 0.35s;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.info-card:hover {
  transform: translateY(-6px) rotate(0.2deg);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 229, 255, 0.08);
}

.card-label {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.06);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.card-data {
  font-family: var(--font-data);
  display: block;
  margin-top: 16px;
}

.data-highlight {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(198, 123, 78, 0.14);
  border: 1px solid rgba(198, 123, 78, 0.3);
  color: var(--terracotta);
}

.tag-moss {
  background: rgba(107, 143, 113, 0.14);
  border-color: rgba(107, 143, 113, 0.3);
  color: var(--moss);
}

.tag-gold {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 14px 30px;
  border-radius: 8px;
  transition: transform 0.3s var(--ease-swift), box-shadow 0.3s, border-color 0.3s, background 0.3s;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8962e);
  color: var(--deep-black);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.24), 0 0 18px rgba(212, 175, 55, 0.14);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(212, 175, 55, 0.34), 0 0 32px rgba(212, 175, 55, 0.2);
}

.btn-ghost {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--neon-blue);
  background: rgba(0, 229, 255, 0.05);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--neon-blue);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
  transform: translateY(-3px);
}

/* ===== Accordion ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.accordion-item {
  background: linear-gradient(135deg, rgba(45, 95, 138, 0.09), rgba(19, 24, 38, 0.9));
  border: 1px solid rgba(45, 95, 138, 0.22);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.accordion-item.is-open {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.05);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cream);
  transition: color 0.3s;
}

.accordion-trigger:hover {
  color: var(--gold-light);
}

.accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: auto;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-swift), opacity 0.3s;
}

.accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-item.is-open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-item.is-open .accordion-icon::before {
  transform: translateY(-50%) rotate(225deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-swift);
}

.accordion-panel-inner {
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.85;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.is-open .accordion-panel-inner {
  padding-bottom: 24px;
}

/* ===== Step path ===== */
.step-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 24px;
  margin-bottom: 48px;
}

.step-path::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(45, 95, 138, 0.3), transparent);
}

.step-node {
  position: relative;
  padding: 28px 28px;
  background: linear-gradient(135deg, rgba(45, 95, 138, 0.12), rgba(19, 24, 38, 0.95));
  border: 1px solid rgba(45, 95, 138, 0.22);
  border-right: 3px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  transition: transform 0.3s var(--ease-swift), border-color 0.3s, box-shadow 0.3s;
}

.step-node::before {
  content: attr(data-step);
  position: absolute;
  left: -24px;
  top: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--deep-black);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.28);
}

.step-node:hover {
  transform: translateX(6px);
  border-color: rgba(0, 229, 255, 0.3);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ===== Decorative lines ===== */
.glow-line {
  display: block;
  height: 2px;
  width: 100%;
  max-width: 800px;
  margin: 48px auto;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), var(--neon-blue), rgba(0, 229, 255, 0.2), transparent);
  transform: skewX(-18deg);
  filter: blur(0.3px);
}

.orbit-bg {
  position: relative;
  overflow: hidden;
}

.orbit-bg::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(45, 95, 138, 0.32);
  border-radius: 50%;
  transform: rotate(-16deg) scaleX(1.4);
  pointer-events: none;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-swift), transform 0.7s var(--ease-swift);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Image container base ===== */
.img-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45, 95, 138, 0.2), rgba(19, 24, 38, 0.8));
  border: 1px solid rgba(45, 95, 138, 0.2);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-frame::after {
  content: "IMG";
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: rgba(245, 240, 230, 0.2);
}

.img-frame-gold {
  border-color: rgba(212, 175, 55, 0.28);
}

.img-frame-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), transparent 60%);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-cols {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
  }

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

@media (max-width: 860px) {
  :root {
    --header-h: auto;
  }

  .topbar {
    padding: 8px 18px;
    font-size: 0.64rem;
  }

  .topbar-route {
    display: none;
  }

  .header-main {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand-text strong {
    font-size: 1.3rem;
  }

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

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

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

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

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-line);
    margin-top: 8px;
  }

  .site-nav[data-open] {
    display: flex;
    animation: navIn 0.3s var(--ease-swift);
  }

  .site-nav a {
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 2px solid transparent;
  }

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

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

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav[data-open] {
    animation: none;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 56px 0 32px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .btn {
    width: 100%;
  }

  .step-path {
    padding-left: 16px;
  }

  .step-node::before {
    left: -16px;
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
