:root {
  color-scheme: light;
  --canvas: #fbfaf6;
  --paper: #ffffff;
  --paper-soft: #f7f4ed;
  --ink: #22302d;
  --ink-2: #3f4d49;
  --muted: #746f68;
  --line: #e5ded2;
  --line-strong: #d4cabd;
  --teal: #2f9d91;
  --purple: #8064ad;
  --ochre: #d9a530;
  --coral: #d06f5e;
  --green: #5fa267;
  --teal-soft: #e4f3ef;
  --purple-soft: #efeaf7;
  --ochre-soft: #fbefd8;
  --coral-soft: #f8e6df;
  --green-soft: #e9f2e8;
  --radius: 8px;
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 14px 40px rgba(63, 53, 41, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(#e7dfd2 0.7px, transparent 0.8px),
    var(--canvas);
  background-size: 22px 22px, auto;
  color: var(--ink);
  font-family:
    "Avenir Next",
    "SF Pro Display",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 80;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 18px auto 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.16;
}

.brand strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 850;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.top-nav {
  justify-self: center;
  display: inline-flex;
  gap: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.top-nav a,
.nav-cta {
  min-height: 36px;
  padding: 9px 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 780;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  color: var(--ink);
}

.top-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--ink);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 currentColor;
}

.hero-shell {
  display: grid;
  gap: 44px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 96px 0 66px;
}

.home-page .hero-shell {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: 42px;
  min-height: calc(100dvh - 98px);
  padding: 58px 0 26px;
  align-items: center;
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.home-page .hero-copy {
  max-width: 560px;
  margin: 0;
  text-align: left;
}

.status-line,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family:
    "Avenir Next",
    "PingFang SC",
    "Hiragino Sans GB",
    system-ui,
    sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  font-size: 5.8rem;
  line-height: 0.96;
  overflow-wrap: anywhere;
  word-break: normal;
}

.home-page h1 {
  font-size: 4.25rem;
  line-height: 1.08;
}

h1 span {
  display: inline;
}

h2 {
  font-size: 3.55rem;
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.36;
}

.hero-lede {
  max-width: 49rem;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: 1.18rem;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.home-page .hero-actions {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  color: var(--ink);
  font-weight: 850;
  box-shadow: inset 0 -1px 0 rgba(34, 48, 45, 0.28);
}

.text-action::after {
  content: "→";
  margin-left: 8px;
  transition: transform 320ms var(--ease);
}

.text-action:hover::after,
.text-action:focus-visible::after {
  transform: translateX(4px);
}

.primary-link {
  color: var(--teal);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 34px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-metrics span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-metrics span:last-child {
  border-right: 0;
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 1.86rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-page .hero-metrics {
  margin-left: 0;
  margin-right: 0;
}

.legal-note {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}

.hero-art {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.knowledge-hero-art {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-art img {
  width: 100%;
  height: min(42vw, 520px);
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper-soft);
}

.home-page .hero-art {
  transform-origin: center;
}

.knowledge-hero-art img {
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(76, 65, 48, 0.08);
}

.hero-category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 2px;
}

.map-node {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.map-node:hover,
.map-node:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(67, 57, 42, 0.08);
}

.map-node strong,
.map-node span {
  display: block;
}

.map-node strong {
  font-size: 1rem;
  font-weight: 900;
}

.map-node span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.node-practice {
  background: var(--teal-soft);
}

.node-child {
  background: var(--purple-soft);
}

.node-love {
  background: var(--coral-soft);
}

.node-work {
  background: var(--green-soft);
}

.node-self {
  background: var(--ochre-soft);
}

.benchmark-band,
.entry-section,
.page-hero,
.library-section,
.composer-section,
.model-section,
.release-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.entry-section {
  padding: 34px 0 86px;
}

.knowledge-index-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: 42px;
  align-items: center;
  padding-top: 54px;
}

.knowledge-index-visual {
  margin: 0;
}

.knowledge-index-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(76, 65, 48, 0.08);
}

.knowledge-index-copy p {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.82;
}

.home-entry-list {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.index-link {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.index-link strong {
  position: relative;
  padding-left: 14px;
  font-size: 1rem;
  font-weight: 900;
}

.index-link strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.index-link span {
  color: var(--muted);
  line-height: 1.6;
}

.index-link:hover,
.index-link:focus-visible {
  color: var(--teal);
  transform: translateX(4px);
}

.index-link.node-child strong::before {
  background: var(--purple);
}

.index-link.node-love strong::before {
  background: var(--coral);
}

.index-link.node-work strong::before {
  background: var(--green);
}

.index-link.node-self strong::before {
  background: var(--ochre);
}

.page-hero {
  max-width: var(--max);
  padding: 96px 0 34px;
}

.split-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.page-hero-copy {
  min-width: 0;
}

.page-hero h1 {
  max-width: 880px;
  font-size: 4.45rem;
  line-height: 1.03;
}

.page-hero p:last-child,
.page-hero-copy > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.82;
}

.page-visual {
  margin: 0;
}

.page-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(76, 65, 48, 0.08);
}

.compact-heading h2 {
  font-size: 2.65rem;
}

.home-entry-grid {
  margin-top: 28px;
}

.home-note {
  margin-left: 0;
}

.benchmark-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.5fr) 1fr;
  gap: 44px;
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
}

.benchmark-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.benchmark-list span {
  min-height: 104px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 850;
}

.benchmark-list span:nth-child(1) {
  background: var(--teal-soft);
}

.benchmark-list span:nth-child(2) {
  background: var(--purple-soft);
}

.benchmark-list span:nth-child(3) {
  background: var(--ochre-soft);
}

.benchmark-list span:nth-child(4) {
  background: var(--green-soft);
}

.benchmark-list span:nth-child(5) {
  background: var(--coral-soft);
}

.library-section,
.model-section,
.release-section {
  padding: 82px 0 0;
}

.library-page-section {
  padding-top: 34px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) 1fr;
  gap: 38px;
  margin-bottom: 30px;
  align-items: end;
}

.section-heading p:last-child {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.82;
}

.library-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 38px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.library-sidebar,
.library-main,
.detail-panel {
  min-width: 0;
}

.library-sidebar,
.detail-panel {
  position: sticky;
  top: 92px;
}

.library-sidebar {
  display: grid;
  gap: 0;
}

.composer-board,
.timeline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.search-box {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.search-box label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 1px 0 var(--teal);
}

.category-list {
  display: grid;
  gap: 0;
  padding: 12px 0;
}

.category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.category-button strong {
  font-size: 0.94rem;
}

.category-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.category-button.is-active {
  color: var(--teal);
  background: transparent;
}

.category-button:hover,
.category-button:focus-visible {
  color: var(--teal);
  transform: translateX(4px);
}

.source-note {
  display: grid;
  gap: 6px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 0.79rem;
  line-height: 1.65;
}

.source-note strong {
  font-size: 0.92rem;
}

.catalog-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.catalog-summary span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.catalog-summary strong {
  color: var(--ink);
  font-size: 2.05rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.catalog-summary small {
  max-width: 22rem;
  color: var(--muted);
  line-height: 1.65;
}

.pack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.pack-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(7rem, 0.28fr) 1fr;
  gap: 18px 24px;
  min-height: 0;
  padding: 22px 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  animation: packIn 520ms var(--ease) both;
}

.pack-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.pack-card:nth-child(5n + 2)::before {
  background: var(--purple);
}

.pack-card:nth-child(5n + 3)::before {
  background: var(--ochre);
}

.pack-card:nth-child(5n + 4)::before {
  background: var(--coral);
}

.pack-card:nth-child(5n + 5)::before {
  background: var(--green);
}

.pack-card:hover,
.pack-card:focus-visible,
.pack-card.is-active {
  color: var(--teal);
  transform: translateX(4px);
  border-color: var(--line-strong);
  box-shadow: none;
}

.pack-meta {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.77rem;
}

.pack-code {
  color: var(--teal);
  font-family: "SF Mono", Consolas, monospace;
  font-weight: 900;
}

.pack-card h3 {
  grid-column: 2;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 950;
}

.pack-card p {
  grid-column: 2;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.78;
}

.pack-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 2px;
}

.pack-tags span,
.selected-list span {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.detail-card {
  min-height: 620px;
  padding: 2px 0 0 26px;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.empty-title,
.detail-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 950;
}

.empty-copy,
.detail-card p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.75;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
}

.detail-meta-line span {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
}

.detail-subtitle {
  margin-top: 20px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.detail-groups,
.indicator-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.group-row,
.indicator-row {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.group-row strong,
.indicator-row strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.group-row span,
.indicator-row span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.indicator-row {
  cursor: pointer;
  text-align: left;
}

.indicator-row:hover,
.indicator-row:focus-visible {
  color: var(--teal);
}

.indicator-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.indicator-detail dl {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.indicator-detail dt {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.indicator-detail dd {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.72;
}

.add-button {
  width: auto;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-weight: 900;
}

.add-button:hover,
.add-button:focus-visible {
  transform: translateX(4px);
}

.composer-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) 1fr;
  gap: 34px;
  padding: 92px 0;
  align-items: center;
}

.standalone-composer {
  padding-top: 40px;
}

.composer-section p {
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.8;
}

.composer-board {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 28px;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.rule-number {
  display: grid;
  place-items: center;
  align-self: center;
}

.rule-number {
  justify-items: start;
  border-right: 1px solid var(--line);
}

.rule-number strong {
  color: var(--ink);
  font-size: 3.4rem;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rule-number span {
  color: var(--muted);
  font-weight: 800;
}

.selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#composerStatus {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 950;
}

#composerHint {
  color: var(--muted);
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 92px;
}

.schema-grid article {
  min-height: 230px;
  padding: 22px 22px 26px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.schema-grid article:nth-child(1) {
  background: transparent;
}

.schema-grid article:nth-child(2) {
  background: transparent;
}

.schema-grid article:nth-child(3) {
  background: transparent;
}

.schema-grid article:nth-child(4) {
  border-right: 0;
  background: transparent;
}

.schema-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink);
  font-family: "SF Mono", Consolas, monospace;
  font-weight: 950;
}

.schema-grid h3 {
  color: var(--ink);
}

.schema-grid p {
  color: var(--ink-2);
  line-height: 1.75;
}

.release-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) 1fr;
  gap: 34px;
  padding-bottom: 92px;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  list-style: none;
  overflow: hidden;
}

.timeline li {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  padding: 20px;
}

.timeline li + li {
  border-top: 1px solid var(--line);
}

.timeline strong {
  color: var(--ink);
}

.timeline span {
  color: var(--ink-2);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 4px 0 0;
  line-height: 1.65;
}

.site-footer > p {
  max-width: 540px;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .nav-cta,
  .text-action,
  .pack-card,
  .map-node,
  .index-link,
  .category-button,
  .add-button {
    transition:
      transform 420ms var(--ease),
      background-color 260ms var(--ease),
      border-color 260ms var(--ease),
      box-shadow 420ms var(--ease),
      color 260ms var(--ease);
  }

  .hero-art {
    animation: heroFloat 8s var(--ease) infinite;
  }

  .hero-art img,
  .page-visual img,
  .knowledge-index-visual img {
    transition: transform 900ms var(--ease);
  }

  .hero-art:hover img,
  .page-visual:hover img,
  .knowledge-index-visual:hover img {
    transform: scale(1.025);
  }

  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 720ms var(--ease) var(--reveal-delay, 0ms),
      transform 720ms var(--ease) var(--reveal-delay, 0ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes packIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1120px) {
  .home-page .hero-shell,
  .knowledge-index-section,
  .split-page-hero,
  .benchmark-band,
  .section-heading,
  .composer-section,
  .release-section {
    grid-template-columns: 1fr;
  }

  .home-page .hero-copy {
    max-width: 860px;
    text-align: center;
  }

  .knowledge-index-copy {
    max-width: 860px;
    margin: 0 auto;
  }

  .home-page .hero-actions {
    justify-content: center;
  }

  .home-page .hero-metrics {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-art img {
    height: auto;
  }

  .page-visual {
    max-width: 860px;
    margin: 0 auto;
  }

  .library-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    position: static;
  }

  .detail-card {
    min-height: auto;
  }

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

  .schema-grid article:nth-child(2) {
    border-right: 0;
  }

  .hero-category-strip,
  .benchmark-list {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 152px;
  }

  .site-header {
    top: 10px;
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .top-nav a {
    text-align: center;
  }

  .hero-shell,
  .benchmark-band,
  .entry-section,
  .page-hero,
  .library-section,
  .model-section,
  .release-section,
  .composer-section {
    width: min(100% - 24px, var(--max));
  }

  .hero-shell {
    gap: 30px;
    padding-top: 56px;
  }

  h1 {
    font-size: 4.35rem;
  }

  .home-page h1 {
    font-size: 3.5rem;
  }

  .page-hero h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .library-layout,
  .composer-board {
    grid-template-columns: 1fr;
  }

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

  .hero-metrics span {
    min-height: 68px;
    padding: 12px 8px;
  }

  .library-sidebar {
    position: static;
  }

  .category-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .rule-number {
    margin: 0 auto;
  }

  .schema-grid {
    grid-template-columns: 1fr;
  }

  .schema-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .schema-grid article:last-child {
    border-bottom: 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: min(100% - 20px, var(--max));
    grid-template-columns: 1fr;
  }

  .nav-cta {
    display: none;
  }

  .top-nav {
    gap: 3px;
  }

  .top-nav a {
    padding: 8px 4px;
    font-size: 0.76rem;
  }

  .hero-shell {
    padding-top: 58px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .home-page h1 {
    font-size: 2.7rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-category-strip,
  .benchmark-list,
  .category-list {
    grid-template-columns: 1fr;
    overflow: visible;
  }

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