.page-home {
  --home-rail: 236px;
  --home-pad: clamp(1rem, 2.8vw, 2rem);
  color: var(--charcoal);
  background: var(--paper);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-home :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.page-home .home-crumb {
  width: min(calc(100% - 2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
  padding-block: 0.8rem 0.2rem;
  font-size: 0.82rem;
  color: rgba(27, 26, 23, 0.68);
}

.page-home .home-shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
  padding-block: 0.8rem 0;
}

.page-home .home-rail {
  background: var(--ink);
  color: var(--paper);
  border: var(--rule-gold);
  box-shadow: 0 18px 36px -30px rgba(15, 42, 36, 0.9);
  padding: 1rem;
  margin-bottom: 1.1rem;
}

.page-home .home-rail-kicker {
  margin: 0 0 0.65rem;
  color: var(--gold-light);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.page-home .home-rail-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.45rem;
  scrollbar-width: thin;
}

.page-home .home-rail-nav a {
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(233, 199, 126, 0.25);
  background: rgba(247, 241, 227, 0.04);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-rail-nav a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(200, 147, 59, 0.12);
}

.page-home .home-rail-stat {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(233, 199, 126, 0.25);
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(247, 241, 227, 0.85);
}

.page-home .home-rail-stat .mono {
  color: var(--gold-light);
  font-size: 1.05rem;
}

.page-home .home-rail-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(247, 241, 227, 0.6);
}

.page-home .home-stream {
  min-width: 0;
}

.page-home .home-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: var(--home-pad);
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 147, 59, 0.25), transparent 34%),
    var(--ink);
  color: var(--paper);
  border: 1px solid rgba(200, 147, 59, 0.5);
  box-shadow: 0 22px 42px -32px rgba(15, 42, 36, 0.95);
}

.page-home .home-hero-panel::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -18%;
  width: 76%;
  height: 160%;
  background: linear-gradient(160deg, rgba(200, 147, 59, 0.6), rgba(233, 199, 126, 0.14) 58%, transparent 58.5%);
  transform: rotate(8deg);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.page-home .home-hero-copy .eyebrow {
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.page-home .home-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.45rem, 7.2vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

.page-home .home-hero h1 span {
  display: block;
  margin-top: 0.18em;
  font-size: 0.48em;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.page-home .home-lede {
  max-width: 62ch;
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.85;
  color: rgba(247, 241, 227, 0.86);
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.page-home .home-hero-figure {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.16;
  pointer-events: none;
}

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

.page-home .home-hero-seal {
  position: absolute;
  right: var(--home-pad);
  bottom: var(--home-pad);
  z-index: 2;
  width: clamp(74px, 11vw, 132px);
  opacity: 0.76;
  pointer-events: none;
}

.page-home .home-hero-seal img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(233, 199, 126, 0.55);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.8);
}

.page-home .home-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper-dim);
  border: var(--rule);
  border-top: 0;
}

.page-home .home-stat {
  padding: 0.8rem 0.7rem;
  border-right: 1px solid rgba(27, 26, 23, 0.14);
}

.page-home .home-stat:last-child {
  border-right: 0;
}

.page-home .home-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.02rem, 2.2vw, 1.42rem);
  line-height: 1.2;
  color: var(--cinnabar);
}

.page-home .home-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(27, 26, 23, 0.68);
}

.page-home .home-section {
  margin-top: clamp(2.6rem, 6vw, 5rem);
  scroll-margin-top: 1.5rem;
}

.page-home .home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}

.page-home .home-section-head .eyebrow {
  margin-bottom: 0.45rem;
}

.page-home .home-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.5vw, 2.75rem);
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}

.page-home .home-text-link {
  color: var(--cinnabar);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 64, 47, 0.45);
  padding-bottom: 0.1rem;
  white-space: nowrap;
}

.page-home .home-text-link:hover {
  color: var(--cinnabar-deep);
  border-color: var(--cinnabar-deep);
}

.page-home .home-section-lede {
  max-width: 72ch;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(27, 26, 23, 0.75);
}

.page-home .category-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.page-home .category-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background: var(--paper);
  border: var(--rule);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--gold), rgba(200, 147, 59, 0.08));
}

.page-home .category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 147, 59, 0.7);
  box-shadow: var(--shadow-lift);
}

.page-home .category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--rule);
}

.page-home .category-head .index-num {
  color: var(--cinnabar);
  font-size: 1.02rem;
}

.page-home .category-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.36rem;
  line-height: 1.2;
  color: var(--ink);
}

.page-home .category-head .tag {
  margin-left: auto;
}

.page-home .category-pair {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.page-home .cat-item {
  min-width: 0;
  padding: 0.7rem;
  background: rgba(229, 218, 196, 0.28);
  border: 1px solid rgba(200, 147, 59, 0.18);
}

.page-home .cat-code {
  margin: 0;
  font-size: 0.72rem;
  color: var(--brick);
}

.page-home .cat-title {
  margin: 0.28rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .tag-list li {
  margin: 0;
}

.page-home .tag-list .tag {
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.18rem 0.38rem;
}

.page-home .cycle-layout {
  display: grid;
  gap: 1.2rem;
}

.page-home .cycle-figure {
  margin: 0;
  padding: 0.45rem;
  background: var(--paper);
  border: var(--rule-gold);
  box-shadow: var(--shadow-card);
}

.page-home .cycle-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.page-home .cycle-list {
  position: relative;
  margin: 0;
  padding: 0.2rem 0 0 1.35rem;
  list-style: none;
}

.page-home .cycle-list::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.45rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(200, 147, 59, 0.12));
}

.page-home .cycle-item {
  position: relative;
  padding-bottom: 1rem;
}

.page-home .cycle-node {
  position: absolute;
  left: -1.23rem;
  top: 0.62rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px var(--paper);
}

.page-home .cycle-card {
  padding: 0.85rem 0.9rem;
  background: var(--paper);
  border: var(--rule);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-card);
}

.page-home .cycle-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.page-home .cycle-top .mono {
  font-size: 0.72rem;
  color: rgba(27, 26, 23, 0.6);
}

.page-home .cycle-card h3 {
  margin: 0.48rem 0 0.2rem;
  font-size: 1.03rem;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .cycle-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(27, 26, 23, 0.72);
}

.page-home .cycle-card details {
  margin-top: 0.45rem;
}

.page-home .cycle-card summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo);
}

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

.page-home .cycle-card details p {
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(27, 26, 23, 0.18);
}

.page-home .collect-panel {
  position: relative;
  overflow: hidden;
  padding: var(--home-pad);
  background: var(--ink);
  color: var(--paper);
  border: var(--rule-gold);
  box-shadow: 0 22px 42px -32px rgba(15, 42, 36, 0.95);
}

.page-home .collect-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .collect-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .collect-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-home .collect-copy .eyebrow {
  color: var(--gold-light);
  margin-bottom: 0.65rem;
}

.page-home .collect-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.5vw, 2.7rem);
  line-height: 1.18;
  color: var(--paper);
}

.page-home .collect-copy > p {
  max-width: 68ch;
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(247, 241, 227, 0.8);
}

.page-home .collect-steps {
  display: grid;
  gap: 0.65rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .collect-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem;
  background: rgba(247, 241, 227, 0.07);
  border: 1px solid rgba(233, 199, 126, 0.24);
}

.page-home .collect-step-num {
  color: var(--gold-light);
  font-size: 1.25rem;
  line-height: 1;
}

.page-home .collect-step h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .collect-step p {
  margin: 0.22rem 0 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(247, 241, 227, 0.72);
}

.page-home .support-duo {
  display: grid;
  gap: 0.9rem;
}

.page-home .support-card {
  padding: 1rem;
  background: var(--paper);
  border: var(--rule);
  box-shadow: var(--shadow-card);
}

.page-home .support-card > .mono {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brick);
}

.page-home .support-card h3 {
  margin: 0.45rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.25;
  color: var(--ink);
}

.page-home .support-card p {
  max-width: 62ch;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(27, 26, 23, 0.72);
}

.page-home .support-card--ink {
  background: var(--ink-soft);
  border-color: rgba(200, 147, 59, 0.55);
  color: var(--paper);
}

.page-home .support-card--ink > .mono {
  color: var(--gold-light);
}

.page-home .support-card--ink h3 {
  color: var(--paper);
}

.page-home .support-card--ink p {
  color: rgba(247, 241, 227, 0.78);
}

.page-home .home-faq-list {
  border-top: var(--rule);
}

.page-home .home-faq {
  border-bottom: var(--rule);
}

.page-home .home-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
}

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

.page-home .home-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--cinnabar);
}

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

.page-home .home-faq p {
  max-width: 72ch;
  margin: 0 0 1rem;
  padding-left: 0.1rem;
  font-size: 0.9rem;
  line-height: 1.78;
  color: rgba(27, 26, 23, 0.74);
}

.page-home .home-faq p a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 620px) {
  .page-home .home-stat {
    padding: 0.95rem 1rem;
  }

  .page-home .category-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .category-card:first-child,
  .page-home .category-card:last-child {
    grid-column: span 2;
  }

  .page-home .category-card:first-child .category-pair,
  .page-home .category-card:last-child .category-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .support-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .page-home .home-shell {
    display: grid;
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    gap: 1.6rem;
    align-items: start;
    padding-block: 1rem 0;
  }

  .page-home .home-rail {
    position: sticky;
    top: 1rem;
    margin-bottom: 0;
  }

  .page-home .home-rail-nav {
    display: grid;
    gap: 0.3rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .home-rail-nav a {
    display: block;
    border: 0;
    border-left: 2px solid rgba(233, 199, 126, 0.22);
    background: transparent;
    padding: 0.42rem 0.55rem;
  }

  .page-home .home-rail-nav a:hover {
    border-left-color: var(--gold);
    background: rgba(200, 147, 59, 0.1);
  }

  .page-home .home-hero-panel {
    min-height: 470px;
    padding: clamp(1.8rem, 3.5vw, 3.2rem);
  }

  .page-home .home-hero-figure {
    inset: 0 0 0 auto;
    width: 64%;
    opacity: 0.3;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .home-hero-copy {
    max-width: 78%;
  }

  .page-home .home-hero-seal {
    left: var(--home-pad);
    right: auto;
    bottom: var(--home-pad);
  }

  .page-home .cycle-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 1.4rem;
    align-items: start;
  }

  .page-home .cycle-figure {
    position: sticky;
    top: 1.2rem;
  }

  .page-home .collect-panel {
    padding: clamp(1.6rem, 3.6vw, 3rem);
  }

  .page-home .collect-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .collect-step {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (min-width: 1120px) {
  .page-home .home-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
  }

  .page-home .category-wall {
    gap: 1rem;
  }

  .page-home .category-card {
    padding: 1.15rem;
  }
}

@media (max-width: 420px) {
  .page-home .home-hero-seal {
    display: none;
  }

  .page-home .home-stat-strip {
    grid-template-columns: 1fr;
  }

  .page-home .home-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(27, 26, 23, 0.14);
  }

  .page-home .home-stat:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .category-card,
  .page-home .home-rail-nav a {
    transition: none;
  }

  .page-home .category-card:hover {
    transform: none;
  }
}
