.page-home {
  --home-line: rgba(212, 175, 55, 0.42);
  --home-soft-line: rgba(245, 230, 163, 0.22);
  --home-ink-text: rgba(251, 248, 241, 0.76);
  --home-gap: clamp(22px, 3.4vw, 44px);
  overflow-x: hidden;
}

.page-home .section {
  padding-block: clamp(48px, 7vw, 92px);
}

/* ---------- Hero ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  padding-block: clamp(22px, 4vw, 40px) clamp(50px, 8vw, 96px);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  left: -22%;
  top: 42%;
  width: 150%;
  height: 1px;
  background: var(--grad-gold);
  transform: rotate(-6deg);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 60%;
  background: var(--grad-gold);
  opacity: 0.08;
  clip-path: polygon(26% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 4.4vw, 48px);
}

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

.page-home .hero-art {
  position: absolute;
  left: -12%;
  bottom: -20%;
  width: min(80%, 440px);
  height: auto;
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-copy > *:not(.hero-art) {
  position: relative;
  z-index: 1;
}

.page-home .context-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--sand);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.page-home .context-line .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.page-home .hero h1 {
  margin: 14px 0 18px;
  max-width: 19ch;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.45rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--umber);
}

.page-home .hero-lede {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.82;
  color: var(--slate);
}

.page-home .path-row {
  display: grid;
  gap: 10px;
  margin-top: clamp(24px, 3.4vw, 34px);
}

.page-home .path-tile {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--warm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .path-tile:hover,
.page-home .path-tile:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: var(--gold);
  border-left-color: var(--cinnabar);
}

.page-home .path-tile--accent {
  border-left-color: var(--cinnabar);
}

.page-home .path-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.page-home .path-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}

.page-home .path-meta {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--slate);
}

/* Hero index card */

.page-home .hero-index {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.2vw, 38px);
  border-radius: var(--radius);
  background: var(--grad-ink);
  color: var(--paper);
  clip-path: polygon(0 2.6%, 100% 0, 100% 97.4%, 0 100%);
}

.page-home .hero-index-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
}

.page-home .hero-index::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, rgba(11, 26, 47, 0.3) 0%, rgba(11, 26, 47, 0.82) 55%, rgba(11, 26, 47, 0.96) 100%);
  pointer-events: none;
}

.page-home .hero-index-inner {
  position: relative;
  z-index: 1;
}

.page-home .index-cap {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--gold-hi);
}

.page-home .hero-index h2 {
  margin: 10px 0 4px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.24rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  color: var(--paper);
}

.page-home .index-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--home-soft-line);
}

.page-home .index-list li {
  border-bottom: 1px solid rgba(245, 230, 163, 0.14);
}

.page-home .index-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 13px 2px;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.page-home .index-list a:hover,
.page-home .index-list a:focus-visible {
  color: var(--gold-hi);
  padding-left: 9px;
}

.page-home .idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .idx-label {
  font-size: 0.98rem;
  font-weight: 600;
}

.page-home .idx-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  white-space: nowrap;
  color: rgba(251, 248, 241, 0.6);
}

.page-home .index-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(251, 248, 241, 0.68);
}

.page-home .status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.28);
}

/* ---------- Stats ---------- */

.page-home .stats-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .stats-head h2 {
  margin: 12px 0 14px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.28;
  color: var(--umber);
}

.page-home .stats-head p {
  max-width: 42ch;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.82;
  color: var(--slate);
}

.page-home .stats-figure {
  margin: 20px 0 0;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}

.page-home .stats-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--sand);
  overflow: hidden;
}

.page-home .stat {
  margin: 0;
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--paper);
}

.page-home .stat dt {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.page-home .stat dd {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--ink);
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .stat-unit {
  font-size: 0.78rem;
  color: var(--gold-deep);
}

/* ---------- Identity ---------- */

.page-home .identity-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .identity-figure {
  margin: 0;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.page-home .identity-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .identity-copy .eyebrow {
  color: var(--gold-hi);
}

.page-home .identity-copy h2 {
  margin: 12px 0 14px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.28;
  color: var(--paper);
}

.page-home .identity-copy > p {
  max-width: 50ch;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.84;
  color: var(--home-ink-text);
}

.page-home .badge-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .badge-list li {
  display: grid;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--home-line);
}

.page-home .badge-chip {
  justify-self: start;
  padding: 5px 11px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.09);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold-hi);
}

.page-home .badge-list p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--home-ink-text);
}

.page-home .identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Fold (details) ---------- */

.page-home .fold {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--home-soft-line);
}

.page-home .fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-hi);
}

.page-home .fold summary::-webkit-details-marker {
  display: none;
}

.page-home .fold summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold);
}

.page-home .fold[open] summary::after {
  content: "−";
}

.page-home .fold p,
.page-home .fold ul {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--home-ink-text);
}

.page-home .fold ul {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.page-home .fold--light {
  border-top-color: var(--sand);
}

.page-home .fold--light summary {
  color: var(--ink);
}

.page-home .fold--light summary::after {
  color: var(--gold-deep);
}

.page-home .fold--light p,
.page-home .fold--light ul {
  color: var(--slate);
}

/* ---------- Version ---------- */

.page-home .version-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .version-head h2 {
  margin: 12px 0 14px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.28;
  color: var(--umber);
}

.page-home .version-head p {
  max-width: 44ch;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.82;
  color: var(--slate);
}

.page-home .version-note {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: var(--warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem !important;
  color: var(--umber) !important;
}

.page-home .version-track {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(18px, 2.6vw, 26px);
  border-left: 2px solid var(--sand);
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
}

.page-home .version-track li {
  position: relative;
  padding-left: clamp(14px, 2.4vw, 22px);
}

.page-home .version-track li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(18px, 2.6vw, 26px) - 7px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--paper);
  box-sizing: border-box;
}

.page-home .version-track li.is-current::before {
  border-color: var(--cinnabar);
  background: var(--cinnabar);
}

.page-home .v-year {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.page-home .v-name {
  display: block;
  margin: 5px 0 6px;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .version-track p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.76;
  color: var(--slate);
}

/* ---------- Library ---------- */

.page-home .library-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .library-copy h2 {
  margin: 12px 0 14px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.28;
  color: var(--umber);
}

.page-home .library-copy > p {
  max-width: 46ch;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.82;
  color: var(--slate);
}

.page-home .library-copy .btn {
  margin-top: 24px;
}

.page-home .library-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--sand);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--warm);
}

.page-home .panel-cap {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
}

.page-home .panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sand);
}

.page-home .panel-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--sand);
}

.page-home .panel-k {
  font-size: 0.92rem;
  color: var(--ink);
}

.page-home .panel-v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--gold-deep);
  white-space: nowrap;
}

.page-home .panel-foot {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- Support ---------- */

.page-home .support-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .support-main h2 {
  margin: 12px 0 14px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.28;
  color: var(--umber);
}

.page-home .support-main p {
  max-width: 44ch;
  margin: 0 0 12px;
  font-size: 0.96rem;
  line-height: 1.82;
  color: var(--slate);
}

.page-home .support-bookmark {
  padding-left: 13px;
  border-left: 3px solid var(--cinnabar);
  font-size: 0.9rem !important;
  color: var(--umber) !important;
}

.page-home .support-list {
  list-style: none;
  margin: 0;
  padding: clamp(18px, 2.8vw, 26px);
  border-radius: var(--radius-sm);
  background: var(--ink);
}

.page-home .support-list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 230, 163, 0.16);
}

.page-home .support-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .support-list li:first-child {
  padding-top: 0;
}

.page-home .support-k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold-hi);
}

.page-home .support-v {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.page-home .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 720px) {
  .page-home .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .badge-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }
}

@media (min-width: 900px) {
  .page-home .stats-grid {
    grid-template-columns: 4fr 8fr;
    align-items: start;
  }

  .page-home .identity-grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }

  .page-home .version-grid,
  .page-home .library-grid,
  .page-home .support-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .page-home .support-actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .page-home .hero-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .page-home .hero-index {
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  .page-home .index-list a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .idx-meta {
    grid-column: 2;
    font-size: 0.72rem;
  }

  .page-home .hero::after {
    width: 70%;
    height: 44%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path-tile,
  .page-home .index-list a {
    transition: none;
  }
}
<<<END>>>
