/* =========================================================
   TY — 个人主页
   纯手写 CSS，无框架、无网络字体
   ========================================================= */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --bg: #05060b;
  --bg-soft: #080b14;
  --text: #e9eefb;
  --muted: #9aa3bb;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --cyan: #5ff2ff;
  --violet: #9b7bff;
  --pink: #ff6fd8;

  --sans: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Hiragino Sans GB", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "SFMono-Regular", Menlo,
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", monospace;

  --header-h: 72px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
  --shadow-glow: 0 24px 70px -30px rgba(95, 242, 255, 0.5);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 640px at 78% -10%, rgba(155, 123, 255, 0.18), transparent 62%),
    radial-gradient(900px 620px at 8% 8%, rgba(95, 242, 255, 0.12), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(255, 111, 216, 0.1), transparent 65%),
    linear-gradient(180deg, #06070e 0%, #05060b 45%, #04050a 100%);
}

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

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

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

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

em {
  font-style: normal;
}

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

::selection {
  background: rgba(95, 242, 255, 0.28);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0b1020;
  border: 1px solid var(--line-strong);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible {
  transform: none;
}

/* ---------- 2. 背景层 ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.aurora {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
  overflow: hidden;
}

.aurora__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.aurora__blob--a {
  top: -8%;
  right: 2%;
  width: 46vw;
  height: 46vw;
  min-width: 340px;
  min-height: 340px;
  background: radial-gradient(circle at 40% 40%, rgba(155, 123, 255, 0.55), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora__blob--b {
  top: 34%;
  left: -12%;
  width: 42vw;
  height: 42vw;
  min-width: 320px;
  min-height: 320px;
  background: radial-gradient(circle at 50% 50%, rgba(95, 242, 255, 0.4), transparent 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.aurora__blob--c {
  bottom: -16%;
  right: 18%;
  width: 38vw;
  height: 38vw;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 111, 216, 0.32), transparent 70%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6%, 8%, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(9%, -7%, 0) scale(0.95); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to   { transform: translate3d(-8%, -6%, 0) scale(1.1); }
}

.grid-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 8%, transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- 3. 顶部进度与导航 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 130;
  background: rgba(255, 255, 255, 0.05);
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 12px rgba(95, 242, 255, 0.6);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled,
.header.is-open {
  background: rgba(6, 7, 14, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header__inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 clamp(18px, 4.4vw, 46px);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #05060b;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 60%, var(--pink));
  box-shadow: 0 6px 20px -8px rgba(95, 242, 255, 0.9);
}

.brand__word {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.brand__tick {
  color: var(--cyan);
  margin-left: 2px;
}

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

.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.nav__cta {
  display: none;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.header__cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.header__cta:hover {
  border-color: rgba(95, 242, 255, 0.55);
  background: rgba(95, 242, 255, 0.08);
}

.header__cta:hover svg {
  transform: translateX(3px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.header.is-open .nav-toggle__bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.header.is-open .nav-toggle__bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- 5. 通用容器与文字 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

main {
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.section__label span {
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.section__label::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 242, 255, 0.7), transparent);
}

.section__title {
  margin-top: 18px;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section__title em {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 58%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__sub {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.02rem);
}

/* ---------- 6. 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) 0 clamp(72px, 10vh, 110px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero__title {
  margin-top: clamp(16px, 2.4vw, 26px);
  font-weight: 800;
}

.hero__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  line-height: 1;
  color: #c8d4ec;
}

.hero__name::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 242, 255, 0.9), rgba(95, 242, 255, 0.08));
}

.hero__cn {
  display: block;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 800;
  background: linear-gradient(102deg, #ffffff 4%, #e9f2ff 42%, #dcd6ff 74%, #ffd9f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 34px rgba(95, 242, 255, 0.16));
}

.hero__type {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: clamp(16px, 2.2vw, 24px);
  min-height: 1.7em;
  font-family: var(--mono);
  font-size: clamp(0.88rem, 1.55vw, 1rem);
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.hero__prompt {
  color: rgba(95, 242, 255, 0.5);
}

.hero__typed {
  white-space: pre-wrap;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: -4px;
  translate: 0 0.12em;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(95, 242, 255, 0.8);
  animation: caret 1.05s steps(2, start) infinite;
}

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero__lede {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.03rem);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 30px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: clamp(24px, 3.4vw, 38px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.hero__meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero__meta-k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(154, 163, 187, 0.7);
  text-transform: uppercase;
}

.hero__meta-v {
  color: #c9d3ea;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55ffa8;
  box-shadow: 0 0 0 0 rgba(85, 255, 168, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(85, 255, 168, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(85, 255, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 255, 168, 0); }
}

/* 按钮 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease,
    background 0.3s ease, color 0.3s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  color: #eafcff;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(9, 13, 24, 0.92), rgba(9, 13, 24, 0.92)) padding-box,
    linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink)) border-box;
  box-shadow: 0 16px 40px -22px rgba(95, 242, 255, 0.85);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(95, 242, 255, 0.9), rgba(155, 123, 255, 0.85), rgba(255, 111, 216, 0.8));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn--primary:hover {
  color: #05060b;
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -20px rgba(155, 123, 255, 0.9);
}

.btn--primary:hover::after {
  opacity: 1;
}

.btn--ghost {
  color: #cfd8ee;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.btn--ghost:hover {
  border-color: rgba(95, 242, 255, 0.5);
  color: #fff;
  background: rgba(95, 242, 255, 0.07);
  transform: translateY(-2px);
}

/* 首屏右侧视觉 */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 40vw, 520px);
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 242, 255, 0.16), rgba(155, 123, 255, 0.1) 45%, transparent 72%);
  filter: blur(28px);
}

.orb {
  position: relative;
  width: clamp(224px, 28vw, 356px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  will-change: transform;
}

.orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.orb__ring--a {
  inset: 0;
  border-top-color: rgba(95, 242, 255, 0.85);
  border-right-color: rgba(95, 242, 255, 0.2);
  animation: spin 14s linear infinite;
}

.orb__ring--b {
  inset: 9%;
  border-left-color: rgba(155, 123, 255, 0.85);
  border-bottom-color: rgba(155, 123, 255, 0.15);
  animation: spin 20s linear infinite reverse;
}

.orb__ring--c {
  inset: 19%;
  border-bottom-color: rgba(255, 111, 216, 0.8);
  border-top-color: rgba(255, 111, 216, 0.12);
  animation: spin 26s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orb__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 32% 28%, rgba(95, 242, 255, 0.3), transparent 58%),
    radial-gradient(circle at 70% 76%, rgba(255, 111, 216, 0.22), transparent 62%),
    linear-gradient(160deg, rgba(16, 22, 40, 0.94), rgba(6, 8, 16, 0.96));
  box-shadow:
    inset 0 0 50px rgba(95, 242, 255, 0.16),
    0 0 70px -10px rgba(155, 123, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.orb__mono {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #eafcff, var(--cyan) 40%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.orb__scan {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 242, 255, 0.9), transparent);
  box-shadow: 0 0 14px rgba(95, 242, 255, 0.7);
  animation: scan 4.6s ease-in-out infinite;
}

@keyframes scan {
  0% { top: 16%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 84%; opacity: 0; }
}

.orb__sat {
  position: absolute;
  inset: 0;
  animation: spin 18s linear infinite;
}

.orb__sat::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 2px rgba(95, 242, 255, 0.8);
}

.orb__sat--b {
  inset: 9%;
  animation-duration: 22s;
  animation-direction: reverse;
}
.orb__sat--b::before {
  top: auto;
  bottom: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--violet);
  box-shadow: 0 0 12px 2px rgba(155, 123, 255, 0.85);
}

.orb__sat--c {
  inset: 19%;
  animation-duration: 30s;
}
.orb__sat--c::before {
  top: 50%;
  left: -3px;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 0;
  background: var(--pink);
  box-shadow: 0 0 12px 2px rgba(255, 111, 216, 0.8);
}

.chip {
  position: absolute;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 14, 26, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #b9c6e4;
  animation: float 7s ease-in-out infinite;
}

.chip--a { top: 2%; right: 4%; }
.chip--b { top: 46%; right: -6%; animation-delay: -1.6s; }
.chip--c { bottom: 14%; left: -4%; animation-delay: -3.1s; }
.chip--d { bottom: 0; right: 14%; animation-delay: -4.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 32px);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: rgba(154, 163, 187, 0.65);
  transition: color 0.3s ease;
}

.scroll-cue:hover {
  color: var(--cyan);
}

.scroll-cue__line {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(95, 242, 255, 0), rgba(95, 242, 255, 0.8), rgba(95, 242, 255, 0));
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- 7. 跑马灯 ---------- */
.marquee {
  position: relative;
  z-index: 2;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(95, 242, 255, 0.05), rgba(155, 123, 255, 0.07), rgba(255, 111, 216, 0.05));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: rgba(233, 238, 251, 0.55);
}

.marquee__track i {
  font-style: normal;
  font-size: 0.5rem;
  color: rgba(95, 242, 255, 0.75);
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 8. 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.profile {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(8, 11, 20, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.9);
  text-align: center;
}

@media (min-width: 961px) {
  .profile {
    position: sticky;
    top: calc(var(--header-h) + 26px);
  }
}

.profile__avatar {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #eafcff;
  background:
    radial-gradient(circle at 32% 26%, rgba(95, 242, 255, 0.32), transparent 60%),
    radial-gradient(circle at 72% 76%, rgba(255, 111, 216, 0.28), transparent 60%),
    #0a0f1d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 40px rgba(95, 242, 255, 0.15);
}

.profile__avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(140deg, rgba(95, 242, 255, 0.7), rgba(155, 123, 255, 0.45), rgba(255, 111, 216, 0.6)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.75;
  animation: spin 18s linear infinite;
}

.profile__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.profile__role {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.profile__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(85, 255, 168, 0.22);
  background: rgba(85, 255, 168, 0.07);
  font-size: 0.74rem;
  color: #b6f7d2;
}

.profile__facts {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.profile__facts div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  font-size: 0.79rem;
}

.profile__facts div + div {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.profile__facts dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(154, 163, 187, 0.75);
  flex: 0 0 auto;
}

.profile__facts dd {
  color: #cdd7ee;
  text-align: right;
}

.about__body p {
  color: #b6c0d8;
  font-size: clamp(0.95rem, 1.5vw, 1.02rem);
  line-height: 1.9;
}

.about__body p + p {
  margin-top: 16px;
}

.about__body p:first-child::first-letter {
  font-size: 2.6em;
  font-weight: 800;
  line-height: 0.9;
  float: left;
  margin: 0.08em 0.12em 0 0;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tags li {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.73rem;
  color: #b8c4de;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.tags li:hover {
  border-color: rgba(95, 242, 255, 0.45);
  color: #fff;
  background: rgba(95, 242, 255, 0.08);
}

.now {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(95, 242, 255, 0.6);
  background: rgba(255, 255, 255, 0.025);
}

.now__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: #cfd9f0;
  text-transform: uppercase;
}

.now__list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.now__list li {
  display: flex;
  gap: 12px;
  font-size: 0.87rem;
  line-height: 1.7;
  color: #a6b1c9;
}

.now__list li span {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(95, 242, 255, 0.75);
  padding-top: 2px;
}

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 6vw, 66px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.stat {
  padding: clamp(20px, 3vw, 30px) clamp(16px, 2.4vw, 24px);
  background: rgba(7, 9, 17, 0.78);
  transition: background 0.3s ease;
}

.stat:hover {
  background: rgba(12, 16, 30, 0.9);
}

.stat__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #eafcff, var(--cyan) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__num small {
  font-size: 0.42em;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.stat__label {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- 9. 友链 ---------- */
.section--links {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(155, 123, 255, 0.09), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 40%);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 28px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018) 46%, rgba(255, 255, 255, 0.008)),
    rgba(8, 11, 20, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(95, 242, 255, 0.06), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  border-color: rgba(95, 242, 255, 0.2);
  box-shadow: 0 24px 60px -50px rgba(95, 242, 255, 0.6);
}

.card:hover::before {
  opacity: 1;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(95, 242, 255, 0.24);
  background: linear-gradient(150deg, rgba(95, 242, 255, 0.14), rgba(155, 123, 255, 0.1));
  color: var(--cyan);
  box-shadow: inset 0 0 24px rgba(95, 242, 255, 0.12);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card:nth-child(2) .card__icon {
  border-color: rgba(155, 123, 255, 0.28);
  background: linear-gradient(150deg, rgba(155, 123, 255, 0.16), rgba(255, 111, 216, 0.1));
  color: #c3b0ff;
}

.card__badge {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #a9b4cf;
}

.card__title {
  margin-top: 22px;
  font-size: clamp(1.5rem, 2.9vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.card__title a {
  display: inline-block;
  transition: color 0.25s ease;
}

.card__title span {
  color: var(--cyan);
}

.card:nth-child(2) .card__title span {
  font-size: 0.62em;
  letter-spacing: 0.02em;
  color: #c3b0ff;
  margin-left: 4px;
}

.card__title a:hover {
  color: #fff;
}

.card__domain {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(95, 242, 255, 0.72);
  word-break: break-all;
}

.card__desc {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.82;
  color: #aab5cd;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.card__tags li {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.7rem;
  color: #9daac6;
}

.card__desc + .card__tags {
  margin-top: 16px;
}

.btn--card {
  margin-top: auto;
  width: 100%;
  color: #eafcff;
  border: 1px solid rgba(95, 242, 255, 0.3);
  background: rgba(95, 242, 255, 0.07);
}

.card:nth-child(2) .btn--card {
  border-color: rgba(155, 123, 255, 0.32);
  background: rgba(155, 123, 255, 0.08);
}

.btn--card:hover {
  background: linear-gradient(120deg, rgba(95, 242, 255, 0.14), rgba(155, 123, 255, 0.14));
  border-color: rgba(95, 242, 255, 0.45);
  box-shadow: 0 10px 24px -20px rgba(95, 242, 255, 0.7);
}

.links__note {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(154, 163, 187, 0.75);
}

/* ---------- 10. 页脚 ---------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(0, 0, 0, 0.25));
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding-top: 34px;
  padding-bottom: 34px;
}

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

.footer__name {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.footer__tag {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  gap: 6px;
}

.footer__nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.footer__nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.footer__meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(154, 163, 187, 0.62);
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(9, 13, 24, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #cdd8ef;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), border-color 0.3s ease,
    visibility 0.35s;
}

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

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  border-color: rgba(95, 242, 255, 0.6);
  color: #fff;
}

.to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 11. 揭示动画 ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 0.8s var(--ease) var(--d, 0ms),
    translate 0.8s var(--ease) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .chip--b { right: 0; }
  .chip--c { left: 0; }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 72px;
  }

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

  .hero__visual {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .hero__lede {
    max-width: 60ch;
  }

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

  .profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar role"
      "avatar status"
      "facts facts";
    column-gap: 18px;
    text-align: left;
    align-items: center;
    padding: 22px;
  }

  .profile__avatar {
    grid-area: avatar;
    width: 84px;
    height: 84px;
    margin: 0;
    font-size: 1.3rem;
  }

  .profile__name { grid-area: name; }
  .profile__role { grid-area: role; }
  .profile__status {
    grid-area: status;
    justify-self: start;
    margin-top: 8px;
  }

  .profile__facts {
    grid-area: facts;
    margin-top: 16px;
    padding-top: 12px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: clamp(12px, 4vw, 24px);
    right: clamp(12px, 4vw, 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: #0a0e1a;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s var(--ease), visibility 0.28s;
  }

  .header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .nav__link.is-active {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #05060b;
    background: linear-gradient(120deg, var(--cyan), var(--violet));
  }

  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

@media (min-width: 561px) and (max-width: 960px) {
  .hero__copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .hero__title {
    text-align: center;
  }

  .hero__type,
  .hero__actions,
  .hero__meta {
    justify-content: center;
  }

  .hero__lede {
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 56px;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: 150px;
    padding: 13px 18px;
    font-size: 0.9rem;
  }

  .hero__meta {
    gap: 10px 18px;
  }

  .eyebrow {
    padding: 6px 11px;
    gap: 7px;
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    white-space: nowrap;
  }

  .hero__meta li {
    width: 100%;
  }

  /* 小屏取消首字下沉，避免中文断行处拥挤 */
  .about__body p:first-child::first-letter {
    float: none;
    font-size: 1em;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: inherit;
    -webkit-text-fill-color: currentColor;
  }

  .scroll-cue {
    display: none;
  }

  .profile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "avatar"
      "name"
      "role"
      "status"
      "facts";
    text-align: center;
    justify-items: center;
    justify-content: center;
  }

  .profile__avatar {
    margin: 0 auto 10px;
  }

  .profile__status {
    justify-self: center;
  }

  .profile__facts {
    width: 100%;
    text-align: left;
  }

  .now {
    padding: 18px;
  }

  .card {
    padding: 20px;
    border-radius: 22px;
  }

  .links__note {
    text-align: left;
    line-height: 1.8;
  }

  .to-top {
    width: 42px;
    height: 42px;
  }
}

/* 超小屏 / 高缩放 */
@media (max-width: 380px) {
  .hero__cn {
    font-size: 1.9rem;
  }

  .hero__meta li {
    width: 100%;
  }
}

/* ---------- 12.1 移动端细化 ---------- */
@media (max-width: 560px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  .section {
    padding: 52px 0;
  }

  .section__head {
    margin-bottom: 26px;
  }

  .section__title {
    margin-top: 14px;
    font-size: clamp(1.7rem, 7.4vw, 2.1rem);
  }

  .section__sub {
    margin-top: 14px;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 22px);
    padding-bottom: 46px;
  }

  .hero__title {
    margin-top: 12px;
  }

  .hero__type {
    margin-top: 14px;
  }

  .hero__lede {
    margin-top: 14px;
    line-height: 1.8;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .hero__meta {
    margin-top: 20px;
    padding-top: 16px;
    gap: 9px 14px;
  }

  .profile {
    padding: 18px 16px;
  }

  .about__body p {
    font-size: 0.93rem;
    line-height: 1.82;
  }

  .tags {
    gap: 6px;
    margin-top: 20px;
  }

  .tags li {
    padding: 6px 11px;
    font-size: 0.7rem;
  }

  .now {
    margin-top: 22px;
    padding: 16px;
  }

  .now__list li {
    font-size: 0.84rem;
  }

  .stats {
    margin-top: 30px;
  }

  .stat {
    padding: 16px 14px;
  }

  .stat__num {
    font-size: 1.75rem;
  }

  .stat__label {
    margin-top: 6px;
    font-size: 0.72rem;
  }

  .cards {
    gap: 14px;
  }

  .card {
    padding: 18px;
    border-radius: 20px;
  }

  .card__title {
    margin-top: 16px;
    font-size: 1.35rem;
  }

  .card__desc {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  .card__tags li {
    padding: 4px 9px;
  }

  .btn--card {
    min-height: 48px;
  }

  .links__note {
    margin-top: 24px;
    font-size: 0.7rem;
  }

  .footer__inner {
    padding-top: 26px;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  .to-top {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ---------- 13. 动效偏好与打印 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    translate: 0 0;
  }

  .marquee__track {
    animation: none;
    transform: none;
  }
}

@media print {
  .starfield,
  .aurora,
  .grid-veil,
  .noise,
  .progress,
  .header,
  .to-top,
  .scroll-cue,
  .marquee {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}

/* ---------- 14. 404 ---------- */
.oops {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
}

.oops__inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  text-align: center;
}

.oops__code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(5rem, 24vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(104deg, #f2fbff 4%, #7df9ff 32%, #a78bfa 66%, #ff8ae0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 40px rgba(95, 242, 255, 0.22));
}

.oops__title {
  margin-top: 18px;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.oops__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.oops__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.oops__hint {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(154, 163, 187, 0.7);
}

.oops__hint a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(95, 242, 255, 0.35);
}
