/* =============================================================
   Enlightist Institute — V8
   Merged stylesheet — retains original site animations & palette
   ============================================================= */

:root {
  --navy: oklch(0.18 0.04 280);
  --navy-deep: oklch(0.12 0.05 285);
  --navy-soft: oklch(0.34 0.06 280);
  --cream: oklch(0.96 0.012 70);
  --cream-warm: oklch(0.93 0.018 60);
  --rule: oklch(0.84 0.02 280);
  --gold: oklch(0.68 0.18 38);
  --gold-deep: oklch(0.52 0.16 32);
  --muted: oklch(0.36 0.03 290);
  --ink-soft: oklch(0.33 0.025 285);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing scale (4pt base) */
  --space-lg: 24px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-section: clamp(80px, 10vw, 140px);
  --space-section-lg: clamp(100px, 12vw, 180px);
  --space-gutter: clamp(20px, 4vw, 40px);

  /* Type scale (rem for accessibility) */
  --text-xs: 0.6875rem;   /* 11px — eyebrows, labels */
  --text-sm: 0.8125rem;   /* 13px — nav, buttons, footer */
  --text-body-sm: 0.9375rem; /* 15px — card body, secondary */
  --text-body: 1.0625rem; /* 17px — body */
  --text-prose: 1.125rem; /* 18px — intro paragraphs, lede */
  --text-lg: 1.375rem;    /* 22px — h3, card titles */

  /* Faculty accents — chroma-first, lightness-conservative so they pass WCAG AA
     on cream (11px eyebrows) AND read as vivid color against warm hero photography
     (which is now additionally protected by the hero scrim). */
  --faculty-mind: oklch(0.54 0.19 290);     /* violet — 6.01:1 on cream */
  --faculty-will: oklch(0.54 0.20 35);      /* red-orange — 4.99:1 on cream */
  --faculty-skill: oklch(0.54 0.19 330);    /* magenta/rose — 5.63:1 on cream */
  --faculty-wealth: oklch(0.47 0.16 65);    /* warm amber — 5.15:1 on cream */

  /* Semantic colors */
  --color-error: oklch(0.55 0.12 25);

}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--cream);
  color: var(--navy);
  font-family: 'Albert Sans', sans-serif;
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Skip link — visually hidden until focused, remains in the accessibility tree. */
.skip-link {
  position: absolute; top: 8px; left: 8px;
  clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden;
  background: var(--navy-deep); color: var(--cream);
  padding: 12px 20px; z-index: 1000; text-decoration: none;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none;
  width: auto; height: auto; overflow: visible;
}

/* Focus styles */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============== Layout ============== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--space-gutter); }

/* ============== Navigation ============== */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 20px var(--space-gutter);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}

nav.site-nav.scrolled {
  background: oklch(0.16 0.05 285 / 0.97);
  /* backdrop-filter removed — imperceptible at 0.97 opacity, saves GPU compositing */
  border-bottom-color: var(--navy-soft);
  padding: 14px var(--space-gutter);
}

/* Logo */
.logo-img { height: 40px; width: auto; display: block; transition: height 0.4s var(--ease), opacity 0.3s; }
nav.site-nav.scrolled .logo-img { height: 34px; }

/* Nav links — works with both div>a and ul>li>a patterns */
.nav-links { display: flex; gap: 36px; font-size: var(--text-sm); letter-spacing: 0.03em; list-style: none; align-items: center; }
.nav-links li { list-style: none; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-weight: 500;
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(245,240,230,0.3);
  color: var(--cream); padding: 12px 20px; font-size: var(--text-sm);
  min-height: 44px; min-width: 44px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle[aria-expanded="true"] { background: rgba(245,240,230,0.08); border-color: rgba(245,240,230,0.5); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--cream); margin: 3px 0; transition: all 0.3s; }
@media (max-width: 860px) {
  .nav-links {
    flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep); padding: 0 var(--space-gutter); gap: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), padding 0.45s var(--ease);
  }
  .nav-links.is-open { max-height: 420px; opacity: 1; padding: 16px var(--space-gutter) 24px; }
  .nav-links a {
    display: block; width: 100%; text-align: left;
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), color 0.3s;
    padding: 14px 0;
    min-height: 44px;
  }
  .nav-links.is-open a { opacity: 1; transform: translateY(0); }
  .nav-links.is-open a:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.is-open a:nth-child(2) { transition-delay: 0.14s; }
  .nav-links.is-open a:nth-child(3) { transition-delay: 0.20s; }
  .nav-links.is-open a:nth-child(4) { transition-delay: 0.26s; }
  .nav-toggle { display: block; }
}

/* ============== Eyebrow ============== */
.eyebrow, .section-eyebrow {
  font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.section-eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--gold);
}

/* ============== Headings ============== */
h1, h2, h3 {
  font-family: 'Spectral', serif; font-weight: 500;
  letter-spacing: -0.015em; color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; margin-bottom: 36px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.1; margin-bottom: 40px; }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; margin-bottom: 20px; }
h1 em, h2 em { font-style: italic; color: var(--gold-deep); font-weight: 500; }

/* ============== Section base ============== */
section { padding: var(--space-section) 0; position: relative; }

/* Section separator — a single quiet hairline between every adjacent section,
   matched to the V8 enligtist editorial treatment. Classless and unconditional
   so it fires evenly on every page. */
main > section + section { border-top: 1px solid var(--rule); }

/* Varied section padding rhythm */
section:has(.editorial-quote) { padding: calc(var(--space-section) * 1.3) 0; }
/* Image-only section (interstitial): tighten padding so the image doesn't sit
   in an empty well between sections that each carry their own full rhythm. */
section:has(> .container > .editorial-image:only-child) {
  padding: clamp(32px, 5vw, 72px) 0;
}

/* ============== Page Hero ============== */
.page-hero {
  min-height: 60vh; padding: clamp(120px, 14vw, 180px) var(--space-gutter) clamp(60px, 8vw, 100px);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
/* Universal hero scrim — darker where text lives (left), fading toward right.
   Sits between the background image (z:0) and the content container (z:2). */
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(12, 16, 38, 0.72) 0%,
      rgba(12, 16, 38, 0.55) 35%,
      rgba(12, 16, 38, 0.30) 65%,
      rgba(12, 16, 38, 0.10) 100%),
    linear-gradient(180deg,
      rgba(12, 16, 38, 0.15) 0%,
      rgba(12, 16, 38, 0.00) 30%,
      rgba(12, 16, 38, 0.00) 70%,
      rgba(12, 16, 38, 0.25) 100%);
  pointer-events: none;
}
/* Stronger scrim for heroes with light, warm, or busy imagery behind the text column */
.page-hero-faculty-index::after,
.page-hero-book::after,
.page-hero-contact::after,
.page-hero-404::after,
body[data-faculty="wealth"] .page-hero::after,
body[data-faculty="skill"] .page-hero::after,
body[data-faculty="will"] .page-hero::after {
  background:
    linear-gradient(100deg,
      rgba(12, 16, 38, 0.82) 0%,
      rgba(12, 16, 38, 0.65) 40%,
      rgba(12, 16, 38, 0.42) 70%,
      rgba(12, 16, 38, 0.20) 100%),
    linear-gradient(180deg,
      rgba(12, 16, 38, 0.18) 0%,
      rgba(12, 16, 38, 0.00) 30%,
      rgba(12, 16, 38, 0.00) 70%,
      rgba(12, 16, 38, 0.28) 100%);
}
/* Container inside hero inherits normal max-width and gutter from .container */
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  margin-bottom: 32px;
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.page-hero .eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--gold);
}

.page-hero h1 {
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(12, 16, 38, 0.55), 0 0 24px rgba(12, 16, 38, 0.25);
}
.page-hero .lede {
  font-size: var(--text-prose); color: var(--cream); max-width: 640px;
  line-height: 1.6; margin-top: 16px;
  text-shadow: 0 1px 4px rgba(12, 16, 38, 0.45);
}
.page-hero .eyebrow {
  color: var(--gold);
  text-shadow: 0 1px 4px rgba(12, 16, 38, 0.50);
}
/* Gold em text on dark hero backgrounds — use brand gold with shadow for contrast */
.page-hero h1 em { color: var(--gold); text-shadow: 0 1px 4px rgba(12, 16, 38, 0.50); }

/* Home hero eyebrow — slightly larger for the marquee moment. */
.page-hero-home .eyebrow {
  font-size: var(--text-lg);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(12, 16, 38, 0.50);
}

/* ============== Buttons ============== */
.btn {
  display: inline-block; padding: 16px 34px;
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  transition: all 0.4s var(--ease); cursor: pointer;
  border: none; position: relative; overflow: hidden;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary span { position: relative; z-index: 1; }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn-secondary { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--cream); }

/* Hero button overrides for dark hero backgrounds */
.page-hero .btn-primary { background: var(--gold-deep); color: var(--cream); }
.page-hero .btn-primary:hover { background: var(--gold); color: var(--navy-deep); }
.page-hero .btn-secondary { border-color: var(--cream); color: var(--cream); }
.page-hero .btn-secondary:hover { background: var(--cream); color: var(--navy-deep); }

.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--navy);
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 2px;
  border-bottom: 1px solid var(--gold); transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.read-more:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ============== Book Cover ============== */
.book-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative; perspective: 1600px;
}
.book-cover {
  width: 100%; max-width: 380px; height: auto; display: block;
  box-shadow:
    -2px 0 0 rgba(255,255,255,0.3) inset,
    -14px 0 26px rgba(15,26,48,0.1),
    36px 50px 90px rgba(15,26,48,0.32),
    0 0 0 1px rgba(15,26,48,0.08);
  transition: transform 0.8s var(--ease);
  transform: rotateY(-8deg) rotateX(1deg) translateY(0);
  animation: bookFloat 6s ease-in-out 2s infinite;
}
@keyframes bookFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(1deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(1deg) translateY(-12px); }
}
.book-cover:hover { transform: rotateY(-3deg) rotateX(0deg) scale(1.02); animation-play-state: paused; animation: none; }

/* ============== Premise ============== */
.premise { border-top: 1px solid var(--rule); }
.premise p {
  font-family: 'Spectral', serif; font-size: 1.5rem;
  line-height: 1.55; color: var(--ink-soft); margin-bottom: 28px; font-weight: 400;
}
.premise p:last-child { margin-bottom: 0; }
.premise p em { font-style: italic; color: var(--navy); }

/* ============== Two column ============== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.two-col p { font-size: var(--text-prose); line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; max-width: none; }
.col-left, .col-right { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 50px; } }

/* Premise text variant */
.premise-text { font-size: var(--text-prose); line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; }

/* ============== Grid layouts ============== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ============== Cards ============== */
.pillar-card {
  display: block; background: var(--cream); border: 1px solid var(--rule);
  padding: 36px 30px; text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(15,26,48,0.1); border-color: var(--gold); }
.pillar-card .eyebrow { margin-bottom: 16px; }
.pillar-card-name { font-family: 'Spectral', serif; font-size: 2rem; font-weight: 500; color: var(--navy); margin-bottom: 8px; transition: color 0.4s var(--ease); }
.pillar-card:hover .pillar-card-name { color: var(--gold-deep); }
.pillar-card-desc { font-size: var(--text-body-sm); color: var(--ink-soft); line-height: 1.65; }

/* Faculty-specific card accents */
.pillar-card[data-faculty="mind"]  { border-top: 2px solid var(--faculty-mind); }
.pillar-card[data-faculty="will"]  { border-top: 2px solid var(--faculty-will); }
.pillar-card[data-faculty="skill"] { border-top: 2px solid var(--faculty-skill); }
.pillar-card[data-faculty="wealth"]{ border-top: 2px solid var(--faculty-wealth); }
.pillar-card[data-faculty="mind"]:hover  { border-color: var(--faculty-mind); }
.pillar-card[data-faculty="will"]:hover  { border-color: var(--faculty-will); }
.pillar-card[data-faculty="skill"]:hover { border-color: var(--faculty-skill); }
.pillar-card[data-faculty="wealth"]:hover{ border-color: var(--faculty-wealth); }
.pillar-card[data-faculty="mind"]:hover .pillar-card-name  { color: var(--faculty-mind); }
.pillar-card[data-faculty="will"]:hover .pillar-card-name  { color: var(--faculty-will); }
.pillar-card[data-faculty="skill"]:hover .pillar-card-name { color: var(--faculty-skill); }
.pillar-card[data-faculty="wealth"]:hover .pillar-card-name{ color: var(--faculty-wealth); }

/* ============== Editorial Pull Quote (homepage breaker) ============== */
.editorial-quote {
  max-width: 820px; padding: var(--space-3xl) 0;
  position: relative;
}
.editorial-quote::before {
  content: '\201C'; position: absolute; top: var(--space-2xl); left: -8px;
  font-family: 'Spectral', serif; font-size: 120px; line-height: 1;
  color: var(--rule); font-weight: 400; pointer-events: none;
}
.editorial-quote-text {
  font-family: 'Spectral', serif;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.35;
  font-weight: 400; font-style: italic;
  color: var(--navy); letter-spacing: -0.01em;
  padding-left: 48px;
  border: none; margin: 0;
}
.editorial-quote-attr {
  font-size: var(--text-sm); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-top: 24px; padding-left: 48px;
}
.editorial-quote-attr em {
  font-family: 'Spectral', serif; font-style: italic; text-transform: none;
  letter-spacing: 0; color: var(--gold-deep);
}

/* ============== Tinted section ============== */
.section-tinted { background: var(--cream); }

/* ============== Program cards ============== */
.program-card {
  display: block; border: 1px solid var(--rule); background: var(--cream);
  padding: 36px 30px; text-decoration: none;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.program-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(15,26,48,0.08); }
.program-card .eyebrow { margin-bottom: 12px; }
.program-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.program-card p { font-size: var(--text-body-sm); color: var(--ink-soft); line-height: 1.65; }

/* ============== Footer (navy, matching header) ============== */
footer, .site-footer {
  border-top: none; padding: var(--space-3xl) 0 var(--space-2xl);
  font-size: var(--text-sm); color: rgba(245, 240, 230, 0.90); background: var(--navy);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul a { color: rgba(245, 240, 230, 0.92); text-decoration: none; transition: color 0.3s var(--ease), transform 0.3s var(--ease); display: inline-block; }
.footer-section ul a:hover { color: var(--gold); transform: translateX(4px); }
.footer-section .footer-heading, .footer-grid .footer-heading {
  font-family: 'Spectral', serif; font-size: 1.0625rem; font-weight: 600;
  color: var(--cream); margin-bottom: 18px; letter-spacing: 0.01em;
}
.footer-grid a {
  display: block; color: rgba(245, 240, 230, 0.92); text-decoration: none;
  margin-bottom: 10px; transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-grid a:hover { color: var(--gold); transform: translateX(4px); }
.footer-brand p { max-width: 320px; line-height: 1.65; margin-top: 8px; font-style: italic; font-family: 'Spectral', serif; color: rgba(245, 240, 230, 0.90); }
.footer-brand .logo-img { margin-bottom: 16px; height: 44px; }
.footer-bottom {
  padding-top: 30px; border-top: 1px solid rgba(201, 169, 97, 0.25);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  color: rgba(245, 240, 230, 0.90);
}
.footer-bottom p { color: rgba(245, 240, 230, 0.90); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   V2 HOMEPAGE — New section layouts
   ============================================================ */

/* Institutional Statement — label left, prose right.
   Label column flexes between 240px and 320px so it breathes at every viewport
   rather than locking to a fixed 300px that cramps at 860-1100px widths. */
.inst-statement {
  display: grid;
  grid-template-columns: minmax(240px, 28%) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
}
.inst-statement-body p {
  font-size: var(--text-prose); line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; max-width: 65ch;
}
.inst-statement-body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .inst-statement { grid-template-columns: 1fr; gap: 28px; } }

/* Closing CTA box */
.closing-box {
  background: var(--cream-warm); border: 1px solid var(--rule);
  padding: var(--space-3xl) clamp(30px, 5vw, 50px); display: grid;
  grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3xl); align-items: end;
}
.closing-content p {
  font-size: var(--text-prose); line-height: 1.7; color: var(--ink-soft); max-width: 640px;
}
.closing-actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 860px) {
  .closing-box { grid-template-columns: 1fr; gap: var(--space-lg); padding: var(--space-2xl) var(--space-lg); }
}

/* ============================================================
   V3 — Home hero (full-width, no book cover)
   ============================================================ */
.page-hero-home {
  min-height: min(100dvh, 900px);
  justify-content: center;
  padding: clamp(120px, 12vw, 160px) var(--space-gutter) clamp(60px, 8vw, 100px);
}
.page-hero-home h1 {
  max-width: 900px;
}
.page-hero-home .lede {
  max-width: 700px;
}
.page-hero-home .cta-row {
  margin-top: 48px;
}

/* V3 — Focus area cards (Areas of Focus section) */
.focus-card {
  min-height: 220px; border: 1px solid var(--rule); padding: 32px 28px;
  background: var(--cream); position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.focus-card::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 60px; height: 60px;
  background: var(--gold); opacity: 0;
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
  transition: opacity 0.5s var(--ease), width 0.5s var(--ease), height 0.5s var(--ease);
}
.focus-card:hover::after { opacity: 0.15; width: 80px; height: 80px; }
.focus-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(15,26,48,0.08); }
.focus-card-rule {
  width: 64px; height: 1px; background: var(--rule); margin-bottom: 40px;
  transition: width 0.5s var(--ease), background 0.4s var(--ease);
}
.focus-card:hover .focus-card-rule { width: 100%; background: var(--gold); }
.focus-card h3 {
  font-family: 'Spectral', serif; font-size: var(--text-lg); font-weight: 500;
  color: var(--navy); margin-bottom: 12px;
}
.focus-card p { font-size: var(--text-body-sm); line-height: 1.65; color: var(--ink-soft); }

/* ============== Utility classes (replacing inline styles) ============== */
.mt-grid { margin-top: var(--space-3xl); }
.pt-0 { padding-top: 0; }
.mt-cta { margin-top: var(--space-2xl); }
.prose-width { max-width: 680px; }

/* ============================================================
   IMAGE PLACEMENT SCAFFOLDING
   Replace placeholder paths with real images when ready.
   ============================================================ */

/* 1. Hero background image (homepage) */
.page-hero-home {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
}
.page-hero-home .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  /* Shift focal point right so bright particle burst clears the text column on the left */
  background-position: 70% 50%;
  background-image: url('../images/hero-bg.jpg');
  transform: scale(1.08);
}

/* Images load without fade */

/* 4. Faculty hero backgrounds */
body[data-faculty] .page-hero {
  background: var(--navy-deep);
}
body[data-faculty] .page-hero .faculty-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
body[data-faculty="mind"] .page-hero .faculty-hero-bg  { background-image: url('../images/faculty-mind-bg.jpg'); }
body[data-faculty="will"] .page-hero .faculty-hero-bg  { background-image: url('../images/faculty-will-bg.jpg'); background-position: 72% 50%; }
body[data-faculty="skill"] .page-hero .faculty-hero-bg { background-image: url('../images/faculty-skill-bg.jpg'); background-position: 72% 50%; }
body[data-faculty="wealth"] .page-hero .faculty-hero-bg{ background-image: url('../images/faculty-wealth-bg.jpg'); background-position: 78% 50%; }

/* 4b. Page-specific hero backgrounds (non-faculty pages) */
.page-hero .page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
.page-hero-faculty-index,
.page-hero-book,
.page-hero-contact,
.page-hero-404 {
  background: var(--navy-deep);
}
/* Focal points shifted so bright/detailed regions clear the text column on the left */
.page-hero-faculty-index .page-hero-bg  { background-image: url('../images/hero-faculty-bg.jpg'); background-position: 75% 50%; }
.page-hero-book .page-hero-bg           { background-image: url('../images/hero-book-bg.jpg'); background-position: 75% 50%; }
.page-hero-contact .page-hero-bg        { background-image: url('../images/hero-contact-bg.jpg'); background-position: 70% 70%; }
.page-hero-404 .page-hero-bg            { background-image: url('../images/hero-404-bg.jpg'); background-position: 50% 50%; }

/* 4c. Mid-page section backgrounds — edges feathered so texture blends into surrounding cream.
   Used only where the section holds no body paragraphs that need sustained contrast. */
.section-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}
.section-foundations-bg .section-bg {
  background-image: url('../images/section-foundations-bg.jpg');
  opacity: 0.18;
}

/* Editorial images (home interstitial, landscape, how-we-work).
   Replaces bare <img> rectangles on cream with framed, shadowed photos that
   fade into the page instead of reading as pasted-in stock shots. */
.editorial-image {
  width: 100%; height: auto; display: block;
  object-fit: cover;
  box-shadow:
    0 1px 0 rgba(15, 26, 48, 0.06),
    0 16px 40px rgba(15, 26, 48, 0.10),
    0 40px 80px rgba(15, 26, 48, 0.08);
  background: var(--cream-warm);
  margin-block: clamp(24px, 4vw, 48px);
  /* Very subtle edge feathering toward cream canvas at top/bottom, so the photo
     doesn't read as a hard rectangle pasted onto the page. */
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,1.00) 6%,
    rgba(0,0,0,1.00) 94%,
    rgba(0,0,0,0.92) 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,1.00) 6%,
    rgba(0,0,0,1.00) 94%,
    rgba(0,0,0,0.92) 100%);
}
.editorial-image.ar-wide     { aspect-ratio: 16 / 9; }
.editorial-image.ar-cinema   { aspect-ratio: 21 / 9; }
.editorial-image.ar-portrait { aspect-ratio: 3 / 4; max-width: 420px; }

/* 6. Closing CTA dark variant */
.closing-box-dark {
  background: var(--navy); border: none; position: relative;
  overflow: hidden;
}
.closing-box-dark::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  pointer-events: none;
  background-image: url('../images/cta-bg.jpg');
}
.closing-box-dark::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    to right,
    rgba(22, 26, 52, 0.92) 0%,
    rgba(22, 26, 52, 0.72) 55%,
    rgba(22, 26, 52, 0.58) 100%
  );
  pointer-events: none;
}
.closing-box-dark .closing-content { position: relative; z-index: 1; }
.closing-box-dark .closing-actions { position: relative; z-index: 1; }
.closing-box-dark .section-eyebrow { color: var(--gold); }
.closing-box-dark .section-eyebrow::before { background: var(--gold); }
.closing-box-dark h2 { color: var(--cream); text-shadow: 0 1px 6px rgba(12, 16, 38, 0.55); }
.closing-box-dark h2 em { color: var(--gold); }
.closing-box-dark p { color: rgba(245, 240, 230, 0.95); text-shadow: 0 1px 4px rgba(12, 16, 38, 0.45); }
.closing-box-dark .btn-primary { background: var(--gold-deep); color: var(--navy); }
.closing-box-dark .btn-primary:hover { background: var(--gold); }
.closing-box-dark .btn-secondary { border-color: var(--gold); color: var(--gold); }
.closing-box-dark .btn-secondary:hover { background: var(--gold); color: var(--navy); }

/* Full-page-bleed CTA at every viewport. The box escapes its container so the
   dark field runs edge-to-edge; inner padding keeps the text column aligned
   with the rest of the page's 1240px content width. */
.closing-box-dark {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: var(--space-3xl) max(clamp(24px, 5vw, 40px), calc((100vw - 1240px) / 2 + clamp(30px, 5vw, 50px)));
  border-radius: 0;
}

/* Kill the bottom padding on the section that holds the closing CTA so the
   dark field runs straight into the dark footer — no cream strip between
   them. (The section still keeps any top padding it was given.) */
main > section:has(> .container > .closing-box-dark) { padding-bottom: 0; }


/* ============== Faculty sub-page color theming ============== */
body[data-faculty="mind"]  { --faculty-accent: var(--faculty-mind); }
body[data-faculty="will"]  { --faculty-accent: var(--faculty-will); }
body[data-faculty="skill"] { --faculty-accent: var(--faculty-skill); }
body[data-faculty="wealth"]{ --faculty-accent: var(--faculty-wealth); }

body[data-faculty] .page-hero .eyebrow { color: var(--faculty-accent); }
body[data-faculty] .page-hero .eyebrow::before { background: var(--faculty-accent); }
body[data-faculty] h1 em, body[data-faculty] h2 em { color: var(--faculty-accent); }
/* Faculty accent on the hero — scrim carries most of the contrast, shadow just
   supplies definition where the accent meets warm highlights in the photo. */
body[data-faculty] .page-hero h1 em {
  text-shadow: 0 1px 5px rgba(12, 16, 38, 0.55);
}
body[data-faculty] .section-eyebrow { color: var(--faculty-accent); }
body[data-faculty] .section-eyebrow::before { background: var(--faculty-accent); }
body[data-faculty] :focus-visible { outline-color: var(--faculty-accent); }

/* ============== Footer link contrast ============== */
.footer-bottom p { color: rgba(245, 240, 230, 0.90); }
.footer-section ul a { color: rgba(245, 240, 230, 0.92); }
.footer-grid a { color: rgba(245, 240, 230, 0.92); }

/* ============== Mobile touch & spacing ============== */
@media (max-width: 640px) {
  /* Tighten section spacing on small screens */
  h2 { margin-bottom: 28px; }
  h1 { margin-bottom: 24px; }

  /* Footer links: larger touch targets */
  .footer-section ul li { margin-bottom: 14px; }
  .footer-section ul a,
  .footer-grid a { padding: 6px 0; margin-bottom: 4px; }

  /* Cards: slightly more padding for touch comfort */
  .pillar-card { padding: 32px 24px; }

  /* Footer bottom: stack on very small screens */
  .footer-bottom { flex-direction: column; gap: 8px; }

}

/* Landscape phone: reduce hero height */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero-home { min-height: auto; padding-top: 100px; padding-bottom: 60px; }
  .page-hero { min-height: auto; }
}

/* ============================================================
   V8 — Navigation dropdown
   ============================================================ */
.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown > a {
  color: var(--cream); text-decoration: none; font-weight: 500;
  position: relative; padding-bottom: 4px;
}
.nav-item.has-dropdown > a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-item.has-dropdown > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-item.has-dropdown > a[aria-current="page"]::after { transform: scaleX(1); }

.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--navy-deep); border: 1px solid var(--navy-soft);
  padding: 12px 0; min-width: 160px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
}
/* Invisible hover bridge — fills the 12px gap between the trigger link and
   the dropdown panel so the cursor can cross without closing the menu.
   Inherits pointer-events from the dropdown, so it's only hit-testable
   while the dropdown is open. */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
  background: transparent;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 8px 24px;
  color: rgba(245, 240, 230, 0.8); font-size: var(--text-sm);
  font-weight: 500; letter-spacing: 0.03em;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-dropdown a:hover {
  color: var(--gold); background: rgba(245, 240, 230, 0.05);
}
.nav-dropdown a::after { display: none; }

@media (max-width: 860px) {
  .nav-item.has-dropdown { width: 100%; }
  .nav-item.has-dropdown > a {
    display: block; width: 100%; text-align: left;
    padding: 14px 0;
    min-height: 44px;
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), color 0.3s;
  }
  .nav-links.is-open .nav-item.has-dropdown > a {
    opacity: 1; transform: translateY(0);
    transition-delay: 0.08s;
  }
  .nav-dropdown {
    position: static; transform: none;
    opacity: 1; pointer-events: auto; visibility: visible;
    background: transparent; border: none;
    padding: 0 0 0 20px; margin-top: 0; min-width: 0;
  }
  .nav-dropdown a {
    display: block; width: 100%; text-align: left;
    padding: 10px 0;
    min-height: 44px;
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), color 0.3s;
  }
  .nav-links.is-open .nav-dropdown a { opacity: 1; transform: translateY(0); }
  .nav-links.is-open .nav-dropdown a:nth-child(1) { transition-delay: 0.12s; }
  .nav-links.is-open .nav-dropdown a:nth-child(2) { transition-delay: 0.16s; }
  .nav-links.is-open .nav-dropdown a:nth-child(3) { transition-delay: 0.20s; }
  .nav-links.is-open .nav-dropdown a:nth-child(4) { transition-delay: 0.24s; }
  /* Adjust delays for items after the dropdown */
  .nav-links.is-open > a:nth-child(2) { transition-delay: 0.30s; }
  .nav-links.is-open > a:nth-child(3) { transition-delay: 0.36s; }
  .nav-links.is-open > a:nth-child(4) { transition-delay: 0.42s; }
}

/* ============================================================
   V8 — Additional components
   ============================================================ */

/* Editorial caption — italic centered line after discipline cards */
.editorial-caption {
  font-family: 'Spectral', serif; font-style: italic;
  font-size: var(--text-prose); color: var(--gold-deep);
  margin-top: var(--space-2xl); text-align: center;
}

/* Retailer list — plain text for book retailers */
.retailer-list {
  font-family: 'Spectral', serif; font-size: var(--text-prose);
  color: var(--ink-soft); letter-spacing: 0.02em;
  margin-top: var(--space-lg);
}

/* Program card enhancements */
.program-for {
  font-size: var(--text-body-sm); line-height: 1.65; color: var(--navy);
  margin-bottom: 16px;
}
.program-availability {
  font-family: 'Spectral', serif; font-size: var(--text-body-sm);
  color: var(--gold-deep); margin-top: 16px;
}

/* ============================================================
   V3-ported layouts (contact, practice, index, faculty pages)
   Structural patterns from V3 paired with V8 color/type tokens
   ============================================================ */

/* Kicker label — V3 equivalent of V8 eyebrow, for use inside section bodies */
.v3-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 32px;
}

/* Two-column heading / body layout */
.v3-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.v3-two-col > .v3-col-left h1,
.v3-two-col > .v3-col-left h2 { margin-bottom: 0; }
.v3-two-col > .v3-col-right p {
  font-size: var(--text-prose);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: none;
}
.v3-two-col > .v3-col-right p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .v3-two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* Three-column card row (Landscape + How-we-work) */
.v3-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
  margin-top: var(--space-2xl);
}
.v3-tc-card {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.v3-tc-card .v3-rom {
  display: inline-block;
  font-family: 'Spectral', serif;
  font-style: italic;
  color: var(--gold-deep);
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.v3-tc-card h4 {
  font-family: 'Spectral', serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.v3-tc-card p {
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .v3-three-col { grid-template-columns: 1fr; gap: 32px; }
}

/* Discipline cards (index + practice) */
.v3-disc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: var(--space-2xl);
}
.v3-disc-grid.large {
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 60px);
}
.v3-disc-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 24px;
  background: var(--cream);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.v3-disc-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.v3-disc-card h3 {
  font-family: 'Spectral', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.v3-disc-card .v3-disc-tag {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold-deep);
  margin-bottom: 14px;
  line-height: 1.45;
}
.v3-disc-card .v3-disc-desc {
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 22px;
  flex: 1;
}
.v3-disc-card .v3-disc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold-deep);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.v3-disc-card .v3-disc-foot .arr { transition: transform 0.4s var(--ease); }
.v3-disc-card:hover .v3-disc-foot .arr { transform: translateX(4px); }
@media (max-width: 1000px) {
  .v3-disc-grid { grid-template-columns: repeat(2, 1fr); }
  .v3-disc-grid.large { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .v3-disc-grid { grid-template-columns: 1fr; }
}

/* Editorial list (faculty "In the work") */
.v3-ed-list { list-style: none; padding: 0; margin: 0; }
.v3-ed-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-prose);
  color: var(--navy);
  line-height: 1.55;
}
.v3-ed-list li:first-child { border-top: 1px solid var(--rule); }

/* Pull quote (faculty "Central question") */
.v3-pull {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  color: var(--navy);
  max-width: 72ch;
  margin: 0;
  padding: 0;
}

/* Contact page two-column + paths + form */
.v3-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.v3-paths { margin-top: 28px; }
.v3-path {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.v3-path:first-child { border-top: 1px solid var(--rule); }
.v3-path-name {
  font-family: 'Spectral', serif;
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 500;
}
.v3-path-desc {
  font-size: var(--text-body-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 820px) {
  .v3-contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* V3-styled form */
.v3-form { display: grid; gap: 22px; }
.v3-form .v3-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v3-field { display: flex; flex-direction: column; }
.v3-field label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.v3-field input,
.v3-field select,
.v3-field textarea {
  font-family: 'Albert Sans', sans-serif;
  font-size: var(--text-body);
  color: var(--navy);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  transition: border-color 0.3s var(--ease);
}
.v3-field input:focus,
.v3-field select:focus,
.v3-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
/* Keyboard focus — restore a visible ring over the native focus the bare
   border-bottom can't carry by itself (low contrast for low-vision users). */
.v3-field input:focus-visible,
.v3-field select:focus-visible,
.v3-field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-bottom-color: var(--gold);
}
.v3-field textarea { min-height: 140px; resize: vertical; }

/* Inline validation error. Persists between attempts so screen readers can
   re-read it; visually aligned under the field. */
.v3-field-error {
  display: block;
  min-height: 0;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: 6px;
  line-height: 1.4;
}
.v3-field-error:empty { display: none; }
.v3-field input[aria-invalid="true"],
.v3-field select[aria-invalid="true"],
.v3-field textarea[aria-invalid="true"] {
  border-bottom-color: var(--color-error);
  border-bottom-width: 2px;
}
.v3-form-submit-row { margin-top: 8px; }
.v3-form-confirm {
  border-top: 1px solid var(--rule);
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 1.375rem;
  color: var(--navy);
  line-height: 1.4;
}
/* Transition to visible is defined alongside the rest of the motion rules
   near the bottom of this file. */
@media (max-width: 600px) {
  .v3-form .v3-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Motion — hero entrance + scroll reveals
   Restrained by design for the institute's editorial register.
   Everything guarded by `html.js-motion-ready` so a no-JS client
   never sees hidden content, and everything flattens under
   prefers-reduced-motion at the bottom of this file.
   ============================================================ */

/* ---- Hero entrance (runs on load, every page) ---- */
html.js-motion-ready .page-hero .eyebrow,
html.js-motion-ready .page-hero h1,
html.js-motion-ready .page-hero .lede,
html.js-motion-ready .page-hero .cta-row {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
html.js-motion-ready .page-hero .eyebrow             { animation-delay: 0.10s; }
html.js-motion-ready .page-hero h1                   { animation-delay: 0.22s; transform: translateY(18px); }
html.js-motion-ready .page-hero .lede                { animation-delay: 0.42s; }
html.js-motion-ready .page-hero .lede + .lede        { animation-delay: 0.52s; }
html.js-motion-ready .page-hero .cta-row             { animation-delay: 0.58s; }

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll reveals (IntersectionObserver-driven) ---- */
html.js-motion-ready .pillar-card,
html.js-motion-ready .focus-card,
html.js-motion-ready .program-card,
html.js-motion-ready .editorial-image,
html.js-motion-ready .inst-statement,
html.js-motion-ready .editorial-quote {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
html.js-motion-ready .pillar-card.is-visible,
html.js-motion-ready .focus-card.is-visible,
html.js-motion-ready .program-card.is-visible,
html.js-motion-ready .editorial-image.is-visible,
html.js-motion-ready .inst-statement.is-visible,
html.js-motion-ready .editorial-quote.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Grid staggers — sibling cards ripple in one after the next. Uses nth-child
   from the parent grid so no per-card markup is needed. */
html.js-motion-ready .grid-2 > .pillar-card:nth-child(2).is-visible,
html.js-motion-ready .grid-3 > .focus-card:nth-child(2).is-visible,
html.js-motion-ready .grid-3 > .program-card:nth-child(2).is-visible { transition-delay: 0.08s; }
html.js-motion-ready .grid-2 > .pillar-card:nth-child(3).is-visible,
html.js-motion-ready .grid-3 > .focus-card:nth-child(3).is-visible,
html.js-motion-ready .grid-3 > .program-card:nth-child(3).is-visible { transition-delay: 0.16s; }
html.js-motion-ready .grid-2 > .pillar-card:nth-child(4).is-visible  { transition-delay: 0.24s; }

/* ---- Form submit feedback ----
   Closed → open animates max-height + vertical rhythm + opacity so the
   confirm message unfolds below the form instead of snapping in. */
.v3-form-confirm {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
  border-top-width: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              padding-top 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.v3-form-confirm.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 400px;
  padding-top: 28px;
  margin-top: 28px;
  border-top-width: 1px;
}

/* Submit-button loading pulse */
.v3-form button[type="submit"][aria-busy="true"] {
  position: relative;
  pointer-events: none;
}
.v3-form button[type="submit"][aria-busy="true"] span {
  animation: submit-pulse 1.1s ease-in-out infinite;
}
@keyframes submit-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ============== Reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  /* Kill decorative animations (parallax, reveals, float, page-load) */
  *, *::before, *::after { animation-duration: 0.01s !important; animation-delay: 0s !important; }
  /* Preserve fast functional transitions (hover, focus, state changes) */
  *, *::before, *::after { transition-duration: 0.15s !important; }
  /* Force reveal elements visible — transitions complete instantly but the
     initial hidden state would otherwise persist before IO fires. */
  html.js-motion-ready .page-hero .eyebrow,
  html.js-motion-ready .page-hero h1,
  html.js-motion-ready .page-hero .lede,
  html.js-motion-ready .page-hero .cta-row,
  html.js-motion-ready .pillar-card,
  html.js-motion-ready .focus-card,
  html.js-motion-ready .program-card,
  html.js-motion-ready .editorial-image,
  html.js-motion-ready .inst-statement,
  html.js-motion-ready .editorial-quote {
    opacity: 1 !important;
    transform: none !important;
  }
}
