.page-home {
  --home-gap: clamp(20px, 3vw, 40px);
  --home-sec: clamp(48px, 8vw, 96px);
  background: var(--ivory-050);
  color: var(--ink-text);
  font-family: var(--font-body);
  padding-bottom: clamp(32px, 6vw, 72px);
  overflow-x: hidden;
}

.page-home a { color: inherit; }

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.page-home p { margin: 0; }

.page-home .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.page-home .home-frame {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--frame-pad);
}

.page-home .img-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--ink-700);
}

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

.page-home .img-frame__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-300);
  background: rgba(10, 32, 25, 0.78);
  border: 1px solid rgba(198, 161, 58, 0.32);
  border-radius: 999px;
}

/* ---------- context bar ---------- */
.page-home .home-context {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 16px var(--frame-pad) 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  border-bottom: 1px solid var(--paper-line);
}

.page-home .crumbs {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(6, 19, 15, 0.62);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.page-home .crumbs a {
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
}

.page-home .crumbs a:hover { color: var(--ink-700); }
.page-home .crumbs a:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

.page-home .home-context__meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-500);
}

/* ---------- hero ---------- */
.page-home .home-hero {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 14px var(--frame-pad) 0;
}

.page-home .home-hero__frame {
  position: relative;
  display: grid;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-card);
  background: var(--ink-900);
  color: var(--ivory-050);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.page-home .home-hero__copy {
  padding: clamp(26px, 6vw, 72px) clamp(22px, 5vw, 64px);
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  align-content: center;
}

.page-home .home-hero__kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-300);
}

.page-home .home-hero__title {
  font-weight: 900;
  font-size: clamp(42px, 9vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ivory-050);
}

.page-home .home-hero__title-em {
  color: var(--gold-300);
}

.page-home .home-hero__lede {
  max-width: 40ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: rgba(250, 246, 234, 0.8);
}

.page-home .home-hero__index {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 10px;
}

.page-home .home-hero__index li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(250, 246, 234, 0.72);
}

.page-home .home-hero__index .mono {
  flex: none;
  font-size: 11px;
  color: var(--gold-500);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.page-home .home-hero__actions .btn:focus-visible,
.page-home .home-version__cta:focus-visible,
.page-home .home-replay__copy .btn:focus-visible,
.page-home .home-timing__cta:focus-visible,
.page-home .home-help__cta:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.page-home .home-hero__visual {
  border-radius: 0;
  border-top: 1px solid rgba(198, 161, 58, 0.24);
}

.page-home .home-hero__visual img {
  aspect-ratio: 4 / 3;
}

/* ---------- plays ---------- */
.page-home .home-plays {
  padding-block: var(--home-sec);
}

.page-home .home-plays__grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}

.page-home .home-plays__idx,
.page-home .home-version__idx,
.page-home .home-install__idx,
.page-home .home-replay__idx,
.page-home .home-timing__idx,
.page-home .home-help__idx {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-500);
  margin-bottom: 12px;
}

.page-home .home-plays__title,
.page-home .home-install__title,
.page-home .home-replay__title,
.page-home .home-timing__title,
.page-home .home-help__title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink-900);
}

.page-home .home-plays__text {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(6, 19, 15, 0.72);
}

.page-home .home-plays__fig {
  margin-top: 24px;
  border: 1px solid var(--paper-line);
}

.page-home .home-plays__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--paper-line);
}

.page-home .home-play a {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 2px 14px;
  padding: 16px 10px 16px 6px;
  border-bottom: 1px solid var(--paper-line);
  text-decoration: none;
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.page-home .home-play__no {
  grid-row: 1 / span 2;
  font-size: 11px;
  color: var(--gold-500);
  padding-top: 6px;
}

.page-home .home-play__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
}

.page-home .home-play__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(6, 19, 15, 0.62);
}

.page-home .home-play a:hover,
.page-home .home-play a:focus-visible {
  background: var(--ivory-100);
  padding-left: 16px;
}

.page-home .home-play a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}

/* ---------- version ---------- */
.page-home .home-version {
  padding-bottom: var(--home-sec);
}

.page-home .home-version__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(198, 161, 58, 0.3);
  border-radius: var(--radius-card);
  background: var(--ink-900);
  color: var(--ivory-050);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.page-home .home-version__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, rgba(198, 161, 58, 0.16), transparent 62%);
}

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

.page-home .home-version__title {
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--ivory-050);
  margin-bottom: 14px;
}

.page-home .home-version__num {
  font-size: 0.78em;
  color: var(--gold-300);
  letter-spacing: 0.02em;
}

.page-home .home-version__text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(250, 246, 234, 0.76);
  max-width: 44ch;
}

.page-home .home-version__cta {
  margin-top: 20px;
}

.page-home .home-version__grid {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  gap: 18px 24px;
  border-top: 1px solid var(--hair);
  padding-top: 22px;
}

.page-home .home-version__cell dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-300);
  margin-bottom: 6px;
}

.page-home .home-version__cell dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ivory-050);
}

/* ---------- install ---------- */
.page-home .home-install {
  padding-bottom: var(--home-sec);
}

.page-home .home-install__grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
}

.page-home .home-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.page-home .home-step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 4px 14px;
  padding-block: 18px;
  border-top: 1px solid var(--paper-line);
}

.page-home .home-step:last-child { border-bottom: 1px solid var(--paper-line); }

.page-home .home-step__no {
  grid-row: 1 / span 2;
  font-size: 11px;
  color: var(--gold-500);
  padding-top: 5px;
}

.page-home .home-step__name {
  font-size: 18px;
  color: var(--ink-900);
}

.page-home .home-step__text {
  font-size: 14px;
  line-height: 1.78;
  color: rgba(6, 19, 15, 0.68);
}

.page-home .home-install__note {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-500);
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(6, 19, 15, 0.7);
}

.page-home .home-install__fig {
  border: 1px solid var(--paper-line);
  justify-self: stretch;
}

.page-home .home-install__fig img {
  aspect-ratio: 3 / 4;
}

/* ---------- replay ---------- */
.page-home .home-replay {
  padding-bottom: var(--home-sec);
}

.page-home .home-replay__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.page-home .home-replay__card {
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--ivory-100);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
}

.page-home .home-replay__title {
  font-size: clamp(26px, 3.4vw, 36px);
}

.page-home .home-replay__text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(6, 19, 15, 0.7);
}

.page-home .home-replay__segs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-replay__seg {
  border-top: 2px solid var(--gold-500);
  padding-top: 10px;
  display: grid;
  gap: 4px;
}

.page-home .home-replay__seg-val {
  font-size: 16px;
  color: var(--ink-900);
}

.page-home .home-replay__seg-key {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate-500);
}

.page-home .home-replay__sub {
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--ink-900);
  margin-bottom: 12px;
}

.page-home .home-replay__lead {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(6, 19, 15, 0.72);
}

.page-home .home-replay__list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .home-replay__list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px dashed var(--paper-line);
  font-size: 14px;
  line-height: 1.72;
  color: rgba(6, 19, 15, 0.72);
}

.page-home .home-replay__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-500);
  transform: rotate(45deg);
}

/* ---------- timing ---------- */
.page-home .home-timing {
  padding-block: var(--home-sec);
  background: var(--ink-900);
  color: var(--ivory-050);
  border-block: 1px solid rgba(198, 161, 58, 0.28);
}

.page-home .home-timing__title {
  color: var(--ivory-050);
}

.page-home .home-timing__text {
  margin-top: 16px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(250, 246, 234, 0.76);
}

.page-home .home-timing__rail {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .home-timing__row {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.page-home .home-timing__label {
  font-size: 13.5px;
  color: var(--ivory-050);
}

.page-home .home-timing__track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(250, 246, 234, 0.14);
  overflow: hidden;
}

.page-home .home-timing__bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink-500), var(--gold-500) 55%, var(--gold-300));
}

.page-home .home-timing__bar--1 { width: 83%; }
.page-home .home-timing__bar--2 { width: 54%; }
.page-home .home-timing__bar--3 { width: 100%; }

.page-home .home-timing__val {
  font-size: 12.5px;
  color: var(--gold-300);
  white-space: nowrap;
}

.page-home .home-timing__scale {
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(250, 246, 234, 0.5);
}

.page-home .home-timing__fig {
  margin-top: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(198, 161, 58, 0.22);
}

.page-home .home-timing__fig img {
  aspect-ratio: 21 / 9;
}

.page-home .home-timing__details {
  margin-top: 24px;
  border-top: 1px solid rgba(250, 246, 234, 0.16);
  padding-top: 16px;
}

.page-home .home-timing__details summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--gold-300);
}

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

.page-home .home-timing__details summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-500);
}

.page-home .home-timing__details[open] summary::before { content: "–"; }

.page-home .home-timing__details summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.page-home .home-timing__detail-grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.page-home .home-timing__detail-grid p {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(250, 246, 234, 0.72);
}

.page-home .home-timing__k {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold-500);
  margin-bottom: 4px;
}

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

/* ---------- help ---------- */
.page-home .home-help {
  padding-top: var(--home-sec);
}

.page-home .home-help__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

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

.page-home .home-help__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: var(--ivory-050);
  text-decoration: none;
  font-size: 14.5px;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .home-help__links a .mono {
  color: var(--gold-500);
  font-size: 13px;
}

.page-home .home-help__links a:hover,
.page-home .home-help__links a:focus-visible {
  background: var(--ivory-100);
  border-color: var(--gold-line);
}

.page-home .home-help__links a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.page-home .home-help__contact {
  padding: clamp(22px, 3.4vw, 34px);
  border-radius: var(--radius-card);
  background: var(--ink-700);
  color: var(--ivory-050);
}

.page-home .home-help__sub {
  font-size: 20px;
  color: var(--ivory-050);
  margin-bottom: 16px;
}

.page-home .home-help__dl {
  margin: 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--hair);
  padding-top: 16px;
}

.page-home .home-help__dl dt {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold-300);
  margin-bottom: 4px;
}

.page-home .home-help__dl dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  word-break: break-word;
}

.page-home .home-help__hint {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.78;
  color: rgba(250, 246, 234, 0.72);
}

.page-home .home-help__cta {
  margin-top: 20px;
}

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .page-home .home-version__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .home-replay__segs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .home-timing__detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .home-timing__row { grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 16px; }
}

@media (min-width: 900px) {
  .page-home .home-hero__frame {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    min-height: 520px;
  }

  .page-home .home-hero__visual {
    border-top: 0;
    border-left: 1px solid rgba(198, 161, 58, 0.24);
  }

  .page-home .home-hero__visual img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .page-home .home-plays__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .home-version__panel {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .home-version__grid {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--hair);
    padding-left: clamp(20px, 3vw, 40px);
  }

  .page-home .home-install__grid {
    grid-template-columns: minmax(0, 6.4fr) minmax(0, 3.6fr);
    align-items: start;
  }

  .page-home .home-install__fig img { aspect-ratio: 3 / 4; }

  .page-home .home-replay__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }

  .page-home .home-help__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-home .home-timing__detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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