.page-home {
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

.page-home .wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.page-home .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.page-home .kicker .badge {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ---------- chapter rail ---------- */
.page-home .home-rail {
  display: none;
}

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(217, 169, 58, 0.18), transparent 62%),
    radial-gradient(90% 80% at 0% 100%, rgba(18, 59, 58, 0.55), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  z-index: 0;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    114deg,
    transparent 0 22px,
    rgba(143, 166, 191, 0.055) 22px 23px
  );
  z-index: 0;
  pointer-events: none;
}

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

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

.page-home .display-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 7.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--paper);
}

.page-home .lede {
  font-size: 17px;
  line-height: 1.78;
  max-width: 34em;
  color: rgba(244, 241, 234, 0.82);
  margin: 0 0 26px;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.page-home .hero__meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-home .hero__panel {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 22px 22px 26px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%, 0 26px);
}

.page-home .hero__panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.6);
  pointer-events: none;
}

.page-home .hero__panel-inner {
  position: relative;
  display: grid;
  gap: 18px;
}

.page-home .hero-stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: start;
  column-gap: 6px;
  row-gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.page-home .hero-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4.6vw, 36px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .hero-stat__unit {
  font-size: 12px;
  color: var(--steel);
}

.page-home .hero-stat__label {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.72);
}

.page-home .hero-stat--accent .hero-stat__value {
  color: var(--gold-bright);
}

/* ---------- horizontal data band ---------- */
.page-home .hband {
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

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

.page-home .hband__item {
  background: var(--ink-2);
  min-width: 0;
}

.page-home .hband__link {
  display: block;
  padding: 22px 4px 22px 0;
  text-decoration: none;
  color: inherit;
  border-left: 2px solid transparent;
  padding-left: 16px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .hband__link:hover,
.page-home .hband__link:focus-visible {
  border-left-color: var(--gold);
  background: rgba(217, 169, 58, 0.06);
}

.page-home .hband__row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .hband__value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4.4vw, 32px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.page-home .hband__unit {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.page-home .hband__note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel);
}

/* ---------- generic section rhythm ---------- */
.page-home .home-sec {
  padding: 56px 0;
}

.page-home .home-sec__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- module cards ---------- */
.page-home .mod-grid {
  gap: 18px;
}

.page-home .mod {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  min-width: 0;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
  transition: transform var(--dur) var(--ease);
}

.page-home .mod::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  clip-path: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.page-home .mod:hover {
  transform: translateY(-4px);
}

.page-home .mod:hover::before {
  opacity: 0.75;
}

.page-home .mod__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0;
}

.page-home .mod__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--paper);
}

.page-home .mod__body {
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  color: rgba(244, 241, 234, 0.76);
}

.page-home .mod__foot {
  margin: auto 0 0;
  padding-top: 8px;
}

.page-home .mod__foot a {
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 169, 58, 0.4);
  padding-bottom: 2px;
}

.page-home .mod__foot a:hover,
.page-home .mod__foot a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.page-home .mod--wine {
  background: linear-gradient(158deg, rgba(122, 31, 51, 0.94), rgba(122, 31, 51, 0.68));
  border-color: rgba(242, 199, 92, 0.26);
}

.page-home .mod--teal {
  background: linear-gradient(158deg, rgba(18, 59, 58, 0.96), rgba(18, 59, 58, 0.72));
  border-color: rgba(143, 166, 191, 0.28);
}

.page-home .mod--indigo {
  background: linear-gradient(158deg, rgba(44, 42, 94, 0.94), rgba(44, 42, 94, 0.7));
  border-color: rgba(143, 166, 191, 0.26);
}

.page-home .mod-media {
  margin: 0;
  position: relative;
  min-width: 0;
  overflow: hidden;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
  border: 1px solid var(--line);
  background: var(--ink-3);
}

.page-home .mod-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 320px;
  object-fit: cover;
  opacity: 0.62;
}

.page-home .mod-media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.86);
  background: linear-gradient(180deg, transparent, rgba(14, 16, 19, 0.92));
}

/* ---------- pool band ---------- */
.page-home .pool {
  background: linear-gradient(155deg, var(--teal), var(--ink) 88%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .pool__grid {
  align-items: start;
}

.page-home .pool__figure {
  margin: 0;
  min-width: 0;
}

.page-home .pool__frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(14, 16, 19, 0.5);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

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

.page-home .pool__figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel);
}

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

.page-home .prose {
  font-size: 16px;
  line-height: 1.78;
  color: rgba(244, 241, 234, 0.82);
  margin: 0 0 18px;
  max-width: 36em;
}

.page-home .pool__scale {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 22px 0 24px;
  padding: 0;
}

.page-home .pool__scale li {
  position: relative;
  padding-top: 24px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.72);
  text-align: center;
}

.page-home .pool__scale li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--gold);
  opacity: 0.24;
}

.page-home .pool__scale li:nth-child(2)::before { opacity: 0.42; }
.page-home .pool__scale li:nth-child(3)::before { opacity: 0.6; }
.page-home .pool__scale li:nth-child(4)::before { opacity: 0.8; }
.page-home .pool__scale li:nth-child(5)::before { opacity: 1; }

.page-home .fold {
  border: 1px solid var(--line);
  background: rgba(14, 16, 19, 0.42);
  padding: 14px 16px;
}

.page-home .fold__summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  list-style: none;
}

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

.page-home .fold__summary::before {
  content: "＋";
  font-family: var(--font-mono);
  margin-right: 8px;
  color: var(--steel);
}

.page-home .fold[open] .fold__summary::before {
  content: "－";
}

.page-home .fold__body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.74);
}

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

.page-home .step {
  border-top: 2px solid var(--gold);
  padding-top: 16px;
  min-width: 0;
}

.page-home .step__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .step__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  margin: 8px 0 8px;
}

.page-home .step__body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.76);
  margin: 0;
}

.page-home .start__foot {
  margin: 28px 0 0;
}

/* ---------- season (paper) ---------- */
.page-home .season {
  background: var(--paper);
  color: var(--ink);
}

.page-home .season__figure {
  margin: 0;
  min-width: 0;
}

.page-home .season__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid rgba(14, 16, 19, 0.14);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
  background: var(--ink-3);
}

.page-home .season__figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #5b6068;
}

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

.page-home .season .kicker {
  color: var(--wine);
}

.page-home .season .section-title {
  color: var(--ink);
}

.page-home .season__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .season__list li {
  display: grid;
  gap: 5px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.page-home .season__list h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}

.page-home .season__list p {
  font-size: 15px;
  line-height: 1.72;
  margin: 0;
  color: #3a3f47;
}

.page-home .season__note {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(14, 16, 19, 0.14);
  font-size: 14px;
  line-height: 1.75;
  color: #4a4f57;
}

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

.page-home .season .btn--quiet {
  color: var(--ink);
  border-color: rgba(14, 16, 19, 0.28);
  background: transparent;
}

.page-home .season .btn--quiet:hover,
.page-home .season .btn--quiet:focus-visible {
  border-color: var(--wine);
  color: var(--wine);
}

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .page-home .hband__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .page-home .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }

  .page-home .hero {
    padding: 64px 0 80px;
  }

  .page-home .hero__main {
    grid-column: 1 / span 7;
  }

  .page-home .hero__panel {
    grid-column: 9 / span 4;
  }

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

  .page-home .home-sec {
    padding: 88px 0;
  }

  .page-home .home-sec__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
  }

  .page-home .mod--wide { grid-column: span 7; }
  .page-home .mod--mid { grid-column: span 5; }
  .page-home .mod--third { grid-column: span 4; }
  .page-home .mod--half { grid-column: span 5; }
  .page-home .mod-media { grid-column: span 7; }

  .page-home .mod-media img {
    min-height: 260px;
    max-height: none;
    height: 100%;
  }

  .page-home .pool__figure {
    grid-column: 1 / span 6;
  }

  .page-home .pool__body {
    grid-column: 8 / span 5;
  }

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

  .page-home .season__figure {
    grid-column: 1 / span 5;
  }

  .page-home .season__body {
    grid-column: 7 / span 6;
  }
}

@media (min-width: 1280px) {
  .page-home .home-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .page-home .home-rail .chapter-link {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--gray);
    text-decoration: none;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }

  .page-home .home-rail .chapter-link:hover,
  .page-home .home-rail .chapter-link:focus-visible,
  .page-home .home-rail .chapter-link.is-active {
    color: var(--gold);
    border-left-color: var(--gold);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .mod,
  .page-home .hband__link,
  .page-home .home-rail .chapter-link {
    transition: none;
  }

  .page-home .mod:hover {
    transform: none;
  }
}
