.page-home {
  display: block;
  color: var(--ridge);
  background: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .shell {
  width: min(var(--maxw), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* ---------- HERO ---------- */
.page-home .hero {
  padding: clamp(26px, 5vw, 56px) 0 clamp(30px, 5vw, 60px);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.page-home .hero__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.page-home .hero__text .h1,
.page-home .hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 15em;
}

.page-home .hero__text .lede {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--slate);
  margin: 0;
  max-width: 34em;
}

.page-home .hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.page-home .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* hero visual */
.page-home .hero__visual {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--felt);
  isolation: isolate;
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02);
  opacity: 0.92;
}

.page-home .hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(46, 90, 75, 0.55) 0%, rgba(18, 32, 28, 0.78) 100%);
  pointer-events: none;
}

.page-home .hero__ridge {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}

.page-home .hero__cap {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--bone);
  background: rgba(18, 32, 28, 0.55);
  border: 1px solid rgba(197, 138, 43, 0.7);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- SECTION RHYTHM ---------- */
.page-home .section {
  padding: clamp(42px, 7vw, 88px) 0;
}

.page-home .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
  max-width: 20em;
}

.page-home .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.3;
  margin: 6px 0 0;
}

.page-home .prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
  margin: 10px 0 0;
  max-width: 34em;
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home a {
  color: var(--felt);
  text-decoration-color: rgba(46, 90, 75, 0.35);
  text-underline-offset: 3px;
}

/* ---------- SAMPLE CARD ---------- */
.page-home .sample-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 15px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.page-home .sample-card--felt {
  background: var(--felt);
  border-color: rgba(252, 251, 247, 0.18);
  border-left-color: var(--amber);
  color: var(--bone);
}

.page-home .sample-card__no {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--haze);
  margin: 0;
}

.page-home .sample-card--felt .sample-card__no {
  color: rgba(252, 251, 247, 0.6);
}

.page-home .sample-card__tag {
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--slate);
}

.page-home .sample-card--felt .sample-card__tag {
  color: rgba(252, 251, 247, 0.78);
}

.page-home .sample-card__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  margin: 2px 0 0;
}

.page-home .sample-card--felt .sample-card__value {
  color: var(--amber);
}

.page-home .sample-card__foot {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(18, 32, 28, 0.16);
}

.page-home .sample-card--felt .sample-card__foot {
  color: rgba(252, 251, 247, 0.72);
  border-top-color: rgba(252, 251, 247, 0.22);
}

/* ---------- AXIS SECTION ---------- */
.page-home .section--axis {
  background:
    repeating-linear-gradient(0deg, rgba(18, 32, 28, 0.045) 0 1px, transparent 1px 34px),
    var(--paper);
}

.page-home .axis-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.page-home .axis {
  margin-top: 26px;
}

.page-home .axis__track {
  position: relative;
  height: 96px;
  border-radius: 12px;
  border: 1px solid rgba(18, 32, 28, 0.14);
  background:
    repeating-linear-gradient(90deg, rgba(18, 32, 28, 0.18) 0 1px, transparent 1px 8.3333%),
    linear-gradient(90deg,
      var(--moss) 0%,
      var(--moss) 20%,
      #9a8f4e 40%,
      var(--amber) 54%,
      #c07a3c 76%,
      var(--coral) 100%);
  background-size: auto, 100% 46%;
  background-position: 0 0, 0 100%;
  background-repeat: repeat, no-repeat;
  overflow: visible;
}

.page-home .axis__bands {
  position: absolute;
  inset: 0;
  display: block;
}

.page-home .axis__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8.3333%;
  border-right: 1px solid rgba(244, 242, 234, 0.28);
}

.page-home .axis__zone:first-child { left: 0; }
.page-home .axis__zone:nth-child(2) { left: 8.3333%; }
.page-home .axis__zone:nth-child(3) { left: 16.6666%; }
.page-home .axis__zone:nth-child(4) { left: 24.9999%; }
.page-home .axis__zone:nth-child(5) { left: 33.3332%; }
.page-home .axis__zone:nth-child(6) { left: 41.6665%; }
.page-home .axis__zone:nth-child(7) { left: 49.9998%; }
.page-home .axis__zone:nth-child(8) { left: 58.3331%; }
.page-home .axis__zone:nth-child(9) { left: 66.6664%; }
.page-home .axis__zone:nth-child(10) { left: 74.9997%; }
.page-home .axis__zone:nth-child(11) { left: 83.333%; }
.page-home .axis__zone:nth-child(12) { left: 91.6663%; }

.page-home .axis__ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 20px;
}

.page-home .axis__tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .axis__tick:first-child {
  transform: translateX(0);
}

.page-home .axis__tick:last-child {
  transform: translateX(-100%);
}

.page-home .axis__pointer {
  position: absolute;
  top: -14px;
  left: var(--axis-pos, 0%);
  width: 16px;
  height: 124px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ridge) 0%, var(--ridge) 60%, rgba(18, 32, 28, 0) 100%);
  transform: translateX(-50%);
  cursor: grab;
  appearance: none;
}

.page-home .axis__pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--amber);
  border: 2px solid var(--bone);
}

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

.page-home .axis__readout {
  margin: 40px 0 0;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ridge);
  background: var(--bone);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  padding: 9px 14px;
}

.page-home .zone-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-home .zone-list__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(127, 166, 160, 0.14);
  color: var(--ridge);
}

.page-home .zone-list__item .num {
  font-size: 12px;
  color: var(--slate);
  flex: none;
}

.page-home .zone-list__item--mid {
  background: rgba(197, 138, 43, 0.14);
}

.page-home .zone-list__item--high {
  background: rgba(222, 106, 71, 0.13);
}

.page-home .axis-side {
  margin: 30px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--line);
}

.page-home .axis-side img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.7);
}

.page-home .media__cap {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate);
  padding: 10px 14px;
  margin: 0;
  border-top: 1px dashed rgba(18, 32, 28, 0.16);
}

/* ---------- SEATS ---------- */
.page-home .section--seats {
  background: linear-gradient(180deg, var(--paper) 0%, rgba(127, 166, 160, 0.16) 100%);
}

.page-home .seats-head {
  max-width: 46em;
}

.page-home .segmented {
  margin-top: 26px;
}

.page-home .segmented__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(252, 251, 247, 0.86);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
}

.page-home .segmented__btn {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  appearance: none;
}

.page-home .segmented__btn[aria-selected="true"] {
  background: var(--felt);
  color: var(--bone);
}

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

.page-home .seat-panel {
  margin-top: 20px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.page-home .seat-panel[hidden] {
  display: none;
}

.page-home .seat-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-home .seat-panel__kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--amber-ink);
  margin: 0;
}

.page-home .seat-panel__note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--haze);
}

.page-home .seat-viz {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding: 16px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(18, 32, 28, 0.05) 0 1px, transparent 1px 22px),
    rgba(46, 90, 75, 0.07);
}

.page-home .seat-viz__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-home .seat-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--bone);
  background: var(--felt);
  border: 1px solid rgba(252, 251, 247, 0.35);
  flex: none;
}

.page-home .seat-viz__label {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-left: 6px;
}

.page-home .segmented__foot {
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
  margin: 18px 0 0;
}

.page-home .seats-figure {
  margin: 30px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--line);
}

.page-home .seats-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.68);
}

/* ---------- RULES ---------- */
.page-home .section--rules {
  background: var(--paper);
}

.page-home .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
}

.page-home .rules-aside .annot {
  font-size: 13px;
  line-height: 1.8;
  color: var(--slate);
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--amber);
}

.page-home .rules-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .rules-list .sample-card {
  border-left-color: var(--haze);
}

.page-home .rules-list .sample-card:nth-child(1) { border-left-color: var(--amber); }
.page-home .rules-list .sample-card:nth-child(2) { border-left-color: var(--moss); }
.page-home .rules-list .sample-card:nth-child(3) { border-left-color: var(--mis, var(--mist)); }
.page-home .rules-list .sample-card:nth-child(4) { border-left-color: var(--coral); }

.page-home .tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 999px;
  width: fit-content;
  background: rgba(18, 32, 28, 0.06);
  color: var(--slate);
}

.page-home .tag--moss { background: rgba(111, 140, 90, 0.18); color: #3c5230; }
.page-home .tag--amber { background: rgba(197, 138, 43, 0.18); color: var(--amber-ink); }
.page-home .tag--coral { background: rgba(222, 106, 71, 0.16); color: #8f3b1f; }

/* ---------- ENTRIES ---------- */
.page-home .section--entries {
  background: linear-gradient(180deg, rgba(127, 166, 160, 0.18) 0%, var(--paper) 100%);
}

.page-home .entries-head {
  max-width: 46em;
}

.page-home .entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

.page-home .entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bone);
  border: 1px solid var(--line);
  border-top: 3px solid var(--felt);
  text-decoration: none;
  color: var(--ridge);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.page-home .entry:hover,
.page-home .entry:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -22px rgba(18, 32, 28, 0.8);
}

.page-home .entry--wide {
  background: var(--felt);
  color: var(--bone);
  border-color: rgba(252, 251, 247, 0.16);
  border-top-color: var(--amber);
}

.page-home .entry__no {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--haze);
  margin: 0;
}

.page-home .entry--wide .entry__no { color: rgba(252, 251, 247, 0.6); }

.page-home .entry .h3 { margin: 0; }

.page-home .entry__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  margin: 4px 0 0;
  color: var(--amber-ink);
}

.page-home .entry--wide .entry__value { color: var(--amber); }

.page-home .entry__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
  margin: 4px 0 0;
}

.page-home .entry--wide .entry__desc { color: rgba(252, 251, 247, 0.78); }

.page-home .entry__go {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--felt);
  border-bottom: 1px solid rgba(46, 90, 75, 0.35);
  width: fit-content;
  padding-bottom: 2px;
}

.page-home .entry--wide .entry__go {
  color: var(--bone);
  border-bottom-color: rgba(252, 251, 247, 0.4);
}

.page-home .entries-foot {
  font-size: 13px;
  line-height: 1.8;
  color: var(--slate);
  margin: 20px 0 0;
}

/* ---------- VERSION ---------- */
.page-home .section--version {
  background: var(--paper);
}

.page-home .version-head {
  max-width: 48em;
}

.page-home .version-track {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.page-home .version-track__item {
  position: relative;
  padding: 18px 0 18px 20px;
  border-bottom: 1px solid var(--line);
}

.page-home .version-track__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--haze);
}

.page-home .version-track__item--now::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(197, 138, 43, 0.18);
}

.page-home .version-track__ver {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--amber-ink);
  margin: 0;
}

.page-home .version-track__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  margin: 4px 0 0;
}

.page-home .version-track__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
  margin: 4px 0 0;
  max-width: 32em;
}

.page-home .cadence {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .cadence__cell {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(46, 90, 75, 0.08);
  border-left: 3px solid var(--moss);
}

.page-home .cadence__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin: 0;
}

.page-home .cadence__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin: 6px 0 0;
  color: var(--ridge);
}

.page-home .version-link {
  margin: 26px 0 0;
}

/* ---------- CLOSING ---------- */
.page-home .closing {
  position: relative;
  margin-top: clamp(30px, 5vw, 60px);
  overflow: hidden;
  background: var(--ridge);
  color: var(--bone);
}

.page-home .closing__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.6);
}

.page-home .closing__inner {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vw, 96px) 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .closing .h2 {
  color: var(--bone);
  max-width: 18em;
}

.page-home .closing__text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(252, 251, 247, 0.75);
  margin: 4px 0 0;
  max-width: 40em;
}

.page-home .closing__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* ---------- BREAKPOINTS ---------- */
@media (min-width: 640px) {
  .page-home .zone-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .rules-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .seats-figure {
    margin-top: 36px;
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: 58fr 42fr;
    align-items: stretch;
  }

  .page-home .hero__visual {
    min-height: 480px;
  }

  .page-home .axis-head {
    grid-template-columns: 5fr 7fr;
    gap: clamp(20px, 3vw, 40px);
    align-items: end;
  }

  .page-home .axis-head .prose {
    margin-top: 0;
  }

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

  .page-home .seat-panel__grid {
    grid-template-columns: 7fr 5fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
  }

  .page-home .grid--3-9 {
    grid-template-columns: 3fr 9fr;
    gap: clamp(24px, 4vw, 52px);
  }

  .page-home .rules-aside {
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .page-home .entries {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: stretch;
  }

  .page-home .version-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 2px solid var(--line);
  }

  .page-home .version-track__item {
    padding: 26px 20px 20px 0;
    border-bottom: 0;
    border-right: 1px dashed rgba(18, 32, 28, 0.14);
  }

  .page-home .version-track__item::before {
    top: -5px;
    left: 0;
  }

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

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

@media (min-width: 1180px) {
  .page-home .axis-side img {
    aspect-ratio: 21 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry {
    transition: none;
  }
  .page-home .entry:hover,
  .page-home .entry:focus-visible {
    transform: none;
  }
}

.page-home {
  --mis: currentColor;
}
