/* =====================================================================
   Melodia Vitae — School of Young Scientists
   Twilight forest theme: dark green, descent metaphor, parallax layers
   ===================================================================== */

:root {
  /* PALETTE — twilight pine forest */
  --bg: #0a1410;             /* near-black with green undertone */
  --bg-alt: #0f1c17;
  --bg-panel: rgba(10, 22, 17, 0.78);
  --bg-panel-solid: #11231c;
  --bg-card: #142e25;
  --bg-card-hover: #173629;

  --accent: #7da37d;         /* muted sage — primary green */
  --accent-bright: #a8c8a0;
  --accent-soft: rgba(125, 163, 125, 0.12);
  --gold: #c9b67d;           /* understated parchment/brass accent */
  --gold-soft: rgba(201, 182, 125, 0.15);

  --text: #e8efe8;
  --text-muted: #97a89a;
  --text-quiet: #6c7a6e;
  --border: rgba(168, 200, 160, 0.14);
  --border-strong: rgba(168, 200, 160, 0.28);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);

  --t: 320ms cubic-bezier(.4, 0, .2, 1);

  --section-pad: clamp(72px, 9vw, 132px);
  --container: 1180px;
  --container-narrow: 820px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t), opacity var(--t);
}
a:hover { color: var(--accent-bright); }

img, svg { display: block; max-width: 100%; height: auto; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

/* =====================================================================
   LAYOUT
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.section--alt {
  background: var(--bg-alt);
}
.section--intro {
  /* first solid panel after hero — slightly more breathing room */
  padding-top: clamp(120px, 14vw, 180px);
}

/* =====================================================================
   HEADER (transparent over hero, solidifies on scroll)
   ===================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background var(--t), backdrop-filter var(--t), border var(--t);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 20, 16, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo__mark {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  /* The PNG is white on transparent — sits naturally on the dark header */
  display: block;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}
.logo__sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-top: 1px;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav__list {
  display: flex;
  gap: 32px;
}
.nav__list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.nav__list a:hover { color: var(--text); }

.header__cta {
  flex-shrink: 0;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--gold);
  color: #14110a;
  box-shadow: 0 6px 18px rgba(201, 182, 125, 0.25);
}
.btn--primary:hover {
  background: #d8c692;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201, 182, 125, 0.35);
  color: #14110a;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

.btn--quiet {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--quiet:hover {
  color: var(--text);
}

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--xl { padding: 20px 36px; font-size: 16px; }

/* =====================================================================
   STICKY APPLY (floating bottom-right)
   ===================================================================== */
.sticky-apply {
  position: fixed;
  right: clamp(20px, 3vw, 32px);
  bottom: clamp(20px, 3vw, 32px);
  z-index: 40;

  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);

  background: var(--gold);
  color: #14110a;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;

  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(201, 182, 125, 0.08);

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(.4, 0, .2, 1),
              transform 380ms cubic-bezier(.4, 0, .2, 1),
              background var(--t), color var(--t);
}
.sticky-apply.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-apply:hover {
  background: #d8c692;
  color: #14110a;
  transform: translateY(-2px);
}
.sticky-apply__arrow { width: 18px; height: 18px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vh, 180px) 0 clamp(80px, 12vh, 120px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Light vignette only — keep the photograph itself bright and crisp.
     Just a hint of darkening at the very bottom for seamless transition. */
  background:
    linear-gradient(180deg,
      rgba(10, 20, 16, 0.10) 0%,
      rgba(10, 20, 16, 0.00) 30%,
      rgba(10, 20, 16, 0.00) 80%,
      rgba(10, 20, 16, 0.45) 100%
    );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 18ch;
  margin-bottom: 32px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text);
  max-width: 56ch;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.hero__badges li {
  position: relative;
  padding: 0 18px;
}
.hero__badges li:first-child { padding-left: 0; }
.hero__badges li:not(:first-child)::before {
  content: '·';
  position: absolute;
  left: -2px;
  color: var(--accent);
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  width: 2px;
  height: 48px;
  background: rgba(168, 200, 160, 0.18);
  overflow: hidden;
}
.hero__scroll span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-bright);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* =====================================================================
   PARALLAX BACKGROUNDS (fixed images between solid panels)
   ===================================================================== */
.parallax-layer {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -40px 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* creates continuous-forest illusion */
}
.section__panel {
  position: relative;
  z-index: 2;
  background: var(--bg-panel);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 64px);
  margin-top: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(24px, 4vw, 56px);
  /* keep .container's horizontal `margin: 0 auto` — don't override left/right */
  box-shadow: var(--shadow-soft);
}
.parallax-layer::before {
  /* darken on top for legibility */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 16, 0.55) 0%,
    rgba(10, 20, 16, 0.35) 30%,
    rgba(10, 20, 16, 0.35) 70%,
    rgba(10, 20, 16, 0.55) 100%
  );
  pointer-events: none;
}

/* =====================================================================
   FOREST IMAGES — six layers descending from canopy to ground
   ===================================================================== */
.hero__bg {
  background-image: url('assets/forest/01-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.parallax-layer--canopy    .parallax-bg { background-image: url('assets/forest/02-canopy.jpg');     }
.parallax-layer--midcanopy .parallax-bg { background-image: url('assets/forest/03-midcanopy.jpg');  }
.parallax-layer--midtrunks .parallax-bg { background-image: url('assets/forest/04-midtrunks.jpg'); }
.parallax-layer--understory .parallax-bg { background-image: url('assets/forest/05-understory.jpg'); }
.parallax-layer--floor      .parallax-bg { background-image: url('assets/forest/06-floor.jpg');     }

/* =====================================================================
   TYPOGRAPHY HELPERS
   ===================================================================== */
.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 22ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-title--light {
  color: var(--text);
}
.section-head {
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-title {
  margin-left: auto;
  margin-right: auto;
}
.section-head--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Section icon — Lucide-style, centered above the eyebrow */
.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  transition: transform 600ms cubic-bezier(.22, .61, .36, 1),
              border-color 600ms cubic-bezier(.22, .61, .36, 1);
}
.section-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}
.section-head:hover .section-icon,
.section__panel:hover .section-icon {
  border-color: var(--accent);
}

/* When a section-icon is present, automatically center the whole head */
.section-head:has(.section-icon),
.section__panel > .section-icon ~ * {
  /* When icon is the first child, center subsequent siblings text-align via parent rule */
}

/* Centered panel variant — used in parallax sections to center icon/eyebrow/title.
   Body content (lists, prose, form) stays left-aligned for readability. */
.section__panel--center {
  text-align: center;
}
.section__panel--center > .section-icon,
.section__panel--center > .section-eyebrow,
.section__panel--center > .section-title,
.section__panel--center > .section-lead,
.section__panel--center > .section-head {
  text-align: center;
}
.section__panel--center > .section-title,
.section__panel--center > .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.section__panel--center > .prose,
.section__panel--center > .bullet-list,
.section__panel--center > .virtues,
.section__panel--center > .timeline,
.section__panel--center > .steps,
.section__panel--center > .positions,
.section__panel--center > .apply-form {
  text-align: left; /* lists/forms remain left-aligned for legibility */
  margin-left: auto;
  margin-right: auto;
}
.section__panel--center > .prose,
.section__panel--center > .bullet-list,
.section__panel--center > .virtues {
  max-width: 64ch;
}
.section-lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.6;
}
.section-head--center .section-lead { margin: 0 auto; }

.prose {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  color: var(--text);
  max-width: 64ch;
}
.prose + .prose { margin-top: 24px; }
.prose p + p { margin-top: 18px; }
.prose--quiet {
  color: var(--text-muted);
  font-size: clamp(15px, 1.1vw, 16.5px);
}
.prose em { color: var(--accent-bright); font-style: italic; }

.inline-link {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(168, 200, 160, 0.4);
}
.inline-link:hover {
  border-bottom-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* =====================================================================
   LISTS — bullets, virtues
   ===================================================================== */
.bullet-list {
  font-size: clamp(16px, 1.2vw, 18px);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullet-list li {
  position: relative;
  padding-left: 28px;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.virtues {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  text-align: left;
}
.virtue {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px;
  background: rgba(20, 46, 37, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  transition: background var(--t), border-color var(--t);
}
.virtue:hover {
  background: rgba(23, 54, 41, 0.75);
  border-color: var(--accent);
}
.virtue__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.virtue__icon svg { width: 20px; height: 20px; }
.virtue h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.virtue p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* =====================================================================
   MANIFESTO (Programme intro — 3 principles with icons)
   ===================================================================== */
.manifesto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(48px, 6vw, 80px);
}
.manifesto__item {
  padding: 36px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.manifesto__item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.manifesto__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.manifesto__icon svg { width: 24px; height: 24px; }
.manifesto__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.manifesto__item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================================================================
   SKILL GRID — "The craft of research"
   ===================================================================== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(36px, 4vw, 56px);
  text-align: left;
}
.skill-card {
  padding: 28px 24px;
  background: rgba(20, 46, 37, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.skill-card:hover {
  background: rgba(23, 54, 41, 0.75);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.skill-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.skill-card__icon svg { width: 22px; height: 22px; }
.skill-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.skill-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =====================================================================
   NUMBERED GRID — "Why different" (with icons + huge background numerals)
   ===================================================================== */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.numbered-grid__item {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background var(--t), border-color var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.numbered-grid__item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.numbered-grid__num {
  position: absolute;
  top: -8px;
  right: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(120px, 12vw, 180px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  opacity: 0.07;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  transition: opacity var(--t);
}
.numbered-grid__item:hover .numbered-grid__num {
  opacity: 0.13;
}
.numbered-grid__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 18px;
  z-index: 1;
}
.numbered-grid__icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.numbered-grid__item h3 {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}
.numbered-grid__item p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================================================================
   FACTS — programme structure (4 large cards with icons)
   ===================================================================== */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  text-align: left;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.fact:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.fact::after {
  /* faint gold accent line on top */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
}
.fact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 14px;
}
.fact__icon svg { width: 22px; height: 22px; }
.fact__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.fact__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 4px;
}
.fact__note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* =====================================================================
   REQUIREMENTS GRID
   ===================================================================== */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.req-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background var(--t), border-color var(--t), transform var(--t);
  text-align: left;
}
.req-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.req-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.req-card__icon svg { width: 24px; height: 24px; }
.req-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.req-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================================================================
   TIMELINE — trajectory (single shared track with an animated dot)
   ===================================================================== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  margin-top: 40px;
  padding-top: 24px;
  text-align: left;
}
.timeline__track {
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 12px;
  pointer-events: none;
  z-index: 1;
}
.timeline__track-line {
  position: absolute;
  top: 5px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 6%,
    var(--accent) 94%,
    transparent 100%
  );
  opacity: 0.45;
}
.timeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 182, 125, 0.18),
              0 0 16px rgba(201, 182, 125, 0.4);
  transform: translateX(0);
  transition: transform 2.4s cubic-bezier(.22, .61, .36, 1),
              box-shadow 1s ease-out;
}
.timeline.is-revealed .timeline__dot {
  /* animates from left (year 1) to right (year 3) when section enters viewport.
     Distance set via --travel from JS, in pixels. */
  transform: translateX(var(--travel, calc(100% * 2)));
}
.timeline__item {
  position: relative;
  padding: 28px 28px;
  background: rgba(10, 20, 16, 0.6);
  border-radius: var(--radius-md);
  transition: background var(--t);
}
.timeline__item:hover {
  background: rgba(15, 28, 22, 0.85);
}
.timeline__year {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.timeline__body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}
.timeline__body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================================================================
   OUTCOMES
   ===================================================================== */
.outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 32px;
  margin-bottom: 32px;
}
.outcomes li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.outcomes__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
}
.outcomes__icon svg { width: 20px; height: 20px; }
.outcomes li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* =====================================================================
   POSITIONS — research directions
   ===================================================================== */
.positions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 720px) {
  .positions { grid-template-columns: 1fr; }
}
.positions__group {
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background var(--t), border-color var(--t);
}
.positions__group:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.positions__group-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent-bright);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.positions__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.positions__list li {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}
.positions__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =====================================================================
   STEPS — application process
   ===================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.steps__item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 18px;
}
.steps__item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.steps__item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =====================================================================
   APPLICATION FORM
   ===================================================================== */
.apply-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(10, 22, 16, 0.5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}
.apply-form__grid {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 16px;
}
.apply-form__grid:nth-of-type(2) { grid-template-columns: 1fr 1fr 1fr; }
.apply-form__grid:nth-of-type(3) { grid-template-columns: 1fr 1fr; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field--narrow { grid-column: span 1; }
.form-field__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field__input {
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(10, 20, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), background var(--t);
}
.form-field__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10, 20, 16, 0.85);
}
.form-field__input::placeholder { color: var(--text-quiet); }

select.form-field__input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%237da37d' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

.form-field__file {
  position: relative;
  display: block;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  background: rgba(10, 20, 16, 0.4);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.form-field__file:hover {
  border-color: var(--accent);
  background: rgba(10, 20, 16, 0.6);
}
.form-field__file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.form-field__file-label {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
  margin-top: 2px;
}

.form-submit {
  align-self: flex-start;
  margin-top: 12px;
}
.form-status {
  font-size: 14px;
  color: var(--accent-bright);
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
}

/* =====================================================================
   FAQ accordion — smooth grid-rows transition + chevron rotation
   ===================================================================== */
.faq {
  display: flex;
  flex-direction: column;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child {
  border-top: 1px solid var(--border);
}
.faq__summary {
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.3;
  transition: color var(--t);
}
.faq__summary:hover { color: var(--accent-bright); }
.faq__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq__question {
  flex: 1;
  min-width: 0;
}
.faq__chevron {
  width: 22px;
  height: 22px;
  color: var(--accent-bright);
  flex-shrink: 0;
  transition: transform 380ms cubic-bezier(.22, .61, .36, 1),
              color 380ms cubic-bezier(.22, .61, .36, 1);
}
.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Smooth height animation using CSS grid trick: 0fr → 1fr.
   Works on all modern browsers without JS measurement. */
.faq__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(.22, .61, .36, 1);
}
.faq__item.is-open .faq__content {
  grid-template-rows: 1fr;
}
.faq__content-inner {
  overflow: hidden;
  min-height: 0;
}
.faq__content-inner p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 4px 4px 28px 4px;
  max-width: 64ch;
}

/* =====================================================================
   PAGE HERO — compact hero for Society / Privacy / Terms pages
   ===================================================================== */
.page-hero {
  padding: clamp(140px, 18vh, 200px) 0 clamp(56px, 8vh, 96px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(125, 163, 125, 0.06) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-quiet);
  margin-bottom: 22px;
  text-transform: uppercase;
  font-weight: 500;
}
.breadcrumbs a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}
.breadcrumbs span[aria-hidden] { color: var(--text-quiet); }
.page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 20ch;
  margin-bottom: 20px;
}
.page-hero__lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.6;
}

/* =====================================================================
   CONTACT CARDS — Society contact section
   ===================================================================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), transform var(--t);
  text-align: left;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-card__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: 4px;
  line-height: 1.2;
}
.contact-card__email {
  margin-top: 8px;
  font-size: 15px;
  color: var(--accent-bright);
  word-break: break-word;
  border-bottom: 1px solid rgba(168, 200, 160, 0.25);
  align-self: flex-start;
}
.contact-card__email:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* =====================================================================
   LEGAL STUB — placeholder for Privacy/Terms pending content
   ===================================================================== */
.legal-stub {
  padding: clamp(40px, 5vw, 64px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(20, 46, 37, 0.35);
  text-align: center;
  color: var(--text);
}
.legal-stub p {
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
}
.legal-stub__hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
}

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.final-cta {
  padding: clamp(96px, 12vw, 160px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(125, 163, 125, 0.06) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.final-cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.final-cta__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  padding: clamp(64px, 8vw, 96px) 0 32px;
  background: #07100c;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__logo {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.005em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.footer__tagline {
  font-size: 13px;
  color: var(--text-quiet);
  letter-spacing: 0.04em;
}
.footer__h {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer__contact-label {
  font-size: 12px;
  color: var(--text-quiet);
}
.footer__contact-row a {
  color: var(--text);
}
.footer__contact-row a:hover { color: var(--accent-bright); }

.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 14px; color: var(--text-muted); }
.footer__nav a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-quiet);
  letter-spacing: 0.04em;
}
.footer__link {
  color: var(--text-quiet);
  border-bottom: 1px solid transparent;
}
.footer__link:hover {
  color: var(--text);
  border-bottom-color: var(--border-strong);
}

/* ===== Po Plan credit ===== */
.po-plan-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* font-family inherits */
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--text-quiet);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  margin-left: auto;
}
.po-plan-credit:hover { opacity: 1; }
.po-plan-credit__logo {
  height: 12px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.po-plan-credit__text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.po-plan-credit__prefix { color: inherit; }
.po-plan-credit__brand {
  color: var(--gold);
  text-decoration: underline dashed;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.po-plan-credit:hover .po-plan-credit__brand {
  filter: brightness(1.15);
}
@media (max-width: 480px) {
  .po-plan-credit { margin-left: 0; }
}

/* =====================================================================
   SCROLL REVEAL ANIMATION
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.22, .61, .36, 1),
              transform 800ms cubic-bezier(.22, .61, .36, 1);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 400ms; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 500ms; }
[data-reveal][data-reveal-delay="6"] { transition-delay: 600ms; }
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .nav { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .footer__inner { grid-template-columns: 1fr; }
  .apply-form__grid,
  .apply-form__grid:nth-of-type(2),
  .apply-form__grid:nth-of-type(3) { grid-template-columns: 1fr; }

  /* On mobile, fixed backgrounds are jumpy — switch to scrolling */
  .parallax-bg { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .header__cta { display: none; }
  .hero__title { font-size: clamp(40px, 12vw, 56px); }
  .section__panel { padding: 28px 20px; }
  .sticky-apply { padding: 14px 22px; font-size: 14px; }
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .parallax-bg { background-attachment: scroll; }
}
