.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 5vw, 68px);
  background:
    radial-gradient(circle at 10% 6%, rgba(47, 165, 138, 0.18), transparent 55%),
    linear-gradient(165deg, var(--warm) 0%, var(--tile) 48%, var(--mist) 100%);
  border-bottom: 1px solid var(--edge-gold);
}

.page-home .hero-grid {
  display: grid;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.page-home .hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6.2vw, 3.5rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 10px 0 14px;
  color: var(--ink);
}

.page-home .hero-lead {
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.85;
  color: rgba(27, 27, 24, 0.78);
  margin: 0 0 20px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.page-home .hero-facts {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  border-top: 1px dashed var(--edge-gold);
}

.page-home .hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .hero-facts strong {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  line-height: 1.1;
  color: var(--jade);
  font-weight: 600;
}

.page-home .hero-facts span {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(27, 27, 24, 0.68);
}

.page-home .hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  min-height: 280px;
  background:
    radial-gradient(circle at 72% 18%, rgba(47, 165, 138, 0.5), transparent 62%),
    var(--table-green);
  border: 1px solid var(--edge-gold);
  box-shadow: 0 22px 46px rgba(11, 43, 38, 0.26);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 43, 38, 0.16), rgba(11, 43, 38, 0.74));
  pointer-events: none;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

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

.page-home .mtile {
  position: absolute;
  z-index: 2;
  width: clamp(44px, 12vw, 74px);
  aspect-ratio: 5 / 7;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--warm), var(--tile));
  border: 1px solid rgba(212, 166, 74, 0.55);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.34), inset 0 0 0 3px rgba(255, 255, 255, 0.72);
  font-family: var(--font-head);
  font-size: clamp(17px, 4.6vw, 26px);
  color: var(--jade);
  line-height: 1;
}

.page-home .mtile--1 { left: 7%; top: 14%; transform: rotate(-9deg); }
.page-home .mtile--2 { left: 36%; top: 6%; transform: rotate(5deg); }
.page-home .mtile--3 { right: 8%; top: 30%; transform: rotate(12deg); }
.page-home .mtile--4 { left: 26%; bottom: 12%; transform: rotate(-4deg); color: var(--cinnabar); }

.page-home .hero-badge {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: rgba(11, 43, 38, 0.66);
  border: 1px solid rgba(212, 166, 74, 0.45);
  backdrop-filter: blur(8px);
  color: var(--warm);
}

.page-home .hero-badge-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(244, 235, 221, 0.72);
}

.page-home .hero-badge-value {
  font-size: 0.76rem;
  color: var(--gold);
}

.page-home .body-grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  padding-block: clamp(26px, 5vw, 56px);
}

.page-home .toc {
  border: 1px solid var(--edge-ink);
  border-radius: var(--radius);
  background: rgba(220, 233, 226, 0.55);
  padding: 12px 12px 10px;
}

.page-home .toc-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--jade);
}

.page-home .toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .toc li { flex: 0 0 auto; }

.page-home .toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--edge-ink);
  background: var(--warm);
  font-size: 0.82rem;
  color: rgba(27, 27, 24, 0.72);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .toc a:hover,
.page-home .toc a[data-active] {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--warm);
}

.page-home .body-main { min-width: 0; }

.page-home .panel {
  padding-block: clamp(26px, 4vw, 48px);
  border-bottom: 1px dashed var(--edge-gold);
}

.page-home .panel:last-child { border-bottom: none; padding-bottom: 0; }

.page-home .panel-head {
  max-width: 62ch;
  margin-bottom: clamp(16px, 3vw, 26px);
}

.page-home .panel h2 {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  line-height: 1.3;
  margin: 8px 0 10px;
  color: var(--ink);
}

.page-home .panel h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  line-height: 1.4;
  margin: 0 0 6px;
}

.page-home .panel-lead {
  margin: 0;
  line-height: 1.85;
  font-size: 0.96rem;
  color: rgba(27, 27, 24, 0.78);
}

.page-home .media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}

.page-home .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.page-home .index-band {
  max-height: 190px;
  margin-bottom: clamp(16px, 3vw, 24px);
  border: 1px solid var(--edge-gold);
}

.page-home .bento {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .bento-cell {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 3vw, 22px);
  border-radius: var(--radius);
  background: var(--warm);
  border: 1px solid var(--edge-ink);
  border-top: 3px solid var(--jade);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .bento-cell p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(27, 27, 24, 0.75);
}

.page-home .bento-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(11, 43, 38, 0.16);
  border-color: rgba(47, 165, 138, 0.6);
}

.page-home .bento-cell .tag { align-self: flex-start; }

.page-home .bento-go {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--jade);
}

.page-home .bento-cell--jade {
  background: linear-gradient(150deg, var(--jade) 0%, var(--table-green) 100%);
  border-color: rgba(212, 166, 74, 0.4);
  border-top-color: var(--gold);
  color: var(--warm);
}

.page-home .bento-cell--jade h3 { color: var(--warm); }
.page-home .bento-cell--jade p { color: rgba(244, 235, 221, 0.82); }
.page-home .bento-cell--jade .bento-go { color: var(--gold); }
.page-home .bento-cell--jade:hover { border-color: rgba(212, 166, 74, 0.8); }

.page-home .bento-cell--gold {
  background: linear-gradient(120deg, rgba(212, 166, 74, 0.16), var(--warm) 62%);
  border-left: 3px solid var(--cinnabar);
}

.page-home .index-accordion { margin-top: clamp(16px, 3vw, 24px); }

.page-home .acc {
  border: 1px solid var(--edge-ink);
  border-radius: var(--radius-sm);
  background: rgba(255, 249, 239, 0.92);
  margin-bottom: 10px;
  overflow: hidden;
}

.page-home .acc summary {
  cursor: pointer;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--ink);
  list-style: none;
}

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

.page-home .acc summary::after {
  content: "＋";
  font-family: var(--font-mono);
  color: var(--jade);
  font-size: 0.9rem;
}

.page-home .acc[open] summary::after { content: "－"; }

.page-home .acc[open] summary {
  border-bottom: 1px solid var(--edge-gold);
  color: var(--jade);
}

.page-home .acc p {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(27, 27, 24, 0.78);
}

.page-home .path-grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.page-home .path-media {
  border: 1px solid var(--edge-gold);
  max-height: 300px;
}

.page-home .steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .steps li {
  position: relative;
  padding: 15px 16px 15px 62px;
  border-radius: var(--radius-sm);
  background: var(--warm);
  border: 1px solid var(--edge-ink);
}

.page-home .steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 52px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(20, 107, 90, 0.45), rgba(20, 107, 90, 0.08));
}

.page-home .steps h3 { font-size: 1.02rem; margin: 0 0 4px; }

.page-home .steps p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(27, 27, 24, 0.75);
}

.page-home .step-num {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--jade);
  color: var(--warm);
  font-size: 0.74rem;
  box-shadow: 0 0 0 4px rgba(20, 107, 90, 0.12);
}

.page-home .panel--dark {
  margin-block: clamp(20px, 4vw, 36px);
  padding: clamp(22px, 4vw, 40px) clamp(16px, 3vw, 30px);
  border-radius: calc(var(--radius) + 4px);
  border-bottom: none;
  background:
    radial-gradient(circle at 86% 8%, rgba(47, 165, 138, 0.34), transparent 58%),
    linear-gradient(160deg, var(--table-green) 0%, #08211D 100%);
  color: var(--warm);
}

.page-home .panel--dark h2 { color: var(--warm); }
.page-home .panel--dark .panel-lead { color: rgba(244, 235, 221, 0.8); }
.page-home .panel--dark .eyebrow { color: var(--gold); }

.page-home .record-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.page-home .record-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-home .record-card {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(244, 235, 221, 0.08);
  border: 1px solid rgba(212, 166, 74, 0.3);
}

.page-home .record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.page-home .record-date {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.page-home .record-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(244, 235, 221, 0.76);
}

.page-home .record-media {
  border: 1px solid rgba(212, 166, 74, 0.32);
  min-height: 200px;
}

.page-home .record-media img { opacity: 0.9; }

.page-home .vendor-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .vendor-stat {
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--warm);
  border: 1px solid var(--edge-ink);
  border-left: 3px solid var(--jade);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  line-height: 1.1;
  color: var(--jade);
  margin-bottom: 4px;
}

.page-home .stat-label {
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(27, 27, 24, 0.68);
}

.page-home .vendor-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(220, 233, 226, 0.6);
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(27, 27, 24, 0.8);
}

.page-home .vendor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .panel--support {
  margin-top: clamp(18px, 3vw, 28px);
  padding: clamp(22px, 4vw, 38px) clamp(16px, 3vw, 28px);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(150deg, var(--tile) 0%, var(--warm) 55%, rgba(220, 233, 226, 0.8) 100%);
  border: 1px solid var(--edge-gold);
}

.page-home .support-grid {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.page-home .support-card {
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 249, 239, 0.95);
  border: 1px solid var(--edge-ink);
  border-top: 2px solid var(--cinnabar);
}

.page-home .support-card h3 {
  font-size: 0.86rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--jade);
  margin: 0 0 6px;
}

.page-home .support-value {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
  color: var(--ink);
}

.page-home .support-note {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(27, 27, 24, 0.6);
}

.page-home .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .trust-line {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  display: grid;
  gap: 8px;
  border-top: 1px dashed var(--edge-gold);
}

.page-home .trust-line li {
  position: relative;
  padding-left: 16px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(27, 27, 24, 0.72);
}

.page-home .trust-line li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--gold);
  transform: rotate(45deg);
}

@media (min-width: 640px) {
  .page-home .bento-cell--wide,
  .page-home .bento-cell--small,
  .page-home .bento-cell--full {
    grid-column: span 2;
  }

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

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

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

@media (min-width: 900px) {
  .page-home .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }

  .page-home .hero-visual { aspect-ratio: 4 / 5; min-height: 420px; }

  .page-home .path-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); align-items: start; }

  .page-home .path-media { max-height: none; }

  .page-home .record-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: stretch; }

  .page-home .vendor-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

  .page-home .index-band { max-height: 240px; }
}

@media (min-width: 1024px) {
  .page-home .body-grid {
    grid-template-columns: 196px minmax(0, 1fr);
    align-items: start;
  }

  .page-home .toc {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    padding: 14px 14px 12px;
  }

  .page-home .toc ol {
    display: grid;
    gap: 3px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .toc a {
    border-radius: 8px;
    border: none;
    border-left: 2px solid transparent;
    background: transparent;
    white-space: normal;
    padding: 7px 9px;
    font-size: 0.85rem;
  }

  .page-home .toc a:hover,
  .page-home .toc a[data-active] {
    background: var(--warm);
    color: var(--jade);
    border-left-color: var(--jade);
  }

  .page-home .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .page-home .bento-cell--wide { grid-column: span 4; }
  .page-home .bento-cell--small { grid-column: span 2; }
  .page-home .bento-cell--half { grid-column: span 3; }
  .page-home .bento-cell--full { grid-column: span 6; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .bento-cell,
  .page-home .toc a {
    transition: none;
  }

  .page-home .bento-cell:hover { transform: none; }
}
