/* Shared Scenholm site shell */
:root {
  --section-y-standard-desktop: 96px;
  --section-y-standard-mobile: 64px;
  --section-y-compact-mobile: 48px;
  --section-y-home-desktop: 64px;
  --section-y-home-mobile: 52px;
  --section-y-home-cta-desktop: 80px;
  --section-y-home-cta-mobile: 56px;
  --section-y-programs-hero-top: clamp(64px, 9vw, 104px);
  --section-y-programs-hero-bottom: clamp(56px, 8vw, 96px);
  --section-y-programs-hero-top-mobile: 52px;
  --section-y-programs-hero-bottom-mobile: 60px;
  --section-y-programs-thesis: 64px;
  --section-y-programs-thesis-mobile: 52px;
  --section-y-legal-hero-top: 64px;
  --section-y-legal-hero-bottom: 72px;
  --section-y-legal-hero-top-mobile: 48px;
  --section-y-legal-hero-bottom-mobile: 56px;
  --section-y-legal-page-top: 60px;
  --section-y-legal-page-bottom: 96px;
  --section-y-legal-page-top-mobile: 36px;
  --section-y-legal-page-bottom-mobile: 64px;
  --section-y-placeholder: 80px;
  --eyebrow-gap: 16px;
  --eyebrow-gap-compact: 14px;
  --eyebrow-gap-cta: 22px;
  --heading-body-gap: 20px;
  --heading-body-gap-cta: 28px;
  --heading-body-gap-legal: 24px;
  --panel-gap: 34px;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245,240,232,0.08);
  transition: background 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  padding-top: max(env(safe-area-inset-top), 0px);
}
.nav.scrolled {
  background: rgba(245,240,232,0.95);
  border-bottom-color: rgba(0,0,0,0.06);
}
.nav__inner {
  max-width: var(--container, var(--container-max, 1200px));
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 8px;
  color: var(--color-parchment);
  text-decoration: none;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: color 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav.scrolled .nav__logo { color: var(--color-obsidian); }
.nav__links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav__links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(245,240,232,0.75);
  text-decoration: none;
  transition: color 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav__links a:hover { color: var(--color-parchment); }
.nav.scrolled .nav__links a { color: var(--color-charcoal); }
.nav.scrolled .nav__links a:hover { color: var(--color-obsidian); }
.nav__cta {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: var(--color-ember);
  color: var(--color-white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav__cta:hover { background: var(--color-ember-deep) !important; }
.nav__controls { display: none; align-items: center; gap: 10px; }
.nav__mobile-cta {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: var(--color-ember);
  color: var(--color-white) !important;
  padding: 0 14px;
  min-height: 44px;
  border-radius: var(--radius);
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav__mobile-cta:hover { background: var(--color-ember-deep) !important; }
.nav__menu-toggle {
  appearance: none;
  border: 1px solid rgba(245,240,232,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--color-parchment);
  min-width: 44px; min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.nav.scrolled .nav__menu-toggle {
  border-color: rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.4);
  color: var(--color-obsidian);
}
.nav__mobile-panel { display: none; }
.nav__mobile-panel--inner {
  max-width: var(--container, var(--container-max, 1200px));
  margin: 0 auto;
  padding: 0 24px 18px;
}
.nav__mobile-links { list-style: none; }
.nav__mobile-links a {
  display: block;
  padding: 14px 0;
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav.is-open .nav__mobile-panel {
  display: block;
  background: rgba(245,240,232,0.98);
}
.eyebrow {
  color: var(--color-charcoal);
  opacity: 0.82;
}
.hero .eyebrow,
.pattern-section .eyebrow,
.difference .eyebrow,
.cta-section .eyebrow,
.footer .eyebrow {
  color: rgba(245,240,232,0.72);
  opacity: 1;
}
.footer {
  background: var(--color-obsidian);
  color: var(--color-stone);
  border-top: 1px solid rgba(245,240,232,0.18);
  padding: 64px 0 0;
  text-align: left;
  font-size: initial;
  letter-spacing: 0;
  text-transform: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--color-parchment);
  display: block;
  margin-bottom: 14px;
}
.footer__tagline {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--color-ember);
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.footer__col-head {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 16px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(245,240,232,0.6);
  text-decoration: none;
  transition: color 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.footer__links a:hover { color: var(--color-parchment); }
.footer__bottom {
  border-top: 1px solid rgba(245,240,232,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { font-family: var(--font-sans); font-size: 14px; color: var(--color-stone); }
.footer__legal-block { display: flex; flex-direction: column; gap: 4px; }
.footer__entity,
.footer__address {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-stone);
  line-height: 1.6;
}
.footer__address { max-width: 520px; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-stone);
  text-decoration: none;
  transition: color 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.footer__legal a:hover { color: var(--color-parchment); }

/* Long-copy and narrow-screen resilience */
.btn-primary,
.nav__cta,
.nav__mobile-cta,
.hero-stage__secondary,
.programme-card__link,
.below-hero-cta__secondary {
  overflow-wrap: anywhere;
}
.hero-stage,
.hero__left,
.hero__right,
.pattern-card,
.programme-card,
.session-card,
.thread-card,
.cohort-card,
.legal-content .panel {
  min-width: 0;
}
.hero-stage__scene,
.hero-stage__twist,
.hero-stage__close,
.pattern-card__body,
.programme-card__body,
.session-card__hook,
.thread-card p,
.cohorts__policy-card__body,
.legal-content p,
.legal-content li {
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero__grid,
  .pattern-section__grid,
  .programme-entry__grid,
  .what-section__grid,
  .pattern-section__layout {
    gap: 24px;
  }
  .programme-entry__cards {
    gap: 16px;
  }
  .btn-primary,
  .hero-stage__secondary,
  .programme-card__link {
    white-space: normal;
  }
}
@media (max-width: 768px) {
  .nav__inner { padding: 0 24px; height: 68px; }
  .nav__logo { font-size: 15px; letter-spacing: 5px; }
  .nav__links { display: none; }
  .nav__controls { display: flex; }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--color-charcoal);
    opacity: 0.9;
  }
  .hero .eyebrow,
  .pattern-section .eyebrow,
  .difference .eyebrow,
  .cta-section .eyebrow,
  .footer .eyebrow {
    color: rgba(245,240,232,0.72);
    opacity: 1;
  }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__copy, .footer__entity, .footer__address { font-size: 16px; }
  .footer__legal a { font-size: 16px; }
  .hero-stage__controls { align-items: flex-start; }
  .hero-stage__secondary { min-width: 100%; }
}
