.page-home {
  --home-cyan: var(--cyan-primary);
  --home-magenta: var(--magenta-accent);
  --home-green: var(--green-accent);
  --home-purple: var(--purple-glow);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 55% 45% at 88% 4%, rgba(122, 90, 248, 0.16), transparent 62%),
    radial-gradient(ellipse 45% 35% at 6% 22%, rgba(0, 229, 255, 0.10), transparent 55%),
    var(--bg-deep);
  color: var(--text-high);
  padding: 0 0 96px;
  font-family: var(--font-body);
  line-height: 1.6;
}

.page-home,
.page-home * {
  box-sizing: border-box;
}

.page-home .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.page-home .section-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-primary), var(--magenta-accent));
  display: inline-block;
  flex: 0 0 auto;
}

.page-home .section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--text-high);
}

.page-home .section-sub {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

.page-home .home-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1320px;
  margin-inline: auto;
  padding: 24px 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-low);
}

.page-home .crumb-sep {
  color: var(--cyan-primary);
  opacity: 0.6;
}

.page-home .crumb--current {
  color: var(--text-mid);
}

.page-home .home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

.page-home .hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.12), inset 0 0 60px rgba(122, 90, 248, 0.12);
  transform: rotate(-1deg);
  animation: homeHeroIn 0.8s ease forwards;
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, rgba(10, 14, 26, 0.18) 20%, transparent 48%);
  pointer-events: none;
}

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

.page-home .hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}

.page-home .hero-copy {
  position: relative;
  z-index: 3;
  padding: 12px 0 0;
  animation: homeHeroIn 0.8s ease 0.15s forwards;
}

.page-home .hero-copy::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 109, 0.16), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.page-home .hero-copy h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin: 10px 0 16px;
  letter-spacing: -0.01em;
  color: var(--text-high);
}

.page-home .h1-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 700;
  font-style: normal;
  color: var(--cyan-primary);
  margin-top: 10px;
}

.page-home .hero-desc {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 660px;
  margin-bottom: 24px;
}

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

.page-home .btn-primary {
  background: linear-gradient(135deg, var(--cyan-primary), var(--magenta-accent));
  border: none;
  color: #070a14;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
  transition: var(--transition-base);
}

.page-home .btn-primary:hover {
  box-shadow: 0 0 36px rgba(255, 42, 109, 0.35);
  transform: translateY(-2px);
}

.page-home .btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--text-high);
  transition: var(--transition-base);
}

.page-home .btn-ghost:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

.page-home .home-timeline {
  max-width: 1320px;
  margin: 56px auto 0;
  padding: 0 20px;
}

.page-home .timeline-cover {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.page-home .timeline-cover > img {
  display: none;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 229, 255, 0.14);
  object-fit: cover;
}

.page-home .timeline-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-primary) transparent;
  padding: 18px 4px 24px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.04), transparent 30%),
    linear-gradient(90deg, transparent 70%, rgba(255, 42, 109, 0.04));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
}

.page-home .timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: max-content;
  padding: 0 12px;
  position: relative;
}

.page-home .timeline-track::before {
  content: "";
  position: absolute;
  top: 53px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.2), var(--cyan-primary), var(--magenta-accent), var(--purple-glow), rgba(122, 90, 248, 0.2));
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.page-home .year-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  cursor: default;
  transition: var(--transition-base);
}

.page-home .year-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.85);
  color: var(--text-mid);
  white-space: nowrap;
  transition: var(--transition-base);
}

.page-home .year-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--cyan-primary);
  background: var(--bg-panel);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  position: relative;
  z-index: 1;
  transition: var(--transition-base);
}

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

.page-home .year-node:hover .year-value {
  color: var(--text-high);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.page-home .year-node:hover .year-dot {
  background: var(--cyan-primary);
  box-shadow: 0 0 18px var(--cyan-primary);
}

.page-home .year-node--current .year-value {
  color: var(--text-high);
  border-color: var(--magenta-accent);
  background: rgba(255, 42, 109, 0.14);
}

.page-home .year-node--current .year-dot {
  background: var(--magenta-accent);
  border-color: var(--magenta-accent);
  box-shadow: 0 0 18px var(--magenta-accent);
}

.page-home .timeline-note {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), rgba(255, 42, 109, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  overflow-x: auto;
  white-space: nowrap;
}

.page-home .note-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.page-home .note-arrow {
  color: var(--magenta-accent);
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}

.page-home .home-batch-stats {
  max-width: 1320px;
  margin: 56px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .batch-panel-block {
  position: relative;
  background: rgba(17, 24, 39, 0.7);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid rgba(0, 229, 255, 0.14);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.06);
}

.page-home .batch-panel-block::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--cyan-primary), var(--magenta-accent));
  opacity: 0.7;
}

.page-home .batch-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.page-home .batch-item {
  border-radius: var(--radius-md);
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: var(--transition-base);
}

.page-home .batch-item[open] {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.08);
}

.page-home .batch-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}

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

.page-home .batch-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan-primary);
  transition: transform 0.25s ease;
  margin-left: auto;
}

.page-home .batch-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--magenta-accent);
}

.page-home .batch-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-high);
  font-size: 15px;
  white-space: nowrap;
}

.page-home .batch-meta {
  font-size: 12px;
  color: var(--text-low);
  font-family: var(--font-mono);
  white-space: nowrap;
  margin-left: auto;
}

.page-home .batch-item summary::after + .batch-meta {
  margin-left: 0;
}

.page-home .batch-detail {
  padding: 0 16px 16px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.page-home .batch-footnote {
  margin-top: 18px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 16px;
  background: rgba(255, 184, 108, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 184, 108, 0.2);
}

.page-home .batch-footnote strong {
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 16px;
}

.page-home .stats-panel {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(255, 42, 109, 0.12), transparent 60%),
    rgba(17, 24, 39, 0.85);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid rgba(255, 42, 109, 0.16);
}

.page-home .stats-head {
  text-align: center;
  padding: 8px 0 20px;
}

.page-home .stats-head img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

.page-home .stats-head h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 6px 0 8px;
}

.page-home .stats-head p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.page-home .stats-head .section-eyebrow {
  justify-content: center;
}

.page-home .stats-head .section-eyebrow::before {
  width: 18px;
}

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

.page-home .stat-item {
  background: rgba(10, 14, 26, 0.6);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-base);
}

.page-home .stat-item:hover {
  transform: translateY(-3px) rotate(-1deg);
  border-color: rgba(0, 229, 255, 0.3);
}

.page-home .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  display: block;
  margin-bottom: 8px;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--text-high);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.page-home .stat-item--years .stat-num {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.page-home .stat-num sup {
  color: var(--cyan-primary);
  font-size: 0.6em;
  margin-left: 2px;
}

.page-home .stat-desc {
  display: block;
  color: var(--text-mid);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
}

.page-home .home-mobile {
  max-width: 1320px;
  margin: 56px auto 0;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: linear-gradient(115deg, rgba(0, 229, 255, 0.06), rgba(122, 90, 248, 0.08));
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  border-bottom: 1px solid rgba(255, 42, 109, 0.12);
}

.page-home .mobile-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.page-home .mobile-frame {
  position: relative;
  max-width: 280px;
  width: 100%;
  border-radius: 44px;
  padding: 14px;
  background: linear-gradient(145deg, #1a2236, #0d1428);
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow:
    0 0 60px rgba(0, 229, 255, 0.14),
    0 0 20px rgba(255, 42, 109, 0.12);
  transform: rotate(-5deg);
  transition: var(--transition-base);
}

.page-home .mobile-frame:hover {
  transform: rotate(-2deg) scale(1.02);
}

.page-home .mobile-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.page-home .mobile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .mobile-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  margin: 6px 0 12px;
}

.page-home .mobile-lead {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 18px;
}

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

.page-home .mobile-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-high);
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(17, 24, 39, 0.7);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .feature-icon {
  color: var(--green-accent);
  font-size: 12px;
  flex: 0 0 auto;
}

.page-home .mobile-note {
  color: var(--text-low);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.page-home .home-library {
  max-width: 1320px;
  margin: 56px auto 0;
  padding: 0 20px;
}

.page-home .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-home .filter-btn {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.7);
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition-base);
}

.page-home .filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 42, 109, 0.18));
  border-color: rgba(0, 229, 255, 0.5);
  color: var(--text-high);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}

.page-home .library-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.page-home .library-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(17, 24, 39, 0.75);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-width: 2px;
  transition: var(--transition-base);
}

.page-home .library-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: var(--transition-base);
  pointer-events: none;
}

.page-home .library-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.12);
}

.page-home .library-card:hover::after {
  opacity: 1;
}

.page-home .library-card--year {
  border-top-color: rgba(0, 229, 255, 0.4);
}

.page-home .library-card--region {
  border-top-color: rgba(255, 42, 109, 0.4);
}

.page-home .library-card--status {
  border-top-color: rgba(57, 255, 136, 0.4);
}

.page-home .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.page-home .card-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-low);
  letter-spacing: 0.08em;
}

.page-home .library-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-high);
}

.page-home .library-card p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
  flex-grow: 1;
}

.page-home .card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-home .card-meta span {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-mid);
  white-space: nowrap;
}

.page-home .library-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@keyframes homeHeroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .page-home .home-timeline,
  .page-home .home-batch-stats,
  .page-home .home-library {
    padding-right: 28px;
    padding-left: 28px;
  }

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

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

@media (min-width: 1024px) {
  .page-home .home-hero {
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 48px 40px 0;
  }

  .page-home .hero-visual {
    transform: rotate(-1.5deg);
  }

  .page-home .hero-copy {
    padding: 0;
  }

  .page-home .home-timeline {
    margin-top: 72px;
    padding-right: 40px;
    padding-left: 40px;
  }

  .page-home .timeline-cover {
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 24px;
  }

  .page-home .timeline-cover > img {
    display: block;
  }

  .page-home .home-batch-stats {
    margin-top: 72px;
    padding-right: 40px;
    padding-left: 40px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 40px;
  }

  .page-home .home-mobile {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    padding: 56px 60px;
    border-radius: var(--radius-lg);
    margin-top: 80px;
  }

  .page-home .mobile-frame {
    max-width: 300px;
  }

  .page-home .home-library {
    margin-top: 72px;
    padding-right: 40px;
    padding-left: 40px;
  }

  .page-home .library-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .stats-grid {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-visual,
  .page-home .hero-copy {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-home .batch-item,
  .page-home .stat-item,
  .page-home .library-card,
  .page-home .mobile-frame,
  .page-home .btn-primary,
  .page-home .btn-ghost,
  .page-home .filter-btn,
  .page-home .year-node {
    transition: none;
  }

  .page-home .library-card:hover,
  .page-home .stat-item:hover {
    transform: none;
  }
}
