.page-home {
  --home-section-space: clamp(4.5rem, 10vw, 7.5rem);
  position: relative;
  color: var(--text-main);
  background-color: var(--bg-deep);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-hero {
  position: relative;
  min-height: min(92vh, 960px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0 3rem;
}

.page-home .home-hero-bg-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: homeHeroBreathe 18s ease-in-out infinite;
}

.page-home .home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8,21,39,.96) 0%, rgba(8,21,39,.76) 52%, rgba(8,21,39,.45) 100%);
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .home-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.page-home .home-hero-copy {
  max-width: 720px;
}

.page-home .home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.25rem;
  color: var(--gold-bright);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-home .home-eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 1px;
  background: var(--gold);
}

.page-home .home-hero-copy h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--text-main);
}

.page-home .home-hero-lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #CBD5E1;
}

.page-home .home-hero-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.75rem;
  font-size: .8125rem;
  color: var(--text-sub);
}

.page-home .home-hero-meta::before {
  content: "";
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: var(--cyan-start);
  box-shadow: 0 0 0 4px rgba(168, 218, 220, .18);
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-home .home-preview {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(212, 183, 122, .22);
  background: rgba(17, 34, 64, .82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .home-preview:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.page-home .home-preview-title {
  margin: 0 0 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

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

.page-home .home-preview-list li {
  border-top: 1px solid rgba(148, 163, 184, .12);
}

.page-home .home-preview-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem .25rem;
  color: var(--text-main);
  text-decoration: none;
  transition: color .25s var(--ease), background .25s var(--ease), padding-left .25s var(--ease);
}

.page-home .home-preview-list a:hover,
.page-home .home-preview-list a:focus-visible {
  color: var(--gold-bright);
  padding-left: .5rem;
  background: rgba(30, 78, 156, .22);
  border-radius: .5rem;
}

.page-home .home-preview-num {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
  width: 2.5rem;
  color: var(--gold);
}

.page-home .home-section {
  padding: var(--home-section-space) 0;
}

.page-home .home-section-head {
  position: relative;
  padding-top: 1rem;
  margin-bottom: 3rem;
  max-width: 860px;
}

.page-home .home-section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-start), var(--gold));
}

.page-home .home-section-head .section-index {
  display: block;
  margin-bottom: .875rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
}

.page-home .home-section-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-main);
}

.page-home .home-section-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.page-home .home-version {
  background: radial-gradient(ellipse at 20% 20%, rgba(30, 78, 156, .18) 0%, rgba(8, 21, 39, 0) 60%);
}

.page-home .home-version-grid {
  display: grid;
  gap: 2rem;
}

.page-home .home-version-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.page-home .home-stat {
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: var(--shadow-card);
}

.page-home .data-counter {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold-bright);
}

.page-home .home-stat-label {
  display: block;
  margin-top: .5rem;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--text-sub);
}

.page-home .home-taxonomy {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .25rem;
}

.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.page-home .home-timeline .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  animation: homeNodeRise .6s var(--ease) both;
}

.page-home .home-timeline .timeline-item:nth-child(2) {
  animation-delay: .18s;
}

.page-home .home-timeline .timeline-item:nth-child(3) {
  animation-delay: .32s;
}

.page-home .home-timeline-node {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--cyan-start);
}

.page-home .home-timeline-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.page-home .home-timeline-node-solid {
  background: var(--royal);
  border-color: var(--cyan-start);
  box-shadow: 0 0 0 4px rgba(168, 218, 220, .12);
}

.page-home .home-timeline-node-solid::after {
  content: "";
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: var(--cyan-start);
}

.page-home .home-timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: 1.4375rem;
  top: 3rem;
  bottom: -1.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan-start), var(--cyan-end), transparent);
}

.page-home .home-timeline .timeline-item:last-child::before {
  display: none;
}

.page-home .home-timeline-content {
  padding-bottom: .5rem;
}

.page-home .home-timeline-content h3 {
  margin: 0 0 .375rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.page-home .home-timeline-content p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text-sub);
}

.page-home .home-quick {
  background: linear-gradient(180deg, rgba(8, 21, 39, 0), rgba(17, 34, 64, .35), rgba(8, 21, 39, 0));
}

.page-home .home-quick-grid {
  display: grid;
  gap: 2rem;
}

.page-home .home-quick-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: var(--shadow-card);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .home-quick-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.page-home .home-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: rgba(30, 78, 156, .28);
  border: 1px solid rgba(212, 183, 122, .25);
  color: var(--gold-bright);
}

.page-home .home-quick-card h3 {
  margin: 0 0 .75rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
}

.page-home .home-quick-card p {
  margin: 0 0 1.25rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.page-home .home-quick-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  color: var(--gold-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}

.page-home .home-quick-link:hover,
.page-home .home-quick-link:focus-visible {
  border-color: var(--gold);
  gap: .75rem;
}

.page-home .home-quick-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: var(--shadow-card);
}

.page-home .home-quick-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-benefits-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-benefit-card {
  border-radius: var(--radius-md);
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, .14);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.page-home .home-benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.page-home .home-benefit-card h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.page-home .home-benefit-card p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.page-home .home-benefits-more,
.page-home .home-cases-more {
  margin-top: 1.75rem;
}

.page-home .home-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-bottom: 1.75rem;
}

.page-home .home-case-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-case-item {
  position: relative;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, .14);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .home-case-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.page-home .home-case-item .tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.page-home .home-case-item h3 {
  margin: 0 0 .5rem;
  padding-right: 5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-main);
}

.page-home .home-case-item p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.page-home .home-table-wrap {
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: var(--shadow-card);
}

.page-home .home-service-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .875rem;
}

.page-home .home-service-table caption {
  padding: 1.5rem 1.25rem .75rem;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.page-home .home-service-table th,
.page-home .home-service-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(148, 163, 184, .12);
}

.page-home .home-service-table thead th {
  background: rgba(30, 78, 156, .22);
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 1px solid rgba(212, 183, 122, .25);
}

.page-home .home-service-table tbody th {
  color: var(--gold-bright);
  font-weight: 700;
  white-space: nowrap;
}

.page-home .home-service-table td {
  color: var(--text-sub);
}

.page-home .home-service-table td a {
  color: var(--gold-bright);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-service-table td a:hover {
  text-decoration: underline;
}

.page-home .home-version-notes {
  position: relative;
  overflow: hidden;
}

.page-home .home-version-notes::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 78, 156, .28), transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.page-home .home-notes-panel {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(17, 34, 64, .72) 100%);
  border: 1px solid rgba(212, 183, 122, .2);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.page-home .home-notes-panel p {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-main);
}

.page-home .home-notes-panel strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-bright);
}

.page-home .home-notes-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@keyframes homeHeroBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

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

@media (min-width: 900px) {
  .page-home .home-hero-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 4rem;
  }

  .page-home .home-hero {
    padding: 6rem 0 4rem;
  }

  .page-home .home-version-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .page-home .home-version-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-home .home-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    padding: 1.25rem 1.75rem;
  }

  .page-home .home-stat .data-counter {
    font-size: 2.5rem;
  }

  .page-home .home-taxonomy {
    grid-column: 1;
  }

  .page-home .home-quick-grid {
    grid-template-areas: "c1 f1" "f2 c2";
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .page-home .home-quick-card:nth-of-type(1) {
    grid-area: c1;
  }

  .page-home .home-quick-figure:nth-of-type(1) {
    grid-area: f1;
  }

  .page-home .home-quick-card:nth-of-type(2) {
    grid-area: c2;
  }

  .page-home .home-quick-figure:nth-of-type(2) {
    grid-area: f2;
  }

  .page-home .home-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .page-home .home-case-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .page-home .home-case-tags {
    margin-bottom: 2.5rem;
  }

  .page-home .home-notes-panel {
    padding: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero-bg,
  .page-home .home-timeline .timeline-item {
    animation: none;
  }
}
