.page-home {
  background: var(--paper);
  color: var(--graphite);
}

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

.page-home .hero__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 20px 32px;
  background:
    radial-gradient(120% 120% at 0% 0%, #ffffff 0%, var(--paper) 62%);
}

.page-home .hero__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--mint);
  pointer-events: none;
}

.page-home .hero__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.page-home .hero__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.page-home .hero__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.page-home .hero__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

.page-home .hero__grid {
  display: grid;
  gap: 30px;
}

.page-home .hero__context {
  margin: 0;
  font-size: var(--sz-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-2);
}

.page-home .hero h1 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

.page-home .hero__lede {
  margin: 0;
  max-width: 54ch;
  font-size: var(--sz-3);
  line-height: 1.78;
}

.page-home .ver {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 26px 0 8px;
  padding: 18px 20px 20px;
  border-left: 3px solid var(--mint);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 var(--r-m) var(--r-m) 0;
}

.page-home .ver__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(66px, 15vw, 120px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--indigo);
}

.page-home .ver__note {
  font-size: var(--sz-1);
  letter-spacing: 0.06em;
  color: var(--graphite);
}

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

.page-home .step {
  border-top: 2px solid var(--line);
  padding-top: 12px;
}

.page-home .step__num {
  display: block;
  font-size: var(--sz-2);
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home .step__t {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--sz-3);
  color: var(--indigo);
}

.page-home .step p {
  margin: 0;
  font-size: var(--sz-3);
  line-height: 1.7;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hero__ask {
  font-family: var(--font-mono);
  font-size: var(--sz-2);
  letter-spacing: 0.04em;
}

.page-home .hero__visual {
  position: relative;
  padding-bottom: 58px;
}

.page-home .shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--card);
}

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

.page-home .plate {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(76%, 300px);
  padding: 8px;
  border-radius: var(--r-m);
  background: var(--ink);
  border: 1px solid rgba(46, 230, 168, 0.5);
  box-shadow: 0 18px 40px rgba(7, 15, 30, 0.24);
}

.page-home .plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-s);
  opacity: 0.92;
}

.page-home .plate__cap {
  display: block;
  margin-top: 8px;
  font-size: var(--sz-1);
  letter-spacing: 0.05em;
  color: var(--mint);
}

.page-home .manual {
  padding: 56px 0 24px;
}

.page-home .manual > * {
  min-width: 0;
}

.page-home .index-axis {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: thin;
}

.page-home .index-axis__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px 8px 0;
  font-family: var(--font-mono);
  font-size: var(--sz-2);
  letter-spacing: 0.06em;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.page-home .index-axis__link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  flex: 0 0 auto;
}

.page-home .index-axis__link:hover { color: var(--indigo); }
.page-home .index-axis__link:hover::before { background: var(--mint); }

.page-home .index-axis__link[aria-current="true"] {
  color: var(--indigo);
  font-weight: 700;
}

.page-home .index-axis__link[aria-current="true"]::before {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.18);
}

.page-home .index-axis__num {
  font-size: var(--sz-1);
  color: var(--indigo-2);
}

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

.page-home .chapter {
  padding-bottom: 56px;
}

.page-home .chapter + .chapter {
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.page-home .chapter__h {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--sz-5);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

.page-home .chapter__lede {
  margin: 0 0 30px;
  max-width: 58ch;
  font-size: var(--sz-3);
  line-height: 1.78;
}

.page-home .chapter__cta {
  margin-top: 24px;
}

.page-home .entries {
  display: grid;
  gap: 18px;
}

.page-home .entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--r-l);
  background: var(--indigo);
  border: 1px solid rgba(203, 211, 224, 0.32);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-home .entry:hover,
.page-home .entry:focus-visible {
  transform: translateY(-2px);
  border-color: var(--mint);
}

.page-home .entry--tablet {
  background: linear-gradient(155deg, var(--indigo-2) 0%, var(--indigo) 72%);
  padding: 26px 22px;
}

.page-home .entry__k {
  font-size: var(--sz-1);
  letter-spacing: 0.1em;
  color: var(--mint);
}

.page-home .entry__big {
  font-size: var(--sz-7);
  line-height: 0.85;
  color: var(--mint);
  letter-spacing: -0.04em;
}

.page-home .entry__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--sz-4);
  line-height: 1.3;
  color: #ffffff;
}

.page-home .entry--tablet .entry__t {
  font-size: var(--sz-5);
}

.page-home .entry__p {
  margin: 0;
  font-size: var(--sz-3);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .entry__foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--sz-1);
  letter-spacing: 0.06em;
  color: var(--mint);
}

.page-home .vlist {
  border-bottom: 1px solid var(--line);
}

.page-home .vrow {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.page-home .vrow--now {
  background: rgba(46, 230, 168, 0.07);
  border-radius: var(--r-s);
  padding: 20px 14px;
  border-top-color: var(--mint);
}

.page-home .vrow__no {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--sz-4);
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.01em;
}

.page-home .vrow__d {
  margin: 0;
  font-size: var(--sz-3);
  line-height: 1.72;
}

.page-home .vrow__w {
  margin: 0;
  font-size: var(--sz-1);
  letter-spacing: 0.05em;
  color: var(--indigo-2);
}

.page-home .collect__strip {
  position: relative;
  margin: 0 0 26px;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .collect__strip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 16px 12px;
  font-size: var(--sz-1);
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(7, 15, 30, 0) 0%, rgba(7, 15, 30, 0.78) 100%);
}

.page-home .tiles {
  display: grid;
  gap: 16px;
}

.page-home .tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  min-height: 148px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.page-home .tile:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
}

.page-home .tile--a {
  border-left: 3px solid var(--mint);
  background: linear-gradient(160deg, #ffffff 0%, #fbfdfb 100%);
}

.page-home .tile__k {
  font-size: var(--sz-1);
  letter-spacing: 0.1em;
  color: var(--indigo-2);
}

.page-home .tile__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--sz-4);
  line-height: 1.3;
  color: var(--indigo);
}

.page-home .tile--a .tile__t {
  font-size: var(--sz-5);
}

.page-home .tile__p {
  margin: 0;
  font-size: var(--sz-3);
  line-height: 1.7;
}

.page-home .tile__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .tile__fav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--sz-1);
  letter-spacing: 0.06em;
  color: var(--graphite);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

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

.page-home .tile__fav-text::before {
  content: "☆ ";
}

.page-home .tile__fav input:checked ~ .tile__fav-text::before {
  content: "★ ";
}

.page-home .tile__fav input:checked ~ .tile__fav-text {
  color: var(--indigo);
  font-weight: 700;
}

.page-home .tile__fav:has(input:checked) {
  border-color: var(--mint);
  background: rgba(46, 230, 168, 0.14);
}

.page-home .tile__fav input:focus-visible ~ .tile__fav-text {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

.page-home .subs {
  display: grid;
  gap: 28px;
}

.page-home .tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.page-home .tabs__bar {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .tabs__label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: var(--sz-2);
  letter-spacing: 0.06em;
  color: var(--graphite);
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-home .tabs__label:hover {
  border-color: var(--mint);
  color: var(--indigo);
}

.page-home .tabs__panel {
  display: none;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--card);
}

.page-home .tabs__input:checked + .tabs__panel {
  display: block;
}

.page-home .tabs__input:nth-of-type(1):checked ~ .tabs__bar .tabs__label:nth-of-type(1),
.page-home .tabs__input:nth-of-type(2):checked ~ .tabs__bar .tabs__label:nth-of-type(2) {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #ffffff;
}

.page-home .tabs__input:focus-visible ~ .tabs__bar .tabs__label {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.page-home .sub__t {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--sz-4);
  color: var(--indigo);
}

.page-home .sub__p {
  margin: 0 0 12px;
  font-size: var(--sz-3);
  line-height: 1.75;
}

.page-home .sub__meta {
  margin: 0;
  font-size: var(--sz-1);
  letter-spacing: 0.06em;
  color: var(--indigo-2);
}

.page-home .prog {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--card);
}

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

.page-home .prog__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .prog__t {
  margin: 0;
  font-size: var(--sz-3);
  line-height: 1.72;
}

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

.page-home .prog__list li {
  position: relative;
  padding-left: 16px;
  font-size: var(--sz-2);
  line-height: 1.65;
  color: var(--indigo-2);
}

.page-home .prog__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.page-home .band-home {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 56px 0 64px;
  background: var(--indigo);
  color: #ffffff;
}

.page-home .band-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 44px);
  opacity: 0.55;
  pointer-events: none;
}

.page-home .band-home .wrap {
  position: relative;
}

.page-home .band-home__eyebrow {
  color: var(--mint);
}

.page-home .band-home__t {
  margin: 12px 0 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--sz-5);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 24ch;
}

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

.page-home .stats .stat {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.page-home .stats dt {
  font-size: var(--sz-5);
  font-weight: 700;
  line-height: 1;
  color: var(--mint);
  letter-spacing: -0.02em;
}

.page-home .stats .stat__u {
  font-size: var(--sz-2);
  margin-left: 4px;
  color: rgba(46, 230, 168, 0.85);
}

.page-home .stats dd {
  margin: 8px 0 0;
  font-size: var(--sz-2);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .band-home__note {
  margin: 0 0 26px;
  max-width: 66ch;
  font-size: var(--sz-3);
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .band-home .link {
  color: var(--mint);
}

.page-home .band-home__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-home .band-home__side {
  font-family: var(--font-mono);
  font-size: var(--sz-2);
  letter-spacing: 0.06em;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 230, 168, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.page-home .band-home__side:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

@media (min-width: 640px) {
  .page-home .hero__frame {
    padding: 32px 28px 38px;
  }

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

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

  .page-home .entry--tablet {
    grid-column: span 2;
  }

  .page-home .vrow {
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 20px;
  }

  .page-home .vrow__w {
    grid-column: 2;
  }

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

@media (min-width: 820px) {
  .page-home .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, auto);
  }

  .page-home .tile--a {
    grid-column: span 2;
    grid-row: span 2;
  }

  .page-home .tile--b {
    grid-column: span 2;
  }

  .page-home .tile--c,
  .page-home .tile--d {
    grid-column: span 1;
  }
}

@media (min-width: 900px) {
  .page-home .subs {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .hero {
    padding-top: 36px;
  }

  .page-home .hero__frame {
    padding: 44px 40px 48px;
  }

  .page-home .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 44px;
  }

  .page-home .manual {
    padding: 76px 0 32px;
  }

  .page-home .manual__grid,
  .page-home .manual {
    display: block;
  }

  .page-home .index-axis {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    float: left;
    width: 150px;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    margin-right: 48px;
  }

  .page-home .index-axis__link {
    display: flex;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  .page-home .chapters {
    margin-left: 198px;
  }

  .page-home .chapter__h {
    font-size: var(--sz-6);
  }

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

  .page-home .band-home__t {
    font-size: var(--sz-6);
  }

  .page-home .stats dt {
    font-size: var(--sz-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry,
  .page-home .tile,
  .page-home .tile__fav,
  .page-home .tabs__label,
  .page-home .index-axis__link,
  .page-home .band-home__side {
    transition: none;
  }

  .page-home .entry:hover,
  .page-home .tile:hover {
    transform: none;
  }
}
