.page-home {
  --home-hero-pad: calc(var(--header-h-mobile, 64px) + 36px);
  --home-card-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #FFFFFF;
  color: #0A0A0A;
}

.page-home .kicker {
  color: var(--brand);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .section-lead {
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-top: var(--home-hero-pad);
  padding-bottom: 56px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 22px);
  pointer-events: none;
  z-index: 1;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 36px;
}

.page-home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.page-home .hero-badge::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  transform: skewX(-30deg);
}

.page-home .hero-title {
  margin: 0 0 24px;
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
}

.page-home .hero-brand-line {
  display: block;
  color: var(--white);
}

.page-home .hero-version-line {
  display: block;
  margin-top: 0.18em;
  color: var(--brand);
  font-size: 0.72em;
  padding-left: 20px;
  position: relative;
}

.page-home .hero-version-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.08em;
  width: 8px;
  background: var(--brand);
  transform: skewX(-18deg);
}

.page-home .hero-desc {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-home .hero-actions .btn {
  min-width: 164px;
}

.page-home .hero-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  background: var(--gray-900);
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  opacity: 0.45;
}

.page-home .hero-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .stat-cell {
  background: rgba(13, 27, 42, 0.92);
  padding: 24px 16px;
  text-align: center;
}

.page-home .stat-num {
  display: block;
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--brand);
}

.page-home .stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gray-400);
}

.page-home .home-diff {
  background: #FFFFFF;
  padding: 88px 0;
}

.page-home .diff-grid {
  display: grid;
  gap: 24px;
}

.page-home .diff-card {
  position: relative;
  padding: 28px 24px;
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-home .diff-card-new {
  border-top: 4px solid var(--brand);
}

.page-home .diff-card-old {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
}

.page-home .diff-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .diff-dot {
  width: 10px;
  height: 10px;
  background: var(--brand);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.page-home .diff-dot-gray {
  background: var(--gray-400);
}

.page-home .diff-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.page-home .diff-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.65;
}

.page-home .diff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 2px;
  background: var(--brand);
  transform: skewX(-30deg);
}

.page-home .diff-card-old .diff-list li {
  color: rgba(255, 255, 255, 0.85);
}

.page-home .diff-note {
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--gray-400);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.page-home .diff-card-new .btn {
  margin-top: 4px;
}

.page-home .home-replay {
  padding: 88px 0;
  background: var(--navy);
  color: var(--white);
}

.page-home .home-replay .section-lead,
.page-home .home-stats .section-lead {
  color: var(--gray-400);
}

.page-home .replay-grid {
  display: grid;
  gap: 24px;
}

.page-home .replay-card {
  background: var(--gray-900);
  border-color: rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-home .replay-card:hover,
.page-home .replay-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}

.page-home .replay-card-featured {
  padding: 0;
}

.page-home .replay-card-img {
  max-width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
  width: 100%;
  filter: grayscale(1) contrast(1.15);
  transition: filter 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-home .replay-card:hover .replay-card-img,
.page-home .replay-card:focus-within .replay-card-img {
  filter: grayscale(0) contrast(1);
}

.page-home .replay-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.page-home .replay-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(255, 75, 43, 0.45);
  padding: 4px 10px;
}

.page-home .replay-card h3 {
  margin: 12px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .replay-card p {
  margin: 6px 0 12px;
  color: var(--gray-400);
  font-size: 0.95rem;
}

.page-home .replay-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 75, 43, 0.35);
  padding-bottom: 2px;
}

.page-home .home-archive {
  padding: 88px 0;
  background: #FFFFFF;
}

.page-home .archive-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .archive-copy h2,
.page-home .stats-copy h2,
.page-home .commute-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

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

.page-home .archive-list li {
  padding-left: 26px;
  position: relative;
  line-height: 1.65;
  color: var(--gray-700);
}

.page-home .archive-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 3px;
  background: var(--brand);
  transform: skewX(-30deg);
}

.page-home .archive-visual img,
.page-home .stats-visual img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-home .archive-visual img {
  max-height: 420px;
  width: 100%;
  filter: grayscale(0.7) contrast(1.1);
  transition: filter 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-home .archive-visual img:hover {
  filter: grayscale(0) contrast(1);
}

.page-home .archive-sub-link {
  display: inline-block;
  margin-top: 16px;
  margin-left: 18px;
  color: var(--gray-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .home-stats {
  padding: 88px 0;
  background: var(--black);
  color: var(--white);
}

.page-home .stats-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .stats-copy .section-lead {
  color: var(--gray-400);
}

.page-home .stats-visual img {
  max-height: 520px;
  width: 100%;
  filter: grayscale(0.35) contrast(1.1) brightness(0.9);
}

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

.page-home .stats-steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .steps-num {
  font-family: var(--display-font);
  font-weight: 900;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brand);
  flex-shrink: 0;
  line-height: 1;
}

.page-home .home-commute {
  padding: 88px 0;
  background: #FFFFFF;
}

.page-home .commute-panel {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 40px 28px;
}

.page-home .commute-panel::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 190px;
  height: 190px;
  border: 2px solid rgba(255, 75, 43, 0.5);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-home .commute-copy {
  max-width: 560px;
}

.page-home .commute-copy .section-lead {
  color: var(--gray-400);
}

.page-home .commute-copy .btn {
  margin-top: 22px;
}

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

.page-home .commute-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.86);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .page-home [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .page-home [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal],
  .page-home .diff-card,
  .page-home .replay-card {
    transition: none;
    transform: none;
  }
}

@media (min-width: 960px) {
  .page-home {
    --home-hero-pad: calc(var(--header-h, 76px) + 56px);
  }

  .page-home .section-head {
    margin-bottom: 48px;
  }

  .page-home .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
  }

  .page-home .hero-title {
    font-size: clamp(3.4rem, 5.6vw, 5.2rem);
  }

  .page-home .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 56px;
  }

  .page-home .stat-cell {
    padding: 28px 20px;
  }

  .page-home .diff-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-home .diff-card {
    padding: 40px 36px;
  }

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

  .page-home .replay-card-featured {
    grid-column: span 1;
  }

  .page-home .archive-inner {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .page-home .stats-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
  }

  .page-home .stats-visual {
    order: 0;
  }

  .page-home .commute-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 56px 48px;
  }

  .page-home .commute-steps {
    margin-top: 0;
  }
}
