/* ── index.css — Home page only ──────────────────────────────────────────────
   Loads after main.css. Only rules unique to index.html live here.
   Universal rules (nav, browser, cs-row, lead-band, etc.) are in main.css.
   ─────────────────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-inner {
  position: relative;
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: center;
}

/* hero-title + hero-title em: moved to main.css (used on about.html too) */

.hero-sub {
  margin-top: 40px;
  font-size: var(--text-prose);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.008em;
}

.hero-domains {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  align-items: center;
}
/* domain-tag: transition, hover, pre-reveal → moved to main.css (shared with about.html) */

.hero-portrait {
  position: relative;
  width: 520px;
  height: max-content;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}
.hero-portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: contrast(1.02);
  z-index: 1;
  transform: scale(1.17);
  transform-origin: center center;
}


/* ═══════════════════════════════════════════════════════════════════════════
   STAT ROW HOVER (index-specific enhancement)
   Negative margin trick extends the hover bg to the full row width.
   ═══════════════════════════════════════════════════════════════════════════ */

.stat-row {
  transition: background 0.18s ease;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: var(--radius);
  margin-left: -12px;
  margin-right: -12px;
}
.stat-row:hover { background: var(--surface); }


/* ═══════════════════════════════════════════════════════════════════════════
   CASE STUDY CARD ENHANCEMENTS (index-specific)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Phase dot hover (original) — commented out with .cs-phase-prog
   Restore if switching back to the dot-diagram pattern in index.html.  */
/*
.cs-phase-dot {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cs-row:hover .cs-phase-step.active .cs-phase-dot { transform: scale(1.25); }
*/

/* Model signal arrow nudges right on card hover */
.cs-model-signal-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.cs-row:hover .cs-model-signal-arrow { transform: translateX(4px); }


/* ═══════════════════════════════════════════════════════════════════════════
   ENDORSEMENT CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */

.endorse-quote {
  font-family: var(--serif);
  font-size: var(--text-subhead-lg);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--ink);
  margin: 0;
  max-width: 1200px;
  transition: opacity 0.2s ease;
}
.endorse-quote em { font-style: italic; color: var(--highlight); }

.endorse-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 32px 0;
  align-items: center;
  max-width: 1200px;
}

.endorse-name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-size: var(--text-subhead);
  letter-spacing: -0.012em;
}
.endorse-role {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: var(--text-mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.endorse-viewlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: var(--text-14);
  font-weight: 500;
  color: var(--accent-strong);
  transition: opacity 0.15s;
}
.endorse-viewlink:hover { opacity: 0.75; }
.endorse-viewlink svg { transition: transform 0.22s var(--ease-spring); }
.endorse-viewlink:hover svg { transform: translate(3px, -3px); }

.endorse-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 0 0;
  border-top: 1px solid var(--hairline);
}

.endorse-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.endorse-btn:hover { background: var(--ink); color: var(--bg); }

.endorse-progress {
  flex: 1;
  max-width: 360px;
  height: 2px;
  background: var(--hairline);
  position: relative;
  border-radius: 2px;
}
/* .progress-fill: transition is in main.css */

.endorse-count {
  font-family: var(--mono);
  font-size: var(--text-mono);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.endorse-viewall { margin-left: auto; }
