.page-home {
  --home-line-light: rgba(108, 112, 106, 0.24);
  --home-line-dark: rgba(244, 235, 221, 0.14);
  --home-tint: rgba(181, 98, 63, 0.14);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .shell {
  padding-inline: 20px;
}

.page-home .section-head {
  max-width: 60ch;
  margin-bottom: 32px;
}

.page-home .section-head h2,
.page-home .adapt-copy h2,
.page-home .feedback-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 10px 0 14px;
}

.page-home .section-lede,
.page-home .hero-lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--rock);
}

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  background: var(--ink-green);
  color: var(--cream);
  padding: 84px 0 56px;
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(181, 18, 47, 0.42), transparent 68%);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.page-home .hero-rail .section-label {
  color: var(--amber);
  margin-bottom: 12px;
}

.page-home .hero-rail .section-label::before {
  background: var(--ruby);
}

.page-home .hero-domain {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(244, 235, 221, 0.72);
  word-break: break-all;
}

.page-home .rail-stats {
  margin: 26px 0 24px;
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--home-line-dark);
}

.page-home .rail-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.page-home .rail-stat dt {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(244, 235, 221, 0.66);
}

.page-home .rail-stat dd {
  font-size: 19px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.03em;
}

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

.page-home .rail-actions .btn {
  flex: 1 1 160px;
  text-align: center;
}

.page-home .rail-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 235, 221, 0.6);
}

.page-home .hero-ruler {
  display: block;
  width: 100%;
  height: 18px;
  color: var(--amber);
  margin-bottom: 20px;
}

.page-home .hero-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 20px;
}

.page-home .hero-lede {
  color: rgba(244, 235, 221, 0.82);
  max-width: 52ch;
  margin-bottom: 28px;
}

.page-home .hero-figure {
  margin: 0 0 26px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(217, 154, 43, 0.42);
  background: var(--ink-green-deep);
  box-shadow: 0 22px 48px rgba(4, 18, 15, 0.45);
}

.page-home .hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .chapter-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .preview-item a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 16px;
  border-left: 3px solid var(--rock);
  background: rgba(244, 235, 221, 0.05);
  border-radius: 0 10px 10px 0;
  color: var(--cream);
  text-decoration: none;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.page-home .preview-item a:hover,
.page-home .preview-item a:focus-visible {
  background: rgba(244, 235, 221, 0.12);
  transform: translateX(3px);
}

.page-home .preview-coord {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  flex: 0 0 auto;
}

.page-home .preview-text {
  font-size: 14px;
  line-height: 1.6;
}

.page-home .preview-item--ruby a { border-left-color: var(--ruby); }
.page-home .preview-item--amber a { border-left-color: var(--amber); }
.page-home .preview-item--emerald a { border-left-color: var(--emerald); }

/* ---------- updates ---------- */
.page-home .updates {
  background: var(--cream);
  padding: 64px 0;
  background-image:
    linear-gradient(var(--home-line-light) 1px, transparent 1px);
  background-size: 100% 96px;
}

.page-home .updates h2,
.page-home .matrix h2,
.page-home .scenes h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--ink);
}

.page-home .upd-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .upd-board {
  position: relative;
}

.page-home .upd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .upd-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--cap);
  border: 1px solid rgba(108, 112, 106, 0.4);
  background: var(--paper);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .upd-chip:hover {
  border-color: var(--ruby);
  color: var(--ruby);
}

.page-home #upd-all:checked ~ .upd-chips label[for="upd-all"],
.page-home #upd-mobile:checked ~ .upd-chips label[for="upd-mobile"],
.page-home #upd-nav:checked ~ .upd-chips label[for="upd-nav"],
.page-home #upd-version:checked ~ .upd-chips label[for="upd-version"],
.page-home #upd-feedback:checked ~ .upd-chips label[for="upd-feedback"] {
  background: var(--ink-green);
  border-color: var(--ink-green);
  color: var(--cream);
}

.page-home #upd-all:focus-visible ~ .upd-chips label[for="upd-all"],
.page-home #upd-mobile:focus-visible ~ .upd-chips label[for="upd-mobile"],
.page-home #upd-nav:focus-visible ~ .upd-chips label[for="upd-nav"],
.page-home #upd-version:focus-visible ~ .upd-chips label[for="upd-version"],
.page-home #upd-feedback:focus-visible ~ .upd-chips label[for="upd-feedback"] {
  outline: 2px solid var(--peacock);
  outline-offset: 2px;
}

.page-home #upd-mobile:checked ~ .upd-list .upd-item:not(.upd--mobile),
.page-home #upd-nav:checked ~ .upd-list .upd-item:not(.upd--nav),
.page-home #upd-version:checked ~ .upd-list .upd-item:not(.upd--version),
.page-home #upd-feedback:checked ~ .upd-list .upd-item:not(.upd--feedback) {
  display: none;
}

.page-home .upd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(108, 112, 106, 0.28);
}

.page-home .upd-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(108, 112, 106, 0.22);
}

.page-home .upd-item:hover,
.page-home .upd-item:focus-within {
  background: rgba(217, 154, 43, 0.1);
}

.page-home .upd-coord {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ruby);
}

.page-home .upd-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.page-home .upd-tag {
  justify-self: start;
}

.page-home .upd-impact {
  font-size: 13px;
  line-height: 1.6;
  color: var(--rock);
}

/* ---------- adapt ---------- */
.page-home .adapt {
  background: var(--ink-green);
  color: var(--cream);
  padding: 64px 0;
}

.page-home .adapt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.page-home .adapt-copy .section-label {
  color: var(--amber);
}

.page-home .adapt-copy .section-label::before {
  background: var(--ruby);
}

.page-home .adapt-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.24;
  color: var(--cream);
}

.page-home .adapt-copy p {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(244, 235, 221, 0.8);
  margin-bottom: 14px;
}

.page-home .adapt-packs {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(244, 235, 221, 0.16);
  border-radius: 12px;
  overflow: hidden;
}

.page-home .adapt-packs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 13px 16px;
  background: rgba(11, 43, 36, 0.92);
}

.page-home .pack-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
}

.page-home .pack-use {
  font-size: 13.5px;
  color: rgba(244, 235, 221, 0.76);
  line-height: 1.6;
}

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

.page-home .adapt-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(217, 154, 43, 0.4);
  background: var(--ink-green-deep);
}

.page-home .adapt-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.page-home .adapt-figure figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: rgba(244, 235, 221, 0.72);
  border-top: 1px solid rgba(244, 235, 221, 0.14);
}

.page-home .adapt-figure .mono {
  color: var(--amber);
  font-weight: 600;
}

/* ---------- matrix ---------- */
.page-home .matrix {
  position: relative;
  background: var(--cream);
  padding: 64px 0;
  overflow: hidden;
}

.page-home .matrix-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

.page-home .matrix-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.page-home .matrix .shell {
  position: relative;
  z-index: 1;
}

.page-home .matrix-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .matrix-cell {
  position: relative;
  padding: 22px 20px 18px;
  background: var(--paper);
  border: 1px solid rgba(181, 98, 63, 0.28);
  border-top: 4px solid var(--rock);
  border-radius: 4px 4px 12px 12px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.page-home .matrix-cell:hover,
.page-home .matrix-cell:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(11, 43, 36, 0.12);
}

.page-home .matrix-cell h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 6px 0 4px;
  color: var(--ink);
}

.page-home .cell-coord {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rock);
}

.page-home .cell-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ruby);
  letter-spacing: 0.05em;
}

.page-home .cell-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--rock);
  margin: 10px 0 14px;
}

.page-home .cell-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--peacock);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.page-home .cell--ruby { border-top-color: var(--ruby); }
.page-home .cell--amber { border-top-color: var(--amber); }
.page-home .cell--peacock { border-top-color: var(--peacock); }
.page-home .cell--emerald { border-top-color: var(--emerald); }
.page-home .cell--clay { border-top-color: var(--clay); }
.page-home .cell--rock { border-top-color: var(--rock); }

/* ---------- scenes ---------- */
.page-home .scenes {
  background: #EFE3D2;
  padding: 64px 0;
}

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

.page-home .scene-card {
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid rgba(108, 112, 106, 0.24);
  padding: 22px 20px;
}

.page-home .scene-index {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: var(--ruby);
  padding: 2px 9px;
  border-radius: var(--cap);
}

.page-home .scene-card h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 700;
  margin: 14px 0 10px;
  color: var(--ink);
}

.page-home .scene-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-home .scene-gain {
  font-size: 13px;
  line-height: 1.7;
  color: var(--emerald);
  font-weight: 600;
  border-top: 1px dashed rgba(108, 112, 106, 0.4);
  padding-top: 12px;
  margin-bottom: 0;
}

.page-home .scene-strip {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(108, 112, 106, 0.28);
  border: 1px solid rgba(108, 112, 106, 0.28);
  border-radius: 12px;
  overflow: hidden;
}

.page-home .strip-item {
  background: var(--ink-green);
  padding: 18px 16px;
  display: grid;
  gap: 6px;
}

.page-home .strip-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.02em;
}

.page-home .strip-label {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(244, 235, 221, 0.72);
}

/* ---------- feedback ---------- */
.page-home .feedback {
  background: var(--ink-green-deep);
  color: var(--cream);
  padding: 64px 0 72px;
}

.page-home .feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.page-home .feedback-copy .section-label {
  color: var(--amber);
}

.page-home .feedback-copy .section-label::before {
  background: var(--ruby);
}

.page-home .feedback-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.24;
  color: var(--cream);
}

.page-home .feedback-copy > p {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(244, 235, 221, 0.8);
  margin-bottom: 22px;
}

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

.page-home .feedback-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 235, 221, 0.86);
}

.page-home .feedback-steps .mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(217, 154, 43, 0.6);
  color: var(--amber);
  font-size: 12px;
}

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

.page-home .feedback-facet {
  padding: 18px 18px 22px;
}

.page-home .facet-figure {
  margin: -18px -18px 16px;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  background: var(--ink-green);
}

.page-home .facet-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .page-home .shell {
    padding-inline: 32px;
  }

  .page-home .upd-item {
    grid-template-columns: 96px minmax(0, 1fr) 104px;
    align-items: baseline;
    gap: 10px 18px;
  }

  .page-home .upd-name {
    grid-column: 2;
  }

  .page-home .upd-tag {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .page-home .upd-impact {
    grid-column: 2 / 4;
    font-size: 13px;
  }

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

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

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

@media (min-width: 960px) {
  .page-home .hero {
    padding: 104px 0 72px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 52px;
    align-items: start;
  }

  .page-home .hero-rail {
    padding-right: 32px;
    border-right: 1px solid var(--home-line-dark);
    position: sticky;
    top: 96px;
  }

  .page-home .rail-actions .btn {
    flex: 1 1 auto;
  }

  .page-home .updates,
  .page-home .adapt,
  .page-home .matrix,
  .page-home .scenes,
  .page-home .feedback {
    padding: 88px 0;
  }

  .page-home .adapt-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 56px;
  }

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

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

  .page-home .feedback-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 56px;
  }

  .page-home .feedback-facet {
    transform: rotate(-0.6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .preview-item a,
  .page-home .matrix-cell,
  .page-home .upd-chip,
  .page-home .feedback-facet {
    transition: none;
  }

  .page-home .preview-item a:hover,
  .page-home .preview-item a:focus-visible,
  .page-home .matrix-cell:hover,
  .page-home .matrix-cell:focus-within {
    transform: none;
  }
}
<<<END>>>
