/* ========== 01 · RESET ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, figure, blockquote, fieldset {
  margin: 0;
}

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

/* ========== 02 · TOKENS ========== */
:root {
  --ink-900: #05060A;
  --ink-800: #0B1220;
  --ink-700: #111A2E;
  --line: #1C2740;
  --paper: #F5E6C8;
  --white: #E8F4FF;
  --mist: #A9BBD4;
  --cyan: #00E5FF;
  --magenta: #FF2D95;
  --magenta-soft: #FF8FC7;
  --amber: #FFB020;
  --green: #7CFFB2;
  --red: #FF5C5C;
  --violet: #6C4BFF;

  --rail-w: 272px;
  --radius: 2px;

  --font-display: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --edge: 1px solid var(--line);
  --focus: 2px solid var(--cyan);
}

/* ========== 03 · BASE ========== */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(58rem 40rem at 82% -14%, rgba(0, 229, 255, 0.10), transparent 62%),
    radial-gradient(42rem 32rem at 8% 4%, rgba(108, 75, 255, 0.14), transparent 66%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

main { display: block; }

#main-content { scroll-margin-top: 1rem; }

::selection {
  background: var(--cyan);
  color: #04121A;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--white);
}

h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem); }

p { max-width: 38em; }

a { text-decoration-color: rgba(0, 229, 255, 0.5); }

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

/* ========== 04 · LAYOUT ========== */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(1.1rem, 4vw, 2.4rem);
  padding-right: clamp(1.1rem, 4vw, 2.4rem);
}

.section { padding-top: clamp(2.6rem, 6vw, 4.6rem); padding-bottom: clamp(2.6rem, 6vw, 4.6rem); }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

/* ========== 05 · TYPE HELPERS ========== */
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22em;
}

.lead {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
  line-height: 1.8;
  color: var(--mist);
  max-width: 36em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: clamp(1.4rem, 3vw, 2.2rem) 0;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
}

/* ========== 06 · BUTTONS & TAGS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04121A;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.22), 0 10px 26px -14px rgba(0, 229, 255, 0.95);
}

.btn--primary:hover {
  background: #7BF3FF;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.45), 0 16px 32px -16px rgba(0, 229, 255, 0.95);
}

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

.btn--ghost:hover {
  border-color: rgba(255, 45, 149, 0.65);
  background: rgba(255, 45, 149, 0.10);
  color: #fff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 26, 46, 0.7);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}

.tag--cyan { color: var(--cyan); border-color: rgba(0, 229, 255, 0.42); }
.tag--magenta { color: var(--magenta-soft); border-color: rgba(255, 45, 149, 0.45); }
.tag--amber { color: var(--amber); border-color: rgba(255, 176, 32, 0.42); }
.tag--green { color: var(--green); border-color: rgba(124, 255, 178, 0.38); }

/* ========== 07 · CARDS / PANELS / MEDIA ========== */
.card {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: var(--edge);
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.95), rgba(11, 18, 32, 0.95));
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  pointer-events: none;
}

.panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: var(--edge);
  background: var(--ink-800);
}

.media {
  position: relative;
  border: var(--edge);
  background: var(--ink-700);
  overflow: hidden;
}

.media__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-700);
  background-image:
    repeating-linear-gradient(90deg, rgba(28, 39, 64, 0.9) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(180deg, rgba(28, 39, 64, 0.9) 0 1px, transparent 1px 14px),
    radial-gradient(70% 90% at 30% 10%, rgba(0, 229, 255, 0.14), transparent 70%),
    radial-gradient(60% 80% at 90% 90%, rgba(255, 45, 149, 0.12), transparent 70%);
  overflow: hidden;
}

.media__frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__frame > figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
}

.media figcaption {
  padding: 0.65rem 0.9rem;
  border-top: var(--edge);
  background: rgba(5, 6, 10, 0.82);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.media--tall .media__frame { aspect-ratio: 3 / 4; }
.media--square .media__frame { aspect-ratio: 1 / 1; }

/* ========== 08 · BREADCRUMBS ========== */
.breadcrumbs {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(169, 187, 212, 0.85);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

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

.breadcrumbs li::after {
  content: "/";
  color: var(--line);
}

.breadcrumbs li:last-child::after { content: none; }

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

.breadcrumbs a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(0, 229, 255, 0.6);
}

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

/* ========== 09 · HEADER SHELL ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: #04121A;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -14px rgba(0, 229, 255, 0.9);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* --- mobile topbar --- */
.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem clamp(0.9rem, 3vw, 1.4rem);
  border-bottom: var(--edge);
  background: rgba(5, 6, 10, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.topbar__mark {
  width: 16px;
  height: 16px;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 0 14px rgba(0, 229, 255, 0.75);
}

.topbar__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
}

.topbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.2rem 0.45rem;
  border: var(--edge);
  background: var(--ink-800);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(124, 255, 178, 0.9);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--ink-700);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover { border-color: rgba(0, 229, 255, 0.6); }

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform 0.26s ease, opacity 0.2s ease;
}

/* --- rail (desktop) --- */
.rail {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 90;
  border-right: var(--edge);
  background: linear-gradient(180deg, #0B1220 0%, #080D18 58%, #05060A 100%);
  box-shadow: 24px 0 60px -40px rgba(0, 0, 0, 0.95);
  overflow-y: auto;
  transform: translateX(-102%);
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.rail__tape {
  display: none;
}

.rail__inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.15rem 2rem;
}

.rail-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  text-decoration: none;
}

.rail-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: var(--ink-800);
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.14);
}

.rail-brand__spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16), 0 0 14px rgba(0, 229, 255, 0.85);
  animation: dot-pulse 2.8s ease-in-out infinite;
}

.rail-brand__text { display: block; min-width: 0; }

.rail-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--white);
}

.rail-brand__sub {
  display: block;
  margin-top: 0.38rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: rgba(169, 187, 212, 0.85);
}

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 1.1rem;
  padding: 0.28rem 0.55rem;
  border: var(--edge);
  border-radius: var(--radius);
  background: rgba(17, 26, 46, 0.85);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  max-width: none;
}

.rail-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(124, 255, 178, 0.9);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.rail__rule {
  height: 1px;
  margin: 1.3rem 0;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 229, 255, 0) 62%);
  opacity: 0.75;
}

.site-nav {
  display: flex;
  flex-direction: column;
}

.site-nav__caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(169, 187, 212, 0.8);
  max-width: none;
}

.site-nav__caption::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.site-nav__list {
  display: grid;
  gap: 0.12rem;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.56rem 0.6rem 0.56rem 0.75rem;
  border-left: 2px solid transparent;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--white);
  border-left-color: rgba(0, 229, 255, 0.6);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0));
  transform: translateX(2px);
}

.site-nav__num {
  flex: 0 0 auto;
  min-width: 1.7em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  opacity: 0.78;
}

.site-nav__label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.16), rgba(0, 229, 255, 0));
}

.site-nav__link[aria-current="page"] .site-nav__num { color: var(--cyan); opacity: 1; }
.site-nav__link[aria-current="page"] .site-nav__label { font-weight: 800; }

.site-nav__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.site-nav__foot {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(169, 187, 212, 0.75);
  max-width: none;
}

.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  z-index: 3;
  background: rgba(0, 229, 255, 0.08);
}

.rail__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 68%, var(--magenta));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.12s linear;
}

/* --- scrim --- */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(3, 5, 10, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.site-header[data-open] .rail-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* --- drawer open state (mobile) --- */
.site-header[data-open] .rail { transform: translateX(0); }

.site-header[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  html.is-locked { overflow: hidden; }
  .rail { width: min(88vw, 330px); }
}

/* --- desktop rail --- */
@media (min-width: 961px) {
  body { padding-left: var(--rail-w); }

  .site-header { position: static; }

  .topbar,
  .rail-scrim { display: none; }

  .rail { transform: none; }

  .rail__tape {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 8px;
    background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 12px);
    opacity: 0.85;
    pointer-events: none;
  }

  .rail__inner { padding: 1.75rem 1.35rem 2rem; }

  .site-nav__link { padding: 0.58rem 0.5rem 0.58rem 0.75rem; }
}

/* --- back to top --- */
.to-top {
  position: fixed;
  right: clamp(0.8rem, 2vw, 1.5rem);
  bottom: clamp(0.8rem, 2vw, 1.5rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: var(--edge);
  border-radius: var(--radius);
  background: rgba(17, 26, 46, 0.94);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.2s ease;
}

.to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover { border-color: rgba(0, 229, 255, 0.7); }

.to-top__arrow {
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  transform: rotate(45deg);
}

.to-top__text { line-height: 1; }

/* ========== 10 · FOOTER ========== */
.site-footer {
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: var(--edge);
  background: linear-gradient(180deg, #080D18 0%, #05060A 58%);
  overflow: hidden;
}

.footer__beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 44%, var(--magenta) 76%, var(--amber));
  opacity: 0.85;
}

.footer__inner {
  position: relative;
  padding-top: clamp(2.4rem, 5vw, 3.8rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
}

.footer__brand { min-width: 0; }

.footer__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
  text-decoration: none;
}

.footer__mark::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.footer__tagline {
  margin-top: 1rem;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--mist);
  max-width: 20em;
}

.footer__stamp {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.28rem 0.6rem;
  background: var(--paper);
  color: #1A1206;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  transform: rotate(-2.4deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.45);
}

.footer__meta {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: rgba(169, 187, 212, 0.62);
  max-width: none;
}

.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: var(--edge);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer__col--contact .footer__title { color: var(--magenta-soft); }

.footer__list li + li { margin-top: 0.5rem; }

.footer__list a {
  display: inline-block;
  color: var(--mist);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__list a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.55rem;
  vertical-align: middle;
  background: var(--line);
  transition: background-color 0.2s ease;
}

.footer__list a:hover { color: var(--white); transform: translateX(3px); }
.footer__list a:hover::before { background: var(--magenta); }

.footer__contact li + li { margin-top: 0.85rem; }

.footer__contact li {
  display: grid;
  gap: 0.15rem;
}

.footer__k {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(169, 187, 212, 0.7);
}

.footer__v {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-word;
}

.footer__cta { margin-top: 0.6rem; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.4rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-top: 1.2rem;
  border-top: var(--edge);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(169, 187, 212, 0.85);
}

.footer__icp { max-width: none; }

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer__legal-links a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__legal-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(0, 229, 255, 0.7);
}

.footer__copy {
  margin-left: auto;
  color: rgba(169, 187, 212, 0.7);
  max-width: none;
}

.footer__ticks {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px);
  opacity: 0.6;
}

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

@media (max-width: 620px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__copy { margin-left: 0; width: 100%; }
  .footer__legal { font-size: 0.7rem; }
}

/* ========== 11 · MOTION ========== */
@keyframes dot-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1); }
}

html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.9, 0.24, 1);
  transition-delay: calc(var(--reveal-i, 0) * 45ms);
}

html[data-reveal-ready] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-toc-link][data-active] {
  color: var(--cyan);
  border-color: var(--cyan);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html[data-reveal-ready] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail { transition: none; }
  .to-top { transition: none; }
}
