/* r2-home.css: round 2 polish (owned by the home pass). Loaded last on every page, so every rule is
   scoped to a homepage-only class (.hero--calm, .home-families, .home-apex, .home-faq). */

/* ---------- Home hero: one focal point ----------
   brand line → H1 → mission → two actions; a single quiet meta line sits on the bottom edge.
   The flagship pill, the long lede and the four counters are gone (the APEX section, the families
   lede and the footprint carry them one scroll later). */
.hero--calm { align-items: stretch; }
.hero--calm .hero-inner { grid-template-rows: 1fr auto; gap: clamp(28px, 6vh, 72px); }
.hero--calm .hero-copy { align-self: center; gap: 0; max-width: 1000px; padding-top: clamp(0px, 3vh, 40px); }

.hero--calm .hero-title--corp {
  font-size: min(clamp(2.75rem, 1.2rem + 5vw, 6rem), 10.6vh);
  line-height: 0.98; letter-spacing: -0.045em; max-width: 11.6em;
}
.hero--calm .hero-brand { margin-bottom: 1.1em; color: rgba(226, 233, 250, 0.82); }
/* the logo's blue-red bar, drawn small, as the only accent above the headline */
.hero--calm .hero-brand::before {
  content: ""; display: inline-block; vertical-align: middle; width: 26px; height: 2px; margin: -2px 12px 0 0;
  background: linear-gradient(90deg, #4b55c8 0 58%, #E31B23 58% 100%);
}

.hero--calm .hero-mission {
  margin-top: clamp(18px, 2.4vh, 28px);
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem); font-weight: 400; line-height: 1.35; letter-spacing: -0.012em;
  color: rgba(226, 233, 250, 0.84); max-width: 28em;
}
.hero--calm .btn-row { margin-top: clamp(28px, 4.4vh, 44px); }

.hero--calm .hero-foot--quiet {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0;
  font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.01em; color: rgba(220, 228, 248, 0.68); }
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: rgba(220, 228, 248, 0.45); }
.hero--calm .scroll-cue { min-height: 44px; color: rgba(255, 255, 255, 0.6); }
.hero--calm .scroll-cue i { height: 32px; }

@media (max-width: 860px) {
  .hero--calm .hero-copy { padding-top: 0; }
  .hero--calm .hero-title--corp { font-size: clamp(2.5rem, 11.2vw, 3.4rem); line-height: 1.0; }
  .hero--calm .hero-brand { margin-bottom: 0.9em; }
  .hero--calm .hero-foot--quiet { padding-top: 14px; }
}
@media (max-width: 520px) {
  /* equal, full-width actions on phones (hero and APEX), instead of two ragged widths */
  .hero--calm .btn-row, .home-apex .btn-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero--calm .btn-row .btn, .home-apex .btn-row .btn { width: 100%; justify-content: center; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero-meta i { display: none; }
}
/* stat figures in one column so the labels line up (site.css makes each stat a row at ≤480px) */
@media (max-width: 480px) { .home-apex .spot-stat { grid-template-columns: 3.6rem 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hero--calm .scroll-cue i::after { animation: none; top: 0; }
}

/* ---------- Families: one lede, no duplicate APEX proof (the spotlight follows directly) ---------- */
.home-families .section-head .lede { max-width: 34em; }

/* ---------- APEX-519 spotlight: one headline, not two ----------
   the red product name is the display line, so the claim under it steps down a size */
.home-apex .spot-product { margin-top: 20px; }
.home-apex .h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.9rem); line-height: 1.08; max-width: 15em; }
.home-apex .lede { max-width: 32em; }
.home-apex .spot-stats { margin-block: clamp(28px, 3vw, 36px); }

/* ---------- FAQ: questions use the row's full width (they were balanced into short, ragged lines) ---------- */
.home-faq .ax-faq-item summary h3 { max-width: none; text-wrap: pretty; }
.home-faq .ax-faq-list { max-width: none; }  /* full container width, so the + icons sit on the same edge as the lede above */

/* the meta line sits below the reveal trigger line (top 88%), so it fades in on its own once the logo
   splash has left, instead of waiting for a scroll */
@keyframes r2HeroFoot { from { opacity: 0; } to { opacity: 1; } }
.hero-foot--quiet { animation: r2HeroFoot 1s ease 0.9s both; }
.js:not(.splash-done):not(.no-splash) .hero-foot--quiet { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero-foot--quiet { animation: none; } }

/* ---------- dark run (APEX → partners): one chapter, not two gaps stacked ---------- */
.home-apex { padding-bottom: clamp(56px, 6vw, 96px); }
.home-apex + .pd-partners { padding-top: clamp(56px, 6vw, 96px); }
#partners.pd-partners { padding-bottom: clamp(64px, 7vw, 112px); }
#partners + .footprint { padding-top: clamp(64px, 7vw, 112px); }

/* ---------- Partners on the homepage: light, to break the dark run (APEX → partners → footprint) ----------
   home.py drops .section--dark for #partners only; the contact page keeps the dark diagram. */
#partners.pd-partners--light { background: #fff; color: var(--ink); }
#partners .pd-node { background: #fff; border-color: var(--line-2); box-shadow: 0 1px 2px rgba(10, 15, 31, 0.04), 0 8px 24px -16px rgba(10, 15, 31, 0.18); }
#partners .pd-node b { color: var(--ink); }
#partners .pd-node small { color: #4a5268; }
#partners .pd-node-k { color: #5a6380; }
#partners .pd-node--alt { background: var(--paper); border-style: dashed; box-shadow: none; }
#partners .pd-node--end { background: var(--paper); }
#partners .pd-node--asn { background: linear-gradient(160deg, #2E3192, #4b55c8); border-color: #2E3192; box-shadow: 0 14px 32px -18px rgba(46, 49, 146, 0.6); }
#partners .pd-node--asn b { color: #fff; }
#partners .pd-node--asn small { color: rgba(255, 255, 255, 0.84); }
#partners .pd-node--asn .pd-node-k { color: #c9d5f2; }
#partners .pd-model > li:not(:last-child)::after { background: linear-gradient(90deg, rgba(46, 49, 146, 0.12), rgba(46, 49, 146, 0.5)); }
#partners .pd-model > li:not(:last-child)::before { border-color: rgba(46, 49, 146, 0.6); }
@media (max-width: 960px) {
  #partners .pd-model > li:not(:last-child)::after { background: linear-gradient(180deg, rgba(46, 49, 146, 0.12), rgba(46, 49, 146, 0.5)); }
}
#partners .pd-partners-foot { border-top-color: var(--line-2); }
#partners .pd-partners-foot p { color: #4a5268; }
#partners .pd-partners-foot p strong { color: var(--ink); }
