.page-home {
  --home-teal: #0E4F5C;
  --home-teal-2: #1B9AAA;
  --home-orange: #F77B22;
  --home-orange-light: #FFB067;
  --home-cream: #F5F0E0;
  --home-brown: #2D1F14;
  --home-dark: #0A3B45;
  --home-white: #FFFFFF;
  background: var(--home-cream);
  color: var(--home-brown);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  background: var(--home-teal);
  color: var(--home-white);
  padding: 32px 20px 40px;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 59, 69, 0.85) 0%, rgba(14, 79, 92, 0.2) 55%, rgba(27, 154, 170, 0.25) 100%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -90px;
  width: 220px;
  height: 220px;
  background: var(--home-orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26% 100%);
  opacity: 0.13;
  pointer-events: none;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.page-home .home-hero-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(245, 240, 224, 0.18);
  padding-bottom: 12px;
}

.page-home .breadcrumb {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--home-cream);
}

.page-home .breadcrumb-sep {
  color: var(--home-orange);
}

.page-home .home-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--home-cream);
}

.page-home .home-hero-status-dot {
  width: 8px;
  height: 8px;
  background: var(--home-orange);
  border-radius: 50%;
  animation: qmh-home-pulse 2s ease-in-out infinite;
}

@keyframes qmh-home-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(247, 123, 34, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(247, 123, 34, 0);
  }
}

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

.page-home .home-hero-copy h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.page-home .home-hero-lead {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(245, 240, 224, 0.92);
  max-width: 62ch;
}

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

.page-home .home-hero-actions .btn-outline {
  color: var(--home-cream);
  border-color: rgba(245, 240, 224, 0.7);
  background: transparent;
}

.page-home .home-hero-actions .btn-outline:hover {
  background: rgba(245, 240, 224, 0.12);
}

.page-home .home-hero-visual {
  position: relative;
  overflow: hidden;
}

.page-home .home-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--home-dark);
  box-shadow: 10px 10px 0 rgba(10, 59, 69, 0.45);
  clip-path: polygon(0 0, 92% 0, 100% 18%, 100% 100%, 5% 100%, 0 86%);
}

.page-home .home-mountain-lines {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 58%;
  pointer-events: none;
  z-index: 1;
}

.page-home .chapter-preview-grid {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}

.page-home .chapter-preview-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--home-white);
  background: rgba(10, 59, 69, 0.6);
  border: 1px solid rgba(245, 240, 224, 0.22);
  padding: 20px;
  transition: background 0.2s, transform 0.2s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .chapter-preview-item:hover {
  background: var(--home-teal-2);
  transform: translateY(-3px);
}

.page-home .chapter-preview-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: var(--home-orange);
}

.page-home .chapter-preview-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--home-cream);
}

.page-home .chapter-preview-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--home-white);
}

.page-home .chapter-preview-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(245, 240, 224, 0.82);
}

.page-home .home-section {
  padding: 60px 20px;
}

.page-home .home-section-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.page-home .section-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.page-home .section-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--home-orange);
  writing-mode: vertical-rl;
}

.page-home .section-body {
  position: relative;
  min-width: 0;
}

.page-home .section-heading h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--home-brown);
}

.page-home .section-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(45, 31, 20, 0.82);
  max-width: 65ch;
}

.page-home .section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.page-home .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--home-teal);
  text-decoration: none;
  border-bottom: 2px solid var(--home-orange);
  padding-bottom: 2px;
}

.page-home .btn-link:hover {
  color: var(--home-orange);
  border-color: var(--home-teal);
}

.page-home .home-section--legacy {
  background: var(--home-white);
}

.page-home .shooter-info-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.page-home .data-card {
  position: relative;
  background: var(--home-white);
  border: 2px solid var(--home-brown);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .data-card--hot {
  background: var(--home-orange);
  border-color: var(--home-dark);
  color: var(--home-white);
}

.page-home .data-card--hot .data-card-desc {
  color: rgba(255, 255, 255, 0.9);
}

.page-home .data-card-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-home .data-card-num {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
}

.page-home .data-card-unit {
  font-size: 1.25rem;
  margin-left: 4px;
}

.page-home .data-card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(45, 31, 20, 0.75);
}

.page-home .shooter-update-flow {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.page-home .shooter-update-flow img {
  width: 100%;
  height: auto;
  border: 2px solid var(--home-dark);
  box-shadow: var(--shadow-soft);
}

.page-home .shooter-timeline-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.page-home .shooter-timeline {
  display: flex;
  flex-direction: column;
}

.page-home .timeline-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--home-teal-2);
}

.page-home .timeline-step::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--home-orange);
  border-radius: 50%;
}

.page-home .timeline-step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--home-teal-2);
}

.page-home .version-switch-visual {
  margin-top: 32px;
}

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

.page-home .version-switch-pill {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 12px;
  border: 2px solid var(--home-brown);
  background: transparent;
  color: var(--home-brown);
}

.page-home .version-switch-pill.is-active {
  background: var(--home-brown);
  color: var(--home-cream);
}

.page-home .version-switch-track {
  position: relative;
  width: 56px;
  height: 26px;
  border: 2px solid var(--home-brown);
  border-radius: 999px;
  background: var(--home-white);
}

.page-home .version-switch-thumb {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: var(--home-orange);
  border-radius: 50%;
}

.page-home .version-switch-panels {
  display: grid;
  gap: 16px;
}

.page-home .version-panel {
  position: relative;
  padding: 26px 24px;
  background: var(--home-white);
  border: 2px solid var(--home-brown);
  box-shadow: var(--shadow-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .version-panel--new {
  background: var(--home-teal);
  border-color: var(--home-dark);
  color: var(--home-white);
}

.page-home .version-panel h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.page-home .version-panel ul {
  margin: 0 0 18px;
  padding-left: 18px;
  line-height: 1.7;
}

.page-home .directory-layout {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.page-home .directory-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .directory-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.page-home .directory-items li {
  background: var(--home-white);
  border: 1px solid var(--home-brown);
  box-shadow: 3px 3px 0 rgba(45, 31, 20, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.page-home .directory-index {
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--home-orange);
  font-size: 1.05rem;
}

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

.page-home .directory-visual {
  position: relative;
}

.page-home .directory-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  border: 3px solid var(--home-dark);
  box-shadow: 8px 8px 0 rgba(14, 79, 92, 0.2);
}

.page-home .directory-visual-num {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 6rem;
  line-height: 1;
  color: var(--home-teal-2);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.page-home .report-scope {
  margin-top: 28px;
}

.page-home .report-legend {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--home-brown);
  margin-bottom: 10px;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .filter-btn {
  font: inherit;
  font-weight: 700;
  padding: 8px 16px;
  background: var(--home-white);
  border: 2px solid var(--home-brown);
  color: var(--home-brown);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.page-home .filter-btn:hover {
  border-color: var(--home-teal-2);
  color: var(--home-teal);
  transform: translateY(-1px);
}

.page-home .filter-btn[aria-pressed="true"] {
  background: var(--home-orange);
  border-color: var(--home-dark);
  color: var(--home-white);
}

.page-home .report-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.page-home .report-card {
  background: var(--home-white);
  border: 2px solid var(--home-brown);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.page-home .report-card-tag {
  margin-bottom: 12px;
}

.page-home .report-card h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.125rem;
  margin: 0 0 8px;
  color: var(--home-brown);
}

.page-home .report-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(45, 31, 20, 0.8);
}

.page-home .report-bottom {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  align-items: center;
}

.page-home .report-bottom img {
  width: 100%;
  height: auto;
  border: 3px solid var(--home-dark);
  box-shadow: var(--shadow-soft);
}

.page-home .report-bottom-cta h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.page-home .report-bottom-cta p {
  margin: 0 0 16px;
  color: rgba(45, 31, 20, 0.85);
}

.page-home .home-section--reports::before {
  content: '';
  display: block;
  height: 8px;
  background: repeating-linear-gradient(45deg, var(--home-orange) 0 10px, var(--home-dark) 10px 14px);
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .page-home .home-section {
    padding: 80px 40px;
  }

  .page-home .chapter-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

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

  .page-home .directory-layout {
    grid-template-columns: 1fr 300px;
  }

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

  .page-home .report-bottom {
    grid-template-columns: 480px 1fr;
  }

  .page-home .version-switch-panels {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 48px 56px 56px;
  }

  .page-home .home-hero-body {
    grid-template-columns: 1fr 0.95fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .home-hero-copy h1 {
    font-size: 3.1rem;
  }

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

  .page-home .home-section {
    padding: 96px 56px;
  }

  .page-home .home-section-grid {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 48px;
  }

  .page-home .section-meta {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    padding-top: 8px;
  }

  .page-home .section-num {
    font-size: 5rem;
  }

  .page-home .shooter-update-flow {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

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

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