/* 拾光记录 — design tokens（字体仅用系统自带，无外链 CDN） */
:root {
  --bg: #eef2f6;
  --bg-elevated: #ffffff;
  --ink: #16181d;
  --ink-muted: #5a616c;
  --ink-faint: #8b939e;
  --line: rgba(22, 24, 29, 0.1);
  --accent: #1f4b6e;
  --accent-soft: rgba(31, 75, 110, 0.1);
  --glow: rgba(255, 255, 255, 0.85);
  --font-display: "Songti SC", "STSong", "SimSun", "Songti", serif;
  --font-body: "Songti SC", "STSong", "SimSun", "FangSong", "STFangsong", "Songti", serif;
  --font-mono: "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --max: 720px;
  --wide: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  /* 冷调笺纸：净白底 + 顶部拾光带 + 细网格 */
  background-color: var(--bg);
  background-image:
    linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(238, 242, 246, 0.92) 28%,
      #e8edf3 100%
    ),
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 20%, rgba(31, 75, 110, 0.06), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(22, 24, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 29, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.7;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--accent);
}

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

/* Layout shell */
.site {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 2.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: linear-gradient(
    105deg,
    var(--ink) 0%,
    var(--ink) 38%,
    #4a7a9b 50%,
    var(--ink) 62%,
    var(--ink) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ink-flow 7s ease-in-out infinite;
}

.brand:hover {
  color: transparent;
  opacity: 0.72;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

/* Hero — fill first viewport without clutter */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 4.2rem - 2.6rem);
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .hero-stage {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-inner {
  display: grid;
  gap: 1.35rem;
  max-width: 36rem;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.14em;
  animation: rise 0.9s var(--ease) 0.06s both;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 30rem;
  line-height: 1.7;
  animation: rise 0.9s var(--ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  padding-top: 0.35rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-elevated);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: transparent;
  padding-inline: 0.25rem;
}

.btn-ghost:hover {
  color: var(--accent);
  background: transparent;
}

.hero-aside {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  animation: rise 0.9s var(--ease) 0.28s both;
}

@media (min-width: 900px) {
  .hero-aside {
    border-top: none;
    border-left: 1px solid var(--line);
    padding: 0.25rem 0 0.25rem 2.5rem;
  }
}

.hero-aside-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.hero-aside-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.hero-aside-list li {
  border-bottom: 1px solid var(--line);
}

.hero-aside-list li:first-child {
  border-top: 1px solid var(--line);
}

.hero-aside-list a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  padding: 1rem 0;
  text-decoration: none;
  transition: padding-left 0.3s var(--ease);
}

.hero-aside-list a:hover {
  color: var(--ink);
  padding-left: 0.35rem;
}

.hero-aside-num {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.hero-aside-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.hero-aside-meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.hero-orb {
  position: absolute;
  right: -6%;
  top: 8%;
  width: min(48vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.95), transparent 52%),
    radial-gradient(circle at 65% 55%, rgba(31, 75, 110, 0.1), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  right: 4%;
  bottom: 18%;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(31, 75, 110, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: rise 1.2s var(--ease) 0.15s both;
}

@media (max-width: 899px) {
  .hero-mark {
    top: 12%;
    bottom: auto;
    right: -2%;
    opacity: 0.85;
  }
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--ink-muted);
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

/* Post list — no cards, editorial rows */
.post-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.post-item {
  border-bottom: 1px solid var(--line);
}

.post-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.45rem 0;
  text-decoration: none;
  transition: padding-left 0.35s var(--ease);
}

.post-link:hover {
  color: var(--ink);
  padding-left: 0.5rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.post-tag {
  color: var(--accent);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.post-excerpt {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.post-date {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Topics strip */
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  padding-top: 0.5rem;
}

.topic {
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.topic:hover,
.topic.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Editorial lanes — not cards */
.lane-grid {
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

@media (min-width: 800px) {
  .lane-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
  }
}

.lane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lane-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.lane-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lane-body {
  color: var(--ink-muted);
  font-size: 0.95rem;
  flex: 1;
}

.lane-links {
  list-style: none;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.lane-links li {
  margin-bottom: 0.55rem;
}

.lane-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink);
}

.lane-links a:hover {
  color: var(--accent);
}

/* Reading paths */
.path-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.path-item {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .path-item {
    grid-template-columns: 8rem 1fr;
    align-items: start;
  }
}

.path-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.path-steps {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.path-steps a {
  text-decoration: none;
  color: var(--ink);
}

.path-steps a:hover {
  color: var(--accent);
}

.path-steps .sep {
  margin: 0 0.45rem;
  color: var(--ink-faint);
}

/* Pull quote */
.pull-block {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.04em;
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.pull-cite {
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* Split note */
.split-note {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .split-note {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.split-note h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.split-note p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.split-note p + p {
  margin-top: 0.85rem;
}

/* Timeline */
.timeline {
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .timeline-item {
    grid-template-columns: 6.5rem 1fr;
  }
}

.timeline-when {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.timeline-what {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.timeline-what strong {
  color: var(--ink);
  font-weight: 500;
}

/* Section footer link */
.section-more {
  margin-top: 1.75rem;
}

.section-more a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.section-more a:hover {
  color: var(--accent);
}

.section-muted {
  padding-top: 0;
}

/* Article page */
.article-header {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.article-header .post-meta {
  margin-bottom: 1rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.prose {
  padding-bottom: 3rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 0.12em 0.35em;
}

.prose pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  background: #1a1e22;
  color: #e8ecef;
  padding: 1.25rem 1.35rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.15rem;
  margin: 1.5rem 0;
  color: var(--ink-muted);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.article-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  max-width: 45%;
}

.article-nav a:hover {
  color: var(--accent);
}

.article-nav .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  color: var(--ink-faint);
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }
}

.info-block {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.info-block dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}

.info-block dd {
  margin-bottom: 1.25rem;
  color: var(--ink-muted);
}

.info-block dd:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink-muted);
}

.beian {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.beian a {
  text-decoration: none;
  color: var(--ink-faint);
}

.beian a:hover {
  color: var(--accent);
}

/* Always-visible ICP bar for audit */
.beian-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  padding: 0.65rem 1rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background:
    linear-gradient(180deg, rgba(238, 242, 246, 0) 0%, rgba(232, 237, 243, 0.72) 38%, rgba(232, 237, 243, 0.88) 100%);
  border-top: none;
  box-shadow: inset 0 1px 0 rgba(22, 24, 29, 0.05);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
}

.beian-bar a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 400;
}

.beian-bar a:hover {
  color: var(--accent);
}

.beian-bar-sep {
  color: rgba(139, 147, 158, 0.7);
}

.beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.beian-gongan img {
  width: 16px;
  height: 17px;
  display: block;
  flex-shrink: 0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-4%, 6%) scale(1.06);
  }
}

/* Filter helper */
[data-filter-hidden="true"] {
  display: none;
}

/* —— 首页：开场 + 交互光效 —— */
.boot-veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #fff 0%, #eef2f6 55%, #e8edf3 100%);
  opacity: 0;
  transform: scale(1.02);
}

.page-home.is-booting .boot-veil {
  animation: veil-out 0.48s var(--ease) forwards;
}

@keyframes veil-out {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
}

.dust-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.page-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 26%,
    rgba(31, 75, 110, 0.06) 48%,
    transparent 70%
  );
  mix-blend-mode: soft-light;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.page-home.is-ready .page-spotlight {
  opacity: 1;
}

.scroll-progress {
  position: fixed;
  top: 20%;
  bottom: 20%;
  right: 1.1rem;
  z-index: 30;
  width: 1px;
  background: rgba(22, 24, 29, 0.08);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0.7;
  will-change: transform;
}

.page-home .hero {
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 18% 28%, rgba(120, 130, 145, 0.12), transparent 62%),
    radial-gradient(ellipse 42% 38% at 82% 22%, rgba(31, 75, 110, 0.1), transparent 64%),
    radial-gradient(ellipse 55% 45% at 50% 85%, rgba(255, 255, 255, 0.45), transparent 68%);
  filter: blur(14px);
  animation: aurora-shift 18s ease-in-out infinite alternate;
  opacity: 0;
  transition: opacity 1s var(--ease) 0.3s;
}

.page-home.is-ready .hero-aurora {
  opacity: 1;
}

@keyframes aurora-shift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

.hero-frame {
  position: absolute;
  inset: 1.25rem 1.25rem 3.5rem;
  z-index: 1;
  pointer-events: none;
}

.hero-frame span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(31, 75, 110, 0.35);
  border-style: solid;
  opacity: 0;
}

.page-home.is-ready .hero-frame span {
  animation: frame-in 0.7s var(--ease) forwards;
}

.hero-frame span:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
  animation-delay: 0.18s;
}
.hero-frame span:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
  animation-delay: 0.24s;
}
.hero-frame span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
  animation-delay: 0.3s;
}
.hero-frame span:nth-child(4) {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
  animation-delay: 0.36s;
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-home .hero-orb {
  animation: none;
  will-change: transform;
  z-index: 0;
  width: min(56vw, 520px);
  filter: blur(0.5px);
  opacity: 0.95;
}

.page-home .hero-mark {
  will-change: transform;
  color: rgba(31, 75, 110, 0.07);
  font-size: clamp(7rem, 22vw, 14rem);
}

.page-home .hero-brand {
  animation: none;
  cursor: default;
  position: relative;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  overflow: hidden;
}

.hero-brand .brand-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-brand .brand-char-inner {
  display: inline-block;
  animation: brand-in 0.55s var(--ease) calc(var(--i) * 0.04s + 0.18s) both;
  background: linear-gradient(
    105deg,
    var(--ink) 0%,
    var(--ink) 36%,
    #3d6f92 48%,
    #7a9bb0 52%,
    var(--ink) 64%,
    var(--ink) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    brand-in 0.55s var(--ease) calc(var(--i) * 0.04s + 0.18s) both,
    ink-flow 6.5s ease-in-out calc(var(--i) * 0.35s + 1s) infinite;
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ink-flow {
  0%,
  100% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}

.hero-kicker-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(31, 75, 110, 0.35);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 75, 110, 0.35);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(31, 75, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 75, 110, 0);
  }
}

.hero-clock {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  opacity: 0;
}

.page-home.is-ready .hero-clock {
  animation: rise 0.55s var(--ease) 0.35s both;
}

.btn[data-magnetic] {
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.2s var(--ease);
  will-change: transform;
}

.btn[data-magnetic] span {
  position: relative;
  z-index: 1;
}

.btn[data-magnetic]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn[data-magnetic]:hover::before {
  transform: translateX(120%);
}

.hero-ticker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  min-height: 1.4em;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  opacity: 0;
}

.page-home.is-ready .hero-ticker {
  animation: rise 0.55s var(--ease) 0.45s both;
}

.hero-ticker-prompt {
  color: var(--accent);
  opacity: 0.7;
}

.hero-ticker-caret {
  width: 0.45em;
  height: 1em;
  background: var(--accent);
  opacity: 0.55;
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.page-home .hero-aside {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s linear;
}

.hero-aside-list a {
  position: relative;
}

.hero-aside-list a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.45s var(--ease);
}

.hero-aside-list a:hover::before {
  width: 100%;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
}

.page-home.is-ready .hero-scroll {
  animation: rise 0.55s var(--ease) 0.5s both;
}

.hero-scroll i {
  width: 1px;
  height: 2rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: #fff;
  animation: scroll-beam 1.6s ease-in-out infinite;
}

@keyframes scroll-beam {
  to {
    top: 120%;
  }
}

.lane {
  position: relative;
  padding-left: 1.75rem;
  transition: transform 0.45s var(--ease);
}

.lane::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), transparent);
  transition: height 0.55s var(--ease);
  opacity: 0.55;
  pointer-events: none;
}

.lane:hover {
  transform: translateY(-3px);
}

.lane:hover::after {
  height: 100%;
}

.lane-index {
  position: relative;
  display: inline-block;
}

.lane.is-visible .lane-index::after {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  animation: pop-dot 0.5s var(--ease) calc(var(--lane-i, 0) * 0.12s + 0.2s) forwards;
  pointer-events: none;
}

@keyframes pop-dot {
  to {
    transform: translateY(-50%) scale(1);
  }
}

.post-link {
  position: relative;
}

.post-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: rgba(31, 75, 110, 0.35);
  transition: width 0.5s var(--ease);
}

.post-link:hover::after {
  width: min(12rem, 40%);
}

.page-home .pull-quote {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink) 42%, var(--accent) 55%, var(--ink) 68%, var(--ink) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .pull-block.is-visible .pull-quote {
  animation: sheen 2.8s var(--ease) 0.2s both;
}

@keyframes sheen {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

@media (max-width: 899px) {
  .page-spotlight,
  .scroll-progress,
  .hero-frame,
  .hero-scroll,
  .hero-clock {
    display: none;
  }

  .hero-ticker {
    display: none;
  }

  .page-home .hero-aside {
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .post-link {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .post-date {
    order: -1;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-orb {
    opacity: 0.5;
    width: 60vw;
  }

  .boot-veil {
    display: none;
  }

  .page-home:not(.is-ready) .hero-aurora {
    opacity: 0.7;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .dust-canvas,
  .page-spotlight,
  .hero-ticker,
  .boot-veil,
  .scroll-progress,
  .hero-aurora,
  .hero-frame,
  .hero-scroll {
    display: none !important;
  }

  .page-home .pull-quote {
    color: var(--ink);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .brand,
  .hero-brand .brand-char-inner {
    animation: none !important;
    color: var(--ink);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}
