.page-home {
  --home-band: linear-gradient(90deg, var(--y2021) 0%, var(--y2022) 34%, var(--y2023) 67%, var(--y2024) 100%);
  --home-rail: 288px;
  position: relative;
  overflow-x: clip;
}

/* ---------- Hero ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(40px, 7vw, 92px) 0 clamp(40px, 6vw, 72px);
}

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

.page-home .home-hero__title {
  margin: 14px 0 22px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 8.4vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-wrap: balance;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 30px var(--glow);
}

.page-home .home-hero__lead {
  max-width: 60ch;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-hero__lead strong {
  color: var(--paper);
  font-weight: 600;
}

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

.page-home .home-hero__rail {
  border: 2px solid var(--iron);
  border-radius: var(--r-md);
  background: var(--archive);
  box-shadow: var(--shadow-hard);
  padding: 18px;
}

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

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

.page-home .home-hero__years a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid var(--iron);
  border-radius: var(--r-sm);
  background: var(--ink);
  box-shadow: var(--shadow-hard-sm);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-home .home-hero__years a:hover,
.page-home .home-hero__years a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .home-year__count {
  color: var(--amber);
  font-size: 17px;
}

.page-home .home-hero__figure {
  position: relative;
  margin: clamp(30px, 5vw, 56px) 0 0;
  border: 2px solid var(--iron);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

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

.page-home .home-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(53, 240, 220, 0.07) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

/* ---------- Chapter shell ---------- */
.page-home .home-block {
  position: relative;
  padding-block: clamp(44px, 6.5vw, 84px);
}

.page-home .home-chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 28px);
  align-items: start;
}

.page-home .home-chapter__num {
  font-family: var(--mono);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--iron);
  -webkit-text-stroke: 2px var(--iron);
  user-select: none;
}

.page-home .home-chapter__title {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.45rem, 3.5vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

.page-home .home-chapter__lead {
  margin: 0;
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--muted);
}

.page-home .home-band {
  height: 4px;
  margin: clamp(20px, 3vw, 30px) 0 clamp(28px, 4vw, 44px);
  border-radius: var(--pill);
  background: var(--home-band);
}

.page-home .home-body-text {
  margin: 0 0 22px;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-body-text--tight {
  margin-bottom: 22px;
}

.page-home .home-split-note {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-split-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 01 years ---------- */
.page-home .home-years-figure {
  margin: 0 0 clamp(24px, 3.4vw, 40px);
  border: 2px solid var(--iron);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--archive);
  box-shadow: var(--shadow-hard);
}

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

.page-home .home-years-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.page-home .home-year-card {
  --yc: var(--cyan);
  position: relative;
  display: block;
  padding: 20px 16px 22px;
  border: 2px solid var(--iron);
  border-radius: var(--r-md);
  background: var(--archive);
  box-shadow: var(--shadow-hard);
  color: var(--paper);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-home .home-year-card--y2021 { --yc: var(--y2021); }
.page-home .home-year-card--y2022 { --yc: var(--y2022); }
.page-home .home-year-card--y2023 { --yc: var(--y2023); }
.page-home .home-year-card--y2024 { --yc: var(--y2024); }

.page-home .home-year-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--yc);
}

.page-home .home-year-card:hover,
.page-home .home-year-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  border-color: var(--yc);
}

.page-home .home-year-card__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-home .home-year-card__count {
  margin: 6px 0 2px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.4vw, 2.1rem);
  line-height: 1;
  color: var(--paper);
  transition: color 0.2s ease;
}

.page-home .home-year-card:hover .home-year-card__count,
.page-home .home-year-card:focus-visible .home-year-card__count {
  color: var(--cyan);
}

.page-home .home-year-card__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 02 facts ---------- */
.page-home .home-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2.2vw, 22px);
}

.page-home .home-fact {
  position: relative;
  padding: 22px 20px 24px;
  border: 2px solid var(--iron);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--archive) 0%, var(--ink) 100%);
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-home .home-fact:hover {
  transform: translate(-2px, -2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  border-color: var(--cyan);
}

.page-home .home-fact__idx {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .home-fact__title {
  margin: 12px 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .home-fact__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .home-fact__text .yg-mono {
  color: var(--amber);
  font-size: 0.94em;
}

/* ---------- 03 lanes ---------- */
.page-home .home-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.6vw, 42px);
  align-items: start;
}

.page-home .home-lanes__figure {
  margin: 0;
  border: 2px solid var(--iron);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--archive);
  box-shadow: var(--shadow-hard);
}

.page-home .home-lanes__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 50 / 31;
  object-fit: cover;
}

.page-home .home-lane-list {
  display: grid;
  gap: clamp(14px, 2vw, 18px);
}

.page-home .home-lane {
  --lc: var(--cyan);
  padding: 20px 20px 22px;
  border: 2px solid var(--iron);
  border-left: 6px solid var(--lc);
  border-radius: var(--r-md);
  background: var(--archive);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .home-lane--web {
  --lc: var(--amber);
}

.page-home .home-lane:hover {
  transform: translateX(3px);
  border-color: var(--lc);
}

.page-home .home-lane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.page-home .home-lane__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--paper);
}

.page-home .home-lane__count {
  font-size: 13px;
  color: var(--lc);
}

.page-home .home-lane__text {
  margin: 10px 0 14px;
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .home-lane__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lc);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- 04 browsers ---------- */
.page-home .home-browsers {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-browsers li {
  padding: 12px 10px;
  border: 2px solid var(--iron);
  border-radius: var(--r-sm);
  background: var(--ink);
  box-shadow: var(--shadow-hard-sm);
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .home-browsers li:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .home-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 05 rescue ---------- */
.page-home .home-rescue {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 42px);
  align-items: center;
  padding: clamp(22px, 3.6vw, 40px);
  border: 2px solid var(--iron);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--archive) 0%, var(--ink) 78%);
  box-shadow: var(--shadow-hard);
}

.page-home .home-steps {
  list-style: none;
  counter-reset: hs;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-steps li {
  position: relative;
  counter-increment: hs;
  padding-left: 44px;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--paper);
}

.page-home .home-steps li::before {
  content: counter(hs, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--iron);
  border-radius: var(--r-sm);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
}

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

.page-home .home-rescue .yg-contact-row {
  border-top: 1px solid var(--iron);
  padding-top: 16px;
}

.page-home .home-rescue__figure {
  margin: 0;
  border: 2px solid var(--iron);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-hard-sm);
}

.page-home .home-rescue__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 45 / 26;
  object-fit: cover;
  opacity: 0.9;
}

/* ---------- 06 log ---------- */
.page-home .home-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.page-home .home-log li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 0 20px 22px;
  border-left: 2px solid var(--iron);
}

.page-home .home-log li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--iron);
}

.page-home .home-log li:first-child::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px var(--glow);
}

.page-home .home-log__when {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.page-home .home-log__what {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--paper);
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .page-home .home-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .page-home .home-chapter__num {
    font-size: 2.1rem;
    -webkit-text-stroke-width: 1px;
  }

  .page-home .home-hero__rail {
    padding: 14px;
  }

  .page-home .home-log li {
    padding-left: 18px;
  }
}

/* ---------- medium screens ---------- */
@media (min-width: 700px) {
  .page-home .home-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .page-home .home-log__when {
    padding-top: 4px;
  }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .page-home .home-lanes {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .page-home .home-rescue {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

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

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

@media (min-width: 1040px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) var(--home-rail);
    gap: clamp(32px, 4.6vw, 60px);
  }

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

  .page-home .home-year-card:nth-child(2),
  .page-home .home-year-card:nth-child(4) {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-year-card,
  .page-home .home-fact,
  .page-home .home-lane,
  .page-home .home-hero__years a {
    transition: none;
  }
}
