/* Home page — full-bleed product hero, horizontal rail, sticky spec split, flow timeline */

.home-rail-section { background: var(--bg); }
.home-rail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.home-rail-head .section-head { margin-bottom: 0; }
.home-rail-hint { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.home-spec-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.home-spec-photo { border: 1px solid var(--line); background: #fff; padding: 12px; }
.home-spec-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.home-spec-photo figcaption { padding-top: 12px; font-size: 0.8rem; color: var(--muted); }
.home-spec-copy h2 { margin-top: 0; }
.home-spec-aside { border: 1px solid var(--line); background: #fff; padding: 24px; }
.home-spec-aside h3 { margin-top: 0; }
.home-spec-aside .spec-table th { width: 46%; }
.home-spec-aside .link-more { margin-top: 16px; }

.home-flow { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.home-flow .timeline li::before { background: var(--ink); border-color: var(--brand); }
.home-flow-media { border: 1px solid rgba(255, 255, 255, 0.16); padding: 10px; }
.home-flow-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.home-flow-media figcaption { padding-top: 10px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }

.home-cert-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.home-cert-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; flex: 1 1 640px; }
.home-cert-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); background: #fff; }

.home-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); gap: 48px; align-items: start; }
.home-news-aside { border: 1px solid var(--line); background: var(--surface); padding: 26px; }
.home-news-aside h3 { margin-top: 0; }
.home-news-aside .btn { width: 100%; justify-content: center; margin-top: 8px; }

.home-cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.home-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.home-cta-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px;
  align-items: center; padding: 68px 0;
}
.home-cta h2 { color: #fff; margin: 0 0 10px; }
.home-cta p { color: rgba(255, 255, 255, 0.78); margin: 0; max-width: 56ch; }
.home-cta .btn-primary { background: var(--brand); }
.home-cta .hero-actions { margin-top: 0; }

@media (max-width: 1024px) {
  .home-spec-split, .home-flow, .home-news, .home-cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .home-cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); flex-basis: 100%; }
}
@media (max-width: 600px) {
  .home-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- hero copy entrance (advertising panel) ---------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroRule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero .hero-eyebrow,
.hero .hero-title,
.hero .hero-lead,
.hero .hero-actions {
  animation: heroRise 460ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero .hero-eyebrow { animation-delay: 40ms; }
.hero .hero-title { animation-delay: 130ms; }
.hero .hero-lead { animation-delay: 250ms; }
.hero .hero-actions { animation-delay: 340ms; }

.hero-title em {
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  animation: heroRule 520ms ease-out 660ms both;
}

.hero-media img {
  animation: heroZoom 900ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-eyebrow,
  .hero .hero-title,
  .hero .hero-lead,
  .hero .hero-actions,
  .hero-media img {
    animation: none;
  }
  .hero-title em::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ---------- facts strip entrance + number count-up ---------- */
@keyframes factRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.facts-grid .fact {
  animation: factRise 440ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.facts-grid .fact:nth-child(1) { animation-delay: 420ms; }
.facts-grid .fact:nth-child(2) { animation-delay: 500ms; }
.facts-grid .fact:nth-child(3) { animation-delay: 580ms; }
.facts-grid .fact:nth-child(4) { animation-delay: 660ms; }

.facts-grid .fact-num {
  position: relative;
  transition: color 200ms ease;
}
.facts-grid .fact-num[data-count-to]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  animation: heroRule 520ms ease-out 780ms both;
}

@media (prefers-reduced-motion: reduce) {
  .facts-grid .fact { animation: none; }
  .facts-grid .fact-num[data-count-to]::after { animation: none; transform: scaleX(1); }
}
