:root {
  color-scheme: light;
  --bg: #f7f3eb;
  --bg-deep: #efe8dc;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: rgba(255, 253, 249, 0.96);
  --surface-soft: rgba(248, 242, 234, 0.76);
  --border: rgba(22, 18, 14, 0.12);
  --border-strong: rgba(22, 18, 14, 0.22);
  --ink: #17120e;
  --text: #231c16;
  --muted: #61584f;
  --muted-strong: #3f372f;
  --release: #9b4026;
  --release-soft: rgba(155, 64, 38, 0.1);
  --shadow-soft: 0 18px 36px rgba(39, 29, 21, 0.06);
  --shadow-panel: 0 26px 54px rgba(39, 29, 21, 0.1);
  --radius-shell: 32px;
  --radius-panel: 24px;
  --radius-card: 18px;
  --max-width: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 0, 0, 0.035), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(0, 0, 0, 0.028), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.014) 0 1px, transparent 1px 34px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.009) 0 1px, transparent 1px 30px),
    linear-gradient(180deg, #fcfaf6 0%, #f7f3eb 42%, #efe8dc 100%);
  color: var(--text);
  font-family: "Segoe UI Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

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

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

img {
  max-width: 100%;
}

.page-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.page-shell::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 0, 0, 0.025) 0 0.1rem, transparent 0.14rem),
    radial-gradient(circle at 72% 16%, rgba(0, 0, 0, 0.018) 0 0.08rem, transparent 0.14rem),
    radial-gradient(circle at 58% 60%, rgba(0, 0, 0, 0.016) 0 0.08rem, transparent 0.13rem);
  background-size: 18rem 18rem, 17rem 17rem, 22rem 22rem;
  opacity: 0.38;
}

.page-shell::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(28, 22, 16, 0.03) 100%);
}

.ambient {
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  opacity: 0.16;
  pointer-events: none;
}

.ambient-left {
  top: 5rem;
  left: -4rem;
  background:
    radial-gradient(circle at 34% 38%, rgba(0, 0, 0, 0.14) 0 0.08rem, transparent 0.12rem),
    radial-gradient(circle at 48% 22%, rgba(0, 0, 0, 0.1) 0 0.06rem, transparent 0.11rem);
}

.ambient-right {
  top: 14rem;
  right: -2rem;
  background:
    radial-gradient(circle at 40% 44%, rgba(0, 0, 0, 0.12) 0 0.08rem, transparent 0.13rem),
    radial-gradient(circle at 60% 26%, rgba(0, 0, 0, 0.1) 0 0.06rem, transparent 0.11rem);
}

.topbar,
.section-grid,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1rem 1.2rem;
}

.topbar::before {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(252, 248, 241, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(39, 29, 21, 0.04);
  content: "";
  z-index: -1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brand-lockup-mark,
.site-footer-logo {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-lockup-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-mark {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-subtitle {
  color: var(--muted-strong);
  font-size: 0.96rem;
  font-weight: 700;
}

.brand-caption {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-utility {
  display: grid;
  gap: 0.6rem;
  justify-items: end;
}

.topbar-controls,
.topnav,
.language-toggle,
.hero-badge-row,
.hero-actions,
.hero-principle-strip,
.hero-frame-label-row,
.panel-header,
.chapter-tag,
.github-actions,
.github-owner-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.topnav {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.94rem;
}

.topnav-link,
.language-toggle-button,
.button {
  transition:
    transform 180ms var(--ease),
    color 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.topnav-link {
  position: relative;
  padding: 0 0 0.18rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.topnav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 2px;
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.topnav-link:hover,
.topnav-link-active {
  color: var(--ink);
}

.topnav-link:hover::after,
.topnav-link-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-toggle {
  padding: 0.22rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.92);
}

.language-toggle-button {
  min-width: 2.8rem;
  min-height: 2rem;
  padding: 0.3rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.language-toggle-button:hover {
  color: var(--ink);
}

.language-toggle-button-active {
  background: var(--ink);
  color: #fffaf3;
}

.page-main {
  display: grid;
  padding-bottom: 5rem;
}

.page-main-home {
  gap: 0.3rem;
}

.home-doodle-layer {
  position: absolute;
  inset: 6rem 0 0;
  z-index: 1;
  pointer-events: none;
}

.home-doodle {
  position: absolute;
  top: var(--doodle-top);
  left: var(--doodle-left);
  width: 6.8rem;
  height: 6.8rem;
  opacity: 0.15;
  transform: rotate(var(--doodle-rotation)) scale(var(--doodle-scale));
  animation: doodleDrift 20s ease-in-out infinite;
  animation-delay: var(--doodle-delay);
}

.home-doodle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.04) brightness(0.92);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 2rem;
  align-items: center;
  min-height: min(760px, calc(100dvh - 5.6rem));
  padding: 1.1rem 0 1rem;
}

.hero-copy {
  display: grid;
  gap: 0.9rem;
  align-content: center;
  min-width: 0;
}

.eyebrow,
.section-caption,
.hero-kicker,
.hero-chip,
.hero-frame-label,
.intro-card-label,
.panel-tag,
.chapter-tag span,
.roadmap-track,
.github-metric-card span,
.github-owner-meta span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}

.eyebrow::before {
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero-chip,
.panel-tag,
.roadmap-track {
  min-height: 1.9rem;
  padding: 0.36rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.84);
  color: var(--muted-strong);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-copy h1 {
  max-width: 8.2ch;
  font-size: clamp(3rem, 5.3vw, 5rem);
  line-height: 0.98;
}

.hero-lead,
.hero-support,
.section-heading p,
.intro-essay p,
.hero-frame-panel p,
.framework-band-copy p,
.manifesto-quote p,
.roadmap-card li,
.github-overview-card p,
.github-owner-card p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.hero-lead {
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-support {
  max-width: 29rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.18rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(23, 18, 14, 0.9);
  background: var(--ink);
  color: #fffaf3;
  box-shadow: 3px 4px 0 rgba(23, 18, 14, 0.12);
}

.button-secondary {
  background: rgba(255, 252, 247, 0.9);
  color: var(--ink);
}

.button-release {
  border-color: var(--release);
  background: var(--release);
  color: #fffaf3;
  box-shadow: 3px 4px 0 rgba(155, 64, 38, 0.16);
}

.hero-release-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  max-width: 31rem;
  padding: 0.7rem 0.82rem;
  border: 1px solid rgba(155, 64, 38, 0.2);
  border-radius: 0.9rem;
  background: var(--release-soft);
}

.hero-release-mark {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: 50%;
  background: var(--release);
  color: #fffaf3;
  font-weight: 800;
}

.hero-release-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.hero-release-copy strong,
.github-release-callout strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.hero-release-copy span,
.github-release-callout small {
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.4;
}

.hero-release-link {
  color: var(--release);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-release-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.hero-principle-pill {
  padding: 0.56rem 0.8rem;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.74);
  color: var(--muted-strong);
  font-size: 0.83rem;
}

.hero-frame-panel,
.repo-tree-card,
.panel,
.story-chapter,
.memory-ribbon-item,
.intro-note,
.continuity-thread-item,
.manifesto-line-item,
.engine-note,
.repo-module-row,
.roadmap-step-card {
  position: relative;
  display: grid;
  gap: 0.58rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(249, 243, 235, 0.94)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-frame-panel::before,
.story-chapter::before,
.memory-ribbon-item::before,
.intro-note::before,
.continuity-thread-item::before,
.manifesto-line-item::before,
.engine-note::before,
.repo-module-row::before,
.roadmap-step-card::before {
  position: absolute;
  top: 0.78rem;
  right: 0.84rem;
  width: 1.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(22, 18, 14, 0.06);
  content: "";
  transform: rotate(15deg);
}

.hero-stage-panel {
  min-height: 38rem;
  padding: 1.06rem;
  box-shadow: var(--shadow-panel);
}

.hero-memory-stage {
  position: relative;
  min-height: 33rem;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.04), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(0, 0, 0, 0.05), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(242, 234, 224, 0.95));
  box-shadow: inset 0 0 0 1px rgba(22, 18, 14, 0.08);
}

.hero-memory-stage::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(22, 18, 14, 0.018) 0 1px, transparent 1px 2rem),
    repeating-linear-gradient(90deg, rgba(22, 18, 14, 0.012) 0 1px, transparent 1px 2rem);
  content: "";
  pointer-events: none;
}

.hero-stage-aura {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  width: 12rem;
  height: 7rem;
  background:
    radial-gradient(circle at 40% 48%, rgba(0, 0, 0, 0.12), transparent 42%),
    radial-gradient(circle at 60% 40%, rgba(0, 0, 0, 0.08), transparent 52%);
  filter: blur(8px);
  opacity: 0.2;
}

.hero-stage-thread {
  position: absolute;
  top: 1.4rem;
  right: 1.2rem;
  width: 8rem;
  height: 3.6rem;
}

.hero-stage-thread span {
  position: absolute;
  border-top: 1px dashed rgba(22, 18, 14, 0.26);
  border-radius: 50%;
}

.hero-stage-thread span:nth-child(1) {
  inset: 0 auto auto 0;
  width: 8rem;
  height: 1.3rem;
  transform: rotate(-10deg);
}

.hero-stage-thread span:nth-child(2) {
  inset: 1rem auto auto 0.5rem;
  width: 6.9rem;
  height: 1rem;
  transform: rotate(8deg);
}

.hero-stage-thread span:nth-child(3) {
  inset: 2rem auto auto 1rem;
  width: 5.8rem;
  height: 0.8rem;
  transform: rotate(16deg);
}

.hero-stage-caption {
  position: absolute;
  left: 1.3rem;
  bottom: 1rem;
  max-width: 18rem;
  color: rgba(22, 18, 14, 0.82);
  font-family: "KaiTi", "STKaiti", "FangSong", "Segoe Print", cursive;
  font-size: 1.16rem;
  line-height: 1.2;
}

.hero-memory-cloud {
  position: absolute;
  inset: 0;
}

.hero-memory-photo {
  position: absolute;
  top: var(--photo-top);
  left: var(--photo-left);
  width: clamp(5.4rem, 8.3vw, 7rem);
  opacity: 0;
  transform: rotate(var(--photo-rotation)) scale(0.88);
  animation: heroPhotoDrift 36s ease-in-out infinite;
  animation-delay: var(--photo-delay);
  filter: drop-shadow(0 0.9rem 1.2rem rgba(41, 31, 21, 0.1));
}

.hero-memory-photo-frame,
.hero-memory-burn-frame {
  position: relative;
  padding: 0.48rem 0.48rem 1.12rem;
  border: 1px solid rgba(22, 18, 14, 0.14);
  border-radius: 0.98rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 235, 226, 0.96)),
    rgba(255, 251, 246, 0.94);
}

.hero-memory-photo-frame::before,
.hero-memory-burn-frame::before {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 2rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(22, 18, 14, 0.08);
  content: "";
  transform: translateX(-50%);
}

.hero-memory-photo-frame::after,
.hero-memory-burn-frame::after {
  position: absolute;
  right: 0.65rem;
  bottom: 0.42rem;
  width: 1.9rem;
  height: 0.5rem;
  border-bottom: 2px wavy rgba(22, 18, 14, 0.42);
  content: "";
  opacity: 0.45;
  transform: rotate(-8deg);
}

.hero-memory-photo img,
.hero-memory-burn-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.58rem;
  filter: grayscale(1) contrast(1.04) brightness(0.98);
}

.hero-memory-burner {
  position: absolute;
  right: 7%;
  bottom: 1.2rem;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.76rem;
}

.hero-memory-burn-card {
  width: clamp(9.8rem, 18vw, 11.6rem);
  transform: rotate(8deg);
  animation: heroBurnCard 12s ease-in-out infinite;
  filter: drop-shadow(0 1rem 1.4rem rgba(41, 31, 21, 0.14));
}

.hero-memory-burn-frame {
  overflow: hidden;
}

.hero-memory-burn-frame img {
  animation: burnImageFade 12s linear infinite;
}

.hero-memory-burn-scorch,
.hero-memory-burn-glow,
.hero-memory-burn-ash {
  position: absolute;
}

.hero-memory-burn-scorch {
  right: -8%;
  bottom: 0;
  width: 42%;
  height: 24%;
  background:
    radial-gradient(circle at 34% 46%, rgba(23, 18, 14, 0.86), rgba(23, 18, 14, 0.5) 40%, rgba(23, 18, 14, 0.08) 74%, transparent 100%),
    radial-gradient(circle at 18% 54%, rgba(255, 170, 70, 0.22), transparent 56%);
  opacity: 0;
  filter: blur(0.1rem);
  animation: scorchRise 12s linear infinite;
}

.hero-memory-burn-glow {
  right: -12%;
  bottom: 3%;
  width: 58%;
  height: 36%;
  background:
    radial-gradient(circle at 20% 52%, rgba(255, 185, 92, 0.88), rgba(255, 185, 92, 0.34) 32%, transparent 60%),
    radial-gradient(circle at 0% 52%, rgba(255, 102, 40, 0.56), transparent 42%);
  opacity: 0;
  filter: blur(0.3rem);
  animation: glowPulse 12s linear infinite;
}

.hero-memory-burn-ash {
  right: 14%;
  bottom: 24%;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(34, 28, 22, 0.42);
  opacity: 0;
}

.hero-memory-burn-ash-one {
  animation: ashRise 12s ease-out infinite;
  animation-delay: 5.15s;
}

.hero-memory-burn-ash-two {
  animation: ashRise 12s ease-out infinite;
  animation-delay: 5.55s;
}

.hero-memory-burn-ash-three {
  animation: ashRise 12s ease-out infinite;
  animation-delay: 5.95s;
}

.hero-memory-lighter {
  position: relative;
  width: 5rem;
  height: 4.8rem;
  transform: translateX(0.34rem) rotate(-5deg);
}

.hero-memory-lighter-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.04) brightness(1.02) drop-shadow(0 0.7rem 1rem rgba(41, 31, 21, 0.16));
}

.hero-memory-lighter-flame {
  position: absolute;
  top: 0.14rem;
  left: 2.28rem;
  width: 1.06rem;
  height: 1.46rem;
  transform-origin: bottom center;
  animation: flamePivot 1.5s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

.hero-memory-lighter-flame-halo,
.hero-memory-lighter-flame-outer,
.hero-memory-lighter-flame-inner,
.hero-memory-lighter-flame-core {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform-origin: center bottom;
}

.hero-memory-lighter-flame-halo {
  width: 2rem;
  height: 2.25rem;
  background: radial-gradient(circle at 50% 72%, rgba(255, 188, 96, 0.5) 0 20%, rgba(255, 145, 43, 0.32) 24% 48%, rgba(255, 94, 25, 0.1) 56%, transparent 78%);
  transform: translateX(-50%) translateY(0.08rem);
  filter: blur(0.12rem);
  animation: flameHalo 1.5s ease-in-out infinite;
}

.hero-memory-lighter-flame-outer {
  width: 1.2rem;
  height: 1.66rem;
  border-radius: 58% 52% 66% 62% / 72% 72% 34% 34%;
  background: radial-gradient(circle at 50% 80%, rgba(255, 246, 217, 0.28) 0 8%, rgba(255, 160, 58, 0.92) 42%, rgba(255, 112, 28, 0.78) 68%, rgba(255, 84, 14, 0.08) 84%, transparent 100%);
  transform: translateX(-50%) rotate(-4deg);
  animation: flameOuter 1.1s cubic-bezier(0.3, 1, 0.7, 1) infinite;
}

.hero-memory-lighter-flame-inner {
  width: 0.72rem;
  height: 1.04rem;
  border-radius: 50% 50% 62% 62% / 72% 72% 36% 36%;
  background: radial-gradient(circle at 50% 82%, rgba(255, 255, 248, 0.98) 0 14%, rgba(255, 243, 198, 0.96) 30%, rgba(255, 213, 112, 0.9) 56%, rgba(255, 151, 54, 0.12) 86%, transparent 100%);
  transform: translateX(-50%) translateY(-0.04rem);
  animation: flameInner 1.02s ease-in-out infinite;
}

.hero-memory-lighter-flame-core {
  width: 0.22rem;
  height: 0.54rem;
  border-radius: 999px 999px 60% 60%;
  background: radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.96) 0 46%, rgba(210, 236, 255, 0.56) 62%, transparent 100%);
  transform: translateX(-50%);
  animation: flameCore 0.9s ease-in-out infinite;
}

.hero-notes-section {
  padding-top: 0.5rem;
}

.hero-notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 1.15rem;
  align-items: start;
}

.hero-notes-side,
.story-chapters,
.memory-ribbon {
  display: grid;
  gap: 0.82rem;
}

.hero-story-card {
  min-height: 100%;
  align-content: start;
}

.memory-ribbon-card {
  margin-top: 0.95rem;
}

.story-chapter {
  padding-left: 1.04rem;
}

.story-chapter strong,
.memory-ribbon-copy strong,
.intro-note h3,
.framework-band-copy h3,
.continuity-thread-item strong,
.manifesto-line-item strong,
.engine-note h3,
.repo-module-row strong,
.roadmap-step-card h3,
.github-overview-card strong,
.github-owner-row strong,
.hero-note-card strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.42;
}

.story-chapter strong {
  position: relative;
  padding-left: 0.9rem;
}

.story-chapter strong::before {
  position: absolute;
  top: 0.48rem;
  left: 0;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.memory-ribbon-item {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.84rem;
}

.memory-ribbon-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.3rem;
  min-height: 2rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.9);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-block {
  position: relative;
  padding: 1.4rem 0 4.8rem;
}

.section-block::after {
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 18, 14, 0.12) 16%, rgba(22, 18, 14, 0.12) 84%, transparent);
  content: "";
}

.chapter-tag {
  justify-content: flex-start;
  margin-bottom: 1.35rem;
}

.chapter-tag strong {
  color: var(--ink);
  font-family: "KaiTi", "STKaiti", "FangSong", "Segoe Print", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.08;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1.9rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}

.section-heading p {
  margin-top: 0.76rem;
  line-height: 1.72;
}

.intro-layout,
.framework-band,
.manifesto-layout,
.engine-layout,
.repo-layout,
.github-layout {
  display: grid;
  gap: 1.4rem;
}

.intro-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.intro-essay {
  display: grid;
  gap: 1rem;
  padding: 0.25rem 0 0.25rem 1.3rem;
  border-left: 1px solid rgba(22, 18, 14, 0.14);
}

.intro-grid,
.framework-band-grid,
.manifesto-rail,
.engine-grid,
.repo-module-grid,
.roadmap-grid,
.github-metrics-grid,
.github-owner-meta,
.hero-summary-grid {
  display: grid;
  gap: 0.86rem;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.3rem;
  align-items: start;
}

.memory-doodle-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 1.4rem;
  align-items: center;
  margin: 0.3rem 0 1.55rem;
  padding: 1.2rem 0 0.8rem;
  border-top: 1px dashed rgba(22, 18, 14, 0.12);
  border-bottom: 1px dashed rgba(22, 18, 14, 0.12);
}

.memory-doodle-stage-copy {
  display: grid;
  gap: 0.72rem;
  max-width: 34rem;
}

.memory-doodle-stage-copy strong {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.memory-doodle-stage-copy p {
  line-height: 1.72;
}

.memory-doodle-cluster {
  position: relative;
  min-height: 18rem;
}

.memory-doodle-card {
  position: absolute;
  width: clamp(4.8rem, 9vw, 7rem);
  object-fit: contain;
  filter: grayscale(1) contrast(1.04) brightness(0.92);
  opacity: 0.9;
}

.memory-doodle-card-a {
  top: 0.8rem;
  left: 8%;
  transform: rotate(-12deg);
}

.memory-doodle-card-b {
  top: 3rem;
  left: 34%;
  transform: rotate(8deg);
}

.memory-doodle-card-c {
  top: 8.8rem;
  left: 12%;
  transform: rotate(-8deg);
}

.memory-doodle-card-d {
  top: 5.6rem;
  left: 54%;
  transform: rotate(10deg);
}

.memory-doodle-card-e {
  top: 1.2rem;
  left: 68%;
  transform: rotate(-6deg);
}

.framework-band {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  padding-top: 1rem;
  border-top: 1px dashed rgba(22, 18, 14, 0.14);
}

.framework-band-copy {
  display: grid;
  gap: 0.86rem;
  max-width: 28rem;
  padding-right: 0.3rem;
}

.framework-band-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

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

.hero-summary-grid p {
  padding: 0.74rem 0.82rem 0.74rem 0.98rem;
  border: 1px dashed rgba(22, 18, 14, 0.14);
  border-radius: var(--radius-card);
  background: rgba(255, 252, 247, 0.74);
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.55;
}

.manifesto-layout {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
}

.manifesto-quote {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(248, 242, 234, 0.96)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.manifesto-quote p {
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.76;
}

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

.engine-layout {
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(249, 243, 235, 0.94)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.engine-foundation,
.engine-card,
.roadmap-card,
.github-overview-card,
.github-owner-card {
  padding: 1.2rem;
}

.github-release-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 0.15rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-strong);
}

.github-release-callout > span {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.github-release-callout small {
  display: block;
}

.engine-foundation {
  display: grid;
  gap: 1rem;
}

.engine-foundation-list {
  display: grid;
  gap: 0.68rem;
}

.engine-foundation-list span,
.github-owner-meta div {
  display: grid;
  gap: 0.32rem;
  padding: 0.82rem 0.92rem;
  border: 1px dashed rgba(22, 18, 14, 0.14);
  border-radius: var(--radius-card);
  background: rgba(255, 252, 247, 0.74);
}

.engine-acronym {
  display: inline-flex;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.repo-layout {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.repo-tree-card pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(22, 18, 14, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 251, 245, 0.92);
  color: var(--ink);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.8;
}

.roadmap-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.roadmap-topline {
  justify-content: space-between;
}

.roadmap-step {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.roadmap-step-card ul {
  display: grid;
  gap: 0.66rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-step-card li {
  padding-top: 0.68rem;
  border-top: 1px dashed rgba(22, 18, 14, 0.14);
  line-height: 1.58;
}

.intro-note {
  min-height: 100%;
  padding: 1.08rem 1.06rem 1.02rem;
  border-radius: 1.4rem 1.6rem 1.2rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(249, 243, 235, 0.98)),
    var(--surface);
}

.intro-note-1 {
  transform: rotate(-1.2deg);
}

.intro-note-2 {
  transform: rotate(0.9deg) translateY(1.1rem);
}

.intro-note-3 {
  transform: rotate(-0.6deg) translateY(0.2rem);
}

.intro-note p {
  line-height: 1.62;
}

.continuity-thread-item {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.78rem;
  min-height: 11rem;
  padding: 1rem 1.02rem;
  border-radius: 1.5rem;
  background: rgba(255, 252, 247, 0.8);
}

.continuity-thread-item strong,
.continuity-thread-item p {
  grid-column: 2;
}

.continuity-thread-item p {
  line-height: 1.56;
}

.continuity-thread-item::before {
  display: none;
}

.continuity-thread-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  margin-top: 0.34rem;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(22, 18, 14, 0.06);
}

.continuity-thread-item strong,
.continuity-thread-item p {
  grid-column: 2;
}

.continuity-thread-item p {
  line-height: 1.58;
}

.continuity-thread-item-1 {
  transform: rotate(-1deg);
}

.continuity-thread-item-2 {
  transform: rotate(0.8deg) translateY(1rem);
}

.continuity-thread-item-3 {
  transform: rotate(-0.6deg) translateY(-0.2rem);
}

.continuity-thread-item-4 {
  transform: rotate(1deg) translateY(0.8rem);
}

.manifesto-line-item {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.84rem;
  padding: 1rem 1rem 1rem 0.92rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 242, 234, 0.92));
}

.manifesto-line-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  min-height: 2.7rem;
  border: 1px dashed rgba(22, 18, 14, 0.18);
  border-radius: 999px;
  color: var(--ink);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.manifesto-line-item strong,
.manifesto-line-item p {
  grid-column: 2;
}

.manifesto-line-item p {
  line-height: 1.62;
}

.manifesto-line-item-1 {
  transform: rotate(-0.8deg);
}

.manifesto-line-item-2 {
  transform: rotate(0.9deg) translateY(1rem);
}

.manifesto-line-item-3 {
  transform: rotate(-0.5deg);
}

.engine-grid {
  align-items: start;
}

.engine-note {
  min-height: 100%;
  border-radius: 1.4rem;
  padding: 1rem 1rem 1.08rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 241, 233, 0.96));
}

.engine-note h3 {
  max-width: 18ch;
}

.engine-note p {
  line-height: 1.6;
}

.engine-note-1 {
  transform: rotate(-1deg);
}

.engine-note-2 {
  transform: rotate(0.7deg) translateY(1.1rem);
}

.engine-note-3 {
  transform: rotate(-0.5deg);
}

.engine-note-4 {
  transform: rotate(0.9deg);
}

.engine-note-5 {
  transform: rotate(-0.9deg) translateY(0.8rem);
}

.repo-module-grid {
  grid-template-columns: 1fr;
}

.repo-module-row {
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.8);
}

.repo-module-row::before {
  display: none;
}

.repo-module-row strong {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

.repo-module-row p {
  line-height: 1.58;
}

.repo-module-row-1 {
  width: 90%;
}

.repo-module-row-2 {
  width: 97%;
  justify-self: end;
}

.repo-module-row-3 {
  width: 92%;
}

.repo-module-row-4 {
  width: 95%;
  justify-self: end;
}

.roadmap-step-card {
  min-height: 100%;
  padding: 1.02rem 1rem 1.08rem;
  border-radius: 1.5rem 1.25rem 1.6rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 241, 233, 0.96));
}

.roadmap-step-card::after {
  position: absolute;
  top: 50%;
  right: -0.9rem;
  width: 1.5rem;
  height: 1.5rem;
  border-top: 2px solid rgba(22, 18, 14, 0.42);
  border-right: 2px solid rgba(22, 18, 14, 0.42);
  content: "";
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.55;
}

.roadmap-step-card:last-child::after {
  display: none;
}

.roadmap-step-card-1 {
  transform: rotate(-0.8deg);
}

.roadmap-step-card-2 {
  transform: rotate(0.8deg) translateY(1rem);
}

.roadmap-step-card-3 {
  transform: rotate(-0.5deg);
}

.roadmap-step-card-4 {
  transform: rotate(0.9deg) translateY(0.5rem);
}

.github-layout {
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
}

.github-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.github-metric-card,
.github-owner-meta {
  gap: 0.72rem;
}

.github-metric-card strong,
.github-owner-meta strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.github-owner-row img {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(22, 18, 14, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 0.4rem 0 3rem;
}

.site-footer-mark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-footer-mark strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.site-footer-copy {
  display: grid;
  gap: 0.3rem;
  justify-items: end;
  text-align: right;
}

.site-footer-copy a {
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.site-footer-icp {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer-icp:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

@keyframes heroPhotoDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 1rem, 0) rotate(var(--photo-rotation)) scale(0.88);
  }

  16%,
  52% {
    opacity: 0.62;
    transform: translate3d(0.55rem, -0.3rem, 0) rotate(calc(var(--photo-rotation) + 2deg)) scale(1);
  }

  72% {
    opacity: 0.24;
    transform: translate3d(-0.45rem, -0.9rem, 0) rotate(calc(var(--photo-rotation) - 1deg)) scale(0.97);
  }

  100% {
    opacity: 0;
    transform: translate3d(0.3rem, -1.7rem, 0) rotate(calc(var(--photo-rotation) + 3deg)) scale(0.9);
  }
}

@keyframes doodleDrift {
  0%,
  100% {
    opacity: 0.08;
    transform: translate3d(0, 0.6rem, 0) rotate(var(--doodle-rotation)) scale(var(--doodle-scale));
  }

  26%,
  68% {
    opacity: 0.16;
    transform: translate3d(0.36rem, -0.16rem, 0) rotate(calc(var(--doodle-rotation) + 2deg)) scale(calc(var(--doodle-scale) * 1.02));
  }

  84% {
    opacity: 0.1;
    transform: translate3d(-0.24rem, -0.7rem, 0) rotate(calc(var(--doodle-rotation) - 2deg)) scale(var(--doodle-scale));
  }
}

@keyframes heroBurnCard {
  0%,
  14% {
    transform: translate3d(1rem, 0.5rem, 0) rotate(10deg) scale(0.9);
    opacity: 0;
  }

  22%,
  42% {
    transform: translate3d(0, 0, 0) rotate(6deg) scale(1);
    opacity: 0.96;
  }

  60% {
    transform: translate3d(-0.2rem, -0.08rem, 0) rotate(3deg) scale(0.98);
    opacity: 0.86;
  }

  76% {
    transform: translate3d(0.12rem, -0.44rem, 0) rotate(0deg) scale(0.93);
    opacity: 0.34;
  }

  100% {
    transform: translate3d(0.8rem, -0.86rem, 0) rotate(-2deg) scale(0.86);
    opacity: 0;
  }
}

@keyframes burnImageFade {
  0%,
  40% {
    filter: grayscale(1) contrast(1.04) brightness(0.98);
    opacity: 1;
  }

  58% {
    filter: grayscale(1) contrast(1.08) brightness(0.9) sepia(0.18);
  }

  80%,
  100% {
    filter: grayscale(1) contrast(0.82) brightness(1.08);
    opacity: 0.12;
  }
}

@keyframes glowPulse {
  0%,
  40% {
    opacity: 0;
  }

  52%,
  66% {
    opacity: 0.9;
  }

  82% {
    opacity: 0.18;
  }

  100% {
    opacity: 0;
  }
}

@keyframes scorchRise {
  0%,
  46% {
    opacity: 0;
    transform: scale(0.72) rotate(-8deg);
  }

  62% {
    opacity: 0.84;
    transform: scale(1) rotate(-3deg);
  }

  82% {
    opacity: 0.42;
    transform: scale(1.06) rotate(4deg);
  }

  100% {
    opacity: 0;
    transform: scale(1.08) rotate(6deg);
  }
}

@keyframes ashRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.72);
  }

  18% {
    opacity: 0.64;
  }

  100% {
    opacity: 0;
    transform: translate3d(-2.4rem, -4.4rem, 0) scale(0.14);
  }
}

@keyframes flamePivot {
  0%,
  100% {
    transform: rotate(-7deg) scaleY(0.98);
  }

  32% {
    transform: rotate(0deg) translateY(-0.03rem) scaleY(1.03);
  }

  66% {
    transform: rotate(6deg) translateY(-0.05rem) scaleY(0.95);
  }
}

@keyframes flameHalo {
  0%,
  100% {
    opacity: 0.68;
    transform: translateX(-50%) translateY(0.12rem) scale(0.92, 0.84);
  }

  42% {
    opacity: 0.94;
    transform: translateX(-50%) translateY(0.02rem) scale(1.08, 1.02);
  }
}

@keyframes flameOuter {
  0%,
  100% {
    transform: translateX(-50%) rotate(-6deg) scale(0.94, 1);
  }

  34% {
    transform: translateX(-50%) rotate(0deg) scale(1.04, 0.96);
  }

  70% {
    transform: translateX(-50%) rotate(6deg) scale(0.95, 1.05);
  }
}

@keyframes flameInner {
  0%,
  100% {
    transform: translateX(-50%) translateY(-0.03rem) scale(0.96, 1);
    opacity: 0.88;
  }

  44% {
    transform: translateX(-50%) translateY(-0.08rem) scale(1.04, 0.92);
    opacity: 1;
  }
}

@keyframes flameCore {
  0%,
  100% {
    transform: translateX(-50%) scaleY(0.84);
    opacity: 0.76;
  }

  50% {
    transform: translateX(-50%) translateY(-0.06rem) scaleY(1.18);
    opacity: 0.96;
  }
}

@media (max-width: 1180px) {
  .hero,
  .hero-notes-layout,
  .intro-layout,
  .memory-doodle-stage,
  .framework-band,
  .manifesto-layout,
  .engine-layout,
  .repo-layout,
  .github-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .manifesto-rail,
  .engine-grid,
  .repo-module-grid,
  .roadmap-flow,
  .github-metrics-grid,
  .github-owner-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .framework-band-grid,
  .repo-module-grid {
    grid-template-columns: 1fr;
  }

  .continuity-thread-item,
  .repo-module-row {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 1.8rem;
  }

  .hero-stage-panel {
    min-height: 32rem;
    min-width: 0;
  }

  .hero-memory-stage {
    min-height: 27rem;
    min-width: 0;
  }

  .hero-summary-grid,
  .intro-grid,
  .framework-band-grid,
  .manifesto-rail,
  .engine-grid,
  .repo-module-grid,
  .roadmap-flow,
  .github-metrics-grid,
  .github-owner-meta {
    grid-template-columns: 1fr;
  }

  .memory-doodle-cluster {
    min-height: 12rem;
  }

  .roadmap-step-card::after {
    display: none;
  }

  .intro-note,
  .manifesto-line-item,
  .engine-note,
  .roadmap-step-card {
    transform: none !important;
  }

  .continuity-thread-item {
    width: 100%;
    transform: none !important;
  }

  .repo-module-row {
    width: 100%;
    grid-template-columns: 1fr;
    transform: none !important;
  }

  .site-footer {
    display: grid;
    justify-content: stretch;
  }

  .site-footer-copy {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 0.95rem;
  }

  .topbar-utility {
    width: 100%;
    justify-items: start;
  }

  .topnav {
    justify-content: flex-start;
  }

  .section-grid,
  .topbar,
  .site-footer {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .section-heading h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-stage-panel {
    min-height: 27rem;
    padding: 0.9rem;
  }

  .hero-memory-stage {
    min-height: 22rem;
  }

  .hero-memory-burn-card {
    width: 8.6rem;
  }

  .hero-memory-lighter {
    width: 4.2rem;
    height: 4rem;
  }

  .hero-memory-lighter-flame {
    left: 1.92rem;
    width: 0.96rem;
    height: 1.32rem;
  }

  .button {
    width: 100%;
  }

  .hero-release-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-release-link {
    grid-column: 2;
  }

  .github-release-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions,
  .github-actions {
    display: grid;
  }

  .memory-ribbon-item {
    grid-template-columns: 1fr;
  }

  .manifesto-line-item,
  .continuity-thread-item {
    grid-template-columns: 1fr;
  }

  .manifesto-line-item strong,
  .manifesto-line-item p,
  .continuity-thread-item strong,
  .continuity-thread-item p {
    grid-column: auto;
  }
}

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

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