:root {
  --ink: #0D0E11;
  --panel: #16181E;
  --paper: #F3EADC;
  --ember: #FF5A1F;
  --glow: #FF9A4D;
  --cyan: #19E3A8;
  --sepia: #2A1D16;
  --graphite: #4B515C;
  --mist: #A9AFB9;
  --peach: #FFD8C0;
  --line: rgba(169, 175, 185, 0.24);
  --line-strong: rgba(169, 175, 185, 0.44);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1480px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 720px at 78% -8%, rgba(255, 90, 31, 0.16), transparent 62%),
    radial-gradient(760px 540px at 8% 14%, rgba(25, 227, 168, 0.055), transparent 68%),
    linear-gradient(180deg, rgba(13, 14, 17, 0.1), rgba(13, 14, 17, 0.92));
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-lock {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.55em;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

figure,
blockquote,
dl,
dd,
address {
  margin: 0;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(169, 175, 185, 0.52);
  text-underline-offset: 0.22em;
}

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

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background: var(--ember);
  color: var(--ink);
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-180%);
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 14, 17, 0.93);
  color: var(--paper);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: rgba(243, 234, 220, 0.08);
}

.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(25, 227, 168, 0.58);
  transition: transform 0.12s linear;
  will-change: transform;
}

.command-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  max-width: var(--shell);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height 0.22s var(--ease), min-height 0.22s var(--ease);
}

.site-header[data-scrolled="true"] .command-bar {
  height: 44px;
}

.site-header[data-scrolled="true"] .brand-word {
  font-size: 1.15rem;
}

.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: font-size 0.22s var(--ease);
}

.brand-tick {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(25, 227, 168, 0.42);
}

.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 14px;
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--ember);
  color: var(--ember);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(2px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-2px) rotate(-45deg);
}

.member-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ember);
  border-radius: 0;
  background: rgba(255, 90, 31, 0.06);
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.member-cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.member-cta:hover {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--ink);
}

.member-cta:hover::after {
  transform: translateX(3px);
}

.site-nav {
  grid-column: 2;
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 115;
  padding: 12px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(22, 24, 30, 0.99), rgba(13, 14, 17, 0.99));
  box-shadow: var(--shadow);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
}

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

.nav-index {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--ember);
  transition: transform 0.22s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--paper);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-num {
  flex: 0 0 auto;
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.nav-link[aria-current="page"] .nav-num {
  color: var(--cyan);
}

.nav-text {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 920px;
}

.main-content {
  display: block;
  min-height: 50vh;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.section {
  padding-block: clamp(40px, 6vw, 96px);
}

.section--tight {
  padding-block: clamp(26px, 4vw, 56px);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.lede {
  max-width: 64ch;
  color: #d8d1c6;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
}

.prose {
  max-width: 68ch;
  color: #d7d0c5;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--paper);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.35em;
}

.answer {
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--ember);
  color: var(--paper);
}

.note {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.rule {
  margin: clamp(28px, 5vw, 56px) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.breadcrumbs {
  margin: 0 0 clamp(18px, 3vw, 32px);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumbs a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumbs a:hover {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.breadcrumb-sep {
  color: var(--graphite);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--ember {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--ink);
}

.btn--ember:hover {
  border-color: var(--peach);
  background: var(--peach);
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--paper {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--sepia);
}

.btn--paper:hover {
  border-color: var(--peach);
  background: var(--peach);
  color: var(--sepia);
}

.text-link {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.text-link:hover {
  color: var(--ember);
  border-bottom-color: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tag--cyan {
  border-color: rgba(25, 227, 168, 0.45);
  color: var(--cyan);
}

.tag--ember {
  border-color: rgba(255, 90, 31, 0.55);
  color: var(--ember);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

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

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

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

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

  .grid--rail {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

.crop-frame {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.74), rgba(13, 14, 17, 0.68));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.crop-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 16px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left top / 1px 16px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 16px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 1px 16px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 1px 16px no-repeat;
  opacity: 0.62;
}

.frame-tag {
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.panel {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.92), rgba(13, 14, 17, 0.82));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.panel--dark {
  background: var(--panel);
}

.panel--paper {
  border-color: rgba(42, 29, 22, 0.2);
  background: var(--paper);
  color: var(--sepia);
}

.panel--paper h2,
.panel--paper h3,
.panel--paper h4,
.panel--paper .panel-title {
  color: var(--sepia);
}

.panel--paper .panel-note {
  color: rgba(42, 29, 22, 0.7);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.panel-note {
  margin: 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  padding: clamp(14px, 2vw, 22px);
  background: var(--panel);
}

.stat-value {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.stat-change {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

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

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item {
  position: relative;
  padding-left: 32px;
}

.timeline-item + .timeline-item {
  margin-top: 20px;
}

.timeline-node {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 8px rgba(25, 227, 168, 0.4);
}

.timeline-body {
  color: #d6cec3;
  font-size: 15px;
  line-height: 1.7;
}

.timeline-meta {
  margin: 0 0 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.directory-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.directory-main {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.directory-aside {
  max-width: 70ch;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

@media (min-width: 720px) {
  .directory-row {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 24px;
  }
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--panel);
  background-image: radial-gradient(circle at 70% 20%, rgba(255, 154, 77, 0.12), transparent 55%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 175, 185, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 175, 185, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(25, 227, 168, 0.18);
  pointer-events: none;
}

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

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

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

.media-frame picture,
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.media-frame img {
  object-fit: cover;
  filter: saturate(0.9);
}

.media-caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.media-caption::before {
  content: "FIG";
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 216, 192, 0.18);
  background: linear-gradient(180deg, rgba(42, 29, 22, 0.98), #1c130f);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(32vw, 420px);
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(25, 227, 168, 0.3);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 72px) var(--gutter) 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

.footer-col--catalog,
.footer-col--contact,
.footer-col--legal {
  position: relative;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.footer-brand-tick {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--cyan);
}

.footer-note {
  max-width: 34rem;
  margin: 12px 0 22px;
  color: rgba(243, 234, 220, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.footer-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

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

.footer-group-title {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 216, 192, 0.16);
  color: var(--glow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 6px;
}

.footer-link {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--cyan);
  transition: transform 0.22s var(--ease);
}

.footer-link:hover {
  color: var(--paper);
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.footer-link[aria-current="page"],
.footer-legal-link[aria-current="page"] {
  color: var(--peach);
}

.footer-contact {
  display: grid;
  gap: 10px;
  color: #d9cec3;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 216, 192, 0.16);
}

.footer-contact-label {
  color: var(--glow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-contact-value {
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact-note {
  margin: 12px 0 0;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer-legal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 216, 192, 0.16);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-legal-link::after {
  content: "→";
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: transform 0.2s var(--ease);
}

.footer-legal-link:hover {
  color: var(--peach);
}

.footer-legal-link:hover::after {
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 216, 192, 0.18);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.footer-meta,
.footer-version {
  margin: 0;
}

.footer-icp {
  color: var(--peach);
}

.footer-version {
  color: var(--cyan);
}

[data-spy-link] {
  transition: color 0.18s var(--ease);
}

[data-spy-link][aria-current="location"] {
  color: var(--cyan);
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
}

.has-js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 560px) {
  .footer-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023.98px) {
  body {
    padding-bottom: 76px;
  }

  .member-cta {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    z-index: 130;
    width: auto;
    height: 44px;
    border-color: var(--ember);
    background: var(--ember);
    color: var(--ink);
    box-shadow: 0 12px 34px rgba(255, 90, 31, 0.3);
  }

  .member-cta::after {
    color: var(--ink);
  }
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    justify-self: center;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-index {
    display: flex;
    align-items: stretch;
    gap: clamp(12px, 1.7vw, 28px);
    height: 100%;
  }

  .nav-link {
    height: 100%;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
    gap: 7px;
  }

  .nav-link::after {
    right: 0;
    bottom: 13px;
    left: 0;
    height: 2px;
  }

  .nav-num {
    font-size: 10px;
  }

  .nav-toggle {
    display: none;
  }

  .member-cta {
    position: static;
    width: auto;
    height: auto;
  }

  .footer-grid {
    grid-template-columns: 1.7fr 0.9fr 0.55fr;
    gap: 36px;
  }

  .footer-col--contact,
  .footer-col--legal {
    padding-left: 28px;
    border-left: 1px solid rgba(255, 216, 192, 0.16);
  }
}

@media (min-width: 1100px) {
  .footer-catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@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;
  }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
