/* Premium layer for the public homepage, loaded after heritage.css.
   Palette is unchanged; it is redistributed 60-30-10:
   60  paper  #f3f1e9  (+ ultra-subtle tints) for every section background
   30  navy   #0b1d60  for text and elevated structural cards
   10  periwinkle #576bff (deep #2844bb) for CTAs, active states and focus only */
.heritage {
  --ink: #0b1d60;
  --ink-soft: #3a4670;
  --ink-mute: #535c76;
  --accent: #576bff;
  --accent-deep: #2844bb;
  --accent-grad: linear-gradient(135deg, #576bff 0%, #2844bb 100%);
  --accent-tint: rgba(87, 107, 255, .1);
  --paper-hi: #f8f7f2;
  --paper-lo: #ecebe3;
  --line: rgba(11, 29, 96, .09);
  --line-strong: rgba(11, 29, 96, .16);
  --shadow-sm: 0 1px 2px rgba(11, 29, 96, .05), 0 4px 14px -4px rgba(11, 29, 96, .08);
  --shadow-md: 0 2px 4px rgba(11, 29, 96, .04), 0 14px 36px -10px rgba(11, 29, 96, .14);
  --shadow-lg: 0 4px 10px rgba(11, 29, 96, .05), 0 34px 70px -26px rgba(11, 29, 96, .28);
  --shadow-xl: 0 8px 16px rgba(11, 29, 96, .06), 0 50px 100px -40px rgba(11, 29, 96, .45);
  --shadow-accent: 0 10px 28px -10px rgba(87, 107, 255, .65);
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;
  --gutter: max(24px, calc((100vw - 1200px) / 2));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: all .3s ease;
  --font: "Geist", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Geist", "Heebo", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.heritage h1, .heritage h2, .heritage h3, .heritage h4 { font-family: var(--font-display); text-wrap: balance; }
.heritage p { text-wrap: pretty; }
.heritage ::selection { background: var(--accent); color: #fff; }
.heritage :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Registration banner (navy strip, accent CTA) ---------- */
.registration-banner, .registration-banner.is-open {
  min-height: 44px; border: 0; padding-inline: var(--gutter);
  background: var(--ink); color: var(--paper); font-size: .68rem; transition: var(--t);
}
.registration-banner:hover { background: #0e2475; }
.registration-banner-countdown > span { color: #b9c4f5; }
.registration-banner-cta {
  border: 0; padding: 7px 15px; border-radius: 999px; background: var(--accent-grad); color: #fff;
  box-shadow: var(--shadow-accent); transition: var(--t);
}
.registration-banner:hover .registration-banner-cta { background: var(--accent); transform: translateX(3px); }

/* ---------- Floating glass nav (light) ---------- */
.heritage .nav { top: 56px; padding: 0 16px; background: transparent; border: 0; pointer-events: none; }
.heritage .nav-inner, .heritage .nav.scrolled .nav-inner {
  pointer-events: auto; max-width: 1180px; margin: 0 auto; padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(248, 247, 242, .72); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); transition: var(--t);
}
.heritage .nav.scrolled .nav-inner { background: rgba(248, 247, 242, .9); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.heritage .brand { color: var(--ink); }
.heritage .brand-logo { height: 38px; width: 38px; border-radius: 12px; padding: 3px; box-shadow: var(--shadow-sm); }
.heritage .brand-copy strong { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.heritage .brand-copy small { color: var(--accent-deep); font-weight: 700; }
.heritage .nav-link {
  position: relative; border-radius: 999px; padding: 10px 16px; font-size: .9rem; font-weight: 500;
  color: var(--ink-soft); transition: var(--t);
}
.heritage .nav-link:hover { color: var(--accent-deep); background: var(--accent-tint); }
.heritage .nav-link.is-active { color: var(--ink); font-weight: 600; }
.heritage .nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent);
}
.heritage .nav-link-hot { color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
.heritage .nav-link-hot:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.heritage .nav-cta {
  margin-inline-start: 6px; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: .88rem;
  background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent); transition: var(--t);
}
.heritage .nav-cta:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(87, 107, 255, .8); }
.heritage .nav-toggle span { background: var(--ink); }
.heritage .nav :focus-visible, .heritage .hero :focus-visible, .heritage .footer :focus-visible { outline-color: var(--accent); }

/* ---------- Buttons ---------- */
.heritage .btn {
  border-radius: 999px; padding: 16px 30px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; transition: var(--t);
}
.heritage .btn:hover { transform: translateY(-3px); }
.heritage .btn:active { transform: translateY(-1px) scale(.98); }
.heritage .btn-primary, .heritage .hero-actions .btn-primary {
  background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent);
}
.heritage .btn-primary:hover, .heritage .hero-actions .btn-primary:hover {
  background: var(--accent); box-shadow: 0 20px 40px -14px rgba(87, 107, 255, .85);
}
.heritage .btn-ghost, .heritage .hero-actions .btn-ghost {
  background: rgba(255, 255, 255, .6); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm);
}
.heritage .btn-ghost:hover, .heritage .hero-actions .btn-ghost:hover {
  color: var(--accent-deep); border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-tint), var(--shadow-sm);
}
.text-link {
  border: 0; padding: 14px 22px; border-radius: 999px; gap: 12px; font-size: .9rem;
  background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent); transition: var(--t);
}
.text-link:hover { color: #fff; background: var(--accent); transform: translateY(-2px); }

/* ---------- Typography scale ---------- */
.chapter-label {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--accent-deep); font-size: .66rem; font-weight: 700; letter-spacing: .16em;
}
.chapter-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.heritage .section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.heritage .section-title {
  font-weight: 800; letter-spacing: -.052em; line-height: .98; color: var(--ink);
  font-size: clamp(3rem, 6.4vw, 6rem);
}
.heritage .gradient-text {
  background: linear-gradient(95deg, var(--accent-deep) 0%, var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heritage .section-lead {
  margin-top: 24px; max-width: 580px; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.6;
  font-weight: 400; color: var(--ink-soft); letter-spacing: -.01em;
}

/* ---------- Hero (paper, navy type, accent focal point) ---------- */
.heritage .hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--ink); padding-bottom: clamp(48px, 7vh, 88px);
  background:
    radial-gradient(56rem 34rem at 92% -6%, rgba(87, 107, 255, .13), transparent 64%),
    radial-gradient(40rem 28rem at -4% 40%, rgba(87, 107, 255, .06), transparent 70%),
    var(--paper);
}
.heritage .hero-content { padding: 196px var(--gutter) 40px; overflow: visible; }
.heritage .hero-content::before {
  inset: -40px 0 auto 0; height: 620px; opacity: .5;
  background-image: radial-gradient(circle, rgba(11, 29, 96, .16) 1.2px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 80% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 75% at 80% 0%, #000, transparent 72%);
}
.hero-topline { align-items: center; margin-bottom: 36px; }
.hero-topline span:first-child {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 700;
}
.hero-topline span:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.hero-topline span:last-child { color: var(--ink-mute); font-weight: 600; }
.heritage .hero-title {
  font-weight: 800; letter-spacing: -.062em; line-height: .92; color: var(--ink);
  font-size: clamp(3.4rem, 8.8vw, 8.8rem);
}
.heritage .hero-title > span:not(.w) {
  background: linear-gradient(95deg, var(--accent-deep) 0%, var(--accent) 45%, var(--accent-deep) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.partner-marquee { margin-top: 60px; }
.partner-marquee-title { letter-spacing: .18em; color: var(--ink-mute); }
.partner-marquee-viewport { border: 0; }
.partner-marquee-viewport::before { background: linear-gradient(90deg, var(--paper), transparent); }
.partner-marquee-viewport::after { background: linear-gradient(-90deg, var(--paper), transparent); }
.partner-marquee-set > a, .partner-marquee-set > span, .partner-marquee-set img { border-radius: 18px; }
.partner-marquee-set > a, .partner-marquee-set > span { box-shadow: var(--shadow-md); transition: var(--t); }
.partner-marquee-set a:hover { opacity: 1; transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent); }
.hero-bottom { margin-top: 52px; align-items: center; }
.heritage .hero-sub { font-size: clamp(1.3rem, 2.1vw, 1.9rem); font-weight: 500; line-height: 1.35; letter-spacing: -.03em; color: var(--ink-soft); }

.heritage-building {
  margin: 8px var(--gutter) 0; border-radius: var(--r-xl); overflow: hidden; background: var(--periwinkle);
  box-shadow: var(--shadow-xl);
}
.heritage-building figcaption {
  left: 16px; right: 16px; bottom: 16px; padding: 12px 20px; border-radius: 999px;
  background: rgba(11, 29, 96, .55); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.cohort-announcement {
  margin: 20px var(--gutter) 0; padding: 12px 12px 12px 26px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--ink-soft); box-shadow: var(--shadow-md);
}
.announcement-label { color: var(--accent-deep); font-weight: 700; }
.status-dot { background: var(--accent); animation: accentPulse 2.4s ease-out infinite; }
@keyframes accentPulse { 0% { box-shadow: 0 0 0 0 rgba(87, 107, 255, .55); } 70% { box-shadow: 0 0 0 9px rgba(87, 107, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(87, 107, 255, 0); } }
.cohort-announcement a {
  text-decoration: none; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: .82rem; transition: var(--t);
}
.cohort-announcement a:hover { background: var(--accent); color: #fff; transform: translateX(3px); }

@media (min-width: 561px) {
  .building-image { height: auto; aspect-ratio: 1200 / 430; container-type: inline-size; }
  .building-image img { top: -65.5cqw; left: 0; }
}

/* ---------- Sections: paper everywhere, separated by whitespace ---------- */
.heritage .section {
  max-width: none; margin: 0; padding: clamp(124px, 15vh, 164px) var(--gutter) clamp(72px, 9vh, 112px);
  color: var(--ink); background: var(--paper);
}
.heritage .section + .section::before, .heritage #apply::before, .heritage #apply::after, .section-featured::after { content: none; }
.heritage .launch-section, .heritage #apply {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-hi) 18%, var(--paper-hi) 82%, var(--paper) 100%);
}
.heritage #cohort {
  max-width: none; padding-inline: var(--gutter); overflow: visible;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-lo) 18%, var(--paper-lo) 82%, var(--paper) 100%);
}
.heritage .community-section { background: var(--paper); }

/* Launch event: heading on paper, event as an elevated navy card */
.heritage .launch-section { color: var(--ink); overflow: visible; }
.launch-heading { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; margin-bottom: clamp(40px, 5vw, 60px); }
.launch-heading .chapter-label { margin: 0 0 28px; color: var(--accent-deep); }
.launch-heading .section-title { max-width: none; }
.launch-card {
  color: var(--paper); border: 0; border-radius: 32px; min-height: 360px;
  background:
    radial-gradient(38rem 24rem at 100% 0%, rgba(87, 107, 255, .42), transparent 65%),
    var(--ink);
  box-shadow: var(--shadow-xl);
}
.launch-card::before { border-radius: 24px; inset: 10px; border-color: rgba(255, 255, 255, .07); }
.launch-card-glow { background: var(--accent); opacity: .28; }
.launch-date { background: rgba(255, 255, 255, .04); border-right-color: rgba(255, 255, 255, .1); }
.launch-details { border-left-color: rgba(255, 255, 255, .1); }
.launch-copy h3 { font-weight: 800; letter-spacing: -.065em; }
.launch-copy p { font-size: 1.1rem; color: #c7d1f1; }
.launch-meta time, .launch-meta strong { font-size: 1rem; }
.launch-signup { border-radius: 999px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); transition: var(--t); }

/* Cohort bento */
.cohort-details span { background: #fff; border-color: var(--line); color: var(--ink-soft); box-shadow: var(--shadow-sm); padding: 10px 15px; }
/* Cohort timeline: one connected line, lit step by step */
.heritage .chapter-steps {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 32px;
  margin: 64px 0 56px; padding: 0;
}
.heritage .chapter-steps::before, .heritage .chapter-steps::after {
  content: ""; position: absolute; top: 21px; left: 22px; right: calc((100% - 128px) / 5 - 22px);
  height: 2px; border-radius: 2px; pointer-events: none;
}
.heritage .chapter-steps::before { background: var(--line-strong); }
.heritage .chapter-steps::after {
  transform-origin: 0 50%; box-shadow: 0 0 14px rgba(87, 107, 255, .45);
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 40%, #b8c3ff 50%, var(--accent) 60%, var(--accent-deep) 100%);
  background-size: 200% 100%; animation: trackFlow 3.6s linear infinite;
}
@keyframes trackFlow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.heritage .chapter-steps li, .heritage .chapter-steps li:first-child {
  position: relative; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
.heritage .chapter-steps li::after { content: none; }
.heritage .chapter-steps li:hover { transform: none; box-shadow: none; }
.heritage .step-number, .heritage .chapter-steps li:last-child .step-number {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 0 30px; padding: 0;
  border-radius: 50%; background: #fff; color: var(--ink); border: 2px solid var(--step-accent);
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--step-accent) 14%, transparent), var(--shadow-sm);
  transition: border-color .5s ease, box-shadow .5s ease, color .5s ease, transform .4s var(--ease);
}
.heritage .step-number::before { content: none; }
.heritage .chapter-steps li:first-child .step-number { animation: stepNow 2.4s ease-out infinite; }
@keyframes stepNow { 0% { box-shadow: 0 0 0 6px rgba(49, 85, 245, .14), 0 0 0 6px rgba(87, 107, 255, .5); } 100% { box-shadow: 0 0 0 6px rgba(49, 85, 245, .14), 0 0 0 18px rgba(87, 107, 255, 0); } }
.heritage .chapter-steps li:hover .step-number { transform: scale(1.1); }
.heritage .chapter-steps h3 { max-width: 13rem; margin-bottom: 10px; font-size: 1.32rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; color: var(--ink); transition: color .5s ease, opacity .6s ease, transform .8s var(--expo); }
.heritage .chapter-steps p { max-width: 15rem; font-size: .96rem; line-height: 1.6; color: var(--ink-mute); transition: opacity .6s ease, transform .8s var(--expo); }

/* unlit state until the timeline scrolls into view (only when effects run) */
html.fx .heritage .chapter-steps::after { transform: scaleX(0); transition: transform 2s var(--expo) .2s; }
html.fx .heritage .chapter-steps.is-lit::after { transform: scaleX(1); }
html.fx .heritage .chapter-steps:not(.is-lit) .step-number { border-color: var(--line-strong); color: var(--ink-mute); box-shadow: var(--shadow-sm); animation: none; }
html.fx .heritage .chapter-steps:not(.is-lit) h3, html.fx .heritage .chapter-steps:not(.is-lit) p { opacity: 0; transform: translateY(14px); }
html.fx .heritage .chapter-steps li:nth-child(1) * { transition-delay: .2s; }
html.fx .heritage .chapter-steps li:nth-child(2) * { transition-delay: .55s; }
html.fx .heritage .chapter-steps li:nth-child(3) * { transition-delay: .9s; }
html.fx .heritage .chapter-steps li:nth-child(4) * { transition-delay: 1.25s; }
html.fx .heritage .chapter-steps li:nth-child(5) * { transition-delay: 1.6s; }
html.fx .heritage .chapter-steps li:hover .step-number { transition-delay: 0s; }

@media (max-width: 860px) {
  .heritage .chapter-steps { grid-template-columns: 1fr; gap: 36px; margin: 44px 0 40px; }
  .heritage .chapter-steps::before, .heritage .chapter-steps::after { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .heritage .chapter-steps::after { transform-origin: 50% 0; background-size: 100% 200%; animation-name: trackFlowY; }
  html.fx .heritage .chapter-steps::after { transform: scaleY(0); }
  html.fx .heritage .chapter-steps.is-lit::after { transform: scaleY(1); }
  .heritage .chapter-steps li, .heritage .chapter-steps li:first-child { padding: 0 0 0 68px; min-height: 44px; }
  .heritage .step-number, .heritage .chapter-steps li:last-child .step-number { position: absolute; left: 0; top: 0; margin: 0; }
  .heritage .chapter-steps h3 { max-width: none; margin-top: 9px; }
  .heritage .chapter-steps p { max-width: 30rem; }
}
@keyframes trackFlowY { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
@media (prefers-reduced-motion: reduce) {
  .heritage .chapter-steps::after, .heritage .chapter-steps li:first-child .step-number { animation: none; }
}
.cohort-close {
  border-radius: var(--r-lg); padding: 14px 14px 14px 32px; background: var(--ink); color: var(--paper); border: 0; box-shadow: var(--shadow-lg);
}
.cohort-close p { font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; }

/* ---------- Community: light elevated stage ---------- */
.ecosystem-stage {
  color: var(--ink); border-radius: var(--r-xl); border: 1px solid #fff; padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(40rem 26rem at 100% 0%, rgba(87, 107, 255, .08), transparent 65%),
    var(--paper-hi);
  box-shadow: var(--shadow-lg);
}
.ecosystem-stage::before, .ecosystem-stage::after { content: none; }
.ecosystem-kicker { color: var(--accent-deep); }
.ecosystem-heading h3 { font-weight: 800; letter-spacing: -.058em; color: var(--ink); }
.ecosystem-heading p { color: var(--ink-mute); font-size: 1.02rem; }
.mentor-heading { border-top-color: var(--line); color: var(--ink-mute); }
.mentor-heading span:last-child { color: var(--ink); border-color: var(--line-strong); }
.mentor-showcase { gap: 16px; }
.mentor-card {
  border-radius: 24px; background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 8px;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.mentor-card:hover { transform: translateY(-8px); border-color: rgba(87, 107, 255, .45); box-shadow: var(--shadow-lg); }
.mentor-card-photo { border-radius: 17px; aspect-ratio: 1 / 1; background: var(--paper-lo); }
.mentor-card-photo img { filter: grayscale(100%) contrast(1.04); }
.mentor-affiliation { top: 18px; left: 18px; background: rgba(255, 255, 255, .92); }
.mentor-card-copy { padding: 18px 12px 12px; }
.mentor-card-copy > span { color: var(--accent-deep); }
.mentor-card-copy h4 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.mentor-card-copy p { color: var(--ink-mute); font-size: .84rem; line-height: 1.5; }
.mentor-card-copy b { border: 0; padding: 8px 13px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; transition: var(--t); }
.mentor-card:hover .mentor-card-copy b { background: var(--accent); color: #fff; }

.heritage .founders-head { border: 0; padding: 0; margin: clamp(96px, 12vw, 140px) 0 32px; }
.heritage .founders-title { font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight: 800; letter-spacing: -.055em; color: var(--ink); }
.heritage .founders-grid { gap: 20px; max-width: none; margin: 0; }
.heritage .founder-card {
  position: relative; padding: 10px 10px 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.heritage .founder-card:hover { transform: translateY(-8px); border-color: rgba(87, 107, 255, .45); box-shadow: var(--shadow-lg); }
.heritage .founder-photo { aspect-ratio: 1 / 1; border-radius: 20px; margin: 0 0 24px; background: var(--paper-lo); }
.heritage .founder-photo img { filter: grayscale(100%); transition: filter .4s ease, transform .6s var(--ease); }
.heritage .founder-card:hover .founder-photo img { filter: grayscale(0); transform: scale(1.04); }
.heritage .founder-card h4, .heritage .founder-bio, .heritage .founder-social { margin-inline: 16px; }
.heritage .founder-card h4 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.heritage .founder-bio { color: var(--ink-mute); font-size: .95rem; line-height: 1.6; margin-top: 6px; }
.heritage .founder-social {
  border-radius: 50%; background: var(--paper); color: var(--ink); border: 0; width: 44px; height: 44px;
  display: grid; place-items: center; margin-top: 24px; transition: var(--t);
}
.heritage .founder-social .icon { width: 17px; height: 17px; }
.heritage .founder-card:hover .founder-social { background: var(--accent); color: #fff; }

/* ---------- Application: paper section, navy elevated form card ---------- */
.heritage #apply { color: var(--ink); --muted: #535c76; --border: rgba(11, 29, 96, .2); --text: #0b1d60; --c2: #2844bb; }
.heritage #apply .section-lead { color: var(--ink-soft); }
.heritage #apply .gradient-text { color: transparent; }
.heritage .application-card {
  color: var(--paper); --muted: #bac4e6; --border: rgba(255, 255, 255, .16); --text: #f3f1e9; --c2: #c3ccff;
  border: 0; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(40rem 26rem at 100% 0%, rgba(87, 107, 255, .32), transparent 65%),
    var(--ink);
  box-shadow: var(--shadow-xl);
}
.heritage .application-aside { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.heritage .application-aside h3 { font-weight: 700; letter-spacing: -.045em; }
.heritage .application-aside p, .heritage .step-intro { font-size: 1rem; }
.heritage .field label, .heritage .field-label { font-size: .95rem; }
.heritage .field input, .heritage .field textarea, .heritage .field select {
  border-radius: 14px; background-color: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); color: var(--paper);
  transition: var(--t);
}
.heritage .field input:hover, .heritage .field textarea:hover, .heritage .field select:hover { border-color: rgba(255, 255, 255, .32); }
.heritage .field input:focus, .heritage .field textarea:focus, .heritage .field select:focus {
  background-color: rgba(255, 255, 255, .09); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(87, 107, 255, .3); outline: 0;
}
.heritage .choice, .heritage .consent-row { border-radius: 14px; transition: var(--t); }
.heritage .choice:hover, .heritage .choice:has(input:checked) { border-color: var(--accent); background: rgba(87, 107, 255, .14); }
.heritage .consent-row { border: 1px solid rgba(255, 255, 255, .14); }
.heritage .choice input, .heritage .consent-row input { accent-color: var(--accent); }
.heritage .countdown-grid div { border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.heritage .application-progress-track span { background: var(--accent); }
.heritage .application-card .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.heritage .application-card .btn-ghost:hover { color: #fff; border-color: var(--accent); background: rgba(87, 107, 255, .16); }
.heritage .form-status { border-radius: 14px; }

/* ---------- Footer: closing navy card ---------- */
.heritage .footer {
  margin: 0 16px 16px; border-radius: var(--r-xl); border: 0; color: var(--paper);
  background:
    radial-gradient(36rem 22rem at 100% 0%, rgba(87, 107, 255, .35), transparent 70%),
    var(--ink);
  box-shadow: var(--shadow-xl);
}
.heritage .footer-inner { padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px) 32px; }
.footer-invite { border-bottom-color: rgba(255, 255, 255, .12); padding-bottom: 40px; }
.footer-invite-title { font-weight: 800; letter-spacing: -.06em; font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
.footer-invite-copy { font-size: 1rem; }
.footer-contact-links a, .footer-linkedin {
  border: 1px solid rgba(255, 255, 255, .26); padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .04);
  transition: var(--t);
}
.footer-contact-links a:hover, .footer-linkedin:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.heritage .footer-brand .brand-logo { border-radius: 10px; }
.footer-base { margin-top: 8px; }

/* ---------- Full-screen sections + scroll snap (modes set by modern.js) ---------- */
@media (min-width: 861px) and (min-height: 600px) {
  .heritage .hero { min-height: 100vh; min-height: 100svh; }
  .heritage .section { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}
html.snap-mandatory { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
html.snap-proximity { scroll-snap-type: y proximity; scroll-padding-top: 0; }
html.snap-mandatory .snap-section, html.snap-proximity .snap-section { scroll-snap-align: start; scroll-snap-stop: normal; }
html.snap-mandatory .footer.snap-section, html.snap-proximity .footer.snap-section { scroll-snap-align: end; }

.snap-dots {
  position: fixed; right: 22px; top: 50%; z-index: 90; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-radius: 999px;
  background: rgba(248, 247, 242, .72); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}
.snap-dots button {
  position: relative; display: grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.snap-dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(11, 29, 96, .28); transition: var(--t);
}
.snap-dots button:hover::before { background: var(--accent); transform: scale(1.3); }
.snap-dots button[aria-current="true"]::before { height: 20px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.snap-dots button span {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: .72rem; font-weight: 600; letter-spacing: .01em; opacity: 0; pointer-events: none; transition: var(--t);
}
.snap-dots button:hover span, .snap-dots button:focus-visible span { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 860px), (max-height: 599px) { .snap-dots { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mentor-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 561px) {
  .mentor-card { display: flex; flex-direction: column; }
  .mentor-card-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
  .mentor-card-copy p { margin-bottom: 22px; }
  .mentor-card-copy b { margin-top: auto; }
}
@media (max-width: 860px) {
  .heritage .nav { top: 52px; padding-inline: 12px; }
  .heritage .nav-inner, .heritage .nav.scrolled .nav-inner { border-radius: 26px; padding-left: 12px; }
  .heritage .nav-links {
    top: calc(100% + 8px); left: 0; right: 0; border-radius: 24px; padding: 12px;
    background: rgba(248, 247, 242, .97); border: 1px solid #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .heritage .nav-links.open { pointer-events: auto; }
  .heritage .nav-link { border-radius: 14px; color: var(--ink); font-size: 1rem; }
  .heritage .nav-link.is-active::after { left: 18px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .heritage .nav-cta { margin: 6px 0 0; }
  .heritage .hero-content { padding: 172px 24px 32px; }
  .heritage-building, .cohort-announcement { margin-inline: 16px; }
  .cohort-announcement { border-radius: 28px; }
  .heritage .section, .heritage #cohort, .heritage #apply { padding: 112px 24px 88px; }
  .mentor-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heritage .founders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heritage .footer-inner { padding-inline: 28px; }
}
@media (max-width: 560px) {
  .heritage .nav { top: 52px; padding-inline: 10px; }
  .heritage .hero-content { padding: 160px 20px 28px; }
  .heritage .hero-title { font-size: clamp(2.8rem, 13.4vw, 4.2rem); }
  .partner-marquee { margin-top: 40px; }
  .hero-bottom { margin-top: 36px; }
  .heritage .hero-actions .btn { width: 100%; justify-content: center; }
  .heritage-building { margin-inline: 12px; border-radius: 28px; }
  .heritage-building figcaption { left: 10px; right: 10px; bottom: 10px; border-radius: 22px; }
  .cohort-announcement { margin-inline: 12px; padding: 18px 20px; }
  .cohort-announcement a { display: inline-block; text-align: center; }
  .heritage .section, .heritage #cohort, .heritage #apply { padding: 96px 20px 72px; }
  .heritage .section-title { font-size: clamp(2.6rem, 12vw, 3.2rem); }
  .heritage .section-lead { font-size: 1.1rem; }
  .cohort-close { padding: 24px; border-radius: 24px; }
  .mentor-showcase { grid-template-columns: 1fr; }
  .mentor-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; border-radius: 22px; padding: 6px; }
  .mentor-card-photo { aspect-ratio: 1; min-height: 0; border-radius: 17px; }
  .mentor-affiliation { top: 12px; left: 12px; }
  .mentor-card-copy { padding: 8px 12px; }
  .heritage .founders-grid { grid-template-columns: 1fr; gap: 16px; }
  .heritage .founder-card { display: flex; }
  .ecosystem-stage { margin-inline: 0; border-radius: 28px; }
  .launch-card { border-radius: 26px; }
  .heritage .application-card { border-radius: 26px; }
  .heritage .footer { margin: 0 8px 8px; border-radius: 28px; }
  .heritage .footer-inner { padding: 48px 22px 28px; }
}

/* ================= Effects (driven by modern.js; reduced-motion safe) ================= */
.fx-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--accent); pointer-events: none; }

.fx-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; will-change: transform; }
.fx-orb.a { width: 34rem; height: 34rem; right: -10rem; top: -8rem; background: rgba(87, 107, 255, .2); animation: orbA 18s ease-in-out infinite alternate; }
.fx-orb.b { width: 24rem; height: 24rem; left: -8rem; top: 30%; background: rgba(87, 107, 255, .1); animation: orbB 22s ease-in-out infinite alternate; }
.fx-orb.c { width: 20rem; height: 20rem; right: 22%; bottom: -6rem; background: rgba(40, 68, 187, .1); animation: orbA 26s ease-in-out infinite alternate-reverse; }
@keyframes orbA { to { transform: translate3d(-6rem, 4rem, 0) scale(1.12); } }
@keyframes orbB { to { transform: translate3d(8rem, -3rem, 0) scale(1.18); } }

.heritage .hero-title > span:not(.w) { background-size: 220% 100%; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.fx-spot { position: relative; --mx: 50%; --my: 50%; }
.fx-spot > .fx-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(87, 107, 255, .1), transparent 60%);
}
.fx-spot.fx-dark > .fx-glow { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(87, 107, 255, .22), transparent 60%); }
.fx-spot:hover > .fx-glow { opacity: 1; }

.fx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease), box-shadow .35s ease, border-color .3s ease; will-change: transform; }
.fx-tilt.fx-moving { transition: transform .08s linear, box-shadow .35s ease, border-color .3s ease; }
.fx-magnet { transition: var(--t); }

html.fx .fx-item {
  opacity: 0; transform: translateY(34px) scale(.97); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0ms);
}
html.fx .fx-item.fx-in { opacity: 1; transform: none; filter: none; }
html.fx .fx-item.fx-tilt.fx-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  .fx-orb, .heritage .hero-title > span:not(.w), .heritage .hero-title .wi, .status-dot { animation: none; }
  .heritage *, .heritage *::before, .heritage *::after { transition-duration: .01ms !important; }
}
@media (max-width: 560px) { .fx-orb { filter: blur(56px); } }

/* ================= Motion: hero intro, word masks, scroll-linked flow ================= */
.heritage { --expo: cubic-bezier(.16, 1, .3, 1); }
.heritage-building { --fig-r: var(--r-xl); }
@media (max-width: 560px) { .heritage-building { --fig-r: 28px; } }

/* word masks (built by modern.js) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .14em 0; margin: 0 -.05em -.14em 0; }
.split .wi { display: inline-block; transform-origin: 0 100%; will-change: transform; }
.heritage .split .gradient-text, .heritage .hero-title.split > span:not(.w) { background: none; animation: none; }
.heritage .split .gradient-text .wi, .heritage .hero-title.split > span:not(.w) .wi {
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(95deg, var(--accent-deep) 0%, var(--accent) 70%);
}
.heritage .hero-title.split > span:not(.w) .wi {
  background-image: linear-gradient(95deg, var(--accent-deep) 0%, var(--accent) 45%, var(--accent-deep) 90%);
  background-size: 220% 100%; animation: shimmer 8s linear infinite;
}

/* hero intro: hidden state while html.intro is set, released by .intro-go */
html.intro .registration-banner { transform: translateY(-100%); transition: transform .9s var(--expo) .05s; }
html.intro .heritage .nav-inner { opacity: 0; transform: translateY(-20px) scale(.96); transition: opacity .8s ease .2s, transform 1.1s var(--expo) .2s; }
html.intro .hero-topline { opacity: 0; transform: translateY(16px); transition: opacity .8s ease .3s, transform 1.1s var(--expo) .3s; }
html.intro .hero-title:not(.split) { opacity: 0; transition: opacity .8s ease .3s; }
html.intro .hero-title .wi { transform: translateY(112%) rotate(5deg); transition: transform 1.3s var(--expo) calc(.38s + var(--wd, 0ms)); }
html.intro .partner-marquee { opacity: 0; transform: translateX(64px); transition: opacity 1s ease .95s, transform 1.4s var(--expo) .95s; }
html.intro .hero-bottom { opacity: 0; transform: translateY(28px); transition: opacity .9s ease 1.1s, transform 1.2s var(--expo) 1.1s; }
html.intro .heritage-building { clip-path: inset(16% 5% 0 5% round var(--fig-r)); transform: translateY(80px); transition: clip-path 1.7s var(--expo) 1.2s, transform 1.7s var(--expo) 1.2s; }
html.intro .building-image { transform: scale(1.22); transition: transform 2.4s var(--expo) 1.2s; }
html.intro .cohort-announcement { opacity: 0; transform: translateY(24px); transition: opacity .9s ease 1.6s, transform 1.2s var(--expo) 1.6s; }
html.intro .heritage .hero-content::before { opacity: 0; transition: opacity 2.2s ease .5s; }
html.intro .fx-orb { opacity: 0; transition: opacity 2.6s ease .2s; }

html.intro.intro-go .registration-banner,
html.intro.intro-go .building-image { transform: none; }
html.intro.intro-go .heritage .nav-inner,
html.intro.intro-go .hero-topline,
html.intro.intro-go .partner-marquee,
html.intro.intro-go .hero-bottom,
html.intro.intro-go .cohort-announcement,
html.intro.intro-go .fx-orb { opacity: 1; transform: none; }
html.intro.intro-go .hero-title:not(.split) { opacity: 1; }
html.intro.intro-go .hero-title .wi { transform: none; }
html.intro.intro-go .heritage-building { clip-path: inset(0 0 0 0 round var(--fig-r)); transform: none; }
html.intro.intro-go .heritage .hero-content::before { opacity: .5; }

/* section headings: label, then words rise, then the lead */
html.fx .fx-item.has-split { opacity: 1; filter: none; transform: none; }
html.fx .fx-item.has-split > :not(.split) { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1.1s var(--expo); }
html.fx .fx-item.has-split > .section-lead { transition-delay: .45s; }
html.fx .fx-item.has-split.fx-in > :not(.split) { opacity: 1; transform: none; }
html.fx .fx-item .split .wi { transform: translateY(108%) rotate(4deg); transition: transform 1.2s var(--expo) calc(.12s + var(--wd, 0ms)); }
html.fx .fx-item.fx-in .split .wi { transform: none; }

/* scroll-linked flow (vars set by modern.js; defaults are the resting state) */
@media (prefers-reduced-motion: no-preference) {
  .heritage .hero-title { translate: 0 calc(var(--hp, 0) * 16vh); opacity: calc(1 - var(--hp, 0) * .8); }
  .partner-marquee { translate: calc(var(--hp, 0) * -5vw) 0; }
  .hero-bottom { translate: 0 calc(var(--hp, 0) * 7vh); }
  .heritage-building { scale: calc(.9 + .1 * min(1, var(--bp, 1) * 2.4)); }
  .building-image img { translate: 0 calc((var(--bp, .5) - .5) * -110px); }

  .launch-section, .community-group, .heritage #apply { perspective: 1800px; perspective-origin: 50% 0; }
  .flow-card { transform-origin: 50% 0; scale: calc(.93 + .07 * var(--e, 1)); rotate: x calc((1 - var(--e, 1)) * 10deg); }
  .heritage .footer.flow-card { rotate: none; scale: calc(.95 + .05 * var(--e, 1)); transform-origin: 50% 100%; }
}
.heritage .hero-title > .w { color: inherit; background: none; animation: none; }

/* ================= Application form: formal preview, then the questions ================= */
.heritage [hidden] { display: none !important; }
.heritage #apply .btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent); }
.heritage #apply .btn-primary:hover { background: var(--accent); }

.heritage .application-card { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.6fr); }
.heritage .application-aside { padding: clamp(32px, 4vw, 56px); min-height: 560px; }
.heritage .application-aside h3 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1.08; }
.heritage .application-aside p { color: var(--muted); font-size: 1.02rem; }
.heritage .application-meta { gap: 12px; font-size: .9rem; }
.heritage .application-meta span::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(87, 107, 255, .2); }
.heritage .application-form { padding: clamp(32px, 4.4vw, 60px); }

.heritage .application-progress { margin-bottom: 44px; }
.heritage .application-progress-copy { font-size: .8rem; letter-spacing: .03em; margin-bottom: 14px; }
.heritage .application-progress-track { height: 6px; background: rgba(255, 255, 255, .08); }
.heritage .application-progress-track span { background: var(--accent-grad); box-shadow: 0 0 14px rgba(87, 107, 255, .7); transition: width .7s var(--expo); }
.heritage .application-step legend { font-size: clamp(1.9rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; }
.heritage .step-intro { margin: 12px 0 36px; max-width: 560px; font-size: 1.02rem; color: var(--muted); }
.heritage .application-grid { gap: 26px 22px; }
.heritage .field { gap: 10px; }
.heritage .field label, .heritage .field-label { font-size: .9rem; font-weight: 600; color: #e6eafb; letter-spacing: -.005em; }
.heritage .field input, .heritage .field select { min-height: 54px; padding-inline: 18px; }
.heritage .field select { padding-right: 44px; background-position: right 18px center; }
.heritage .field textarea { padding: 16px 18px; min-height: 136px; }
.heritage .field input::placeholder, .heritage .field textarea::placeholder { color: #8d98c4; }
.heritage .choice { padding: 15px 18px; gap: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); }
.heritage .consent-row { padding: 18px 20px; background: rgba(255, 255, 255, .03); }
.heritage .application-actions { margin-top: 40px; padding-top: 28px; border-top-color: rgba(255, 255, 255, .1); }
.heritage .application-actions .btn { min-width: 150px; justify-content: center; }
.heritage .application-back { margin-right: auto; }

/* every step (including step changes) settles in field by field */
@keyframes fieldIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.heritage .application-step { animation: none; }
.heritage .application-step.is-active > legend,
.heritage .application-step.is-active > .step-intro,
.heritage .application-step.is-active .application-grid > * { animation: fieldIn .75s var(--expo) both; }
.heritage .application-step.is-active > .step-intro { animation-delay: .06s; }
.heritage .application-step.is-active .application-grid > :nth-child(1) { animation-delay: .12s; }
.heritage .application-step.is-active .application-grid > :nth-child(2) { animation-delay: .17s; }
.heritage .application-step.is-active .application-grid > :nth-child(3) { animation-delay: .22s; }
.heritage .application-step.is-active .application-grid > :nth-child(4) { animation-delay: .27s; }
.heritage .application-step.is-active .application-grid > :nth-child(5) { animation-delay: .32s; }
.heritage .application-step.is-active .application-grid > :nth-child(6) { animation-delay: .37s; }
.heritage .application-step.is-active .application-grid > :nth-child(n+7) { animation-delay: .42s; }
.app-started .application-progress { animation: fieldIn .7s var(--expo) both; }

/* preview: a formal index of the five sections and a single Continue */
.app-overview { display: none; }
.app-preview .app-overview { display: block; list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.app-overview li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: opacity .7s ease, transform .9s var(--expo);
}
.app-overview-num { color: var(--c2); font-size: .72rem; font-weight: 800; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.app-overview-name { color: var(--paper); font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -.025em; }
.app-preview .application-step, .app-preview .application-progress, .app-preview .application-back, .app-preview .form-status { display: none !important; }
.app-preview .application-form { display: flex; flex-direction: column; justify-content: center; }
.app-preview .application-actions { justify-content: flex-start; border-top: 0; margin-top: 40px; padding-top: 0; transition: opacity .4s ease, transform .5s var(--expo); }
.app-preview .application-next { min-width: 220px; padding-block: 18px; font-size: 1.05rem; }

html.fx .application-card:not(.fx-in) .app-overview li { opacity: 0; transform: translateY(14px); }
.app-overview li:nth-child(2) { transition-delay: .08s; }
.app-overview li:nth-child(3) { transition-delay: .16s; }
.app-overview li:nth-child(4) { transition-delay: .24s; }
.app-overview li:nth-child(5) { transition-delay: .32s; }
.app-leaving .app-overview li, .app-leaving .application-actions { opacity: 0; transform: translateY(-12px); transition-delay: 0s; transition-duration: .35s; }

@media (max-width: 860px) {
  .heritage .application-card { grid-template-columns: 1fr; }
  .heritage .application-aside { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 560px) {
  .heritage .application-grid { grid-template-columns: 1fr; }
  .heritage .application-actions { flex-wrap: wrap; }
  .heritage .application-actions .btn { flex: 1 1 auto; }
  .app-overview li { grid-template-columns: 48px minmax(0, 1fr); padding-block: 18px; }
  .app-preview .application-next { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .heritage .application-step *, .app-started .application-progress { animation: none !important; }
}

/* Team: four across on desktop, role label above the name */
@media (min-width: 1101px) { .heritage .founders-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 861px) and (max-width: 1100px) { .heritage .founders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.heritage .founder-role {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 16px 10px; padding: 6px 11px 6px 9px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-deep); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.heritage .founder-role::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (min-width: 561px) { .heritage .founder-card:not(:has(.founder-role)) .founder-photo { margin-bottom: 64px; } }

/* Opening event poster and live registration */
.launch-card.launch-card-poster { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.launch-card-poster::after { content: none; }
.launch-banner { display: block; width: 100%; align-self: center; overflow: hidden; }
.launch-card-poster .launch-details { grid-column: auto; gap: 28px; }
@media (max-width: 900px) {
  .launch-card.launch-card-poster { display: block; }
  .launch-card-poster .launch-details { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}
.launch-banner img { display: block; width: 100%; height: auto; }
.launch-signup { text-decoration: none; }
.launch-signup:hover { background: rgba(255, 255, 255, .18); }
.launch-signup:focus-visible, .launch-banner:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

/* Historic Technion illustration now anchors the closing footer. */
.heritage .footer {
  background: linear-gradient(90deg, rgba(8, 22, 58, .88), rgba(8, 22, 58, .72)), url("assets/images/technion-roots.webp") center 74% / cover no-repeat;
}
