/* ============================================================
   Homepage redesign — impeccable full pass.
   Scoped to body.home-refined. Loaded AFTER styles.css.
   Constraints: fonts unchanged (Mukta body / Source Serif display),
   copy + images + links unchanged. Layout & visual language reworked.
   Palette stays institutional navy + blue on white.
   ============================================================ */

/* ---- Design tokens local to the redesign ---- */
.home-refined {
  --ink-900: #0c2143;   /* deepest navy for display type */
  --ink-700: #1f3a63;
  --rule: #e7ecf2;      /* hairline */
  --rule-strong: #d3dbe6;
  --paper: #f5f8fc;     /* faint cool panel (not AI-beige) */
  --accent: #12457e;    /* single restrained accent */
  --shadow-card: 0 18px 40px -24px rgba(12,33,67,0.45);
  accent-color: var(--accent);
}

/* ---- Browser surfaces (themed, not default) ---- */
.home-refined ::selection { background: #cfe0f4; color: var(--ink-900); }
.home-refined :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---- Keep the live site's section rhythm, container width & image sizes ----
   (owner: spacing between sections + image sizes must match the current site) */
.home-refined p { color: var(--slate); }
/* Scope heading colour to page content; never the dark footer (whose
   headings stay white) or the hero h1 (white on the photo). */
.home-refined section h2, .home-refined section h3 { color: var(--ink-900); }

/* Section heads: no kicker; the heading carries its own weight.
   Left-aligned by default for editorial feel; a thin rule sits above. */
.home-refined .section-head { margin: 0 0 32px; }
.home-refined .section-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1;
  letter-spacing: -0.018em; margin: 0;
}
.home-refined .section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.home-refined .section-head .section-lead {
  font-size: 1.12rem; line-height: 1.6; color: var(--slate);
  max-width: 62ch; margin: 16px 0 0;
}
.home-refined .section-head.center .section-lead { margin-inline: auto; }

/* Section kickers (owner wants them kept): re-shown and restyled to a
   refined tracked navy label. Overrides the earlier hide rule in styles.css. */
.home-refined section:not(.hero) .eyebrow {
  display: block;
  font-family: var(--sans); text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.14em; font-size: 0.72rem; color: var(--accent);
  margin: 0 0 12px;
}
.home-refined .disciplines-links .eyebrow { margin-bottom: 16px; }

/* ============================================================
   HERO
   ============================================================ */
/* Hero keeps the live site's compact banner height (via the inline
   --hero-height) and vertical centring — geometry untouched. */
.home-refined .hero-content { max-width: 660px; }

/* Blue hue kept for legibility (owner request) but lighter than the live
   site's near-solid wash: stronger on the text side, image reads on the right. */
.home-refined .hero--home .hero-overlay { opacity: 1; }
.home-refined .hero-overlay {
  background: linear-gradient(90deg,
    rgba(16,42,82,0.77) 0%, rgba(16,42,82,0.57) 45%, rgba(16,42,82,0.37) 100%);
}

/* Identity line the owner wants kept above the headline */
.home-refined .hero-identity {
  color: #b9d2ea; font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem;
  line-height: 1.4; margin: 0 0 14px; max-width: 44ch;
}
.home-refined .hero h1 {
  color: #fff; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem); line-height: 1.08;
  letter-spacing: -0.018em; margin: 0 0 18px; text-wrap: balance;
}
.home-refined .hero p {
  color: #d7e5f4; font-size: 1.2rem; line-height: 1.6; max-width: 50ch; margin: 0;
}
.home-refined .hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }

/* Primary = solid; secondary = hairline ghost on the photo */
.home-refined .hero .btn {
  border-radius: 8px; padding: 15px 26px; font-size: 1rem; font-weight: 600;
  background: #fff; color: var(--ink-900); border: none;
}
.home-refined .hero .btn:hover { background: #eaf1fa; color: var(--ink-900); transform: translateY(-1px); }
.home-refined .hero .btn svg { width: 16px; height: 16px; }
.home-refined .hero .btn-outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55);
}
.home-refined .hero .btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Newsletter demoted from a third button to a quiet inline text link */
.home-refined .hero-textlink {
  display: inline-flex; align-items: center; gap: 8px; color: #eaf2fb;
  font-weight: 600; font-size: 1rem; padding: 4px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.home-refined .hero-textlink:hover { color: #fff; border-bottom-color: #fff; }
.home-refined .hero-textlink svg { width: 15px; height: 15px; transition: transform .2s ease; }
.home-refined .hero-textlink:hover svg { transform: translateX(4px); }

/* Hero entrance — the one authored motion moment */
@media (prefers-reduced-motion: no-preference) {
  .home-refined .hero-content > * { opacity: 0; transform: translateY(14px); animation: heroRise .8s cubic-bezier(.22,.61,.36,1) forwards; }
  .home-refined .hero-content > h1 { animation-delay: .08s; }
  .home-refined .hero-content > p { animation-delay: .18s; }
  .home-refined .hero-content > .hero-actions { animation-delay: .28s; }
  @keyframes heroRise { to { opacity: 1; transform: none; } }
}

/* ============================================================
   AFFILIATION — quiet caption + logos, hairline framed
   ============================================================ */
.home-refined .affil-band { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 30px 0; }
.home-refined .affil-band .container { display: flex; align-items: center; justify-content: center; gap: 12px 40px; flex-wrap: wrap; }
.home-refined .affil-band .affil-eyebrow {
  text-transform: none; letter-spacing: 0; font-weight: 500; font-family: var(--sans);
  font-size: 0.98rem; color: var(--slate-light); margin: 0; max-width: none; text-align: left;
}
.home-refined .affil-logos { gap: 0 36px; }
.home-refined .affil-logo { padding: 4px 0; min-height: 0; }
.home-refined .affil-logo + .affil-logo { border-left: 1px solid var(--rule); padding-left: 36px; }
.home-refined .affil-logo img { height: 42px; width: auto; }

/* ============================================================
   EDITORIAL SPLIT (intro + conditions)
   ============================================================ */
.home-refined .split { gap: 44px; }
.home-refined .split-body h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.018em; margin: 0 0 20px;
}
.home-refined .split-body > p { font-size: 1.08rem; line-height: 1.65; max-width: 60ch; }

/* Differentiator list — hairline-separated rows, custom drawn tick */
.home-refined .split-list { margin: 26px 0 0; border-top: 1px solid var(--rule); }
.home-refined .split-list li {
  padding: 15px 0 15px 34px; margin: 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-700); font-weight: 500;
}
.home-refined .split-list li::before {
  top: 18px; width: 15px; height: 15px; background: var(--accent);
}

/* Media: refined frame, real shadow, no heavy rounding */
.home-refined .split-media { border-radius: 10px; box-shadow: var(--shadow-card); }
.home-refined .split-media img { aspect-ratio: 4/3; }
.home-refined .split-media figcaption {
  font-weight: 500; letter-spacing: 0; font-size: 0.85rem;
  background: linear-gradient(to top, rgba(9,22,45,0.9), rgba(9,22,45,0)); padding: 40px 22px 16px;
}

/* Conditions CTA gets the same refined treatment as the hero buttons
   (rounded, generous padding, weight, hover lift) — solid accent since it
   sits on a light section where a white button would vanish. */
.home-refined .split-actions { margin-top: 26px; }
.home-refined .split-actions .btn,
.home-refined .split-actions .btn.btn-large {
  background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 15px 28px; font-size: 1rem; font-weight: 600;
}
.home-refined .split-actions .btn:hover { background: var(--ink-900); color: #fff; transform: translateY(-1px); }
.home-refined .split-actions .btn svg { width: 16px; height: 16px; }

/* ============================================================
   "TWO DISCIPLINES" — statement + link list (no card scaffold)
   ============================================================ */
.home-refined .approach-section { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.home-refined .disciplines { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 44px; align-items: start; }
.home-refined .disciplines-lead h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; white-space: nowrap;
}
.home-refined .disciplines-lead p { font-size: 1.08rem; line-height: 1.65; max-width: 46ch; }

.home-refined .linklist { border-top: 1px solid var(--rule-strong); }
.home-refined .linkrow {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 16px; border-bottom: 1px solid var(--rule-strong);
  color: inherit; transition: background .2s ease, color .2s ease;
}
.home-refined .linkrow:hover { background: rgba(18,69,126,0.055); }
.home-refined .linkrow-text strong {
  display: block; font-family: var(--serif); font-weight: 600; font-size: 1.28rem;
  color: var(--ink-900); margin-bottom: 3px;
}
.home-refined .linkrow-text span { color: var(--slate); font-size: 0.98rem; }
.home-refined .linkrow:hover .linkrow-text strong { color: var(--accent); }
.home-refined .linkrow svg { width: 22px; height: 22px; color: var(--rule-strong); flex-shrink: 0; transition: transform .2s ease, color .2s ease; }
.home-refined .linkrow:hover svg { color: var(--accent); transform: translateX(5px); }

/* ============================================================
   TEAM — calmer, larger cards (no side-tab bar)
   ============================================================ */
.home-refined .people-grid { gap: 24px; }
.home-refined .person {
  border: 1px solid var(--rule); border-radius: 12px; box-shadow: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-refined .person:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--rule-strong); }
.home-refined .person-photo { aspect-ratio: 1/1; }
.home-refined .person-body { border-top: 0; padding: 24px 26px 28px; }
.home-refined .person-body h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--ink-900); margin: 0 0 10px;
}
.home-refined .person-body p { font-size: 0.92rem; line-height: 1.55; color: var(--slate); margin: 0; }
/* First title line reads as the specialty label */
.home-refined .person-body p { position: relative; }

/* ============================================================
   FELLOWS + APPs — refined roster rows
   ============================================================ */
.home-refined .fellow-grid { gap: 16px; }
.home-refined .fellow {
  border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; gap: 16px;
  transition: border-color .2s ease, background .2s ease;
}
.home-refined .fellow:hover { border-color: var(--rule-strong); background: #fff; }
.home-refined .fellow .initials {
  width: 60px; height: 60px; background: var(--ink-900); font-family: var(--serif);
}
.home-refined .fellow strong { font-family: var(--sans); font-weight: 700; color: var(--ink-900); font-size: 1rem; }
.home-refined .fellow span { color: var(--slate-light); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .home-refined .disciplines { grid-template-columns: 1fr; gap: 32px; }
  /* let the one-line heading wrap again on narrow screens */
  .home-refined .disciplines-lead h2 { white-space: normal; }
}

/* The white Harvard teaching-hospital mark sits over the brightest part of the
   OR photo; deepen its shadow so it reads regardless of what's behind it. */
.home-refined .hero-affil { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.55)) drop-shadow(0 0 16px rgba(0,0,0,0.65)); }
