:root,
.knowledge-hub {
  --color-paper: oklch(97% 0.018 88);
  --color-paper-strong: oklch(93% 0.032 88);
  --color-surface: oklch(99% 0.008 88);
  --color-surface-raised: oklch(100% 0 0);
  --color-ink: oklch(22% 0.038 162);
  --color-muted: oklch(46% 0.028 160);
  --color-rule: oklch(83% 0.032 88);
  --color-rule-strong: oklch(72% 0.045 88);
  --color-green: oklch(36% 0.115 162);
  --color-green-dark: oklch(25% 0.072 162);
  --color-green-bright: oklch(57% 0.13 158);
  --color-green-soft: oklch(91% 0.06 158);
  --color-gold: oklch(72% 0.105 80);
  --color-gold-soft: oklch(92% 0.055 83);
  --color-white: oklch(99% 0.008 88);
  --color-focus: oklch(55% 0.16 153);
  --color-accent-ink: oklch(19% 0.045 162);
  --color-shadow: oklch(20% 0.04 162 / 0.16);
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-code: "SFMono-Regular", "Cascadia Code", "Noto Sans Mono CJK SC", monospace;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --text-sm: 0.78rem;
  --text-body: 1rem;
  --text-lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --text-title: clamp(2.25rem, 5vw, 4.75rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 260ms;
  --dur-slow: 620ms;
  --rule-thin: 1px;
  --rule-strong: 2px;
  --radius-sm: 0.45rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.25rem;
}

@import "tailwindcss";


/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5
 * genre: modern-minimal · macrostructure: Split Studio · theme: custom
 * nav: N10 Scroll morph · footer: Ft2 Inline close · enrichment: seven-point orbital system mark
 * audience: 全国经销商门店团队 · tone: clean premium learning center
 * contrast: pass (40–41) · slop: pass (42–49) · mobile: pass (34, 49–57)
 */
:root {
  --color-paper: #06110e;
  --color-paper-2: #0b1915;
  --color-panel: #10231d;
  --color-panel-soft: #132a23;
  --color-ink: #eff9f4;
  --color-muted: #9fb8ad;
  --color-rule: #29463b;
  --color-brand: #42e8a4;
  --color-brand-bright: #8fffd0;
  --color-brand-dark: #0d7e58;
  --color-gold: #d8b46c;
  --color-focus: #fff0a8;
  --color-black: #020806;
  --color-shadow: #00000080;
  --color-glass: #0b1915d9;
  --color-glass-light: #eff9f414;
  --color-glow: #42e8a42b;
  --color-glow-soft: #42e8a414;
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-outlier: "SFMono-Regular", "Cascadia Code", "Noto Sans Mono CJK SC", monospace;
  --space-page: clamp(1.25rem, 5vw, 4.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; scroll-behavior: smooth; }
body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  background-image:
    linear-gradient(var(--color-glow-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-glow-soft) 1px, transparent 1px);
  background-size: 64px 64px;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--color-brand); color: var(--color-black); }

.site-shell { min-width: 0; }
.site-header {
  position: fixed;
  inset: 1rem auto auto 50%;
  z-index: 30;
  width: min(43rem, calc(100% - 2rem));
  min-height: 4rem;
  padding: .5rem .6rem .5rem .7rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  background: var(--color-glass);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 1.25rem 3.5rem -2rem var(--color-shadow);
  transform: translateX(-50%);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; }
.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-family: var(--font-outlier); font-size: .7rem; letter-spacing: .1em; }
.brand small { margin-top: .25rem; color: var(--color-muted); font-size: .62rem; }
nav { display: flex; gap: 1.35rem; font-size: .75rem; }
nav a, .version, footer a { white-space: nowrap; }
nav a { color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
nav a:hover, nav a:focus-visible { color: var(--color-brand-bright); }
.version {
  justify-self: end;
  min-height: 2.75rem;
  padding-inline: 1rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--color-brand);
  color: var(--color-black);
  font-size: .72rem;
  font-weight: 800;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.version:hover { transform: translateY(-1.5px); background: var(--color-brand-bright); }
.version:active { transform: translateY(0); }

.hero {
  min-height: min(55rem, 100svh);
  padding: clamp(8.5rem, 13vw, 11rem) var(--space-page) clamp(5.5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  border-bottom: 1px solid var(--color-rule);
  background:
    radial-gradient(circle at 79% 34%, var(--color-glow), transparent 25rem),
    linear-gradient(180deg, var(--color-black), transparent 44%);
}
.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--color-brand);
  font-family: var(--font-outlier);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
}
h1, h2, h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-style: normal;
}
h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 6.6vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 700;
}
h1 span { color: var(--color-brand); }
.hero-intro {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: var(--color-muted);
  font-size: clamp(.96rem, 1.3vw, 1.12rem);
  line-height: 1.85;
}
.hero-actions { margin-top: 2.25rem; display: flex; align-items: center; gap: 1.5rem; }
.primary {
  min-height: 3.25rem;
  padding: 0 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  border: 1px solid var(--color-brand);
  background: var(--color-brand);
  color: var(--color-black);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.primary:hover { transform: translateY(-1.5px); background: var(--color-brand-bright); }
.primary:active { transform: translateY(0); }
.text-link {
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--color-muted);
  color: var(--color-muted);
  font-size: .82rem;
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.text-link:hover { color: var(--color-ink); border-color: var(--color-ink); }

.hero-console {
  position: relative;
  min-width: 0;
  padding: .85rem;
  overflow: hidden;
  border: 1px solid var(--color-rule);
  background: var(--color-glass-light);
  box-shadow: 0 2rem 6rem -3rem var(--color-brand-dark);
}
.console-status {
  min-height: 2.5rem;
  padding: 0 .25rem .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-rule);
}
.console-status > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--color-brand);
  font-size: .65rem;
}
.console-status > span:last-child::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--color-brand);
}
.system-label { font-family: var(--font-outlier); font-size: .62rem; letter-spacing: .2em; }
.rb-shiny-text { color: var(--color-muted); }
.is-ready .rb-shiny-text { animation: rb-shine 1.6s var(--ease-out) .45s 1 both; }
@keyframes rb-shine { 45% { color: var(--color-brand-bright); transform: translateX(.18rem); } }
.hero-index a {
  min-height: 3.35rem;
  padding-inline: .4rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: .6rem;
  border-bottom: 1px solid var(--color-rule);
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.hero-index a:last-child { border-bottom: 0; }
.hero-index a:hover, .hero-index a:focus-visible {
  transform: translateX(.35rem);
  background: var(--color-glow-soft);
}
.hero-index span, .hero-index small {
  color: var(--color-muted);
  font-family: var(--font-outlier);
  font-size: .6rem;
  letter-spacing: .1em;
}
.hero-index a:hover span, .hero-index a:hover small { color: var(--color-brand); }
.console-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid var(--color-brand-bright);
  opacity: 0;
  transform: translateY(-100%);
}
.console-scan { animation: console-scan 1.4s var(--ease-in-out) .55s 1 both; }
@keyframes console-scan {
  10% { opacity: .7; }
  80% { opacity: .25; }
  100% { opacity: 0; transform: translateY(42rem); }
}
.hero-reveal { opacity: 0; transform: translateY(.65rem); }
.hero-reveal {
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 75ms + 90ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

.promise {
  padding: clamp(4rem, 7vw, 6.5rem) var(--space-page);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(3rem, 7vw, 6rem);
  background: var(--color-brand);
  color: var(--color-black);
}
.promise > p { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.22; }
.promise > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
.promise span { padding: 1rem 0; border-bottom: 1px solid var(--color-brand-dark); font-size: .83rem; font-weight: 700; }

.system, .principles { padding: clamp(5.5rem, 10vw, 8rem) var(--space-page); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(3rem, 7vw, 6rem); align-items: end; }
.section-head h2, .today-side h2, .principles h2 { font-size: clamp(2.65rem, 5vw, 4.75rem); line-height: 1.06; }
.section-head > p, .today-side > p { margin: 0; color: var(--color-muted); line-height: 1.8; }
.journey {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--color-rule);
  background: var(--color-panel);
}
.journey a {
  min-height: 12rem;
  padding: 1.1rem .9rem;
  border-right: 1px solid var(--color-rule);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.journey a:last-child { border-right: 0; }
.journey span, .module-title > span { color: var(--color-gold); font-family: var(--font-outlier); font-size: .66rem; }
.journey strong { margin-top: auto; font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.8rem); }
.journey small { margin-top: .55rem; color: var(--color-muted); font-size: .56rem; letter-spacing: .1em; }
.journey a.active, .journey a:hover, .journey a:focus-visible {
  z-index: 1;
  transform: translateY(-.35rem);
  background: var(--color-brand);
  color: var(--color-black);
}
.journey a.active small, .journey a:hover small { color: var(--color-brand-dark); }

.today { display: grid; grid-template-columns: minmax(17.5rem, .42fr) minmax(0, 1fr); background: var(--color-paper-2); border-top: 1px solid var(--color-rule); }
.today-side { position: sticky; top: 5.75rem; align-self: start; padding: 5.5rem var(--space-page); }
.today-side > p { max-width: 26rem; margin-top: 1.75rem; }
.search { display: block; margin-top: 3rem; }
.search span { display: block; margin-bottom: .65rem; color: var(--color-muted); font-size: .68rem; }
.search input {
  width: 100%;
  padding: .9rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-muted);
  outline: none;
  background: transparent;
  color: var(--color-ink);
  transition: border-color var(--dur-short) var(--ease-out);
}
.search input:focus-visible { border-color: var(--color-brand); }
.module-list { min-width: 0; border-left: 1px solid var(--color-rule); }
.module { min-height: 26rem; display: grid; grid-template-columns: 13rem minmax(0, 1fr); border-bottom: 1px solid var(--color-rule); scroll-margin-top: 6rem; }
.module-title { padding: 2.75rem 1.8rem; border-right: 1px solid var(--color-rule); }
.module-title h3 { margin-top: 2.6rem; font-size: 2.5rem; }
.module-title small { display: block; margin-top: .5rem; color: var(--color-muted); font-size: .62rem; letter-spacing: .14em; }
.module-body { padding: 2.65rem clamp(1.75rem, 5vw, 4.5rem); }
.module-line { max-width: 42rem; margin: 0 0 1.75rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 2.1rem); line-height: 1.35; }
.module ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.75rem; }
.module li { counter-increment: steps; padding: .8rem 0; border-top: 1px solid var(--color-rule); font-size: .84rem; }
.module li::before { content: "0" counter(steps); margin-right: .85rem; color: var(--color-gold); font-family: var(--font-outlier); font-size: .62rem; }
.check { margin-top: 1.6rem; display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--color-muted); }
.check span { color: var(--color-brand); font-size: .7rem; font-weight: 700; }
.check p { margin: 0; font-size: .8rem; line-height: 1.7; }
.module button {
  min-height: 2.75rem;
  margin-top: 1.4rem;
  padding: 0 .85rem;
  border: 1px solid var(--color-rule);
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out), border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.module button:hover { transform: translateY(-1px); border-color: var(--color-brand); background: var(--color-glow-soft); }
.module button:active { transform: translateY(0); }
.module button[data-state="copied"] { border-color: var(--color-brand); background: var(--color-brand); color: var(--color-black); }
.empty { padding: 5rem; color: var(--color-muted); }

.principles { background: var(--color-panel); }
.principle-main {
  margin-top: 4.5rem;
  padding: 2.75rem 0;
  display: grid;
  grid-template-columns: 5.5rem minmax(16rem, .8fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  border-top: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
}
.principle-main span, .principle-pair span { color: var(--color-gold); font-family: var(--font-outlier); font-size: .7rem; }
.principle-main p, .principle-pair p { margin: 0; color: var(--color-muted); line-height: 1.7; }
.principle-pair { margin-left: 7.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principle-pair article { padding: 2.5rem 2.25rem 0 0; }
.principle-pair article + article { padding-left: 2.25rem; border-left: 1px solid var(--color-rule); }
.principle-pair h3 { margin: 1.5rem 0 1rem; font-size: 2rem; }

.foot-stmt { padding: clamp(5rem, 10vw, 9rem) var(--space-page) 3.5rem; background: var(--color-black); }
.foot-stmt-line { max-width: 25ch; margin: 0; font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.12; letter-spacing: -.035em; }
.foot-stmt-meta { margin-top: 5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 2.5rem; border-top: 1px solid var(--color-rule); }
.foot-stmt-meta p { margin: .5rem 0 0; color: var(--color-muted); font-size: .72rem; }
.foot-stmt-meta a { align-self: center; color: var(--color-brand); }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

@media (max-width: 60rem) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero, .promise, .section-head, .today { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; }
  .hero-console { max-width: 34rem; }
  .promise { gap: 2.5rem; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey a { min-height: 8.5rem; border-bottom: 1px solid var(--color-rule); }
  .today-side { position: static; }
  .module-list { border-left: 0; border-top: 1px solid var(--color-rule); }
  .principle-main { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .principle-main p { grid-column: 2; }
}

@media (max-width: 40rem) {
  .site-header { min-height: 3.5rem; inset-block-start: .75rem; }
  .brand-mark { width: 2.35rem; height: 2.35rem; font-size: 1.1rem; }
  .brand small { display: none; }
  .version { min-height: 2.4rem; padding-inline: .8rem; }
  .hero { padding-top: 7rem; gap: 3.5rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-index a { min-height: 3.2rem; }
  .promise { padding-block: 3.5rem; }
  .system, .principles { padding-block: 5.25rem; }
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey a {
    min-height: 5.25rem;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    border-right: 0;
  }
  .journey strong, .journey small { margin: 0; }
  .journey a.active, .journey a:hover, .journey a:focus-visible { transform: translateX(.25rem); }
  .today-side { padding-block: 4.5rem 4rem; }
  .module { grid-template-columns: minmax(0, 1fr); }
  .module-title {
    padding: 2rem var(--space-page);
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--color-rule);
  }
  .module-title h3, .module-title small { margin: 0; }
  .module-title h3 { font-size: 1.85rem; }
  .module-body { padding: 2.1rem var(--space-page) 3.4rem; }
  .module ol, .check, .principle-main, .principle-pair { grid-template-columns: minmax(0, 1fr); }
  .principle-main { margin-top: 3rem; gap: 1.1rem; }
  .principle-main p { grid-column: auto; }
  .principle-pair { margin-left: 0; }
  .principle-pair article + article { padding-left: 0; border-left: 0; }
  .foot-stmt-meta { align-items: flex-start; flex-direction: column; }
  .foot-stmt-meta a { align-self: flex-start; }
}

@media (hover: hover) and (pointer: fine) {
  .hero-console:hover { border-color: var(--color-brand-dark); }
}

@media (pointer: coarse) {
  .primary, .text-link, .module button, .foot-stmt-meta a { min-height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .hero-reveal { opacity: 1; transform: none; }
  .console-scan { display: none; }
}

/* Hallmark · genre: modern-minimal · macrostructure: Ecosystem Index · tone: premium growth command center
 * theme: custom warm-paper / forest-green / signal-gold · enrichment: Tier-A orbital system
 * pre-emit critique: P5 H5 E5 S5 R5 V5 · contrast: pass (40–41)
 * nav: N10 scroll morph · footer: Ft2 · mobile: 320 / 375 / 414 / 768
 */
.knowledge-hub {
  min-height: 100vh;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
}
.knowledge-hub h1,
.knowledge-hub h2,
.knowledge-hub h3 {
  color: var(--color-ink);
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}
.knowledge-hub h1,
.knowledge-hub h2,
.knowledge-hub h3,
.knowledge-hub strong,
.knowledge-hub p,
.knowledge-hub span {
  word-break: normal;
  overflow-wrap: break-word;
}
.knowledge-hub p { text-wrap: wrap; }
.hub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 5rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-xl);
  border-bottom: var(--rule-thin) solid var(--color-rule);
  background: color-mix(in oklch, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(16px);
}
.hub-brand { width: fit-content; }
.hub-brand img { width: 9rem; height: 2.6rem; object-fit: contain; object-position: left center; }
.hub-header nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.hub-header nav a {
  color: var(--color-muted);
  font-size: var(--text-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.hub-header nav a:hover { color: var(--color-green); }
.header-action {
  justify-self: end;
  padding: 0.78rem 1rem;
  border: var(--rule-thin) solid var(--color-green);
  border-radius: var(--radius-sm);
  color: var(--color-green);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.header-action:hover { transform: translateY(-1px); background: var(--color-green); color: var(--color-white); }

.hub-hero {
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 6vw, 6rem) clamp(4rem, 8vw, 8rem);
  border-bottom: var(--rule-thin) solid var(--color-rule);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--color-green-soft) 36%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in oklch, var(--color-green-soft) 36%, transparent) 1px, transparent 1px),
    var(--color-paper);
  background-size: 80px 80px;
}
.hero-branding { display: flex; align-items: center; gap: var(--space-md); color: var(--color-green); }
.hero-branding img { width: 3.6rem; height: 3.6rem; object-fit: contain; }
.hero-branding .rb-shiny-text {
  color: var(--color-green);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  animation: hub-shine 2.2s var(--ease-in-out) 1 both;
}
@keyframes hub-shine { 45% { color: var(--color-gold); } }
.hero-layout {
  margin-top: clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
}
.hero-layout h1 {
  max-width: none;
  font-size: var(--text-title);
  line-height: 1.08;
  font-weight: 700;
  text-wrap: wrap;
}
.hero-layout > div:first-child > p {
  max-width: 34rem;
  margin: var(--space-xl) 0 0;
  color: var(--color-muted);
  font-size: var(--text-lead);
  line-height: 1.8;
}
.hero-actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-md); }
.primary-action,
.secondary-action,
.preview-link,
.download-link {
  min-height: 3.1rem;
  padding: 0 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 750;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.primary-action { background: var(--color-green); color: var(--color-white); }
.secondary-action { border: var(--rule-thin) solid var(--color-rule); background: var(--color-surface); color: var(--color-green); }
.primary-action:hover,
.secondary-action:hover,
.preview-link:hover,
.download-link:hover { transform: translateY(-2px); }
.hero-proof { border: var(--rule-thin) solid var(--color-rule); background: var(--color-surface); }
.hero-proof img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.hero-proof div { padding: var(--space-lg); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-lg); }
.hero-proof strong { color: var(--color-green); font-family: var(--font-display); font-size: 1.3rem; }
.hero-proof span { color: var(--color-muted); font-size: 0.86rem; line-height: 1.7; }

.learning-path,
.module-library,
.tool-library { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6rem); }
.section-intro { max-width: 67rem; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; }
.section-intro h2 { font-size: clamp(2.4rem, 4.7vw, 4.2rem); line-height: 1.1; text-wrap: wrap; }
.section-intro p { margin: 0; color: var(--color-muted); font-size: var(--text-lead); line-height: 1.8; }
.stage-list {
  margin: var(--space-3xl) 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule-strong) solid var(--color-green);
}
.stage-list li { border-bottom: var(--rule-thin) solid var(--color-rule); }
.stage-list a {
  min-height: 7.4rem;
  padding: var(--space-lg) 0;
  display: grid;
  grid-template-columns: 4rem 8rem 13rem minmax(0, 1fr) 3.5rem;
  gap: var(--space-lg);
  align-items: center;
  transition: padding var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.stage-list a:hover { padding-inline: var(--space-lg); background: var(--color-green-soft); }
.stage-list span { color: var(--color-gold); font-family: var(--font-code); }
.stage-list small { color: var(--color-muted); }
.stage-list strong { color: var(--color-green); font-family: var(--font-display); font-size: 1.45rem; }
.stage-list p { margin: 0; color: var(--color-muted); line-height: 1.7; }
.stage-list i { color: var(--color-green); font-style: normal; font-size: var(--text-sm); text-align: right; }

.feature-resource {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  background: var(--color-green-dark);
  color: var(--color-white);
}
.feature-copy { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 6rem); }
.feature-copy h2 { max-width: none; margin-top: var(--space-lg); color: var(--color-white); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; text-wrap: wrap; }
.feature-copy > p { max-width: 42rem; margin-top: var(--space-lg); color: color-mix(in oklch, var(--color-white) 72%, transparent); font-size: var(--text-lead); line-height: 1.8; }
.resource-type { color: var(--color-gold); font-family: var(--font-code); font-size: var(--text-sm); }
.feature-copy ul { margin: var(--space-xl) 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; }
.feature-copy li { padding: 0.55rem 0.75rem; border: var(--rule-thin) solid color-mix(in oklch, var(--color-white) 20%, transparent); border-radius: 999px; font-size: var(--text-sm); }
.resource-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.resource-actions.is-compact { gap: var(--space-xs); }
.preview-link,
.download-link {
  min-height: 2.8rem;
  padding-inline: 0.9rem;
  border: var(--rule-thin) solid var(--color-green);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-green);
  cursor: pointer;
  white-space: nowrap;
}
.preview-link {
  background: var(--color-green);
  color: var(--color-white);
}
.feature-copy .preview-link { border-color: var(--color-gold); background: var(--color-gold); color: var(--color-accent-ink); }
.feature-copy .download-link { border-color: var(--color-gold); color: var(--color-gold); }
.feature-number {
  padding: clamp(3rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: var(--rule-thin) solid color-mix(in oklch, var(--color-white) 20%, transparent);
  background: color-mix(in oklch, var(--color-green) 55%, var(--color-green-dark));
}
.feature-number > span { color: var(--color-gold); font-family: var(--font-code); font-size: 5rem; }
.feature-number strong { color: var(--color-white); font-family: var(--font-display); font-size: 3.2rem; }
.feature-number small { color: color-mix(in oklch, var(--color-white) 68%, transparent); }

.module-library { background: var(--color-paper-strong); }
.section-intro.split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr); }
.module-search span { display: block; margin-bottom: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.module-search input {
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: var(--rule-thin) solid var(--color-muted);
  outline: 0;
  background: transparent;
  color: var(--color-ink);
}
.module-search input:focus { border-color: var(--color-green); }
.resource-grid {
  margin-top: var(--space-3xl);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--rule-thin) solid var(--color-rule);
  border-left: var(--rule-thin) solid var(--color-rule);
}
.rb-spotlight-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  min-height: 22rem;
  padding: var(--space-xl);
  overflow: hidden;
  border-right: var(--rule-thin) solid var(--color-rule);
  border-bottom: var(--rule-thin) solid var(--color-rule);
  background:
    radial-gradient(18rem circle at var(--spot-x) var(--spot-y), color-mix(in oklch, var(--color-green-soft) 86%, transparent), transparent 58%),
    var(--color-surface);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.rb-spotlight-card:hover { z-index: 2; transform: translateY(-4px); box-shadow: 0 1.2rem 2.5rem -1.8rem color-mix(in oklch, var(--color-green-dark) 55%, transparent); }
.rb-spotlight-card .card-index { color: var(--color-gold); font-family: var(--font-code); }
.rb-spotlight-card > small { float: right; color: var(--color-muted); }
.rb-spotlight-card h3 { margin-top: 4.5rem; font-size: 2rem; }
.rb-spotlight-card p { min-height: 5.5rem; margin: var(--space-md) 0 var(--space-lg); color: var(--color-muted); line-height: 1.75; }
.advanced-section {
  display: grid;
  grid-template-columns: minmax(17rem, 0.35fr) minmax(0, 1fr);
  background: var(--color-green);
  color: var(--color-white);
}
.advanced-rail { min-height: 31rem; padding: var(--space-2xl); display: flex; flex-direction: column; justify-content: space-between; border-right: var(--rule-thin) solid color-mix(in oklch, var(--color-white) 20%, transparent); }
.advanced-rail span { color: var(--color-gold); font-family: var(--font-code); }
.advanced-rail strong { max-width: 12ch; font-family: var(--font-display); font-size: 2.6rem; line-height: 1.25; }
.advanced-body { padding: clamp(4rem, 8vw, 7rem); }
.advanced-body h2 { max-width: none; color: var(--color-white); font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.12; text-wrap: wrap; }
.advanced-body > p { max-width: 47rem; margin-top: var(--space-lg); color: color-mix(in oklch, var(--color-white) 75%, transparent); font-size: var(--text-lead); line-height: 1.8; }
.advanced-points { margin: var(--space-xl) 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.advanced-points span { padding: 0.55rem 0.75rem; border-bottom: var(--rule-thin) solid var(--color-gold); }
.advanced-body .preview-link { border-color: var(--color-gold); background: var(--color-gold); color: var(--color-accent-ink); }
.advanced-body .download-link { border-color: var(--color-gold); color: var(--color-white); }

.tool-library { background: var(--color-surface); }
.tool-columns {
  margin-top: var(--space-3xl);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
}
.column-title { display: flex; align-items: center; gap: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: var(--rule-strong) solid var(--color-green); }
.column-title > span { color: var(--color-gold); font-family: var(--font-display); font-size: 4.5rem; }
.column-title h3 { font-size: 1.9rem; }
.column-title p { margin: 0.35rem 0 0; color: var(--color-muted); }
.file-list a {
  min-height: 6.7rem;
  padding: var(--space-lg) 0;
  display: grid;
  grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1fr) 4rem;
  gap: var(--space-md);
  align-items: center;
  border-bottom: var(--rule-thin) solid var(--color-rule);
  transition: padding var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.file-list .file-row {
  min-height: 7.4rem;
  padding: var(--space-lg) 0;
  display: grid;
  grid-template-columns: minmax(8rem, 0.5fr) minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  border-bottom: var(--rule-thin) solid var(--color-rule);
}
.file-row > strong { font-family: var(--font-display); font-size: 1.12rem; }
.file-row > span { color: var(--color-muted); font-size: 0.82rem; line-height: 1.55; }
.file-row .resource-actions { justify-content: flex-end; }
.file-row .preview-link,
.file-row .download-link { min-height: 2.55rem; padding-inline: 0.7rem; font-size: 0.72rem; }
.file-list a:hover { padding-inline: var(--space-md); color: var(--color-green); }
.file-list strong { font-family: var(--font-display); font-size: 1.12rem; }
.file-list span { color: var(--color-muted); font-size: 0.82rem; line-height: 1.55; }
.file-list i { color: var(--color-green); font-size: var(--text-sm); font-style: normal; text-align: right; }

.usage-note {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr) auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  background: var(--color-paper-strong);
  border-top: var(--rule-thin) solid var(--color-rule);
}
.usage-note h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; }
.usage-note p { margin: 0; color: var(--color-muted); font-size: var(--text-lead); line-height: 1.8; }
.usage-note a { color: var(--color-green); font-size: var(--text-sm); white-space: nowrap; }

.knowledge-hub a:focus-visible,
.knowledge-hub button:focus-visible,
.knowledge-hub input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.preview-dialog {
  position: fixed;
  inset: 0;
  width: min(94rem, calc(100% - 2rem));
  height: min(92svh, 64rem);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 2.5rem 7rem -2rem var(--color-shadow);
}
.preview-dialog::backdrop {
  background: color-mix(in oklch, var(--color-green-dark) 72%, transparent);
  backdrop-filter: blur(0.35rem);
}
.preview-toolbar {
  min-height: 4.5rem;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  border-bottom: var(--rule-thin) solid var(--color-rule);
  background: var(--color-surface);
}
.preview-toolbar > div:first-child { min-width: 0; display: grid; gap: 0.15rem; }
.preview-toolbar small { color: var(--color-gold); font-size: 0.68rem; }
.preview-toolbar strong {
  max-width: min(62vw, 52rem);
  overflow: hidden;
  color: var(--color-green-dark);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-toolbar-actions { display: flex; align-items: center; gap: var(--space-sm); }
.preview-toolbar-actions a,
.preview-toolbar-actions button {
  min-height: 2.7rem;
  padding: 0.65rem 0.85rem;
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-green);
  cursor: pointer;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.preview-toolbar-actions button { border-color: var(--color-green); background: var(--color-green); color: var(--color-white); }
.preview-dialog iframe {
  width: 100%;
  height: calc(100% - 4.5rem);
  display: block;
  border: 0;
  background: var(--color-paper-strong);
}

@media (max-width: 980px) {
  .hub-header { grid-template-columns: 1fr auto; }
  .hub-header nav { display: none; }
  .hero-layout,
  .section-intro,
  .feature-resource,
  .advanced-section,
  .usage-note { grid-template-columns: 1fr; }
  .feature-number { min-height: 18rem; border-left: 0; border-top: var(--rule-thin) solid color-mix(in oklch, var(--color-white) 20%, transparent); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-columns { grid-template-columns: 1fr; }
  .stage-list a { grid-template-columns: 3rem 6rem 10rem minmax(0, 1fr); }
  .stage-list i { display: none; }
}
@media (min-width: 981px) {
  .hero-layout h1 {
    white-space: nowrap;
    font-size: clamp(3rem, 4.2vw, 4.3rem);
  }
}
@media (max-width: 650px) {
  .hub-header { min-height: 4.4rem; }
  .hub-brand img { width: 7.2rem; }
  .header-action { padding: 0.65rem 0.75rem; }
  .hero-layout { gap: var(--space-2xl); }
  .hero-proof div,
  .section-intro.split { grid-template-columns: 1fr; }
  .stage-list a { grid-template-columns: 2.5rem 1fr; gap: var(--space-sm); }
  .stage-list small { grid-column: 2; }
  .stage-list strong { grid-column: 2; }
  .stage-list p { grid-column: 2; }
  .resource-grid { grid-template-columns: 1fr; }
  .rb-spotlight-card { min-height: 19rem; }
  .file-list a { grid-template-columns: 1fr auto; }
  .file-list span { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-branding .rb-shiny-text { animation: none; }
  .rb-spotlight-card,
  .stage-list a,
  .file-list a { transition-duration: 120ms; }
}

/* V5.3 · Ecosystem Index refinement */
.knowledge-hub {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background:
    linear-gradient(var(--color-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-rule) 1px, transparent 1px),
    var(--color-paper);
  background-size: 7.5rem 7.5rem;
  background-attachment: fixed;
}

.hub-header {
  min-height: 4.75rem;
  border-bottom-color: color-mix(in oklch, var(--color-rule) 74%, transparent);
  background: color-mix(in oklch, var(--color-paper) 96%, transparent);
  box-shadow: 0 0 0 transparent;
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}
.hub-header.is-compact {
  top: 0.7rem;
  width: calc(100% - 2rem);
  margin-inline: auto;
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: 999px;
  background: color-mix(in oklch, var(--color-surface) 98%, transparent);
  box-shadow: 0 1rem 3rem -2rem var(--color-shadow);
}
.hub-header::after {
  content: "7S · 2026";
  position: absolute;
  inset-inline-start: clamp(1rem, 4vw, 4rem);
  inset-block-end: 0.38rem;
  color: var(--color-muted);
  font-family: var(--font-code);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.hub-header.is-compact::after { opacity: 0.72; transform: none; }
.scroll-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  z-index: 2;
  background: var(--color-gold);
  transform-origin: left center;
  will-change: transform;
}
.hub-brand img {
  transition: transform var(--dur-base) var(--ease-out);
  transform-origin: left center;
}
.hub-header.is-compact .hub-brand img { transform: scale(0.9); }
.hub-header nav a {
  position: relative;
  padding-block: 1.65rem;
  white-space: nowrap;
}
.hub-header nav a::after {
  content: "";
  position: absolute;
  inset: auto 50% 0.9rem;
  width: 1.15rem;
  height: 2px;
  background: var(--color-gold);
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.hub-header nav a.is-active { color: var(--color-green); }
.hub-header nav a.is-active::after { opacity: 1; transform: translateX(-50%) scaleX(1); }
.header-action {
  position: relative;
  overflow: hidden;
  border-color: var(--color-green);
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 0.75rem 2rem -1.25rem var(--color-shadow);
}
.header-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: translateX(-105%);
  transition: transform var(--dur-base) var(--ease-out);
}
.header-action:hover { color: var(--color-accent-ink); }
.header-action:hover::before { transform: none; }
.header-action { isolation: isolate; }
.header-action::before { z-index: -1; }

.hub-hero {
  position: relative;
  min-height: calc(100svh - 4.75rem);
  padding-top: clamp(2.75rem, 5vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in oklch, var(--color-gold-soft) 82%, transparent), transparent 24rem),
    radial-gradient(circle at 8% 88%, color-mix(in oklch, var(--color-green-soft) 72%, transparent), transparent 26rem),
    var(--color-paper);
}
.hub-hero::before {
  content: "7S";
  position: absolute;
  inset: auto -0.08em -0.31em auto;
  z-index: 0;
  color: color-mix(in oklch, var(--color-green) 6%, transparent);
  font-family: var(--font-display);
  font-size: clamp(17rem, 42vw, 42rem);
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.16em;
  pointer-events: none;
  user-select: none;
}
.hero-branding,
.hero-layout { position: relative; z-index: 1; }
.hero-branding {
  width: fit-content;
  padding: 0.42rem 0.6rem 0.42rem 0.42rem;
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: 0 0.85rem 2.25rem -1.6rem var(--color-shadow);
}
.hero-branding img { width: 2.45rem; height: 2.45rem; }
.hero-layout {
  min-height: min(44rem, calc(100svh - 12rem));
  margin-top: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-copy h1 {
  max-width: 9.5ch;
  font-size: clamp(3.1rem, 6.2vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-wrap: balance;
}
.hero-copy h1::after {
  content: "";
  display: block;
  width: clamp(5rem, 11vw, 10rem);
  height: 0.35rem;
  margin-top: var(--space-lg);
  background: var(--color-gold);
  transform-origin: left center;
  animation: line-charge 1.1s var(--ease-out) 0.3s both;
}
@keyframes line-charge { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
.hero-layout > .hero-copy > p {
  max-width: 30rem;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}
.primary-action {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 1rem 2.2rem -1.4rem var(--color-shadow);
}
.secondary-action {
  border-color: var(--color-rule-strong);
  background: color-mix(in oklch, var(--color-surface) 88%, transparent);
}
.hero-facts {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 36rem;
  border-block: var(--rule-thin) solid var(--color-rule);
}
.hero-facts span {
  min-height: 5.2rem;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-inline-end: var(--rule-thin) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.hero-facts span:last-child { border-inline-end: 0; }
.hero-facts strong {
  color: var(--color-green);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}
.hero-proof {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in oklch, var(--color-green) 28%, var(--color-rule));
  border-radius: var(--radius-lg);
  box-shadow: 0 2.4rem 6rem -3.3rem var(--color-shadow);
  transform: rotate(0.75deg);
}
.hero-proof::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-white) 34%, transparent);
}
.hero-proof > img {
  aspect-ratio: 4 / 3;
  filter: saturate(0.92) contrast(1.03);
}
.hero-proof > div:last-child {
  position: relative;
  z-index: 2;
  background: var(--color-surface);
}
.hero-orbit {
  position: absolute !important;
  inset: 12% auto auto 50%;
  z-index: 3;
  width: clamp(10rem, 16vw, 14rem);
  aspect-ratio: 1;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center;
  border: 0 !important;
  border-radius: 50%;
  background: color-mix(in oklch, var(--color-surface) 94%, transparent);
  box-shadow: 0 1.5rem 4rem -2rem var(--color-shadow);
  transform: translateX(-50%);
}
.hero-orbit > img {
  grid-area: 1 / 1;
  position: relative;
  z-index: 3;
  width: 36%;
  height: 36%;
  object-fit: contain;
}
.hero-orbit .orbit {
  position: absolute;
  inset: 10%;
  border: var(--rule-thin) solid var(--color-gold);
  border-radius: 50%;
  animation: orbit-turn 12s linear infinite;
}
.hero-orbit .orbit::after {
  content: "";
  position: absolute;
  inset: -0.28rem 50% auto auto;
  width: 0.56rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-gold);
}
.hero-orbit .orbit-two {
  inset: 23%;
  border-color: var(--color-green-bright);
  animation-duration: 8s;
  animation-direction: reverse;
}
.hero-orbit .orbit-two::after { background: var(--color-green-bright); }
@keyframes orbit-turn { to { transform: rotate(1turn); } }
.hero-orbit i {
  position: absolute;
  z-index: 4;
  width: 0.32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-green);
  opacity: 0.42;
  animation: node-pulse 2.8s var(--ease-in-out) infinite alternate;
}
.hero-orbit i:nth-of-type(1) { inset: 8% auto auto 50%; }
.hero-orbit i:nth-of-type(2) { inset: 23% 14% auto auto; animation-delay: 0.2s; }
.hero-orbit i:nth-of-type(3) { inset: 50% 7% auto auto; animation-delay: 0.4s; }
.hero-orbit i:nth-of-type(4) { inset: auto 22% 14% auto; animation-delay: 0.6s; }
.hero-orbit i:nth-of-type(5) { inset: auto auto 8% 48%; animation-delay: 0.8s; }
.hero-orbit i:nth-of-type(6) { inset: 57% auto auto 8%; animation-delay: 1s; }
.hero-orbit i:nth-of-type(7) { inset: 24% auto auto 13%; animation-delay: 1.2s; }
@keyframes node-pulse { to { opacity: 1; transform: scale(1.8); } }

[data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible,
.hub-hero [data-reveal] { opacity: 1; transform: none; }
.hub-hero .hero-copy { transition-delay: 0.08s; }
.hub-hero .hero-proof { transition-delay: 0.18s; }

.learning-path {
  background: color-mix(in oklch, var(--color-surface) 92%, transparent);
}
.stage-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 0;
  gap: var(--space-md);
}
.stage-list li {
  min-width: 0;
  border: 0;
}
.stage-list a {
  position: relative;
  min-height: 19rem;
  padding: var(--space-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: 0 1.2rem 3rem -2.4rem var(--color-shadow);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.stage-list a::after {
  content: "↗";
  position: absolute;
  inset: auto var(--space-lg) var(--space-lg) auto;
  color: var(--color-gold);
  font-size: 1.35rem;
  transition: transform var(--dur-fast) var(--ease-out);
}
.stage-list a:hover {
  padding: var(--space-xl);
  background: var(--color-green-dark);
  color: var(--color-white);
}
.stage-list a:hover::after { transform: translate(0.2rem, -0.2rem); }
.stage-list span { font-family: var(--font-display); font-size: 2.35rem; }
.stage-list small { margin-top: auto; }
.stage-list strong { margin-top: var(--space-xs); font-size: 1.75rem; }
.stage-list p { margin-top: var(--space-sm); }
.stage-list a:hover small,
.stage-list a:hover strong,
.stage-list a:hover p { color: var(--color-white); }
.stage-list i { display: none; }

.feature-resource {
  position: relative;
  overflow: hidden;
  background: var(--color-green-dark);
}
.feature-resource::before {
  content: "SOP";
  position: absolute;
  inset: auto 2vw -0.22em auto;
  color: color-mix(in oklch, var(--color-white) 5%, transparent);
  font-family: var(--font-code);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 800;
  line-height: 0.8;
}
.resource-type,
.advanced-rail span { font-family: var(--font-body); }
.feature-copy,
.feature-number { position: relative; z-index: 1; }
.feature-number {
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--color-gold) 16%, transparent), transparent 55%),
    color-mix(in oklch, var(--color-green) 55%, var(--color-green-dark));
}
.feature-number > span {
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 0.8;
}

.module-library {
  background: var(--color-paper-strong);
}
.module-search {
  position: relative;
  padding: var(--space-md) var(--space-lg);
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 1rem 2.8rem -2.3rem var(--color-shadow);
}
.module-search::before {
  content: "⌕";
  position: absolute;
  inset: 50% var(--space-lg) auto auto;
  color: var(--color-green);
  font-size: 1.6rem;
  transform: translateY(-50%);
}
.module-search span { margin: 0; }
.module-search input {
  min-height: 2.5rem;
  padding: 0.3rem 2.5rem 0.3rem 0;
  border: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.module-search input:focus { border: 0; outline-color: var(--color-focus); }
.module-search small { display: block; color: var(--color-muted); font-size: 0.7rem; }
.resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  border: 0;
}
.rb-spotlight-card {
  min-height: 23rem;
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
  background:
    radial-gradient(20rem circle at var(--spot-x) var(--spot-y), color-mix(in oklch, var(--color-gold-soft) 78%, transparent), transparent 56%),
    var(--color-surface-raised);
  box-shadow: 0 1.2rem 3rem -2.5rem var(--color-shadow);
  transition: transform var(--dur-base) var(--ease-out);
}
.rb-spotlight-card:hover { box-shadow: 0 1.2rem 3rem -2.5rem var(--color-shadow); }
.rb-spotlight-card .card-index { font-family: var(--font-display); }
.rb-spotlight-card:nth-child(1),
.rb-spotlight-card:nth-child(7) { grid-column: span 2; }
.rb-spotlight-card:nth-child(1) {
  color: var(--color-white);
  background:
    radial-gradient(24rem circle at var(--spot-x) var(--spot-y), color-mix(in oklch, var(--color-gold) 20%, transparent), transparent 58%),
    var(--color-green-dark);
}
.rb-spotlight-card:nth-child(1) h3,
.rb-spotlight-card:nth-child(1) p { color: var(--color-white); }
.rb-spotlight-card:nth-child(1) p { max-width: 32rem; }
.rb-spotlight-card:nth-child(1) .download-link {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.rb-spotlight-card:nth-child(7) {
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--color-gold-soft) 68%, transparent), transparent 62%),
    var(--color-surface-raised);
}
.rb-spotlight-card[hidden] { display: none; }
.preview-link span,
.download-link span { transition: transform var(--dur-fast) var(--ease-out); }
.preview-link:hover span,
.download-link:hover span { transform: translate(0.2rem, -0.2rem); }

.advanced-section {
  position: relative;
  overflow: hidden;
  background: var(--color-green);
}
.advanced-section::after {
  content: "";
  position: absolute;
  width: min(46rem, 80vw);
  aspect-ratio: 1;
  inset: 50% -18rem auto auto;
  border: 1px solid color-mix(in oklch, var(--color-gold) 42%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem color-mix(in oklch, var(--color-gold) 5%, transparent),
    0 0 0 8rem color-mix(in oklch, var(--color-gold) 4%, transparent);
  transform: translateY(-50%);
  pointer-events: none;
}
.advanced-rail,
.advanced-body { position: relative; z-index: 1; }
.advanced-points span {
  border: var(--rule-thin) solid color-mix(in oklch, var(--color-white) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, var(--color-white) 7%, transparent);
}

.tool-library {
  background: color-mix(in oklch, var(--color-surface) 94%, transparent);
}
.tool-columns > div {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: 0 1.5rem 4rem -3rem var(--color-shadow);
}
.column-title { border-bottom-color: var(--color-green); }
.file-list a {
  position: relative;
  border-bottom-color: var(--color-rule);
  transition: color var(--dur-base) var(--ease-out);
}
.file-list a:hover { padding-inline: 0; }
.file-list a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 calc(var(--space-md) * -1);
  width: 3px;
  background: var(--color-gold);
  opacity: 0;
  transform: scaleY(0);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.file-list a:hover::before { opacity: 1; transform: scaleY(1); }

.usage-note {
  position: relative;
  overflow: hidden;
  background: var(--color-green-dark);
  color: var(--color-white);
}
.usage-note::after {
  content: "7S";
  position: absolute;
  inset: auto 2vw -0.3em auto;
  color: color-mix(in oklch, var(--color-white) 5%, transparent);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 800;
  line-height: 0.8;
}
.usage-note h2,
.usage-note p,
.usage-note a { position: relative; z-index: 1; }
.usage-note h2 { color: var(--color-white); }
.usage-note p { color: color-mix(in oklch, var(--color-white) 72%, transparent); }
.usage-note a {
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border: var(--rule-thin) solid var(--color-gold);
  border-radius: var(--radius-sm);
  color: var(--color-gold);
}

@media (hover: hover) and (pointer: fine) {
  .primary-action:hover,
  .secondary-action:hover,
  .preview-link:hover,
  .download-link:hover {
    transform: translateY(-0.18rem);
  }
  .hero-proof:hover { transform: rotate(0deg) translateY(-0.35rem); }
}

@media (max-width: 74rem) {
  .stage-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .hub-hero { min-height: auto; }
  .hero-layout { min-height: 0; }
  .hero-proof { transform: none; }
  .hero-copy h1 { max-width: 12ch; }
  .stage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-spotlight-card:nth-child(1),
  .rb-spotlight-card:nth-child(7) { grid-column: span 2; }
}
@media (max-width: 40rem) {
  .knowledge-hub { background-size: 4.5rem 4.5rem; }
  .hub-header { min-height: 4.5rem; }
  .hub-header.is-compact {
    top: 0.45rem;
    width: calc(100% - 1rem);
    border-radius: var(--radius-lg);
  }
  .hub-header::after { display: none; }
  .header-action { min-height: 2.75rem; white-space: nowrap; }
  .hub-hero { padding-top: var(--space-xl); }
  .hub-hero::before { font-size: 16rem; }
  .hero-branding { max-width: 100%; }
  .hero-branding .rb-shiny-text { font-size: 0.6rem; letter-spacing: 0.08em; }
  .hero-copy h1 { font-size: clamp(2.85rem, 15vw, 4.3rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .primary-action,
  .secondary-action,
  .preview-link,
  .download-link { width: 100%; min-height: 3.1rem; white-space: nowrap; }
  .resource-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts span {
    min-height: 3.75rem;
    border-inline-end: 0;
    border-block-end: var(--rule-thin) solid var(--color-rule);
  }
  .hero-facts span:last-child { border-block-end: 0; }
  .hero-orbit { width: 9rem; }
  .hero-proof > div:last-child { grid-template-columns: 1fr; }
  .stage-list,
  .resource-grid { grid-template-columns: 1fr; }
  .stage-list a { min-height: 15rem; }
  .rb-spotlight-card:nth-child(1),
  .rb-spotlight-card:nth-child(7) { grid-column: auto; }
  .rb-spotlight-card { min-height: 20rem; }
  .feature-number { min-height: 14rem; }
  .advanced-section::after { opacity: 0.45; }
  .tool-columns > div { padding: var(--space-lg); }
  .file-list .file-row { grid-template-columns: 1fr; }
  .file-row .resource-actions { justify-content: stretch; }
  .preview-dialog { width: calc(100% - 0.5rem); height: calc(100svh - 0.5rem); border-radius: var(--radius-md); }
  .preview-toolbar { padding-inline: var(--space-sm); }
  .preview-toolbar-actions a { display: none; }
  .preview-toolbar strong { max-width: 55vw; }
  .usage-note a { width: fit-content; }
}
@media (pointer: coarse) {
  .knowledge-hub a,
  .knowledge-hub input { min-height: 44px; }
}
.knowledge-hub a:active { opacity: 0.76; }
.knowledge-hub button:active { opacity: 0.76; }
.knowledge-hub button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  color: var(--color-muted);
}
.module-search input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  color: var(--color-muted);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hero-copy h1::after,
  .hero-orbit .orbit,
  .hero-orbit i { animation: none; }
  .hero-proof,
  .stage-list a,
  .header-action,
  .download-link { transition-duration: 120ms; }
}
/* Hallmark 2026-07-28
 * Macrostructure: Split Studio
 * Theme: warm paper / forest green / controlled Chinese titles
 * Pre-emit critique: remove the oversized orbital graphic, protect the factory
 * photography, and make every major heading break intentionally.
 */

/* V5.4 · Clean Split Studio override */
.knowledge-hub {
  background:
    linear-gradient(color-mix(in oklch, var(--color-rule) 58%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--color-rule) 58%, transparent) 1px, transparent 1px),
    var(--color-paper);
  background-size: 9rem 9rem;
}

.hub-hero,
.learning-path,
.module-library,
.tool-library,
.usage-note {
  padding-inline: max(var(--space-page), calc((100vw - 88rem) / 2));
}

.hub-hero::before {
  opacity: 0.42;
  font-size: clamp(14rem, 31vw, 31rem);
}

.hero-layout {
  grid-template-columns: minmax(22rem, 0.86fr) minmax(30rem, 1.14fr);
  gap: clamp(3rem, 7vw, 7rem);
  min-height: min(42rem, calc(100svh - 12rem));
}

.hero-copy h1,
.feature-copy h2,
.advanced-body h2,
.section-intro h2,
.usage-note h2 {
  min-width: 0;
  overflow-wrap: normal;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.hero-copy h1 {
  max-width: none;
  color: var(--color-green);
  font-size: clamp(2.8rem, 3.9vw, 3.35rem);
  line-height: 1.01;
}

.section-intro h2,
.feature-copy h2,
.advanced-body h2,
.usage-note h2 {
  font-size: clamp(2.1rem, 3.2vw, 3.25rem);
  line-height: 1.08;
}

.feature-copy h2 {
  font-size: clamp(1.7rem, 2.35vw, 2.7rem);
}

.usage-note h2 {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.hero-layout > .hero-copy > p,
.section-intro p,
.feature-copy > p,
.advanced-body > p,
.usage-note p {
  text-wrap: pretty;
}

.hero-proof {
  overflow: hidden;
  border-radius: 1.1rem;
  transform: none;
}

.hero-proof > img {
  aspect-ratio: 16 / 10;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.hero-seal {
  position: relative !important;
  inset: auto !important;
  z-index: 1;
  width: clamp(5.8rem, 8vw, 6.8rem);
  flex: 0 0 auto;
  aspect-ratio: 1;
  padding: 0.72rem !important;
  display: flex !important;
  flex-direction: column;
  place-items: initial !important;
  align-items: center;
  justify-content: center;
  gap: 0.16rem !important;
  border: 1px solid color-mix(in oklch, var(--color-gold) 78%, transparent) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 50% 45%, #fffdf6 0 47%, transparent 48%),
    var(--color-green-dark) !important;
  box-shadow:
    inset 0 0 0 0.32rem var(--color-green-dark),
    inset 0 0 0 0.4rem color-mix(in oklch, var(--color-gold) 72%, transparent),
    0 0.9rem 2rem -1.25rem var(--color-shadow) !important;
  animation: seal-breathe 4.8s var(--ease-in-out) infinite alternate;
}

.hero-seal > img {
  width: 2.55rem !important;
  height: 2.55rem !important;
  object-fit: contain;
}

.hero-seal > span,
.hero-seal > small {
  color: var(--color-green-dark);
  line-height: 1.1;
  white-space: nowrap;
}

.hero-seal > span {
  margin-top: 0.12rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-seal > small {
  font-size: 0.48rem;
  opacity: 0.68;
}

@keyframes seal-breathe {
  from { transform: translateY(0); }
  to { transform: translateY(-0.28rem); }
}

.hero-proof > .hero-proof-footer {
  position: relative;
  z-index: 2;
  padding: 1rem 1.35rem !important;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem) !important;
  background:
    radial-gradient(circle at 18% 50%, color-mix(in oklch, var(--color-gold) 14%, transparent), transparent 11rem),
    linear-gradient(115deg, var(--color-green-dark), var(--color-green)) !important;
}

.hero-galaxy {
  position: relative;
  width: clamp(12rem, 20vw, 16rem);
  flex: 0 0 auto;
  aspect-ratio: 2 / 1;
}

.hero-galaxy svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-galaxy > img {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: clamp(3.8rem, 6vw, 5rem);
  height: clamp(3.8rem, 6vw, 5rem);
  object-fit: contain;
  filter: drop-shadow(0 0.5rem 0.9rem #001d1666);
  transform: translate(-50%, -50%);
}

.galaxy-orbit {
  fill: none;
  stroke: url("#orbit-gold");
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.orbit-inner {
  stroke: color-mix(in oklch, var(--color-white) 35%, transparent);
  stroke-dasharray: 2.5 5;
}

.galaxy-star > circle:last-child {
  fill: url("#star-green");
  stroke: var(--color-gold-soft);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.star-halo {
  fill: color-mix(in oklch, var(--color-gold) 14%, transparent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: star-signal 7s var(--ease-in-out) infinite;
}

.star-2 .star-halo { animation-delay: 1s; }
.star-3 .star-halo { animation-delay: 2s; }
.star-4 .star-halo { animation-delay: 3s; }
.star-5 .star-halo { animation-delay: 4s; }
.star-6 .star-halo { animation-delay: 5s; }
.star-7 .star-halo { animation-delay: 6s; }

@keyframes star-signal {
  0%, 10%, 100% { opacity: 0; transform: scale(0.55); }
  4% { opacity: 0.9; transform: scale(1); }
}

.hero-proof-copy {
  min-width: 0;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.28rem !important;
}

.hero-proof-copy strong,
.hero-proof-copy span {
  text-wrap: pretty;
}

.hero-proof-copy small {
  color: var(--color-gold);
  font-family: var(--font-code);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.hero-proof-copy strong {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.hero-proof-copy span {
  color: color-mix(in oklch, var(--color-white) 72%, transparent);
  font-size: 0.84rem;
  line-height: 1.6;
}

.section-intro {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
}

.stage-list,
.resource-grid,
.tool-columns {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
}

.feature-resource,
.advanced-section {
  grid-template-columns: minmax(20rem, 0.85fr) minmax(25rem, 1.15fr);
}

.feature-copy,
.advanced-body {
  padding-inline: max(var(--space-page), calc((100vw - 88rem) / 2));
}

.advanced-section::after,
.usage-note::after {
  display: none;
}

.rb-spotlight-card h3,
.column-title h3,
.file-row > strong,
.file-list strong {
  text-wrap: pretty;
}

@media (max-width: 60rem) {
  .hero-layout,
  .feature-resource,
  .advanced-section {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 { max-width: none; }
  .feature-number,
  .advanced-rail { min-height: 14rem; }
}

@media (max-width: 40rem) {
  .knowledge-hub { background-size: 5.5rem 5.5rem; }
  .hub-hero,
  .learning-path,
  .module-library,
  .tool-library,
  .usage-note {
    padding-inline: 1rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.9rem, 8.1vw, 2.35rem);
    letter-spacing: -0.06em;
  }

  .section-intro h2,
  .usage-note h2 { font-size: clamp(1.7rem, 7vw, 2rem); }
  .feature-copy h2 { font-size: clamp(1.35rem, 5.8vw, 1.75rem); }
  .advanced-body h2 { font-size: clamp(1.25rem, 5.4vw, 1.65rem); }

  .hero-seal {
    width: 5.8rem;
  }

  .hero-proof > .hero-proof-footer {
    gap: 0.65rem !important;
    padding: 0.9rem !important;
  }

  .hero-galaxy { width: 10.5rem; }
  .hero-proof-copy small { font-size: 0.48rem; letter-spacing: 0.08em; }
  .hero-proof-copy strong { font-size: 1.05rem; }
  .hero-proof-copy span { font-size: 0.74rem; }

  .section-intro { grid-template-columns: 1fr; }
}

@media (max-width: 22rem) {
  .hero-copy h1 { font-size: 1.82rem; }
  .section-intro h2,
  .usage-note h2 { font-size: 1.58rem; }
  .feature-copy h2 { font-size: 1.27rem; }
  .advanced-body h2 { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-seal { animation: none; }
  .star-halo { animation: none; }
}

/* Stable reader overlay: independent of native dialog positioning. */
html.preview-open {
  overflow: hidden;
}

.preview-dialog {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999;
  width: 100% !important;
  height: 100svh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: clamp(0.25rem, 2vw, 1rem) !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: color-mix(in oklch, var(--color-green-dark) 76%, transparent);
  backdrop-filter: blur(0.35rem);
}

.preview-dialog[hidden] {
  display: none !important;
}

.preview-panel {
  width: min(94rem, 100%);
  height: min(92svh, 64rem);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 2.5rem 7rem -2rem var(--color-shadow);
}

.preview-dialog iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
}

/* Keep action links from inheriting the full-row file-link layout. */
.file-row .resource-actions .download-link {
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: var(--rule-thin) solid var(--color-green);
  border-radius: var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

@media (max-width: 72rem) {
  .tool-columns {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 7vw, 4.5rem);
  }
}

/* Resource rows collapse before text becomes too narrow. */
@media (max-width: 52rem) {
  .file-list .file-row {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-block: 1.25rem;
  }

  .file-row > strong,
  .file-row > span {
    width: 100%;
    min-width: 0;
    writing-mode: horizontal-tb;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .file-row > strong {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .file-row > span {
    font-size: 0.86rem;
    line-height: 1.7;
  }

  .file-row .resource-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-row .preview-link,
  .file-row .download-link {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
    display: inline-flex;
    justify-content: center;
  }
}

@media (max-width: 40rem) {
  .tool-columns > div {
    padding-inline: 1rem;
  }

  .column-title {
    gap: 0.9rem;
    align-items: flex-start;
  }

  .column-title > span {
    flex: 0 0 auto;
    font-size: 3.5rem;
    line-height: 1;
  }

  .column-title > div {
    min-width: 0;
  }

  .column-title h3 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .column-title p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .preview-dialog {
    padding: 0 !important;
  }

  .preview-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .preview-toolbar {
    min-height: 4rem;
    padding: 0.55rem 0.65rem;
    gap: 0.5rem;
  }

  .preview-toolbar small {
    display: none;
  }

  .preview-toolbar strong {
    max-width: 42vw;
    font-size: 0.78rem;
  }

  .preview-toolbar-actions {
    gap: 0.35rem;
  }

  .preview-toolbar-actions a,
  .preview-toolbar-actions button {
    display: inline-flex;
    min-height: 2.5rem;
    padding-inline: 0.62rem;
    align-items: center;
    font-size: 0.7rem;
  }
}
