.page-home {
  --home-gutter: 20px;
  --home-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.page-home .home-front {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--home-gutter) 36px;
  color: var(--white);
  overflow: hidden;
  background: var(--glass-deep);
}

.page-home .home-front-bg,
.page-home .home-front-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-front-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(15,42,42,.94) 0%, rgba(31,61,43,.80) 55%, rgba(31,61,43,.38) 100%);
}

.page-home .home-front-band {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 55vw;
  height: 70vh;
  background: linear-gradient(160deg, rgba(184,92,56,.85), rgba(122,46,46,.55));
  clip-path: polygon(100% 0, 100% 100%, 18% 100%, 0 0);
  opacity: .5;
}

.page-home .home-front-inner,
.page-home .home-front-index,
.page-home .home-front-stats {
  position: relative;
  z-index: 3;
}

.page-home .home-front-inner {
  max-width: 780px;
}

.page-home .home-context {
  color: var(--gold);
  margin: 0;
}

.page-home .home-front h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .02em;
  margin: 14px 0 18px;
}

.page-home .home-front-lead {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245,240,230,.88);
  margin: 0;
}

.page-home .home-front-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .home-front-actions .btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.page-home .home-front-actions .btn-ghost {
  border-color: rgba(245,240,230,.5);
  color: var(--paper);
}

.page-home .home-front-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .front-index-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(245,240,230,.28);
  border-radius: 999px;
  background: rgba(15,42,42,.42);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: border-color var(--speed-fast) var(--ease), background-color var(--speed-fast) var(--ease);
}

.page-home .front-index-chip span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}

.page-home .front-index-chip:hover,
.page-home .front-index-chip:focus-visible {
  border-color: var(--gold);
  background: rgba(201,162,39,.18);
}

.page-home .home-front-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(245,240,230,.22);
  border-radius: var(--radius-md);
  background: rgba(15,42,42,.4);
  backdrop-filter: blur(10px);
  overflow: hidden;
  margin: 0;
}

.page-home .front-stat {
  margin: 0;
  padding: 14px 16px;
  border-right: 1px solid rgba(245,240,230,.12);
  border-bottom: 1px solid rgba(245,240,230,.12);
}

.page-home .front-stat:nth-child(2n) {
  border-right: none;
}

.page-home .front-stat:nth-child(n+3) {
  border-bottom: none;
}

.page-home .front-stat dt {
  font-family: var(--mono);
  font-size: 28px;
  line-height: 1.1;
  color: var(--gold);
}

.page-home .front-stat dd {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(245,240,230,.72);
}

.page-home .home-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px var(--home-gutter);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-home .home-section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.page-home .home-section-head .section-index {
  font-family: var(--mono);
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
}

.page-home .home-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin: 6px 0 0;
}

.page-home .home-section-head .section-label {
  margin: 0;
}

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

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

.page-home .home-preview-copy p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.page-home .home-preview-copy .btn {
  margin-top: 8px;
}

.page-home .home-preview-card {
  padding: 28px;
  border: 1px solid var(--fog);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.page-home .home-preview-card-title {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 18px;
  color: var(--ink);
}

.page-home .home-preview-card .data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--fog);
}

.page-home .home-preview-card .data-row:last-child {
  border-bottom: none;
}

.page-home .home-preview-card .data-label {
  font-size: 14px;
  color: rgba(46,46,46,.68);
}

.page-home .home-preview-card .data-value {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--green-deep);
}

.page-home .home-tvs {
  max-width: none;
  margin: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(201,162,39,.12), transparent 38%),
    linear-gradient(140deg, var(--green-deep) 0%, var(--glass-deep) 100%);
  color: var(--paper);
}

.page-home .home-tvs-holder {
  max-width: var(--content-max);
  margin: 0 auto;
}

.page-home .home-tvs-lead {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245,240,230,.78);
  margin: 0 0 36px;
}

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

.page-home .tvs-figure {
  margin: 0;
  position: relative;
}

.page-home .tvs-figure::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(201,162,39,.45);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.page-home .tvs-figure img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.page-home .tvs-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.page-home .tvs-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .tvs-view-switch .btn {
  background: transparent;
  border-color: rgba(245,240,230,.30);
  color: var(--paper);
}

.page-home .tvs-view-switch .btn[data-active],
.page-home .tvs-view-switch .btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.page-home .tvs-card.is-filtered {
  display: none;
}

.page-home .tvs-card {
  padding: 24px;
  border: 1px solid rgba(245,240,230,.14);
  border-radius: var(--radius-lg);
  background: rgba(15,42,42,.66);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.page-home .tvs-card-title {
  font-family: var(--serif);
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--gold);
}

.page-home .tvs-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245,240,230,.78);
}

.page-home .tvs-chart-wrap {
  margin: 0 0 16px;
}

.page-home .tvs-chart {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.page-home .tvs-chart-label {
  fill: currentColor;
}

.page-home .chart-gold {
  fill: var(--gold);
}

.page-home .chart-terra {
  fill: var(--terra);
}

.page-home .chart-fog {
  fill: var(--fog);
}

.page-home .chart-crimson {
  fill: var(--crimson);
}

.page-home .tvs-card .data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(245,240,230,.1);
}

.page-home .tvs-card .data-label {
  font-size: 13px;
  color: rgba(245,240,230,.64);
}

.page-home .tvs-card .data-value {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
}

.page-home .home-tvs-foot {
  margin-top: 36px;
}

.page-home .home-tvs-foot .btn-terra {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--white);
}

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

.page-home .home-expert-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .home-expert-copy p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

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

.page-home .home-expert-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  background: var(--fog);
  border-radius: var(--radius-sm);
}

.page-home .home-expert-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  min-width: 74px;
}

.page-home .home-expert-list span:last-child {
  font-size: 14px;
  color: var(--ink);
}

.page-home .home-expert-figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.page-home .home-phone-frame {
  width: 240px;
  padding: 14px 8px 24px;
  border-radius: 36px;
  background: var(--ink);
  box-shadow: var(--shadow-float);
}

.page-home .home-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

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

.page-home .home-update .home-section-head h2 {
  color: var(--paper);
}

.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 0 0 32px;
}

.page-home .home-timeline-item:last-child {
  padding-bottom: 0;
}

.page-home .home-timeline-year {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold);
  text-align: right;
}

.page-home .home-timeline-body {
  border-left: 2px solid var(--terra);
  padding-left: 16px;
}

.page-home .home-timeline-body h3 {
  font-family: var(--serif);
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--paper);
}

.page-home .home-timeline-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245,240,230,.68);
}

.page-home .home-update-foot {
  margin-top: 36px;
}

.page-home .home-update-foot .btn-ghost {
  border-color: rgba(245,240,230,.4);
  color: var(--paper);
}

.page-home .home-sitemap {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.page-home .home-sitemap-art {
  position: absolute;
  top: 0;
  right: -160px;
  width: 520px;
  opacity: .28;
  pointer-events: none;
  z-index: 0;
}

.page-home .home-sitemap-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.page-home .home-sitemap .home-section-head,
.page-home .home-sitemap-grid,
.page-home .home-sitemap-trust {
  position: relative;
  z-index: 1;
}

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

.page-home .home-sitemap-card {
  display: block;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--fog);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform var(--speed-base) var(--ease), box-shadow var(--speed-base) var(--ease), border-color var(--speed-base) var(--ease);
}

.page-home .home-sitemap-card:hover,
.page-home .home-sitemap-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-float);
}

.page-home .home-sitemap-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--terra);
}

.page-home .home-sitemap-card h3 {
  font-family: var(--serif);
  margin: 8px 0 6px;
  font-size: 20px;
  color: var(--ink);
}

.page-home .home-sitemap-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(46,46,46,.72);
}

.page-home .home-sitemap-trust {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--fog);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(46,46,46,.56);
}

@media (min-width: 768px) {
  .page-home .home-section {
    padding: 88px var(--home-gutter);
  }

  .page-home .home-front-index {
    gap: 12px;
  }

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

  .page-home .front-stat {
    border-bottom: none;
  }

  .page-home .front-stat:nth-child(2n) {
    border-right: 1px solid rgba(245,240,230,.12);
  }

  .page-home .front-stat:nth-child(4n) {
    border-right: none;
  }

  .page-home .home-preview-grid {
    grid-template-columns: 6fr 5fr;
    gap: 48px;
    align-items: start;
  }

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

  .page-home .tvs-layout {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }

  .page-home .tvs-figure img {
    max-height: none;
  }

  .page-home .home-expert-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }

  .page-home .home-timeline-item {
    grid-template-columns: 120px 1fr;
    gap: 28px;
  }

  .page-home .home-timeline-year {
    font-size: 18px;
  }

  .page-home .home-timeline-body {
    padding-left: 24px;
  }

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

  .page-home .home-sitemap-art {
    width: 620px;
    right: -80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-sitemap-card,
  .page-home .front-index-chip,
  .page-home .tvs-view-switch .btn {
    transition: none;
  }
}
