/* ==========================================================================
   BITES Institute — Comprehensive Implant Residency 2.0
   Design tokens
   ========================================================================== */
:root {
  --navy: #2c2a5e;
  --navy-deep: #17163a;
  --navy-mid: #201f4a;
  --olive: #5c6b2c;
  --olive-deep: #3d481d;
  --gold: #d9a62b;
  --gold-bright: #f0bd3f;

  --bg: #0b0b10;
  --bg-elevated: #15151d;
  --bg-elevated-2: #1c1c27;
  --fg: #f7f6f2;
  --fg-muted: #a9a8b6;
  --fg-faint: #6f6e7d;
  --border: rgba(247, 246, 242, 0.1);
  --border-strong: rgba(247, 246, 242, 0.18);

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 140px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 2000;
  background: var(--gold); color: var(--navy-deep); padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.placeholder { color: var(--gold); font-style: italic; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; font-family: var(--font-body);
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  cursor: pointer; transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  min-height: 44px;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1.5px solid rgba(247,246,242,0.4); }
.btn-ghost:hover { border-color: var(--fg); background: rgba(247,246,242,0.08); transform: translateY(-2px); }
.btn-block { width: 100%; }
.play-icon {
  width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor; display: inline-block;
}

.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-muted); margin: 0 0 var(--space-2);
}
.eyebrow-gold { color: var(--gold-bright); }
.eyebrow-on-gold { color: var(--navy-deep); opacity: 0.75; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(11,11,16,0.85), transparent);
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out), backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(11,11,16,0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.brand { display: flex; align-items: center; }
.brand-word { height: 20px; width: auto; }
.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--fg-muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--fg); }
.main-nav .nav-cta {
  color: var(--navy-deep); background: var(--gold); padding: 10px 20px; border-radius: 999px; font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center;
}
.main-nav .nav-cta:hover { background: var(--gold-bright); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); transition: transform 0.25s var(--ease-out), opacity 0.25s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,16,0.55) 0%, rgba(11,11,16,0.35) 40%, rgba(11,11,16,0.75) 100%),
    linear-gradient(115deg, rgba(44,42,94,0.55) 0%, transparent 45%),
    linear-gradient(305deg, rgba(217,166,43,0.35) 0%, transparent 50%);
}
/* width/min-width keep this flex item from growing to the nowrap headline's max-content width */
.hero-content { position: relative; z-index: 2; padding-top: 90px; width: 100%; min-width: 0; }
.hero-title {
  font-size: min(14.5vw, 12.3rem);
  line-height: 0.95;
  color: var(--fg);
  text-transform: uppercase;
  max-width: none;
  opacity: 1;
  transition: opacity 0.65s var(--ease-out);
}
.hero-title.is-fading { opacity: 0; }
.hero-title .l1, .hero-title .l2 { white-space: nowrap; }
.hero-title .l2 { color: var(--gold-bright); }
.hero-sub {
  margin-top: var(--space-3);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 46ch;
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Story (Dr. Jung's message)
   ========================================================================== */
.story { padding: var(--space-7) 0; background: var(--bg-elevated); }

/* ==========================================================================
   Program section
   ========================================================================== */
.program {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: var(--space-8) 0;
}
.scrim { position: absolute; inset: 0; }
.scrim-strong { background: linear-gradient(180deg, rgba(11,11,16,0.55) 0%, rgba(11,11,16,0.88) 65%, var(--bg) 100%); }
.program-content { position: relative; z-index: 1; max-width: 780px; }
.display-title { font-size: clamp(2.3rem, 5.5vw, 4rem); text-transform: uppercase; }
.tagline { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--gold-bright); font-style: italic; margin-top: var(--space-2); font-weight: 600; }
.program-intro { margin-top: var(--space-3); color: var(--fg-muted); font-size: 1.05rem; max-width: 65ch; }
.meta-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.meta-chips li {
  background: rgba(247,246,242,0.06); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 18px; min-width: 200px;
}
.chip-label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); font-weight: 700; margin-bottom: 4px; }
.chip-value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

/* ==========================================================================
   Quote section
   ========================================================================== */
.quote-section { padding: var(--space-7) 0; text-align: center; }
.pull-quote p {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); max-width: 20ch; margin: 0 auto; line-height: 1.15;
  background: linear-gradient(100deg, var(--fg) 40%, var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pull-quote cite { display: block; margin-top: var(--space-3); font-style: normal; color: var(--fg-faint); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ==========================================================================
   What to expect
   ========================================================================== */
.expect { padding: var(--space-7) 0; }
.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-transform: uppercase; }

/* ==========================================================================
   Carousel controls (What to Expect + Module Detail)
   ========================================================================== */
.carousel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-6);
}
.carousel-head .section-head { margin-bottom: 0; }
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; padding-bottom: 4px; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-strong); color: var(--fg);
  background: transparent;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}
.carousel-btn svg { width: 20px; height: 20px; display: block; }
.carousel-btn:hover:not(:disabled) {
  background: var(--gold); color: var(--navy-deep); border-color: var(--gold);
}
.carousel-btn:disabled { opacity: 0.28; cursor: not-allowed; }
/* Scroll tracks are focusable for keyboard users — don't double-up the ring */
[data-carousel-track] { outline: none; }
[data-carousel-track]:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.expect-grid {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 calc(-1 * var(--space-3)); padding: 4px var(--space-3) var(--space-3);
  scroll-padding-left: var(--space-3);
}
.expect-grid::-webkit-scrollbar { display: none; }
.expect-grid li {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: border-color 0.25s, transform 0.25s var(--ease-out);
  flex: 0 0 min(280px, 78vw); scroll-snap-align: start;
}
.expect-grid li:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.expect-media { position: relative; aspect-ratio: 4/3; background: var(--bg); }
.expect-media img { width: 100%; height: 100%; object-fit: cover; }
.expect-icon {
  display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--gold-bright); margin: var(--space-3) var(--space-4) 4px;
}
.expect-grid h3 {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; line-height: 1.4;
  margin: 0 var(--space-4) var(--space-4);
}

/* ==========================================================================
   Statement sections
   ========================================================================== */
.statement { padding: var(--space-8) 0; text-align: center; position: relative; overflow: hidden; }
.statement .eyebrow { text-align: center; }
.statement-text {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4.2vw, 3rem);
  max-width: 24ch; margin: 0 auto; line-height: 1.2; position: relative; z-index: 1;
}
.statement-gold { background: linear-gradient(120deg, var(--olive) 0%, var(--gold) 100%); color: var(--navy-deep); }
.statement-gold .statement-text { color: var(--navy-deep); }
.statement-navy { background: radial-gradient(circle at 30% 20%, var(--navy-mid), var(--navy-deep) 70%); }

.statement-lead {
  font-size: clamp(2.6rem, 7vw, 5rem); color: var(--gold-bright); margin-bottom: var(--space-3);
  max-width: none;
}

/* Gold statement: hook line + highlighted reveal + supporting copy */
.statement-gold .statement-text { max-width: 28ch; }
.statement-reveal {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.15;
  margin: var(--space-3) auto 0; position: relative; z-index: 1;
}
.statement-reveal span {
  display: inline-block; background: var(--navy-deep); color: var(--gold-bright);
  padding: 0.08em 0.3em; border-radius: 6px;
}
.statement-body {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65;
  color: rgba(23, 22, 58, 0.85); max-width: 58ch;
  margin: var(--space-4) auto 0; position: relative; z-index: 1;
}
.statement-body + .statement-body { margin-top: var(--space-2); }
.statement-subtext {
  font-family: var(--font-body); font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--fg-muted); max-width: 42ch; margin: 0 auto; line-height: 1.5; position: relative; z-index: 1;
}

.statement-emphasis {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--navy-deep); margin: var(--space-3) auto 0; line-height: 1.1; position: relative; z-index: 1;
  text-decoration: underline; text-decoration-color: rgba(23,22,58,0.35); text-underline-offset: 0.12em; text-decoration-thickness: 3px;
}

/* ==========================================================================
   Curriculum / Modules
   ========================================================================== */
.curriculum { padding: var(--space-7) 0; background: var(--bg-elevated); }
.modules {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 calc(-1 * var(--space-3)); padding: 4px var(--space-3) var(--space-3);
  align-items: flex-start;
  scroll-padding-left: var(--space-3);
}
.modules::-webkit-scrollbar { display: none; }
.module {
  background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 0 0 min(320px, 82vw); scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.module-body { padding: var(--space-4); display: flex; flex-direction: column; flex: 1; }
.module-number { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--gold-bright); margin-bottom: 6px; }
.module-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; margin-bottom: var(--space-3); }

.module-toggle {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; font-size: 0.9rem;
  color: var(--gold-bright); border-top: 1px solid var(--border); width: 100%; justify-content: space-between;
  min-height: 44px;
}
.toggle-icon { width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.toggle-icon::before, .toggle-icon::after { content: ""; position: absolute; background: currentColor; transition: transform 0.25s var(--ease-out); }
.toggle-icon::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.toggle-icon::after { left: 50%; top: 0; height: 100%; width: 2px; margin-left: -1px; }
.module-toggle[aria-expanded="true"] .toggle-icon::after,
.faculty-toggle[aria-expanded="true"] .toggle-icon::after { transform: rotate(90deg); opacity: 0; }

.module-skills {
  font-size: 0.92rem; color: var(--fg-muted);
  overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
}
.module-skills ul { display: flex; flex-direction: column; gap: 10px; padding-top: var(--space-2); }
.module-skills li { position: relative; padding-left: 16px; line-height: 1.5; }
.module-skills li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 2px; background: var(--gold); border-radius: 1px;
}
.module-skills strong { color: var(--fg); }
.module-handson {
  margin-top: var(--space-3); padding-top: var(--space-2);
  border-top: 1px solid var(--border); font-size: 0.86rem; line-height: 1.55;
  color: var(--fg-faint);
}
.module-handson strong { color: var(--gold-bright); font-weight: 600; }
.module[data-expanded="true"] .module-skills { max-height: 1800px; opacity: 1; }

/* ==========================================================================
   Faculty
   ========================================================================== */
.faculty { padding: var(--space-7) 0; }
.faculty-banner { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-5); }
.faculty-banner img { width: 100%; height: auto; }
/* align-items:start so expanding one bio doesn't stretch every card in the row */
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items: start; }
.faculty-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-3); text-align: center;
}
.faculty-card img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  object-position: 50% 22%; margin: 0 auto var(--space-2);
}
.faculty-card h3 { font-size: 1.25rem; text-transform: uppercase; margin: 0; }
.faculty-creds {
  margin-top: 4px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
}
.faculty-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: var(--space-3); padding-top: var(--space-2);
  border-top: 1px solid var(--border); min-height: 44px;
  font-size: 0.85rem; font-weight: 600; color: var(--gold-bright);
}
.faculty-toggle .toggle-icon { width: 14px; height: 14px; }
/* max-height is set from JS to the measured content height, so long bios never clip */
.faculty-bio {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
  text-align: left; color: var(--fg-muted); font-size: 0.86rem; line-height: 1.6;
}
.faculty-bio p { margin-top: var(--space-2); }
.faculty-card[data-expanded="true"] .faculty-bio { opacity: 1; }

.faculty-guests { margin-top: var(--space-4); color: var(--fg-muted); text-align: center; max-width: 60ch; margin-inline: auto; }
.faculty-guests strong { color: var(--fg); }

/* ==========================================================================
   Video testimonial
   ========================================================================== */
.video-testimonial { padding: var(--space-7) 0; background: var(--bg-elevated); }
.video-testimonial .section-head { margin-inline: auto; text-align: center; }
.video-frame { margin: 0 auto; max-width: 880px; position: relative; }
.video-frame video { width: 100%; border-radius: var(--radius-lg); background: #000; aspect-ratio: 16/9; display: block; }

/* Shown only when the browser blocked autoplay-with-sound and we fell back to muted */
.video-unmute {
  position: absolute; top: var(--space-2); right: var(--space-2); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; min-height: 44px;
  background: var(--gold); color: var(--navy-deep);
  font-weight: 600; font-size: 0.9rem; line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.video-unmute:hover { background: var(--gold-bright); transform: translateY(-1px); }
.video-unmute svg { width: 18px; height: 18px; flex-shrink: 0; }
.video-frame figcaption { text-align: center; margin-top: var(--space-3); }
.video-frame figcaption p { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--gold-bright); }
.video-frame figcaption cite { display: block; margin-top: 6px; font-style: normal; color: var(--fg-faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Written testimonials */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
  margin-top: var(--space-6);
}
.testimonial-card {
  background: var(--bg-elevated-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
  display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.testimonial-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.testimonial-card blockquote {
  margin: 0 0 var(--space-3); flex: 1;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 1.15rem; line-height: 1.35; color: var(--fg);
}
.testimonial-card blockquote::before { content: "\201C"; color: var(--gold); margin-right: 1px; }
.testimonial-card blockquote::after { content: "\201D"; color: var(--gold); margin-left: 1px; }
.testimonial-name {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; color: var(--fg);
}
.testimonial-meta {
  margin-top: 2px; font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: var(--space-8) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; margin: var(--space-2) 0 var(--space-3); }
.contact-copy { color: var(--fg-muted); max-width: 48ch; }
.contact-details { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.contact-details > div { display: flex; justify-content: space-between; gap: var(--space-2); border-bottom: 1px solid var(--border); padding-bottom: var(--space-2); }
.contact-details dt { color: var(--fg-faint); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-details dd { margin: 0; font-weight: 600; text-align: right; }
.contact-details a { color: var(--gold-bright); }

.contact-form {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.form-row { margin-bottom: var(--space-3); }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--fg-muted); }
.form-row input, .form-row textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--fg); min-height: 44px; transition: border-color 0.2s;
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); }
.form-note { margin-top: var(--space-2); font-size: 0.9rem; color: var(--gold-bright); text-align: center; min-height: 1.2em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: var(--space-6) 0 var(--space-5); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--fg-muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--fg); }
.footer-meta { text-align: right; color: var(--fg-muted); font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; }
.footer-meta a { color: var(--gold-bright); }
.footer-meta .copyright { margin-top: 10px; color: var(--fg-faint); font-size: 0.8rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100dvh; width: min(320px, 80vw);
    background: var(--bg-elevated); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 96px var(--space-4) var(--space-4); gap: var(--space-3);
    transform: translateX(100%); transition: transform 0.3s var(--ease-out);
    border-left: 1px solid var(--border);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .main-nav .nav-cta { margin-top: var(--space-2); }
  .nav-toggle { display: flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-details dd { text-align: left; }
  .contact-details > div { flex-direction: column; gap: 2px; }
}

@media (max-width: 720px) {
  .module-body { padding: var(--space-3); }
  .faculty-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .meta-chips li { min-width: 100%; }
  :root { --space-8: 88px; --space-7: 64px; }

  .carousel-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .carousel-nav { padding-bottom: 0; }
  .carousel-btn { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
