@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

/* ===== Tokens ===== */
:root {
  --ink: #F5F1E8;
  --navy: #000000;
  --cream: #494848;
  --gold: #FFC107;
  --teal: #FF8A00;
  --cream-dim: #1C1A17;
  --surface: #1A1815;
  --text-muted: #C9C2B8;
  --text-soft: #8F887D;
  --line: rgba(255,193,7,0.16);

  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', Arial, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --ease: cubic-bezier(.22,.9,.32,1);
}

* { box-sizing: border-box; }
img, svg { max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

/* subtle grain overlay for warmth */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 500;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Homepage welcome ===== */
.home-welcome {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(12px);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.home-welcome-card {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(2rem, 6vw, 3.5rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255,107,0,0.16), transparent 55%),
    var(--surface);
  border: 1px solid rgba(255,107,0,0.35);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: welcomeIn 0.65s var(--ease) both;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.home-welcome-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}
.home-welcome-kicker {
  color: var(--orange-light);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-welcome-message {
  max-width: 520px;
  margin: 0.8rem auto 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
}
.home-welcome-accent {
  display: block;
  width: 76px;
  height: 4px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange-light));
  border-radius: 999px;
}
.home-welcome.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.home-welcome.is-hiding .home-welcome-card {
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
}
@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,0.96); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.1rem; color: var(--navy); }
.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}
.brand-logo-footer { width: 46px; height: 46px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.brand-name em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 5rem; font-size: 0.92rem; font-weight: 500; }
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta {
  background: var(--navy); color: var(--cream); padding: 0.6rem 1.3rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal); transform: translateY(-2px); }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 9.5rem 2rem 5rem;
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-inner { max-width: 780px; display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
  animation: rise 0.9s var(--ease) both;
}
.chalk-wrap { position: relative; display: inline-block; color: var(--teal); font-style: italic; font-weight: 500; }
.chalk-wrap .chalk {
  position: absolute; left: -4%; bottom: -0.28em; width: 108%; height: 0.5em;
  overflow: visible;
}
.chalk-wrap .chalk path {
  fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw 1.1s 0.5s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  margin-top: 1.6rem; font-size: 1.12rem; color: var(--text-muted); line-height: 1.6; max-width: 620px;
  animation: rise 0.9s 0.15s var(--ease) both;
}
.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; animation: rise 0.9s 0.3s var(--ease) both; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary { background: var(--navy); color: var(--surface); box-shadow: 0 6px 18px rgba(13,13,13,0.24); }
.btn-primary:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(255,193,7,0.35); }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); transform: translateY(-3px); }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }

.hero-stats {
  margin-top: 3.6rem; display: flex; gap: 3.2rem; flex-wrap: wrap; justify-content: center;
  animation: rise 0.9s 0.45s var(--ease) both;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--display); font-size: 2rem; color: var(--navy); font-weight: 600; }
.stat-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }

.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 4rem; }
.hero-scroll span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.scroll-line { width: 1.5px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 1.8s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ===== Marquee ===== */
.marquee { background: var(--navy); overflow: hidden; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.marquee-track {
  display: flex; gap: 1.2rem; white-space: nowrap; width: max-content;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.05em; color: var(--gold);
  animation: scroll-left 28s linear infinite;
}
.marquee-track span { padding: 0 0.2rem; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Head Section ===== */
.head-section { max-width: 1180px; margin: 0 auto; padding: 7rem 2rem; }
.head-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; align-items: center; }

.head-portrait { position: relative; }
.portrait-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; background: var(--navy);
  box-shadow: 0 30px 60px -20px rgba(13,13,13,0.35);
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.15) contrast(1.05);
}
.frame-tag {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(250,249,246,0.94); color: var(--navy); font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: 999px;
}
.portrait-underline { width: 60%; margin-top: 1.2rem; }
.portrait-underline path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1s var(--ease); }
.head-portrait.visible .portrait-underline path { stroke-dashoffset: 0; }

.head-name { font-size: 2.4rem; margin-top: 0.2rem; }
.head-title { color: var(--teal); font-weight: 600; margin-top: 0.4rem; font-size: 0.98rem; }
.head-quote {
  font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--navy);
  margin-top: 1.6rem; line-height: 1.5; border-left: 3px solid var(--gold); padding-left: 1.2rem;
}
.head-bio { margin-top: 1.5rem; line-height: 1.7; color: var(--text-muted); }
.home-leadership {
  min-height: auto;
  padding: 2rem 5rem;
  display: flex;
  align-items: flex-start;
}
.home-leadership .head-inner { width: 100%; }
.leadership-link { margin-top: 2rem; }
.head-signature { margin-top: 1.8rem; }
.head-signature img { height: 46px; opacity: 0.9; }

/* ===== Courses ===== */
.courses { max-width: 1180px; margin: 0 auto; padding: 5rem 2rem 7rem; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-sub { margin-top: 0.8rem; color: var(--text-muted); font-size: 1rem; }

.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.course-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.course-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -18px rgba(13,13,13,0.22); border-color: var(--gold); }
.course-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.course-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); background: rgba(249,115,22,0.11); padding: 0.3rem 0.6rem; border-radius: 6px; }
.course-level { font-size: 0.72rem; color: var(--text-soft); font-family: var(--mono); }
.course-card h3 { font-size: 1.25rem; line-height: 1.3; }
.course-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.course-meta { display: flex; gap: 0.6rem 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; color: var(--text-soft); margin-top: 0.2rem; }
.course-link { margin-top: 0.4rem; font-weight: 600; color: var(--navy); font-size: 0.9rem; transition: color 0.2s; }
.course-link:hover { color: var(--gold); }

/* ===== Multi-page layout ===== */
.page-main { padding-top: 60px; min-height: 70vh; }
.page-header { padding: 5.5rem 2rem 4.5rem; background: var(--cream-dim); border-bottom: 1px solid var(--line); }
.page-header-inner { max-width: 1180px; margin: 0 auto; }
.page-header h1 { max-width: 850px; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.03; }
.page-lead { max-width: 720px; margin-top: 1.3rem; color: var(--text-muted); font-size: 1.12rem; line-height: 1.75; }
.page-section { max-width: 1180px; margin: 0 auto; padding: 5rem 2rem 7rem; }
.page-section-sm { max-width: 860px; }

.home-directory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.directory-card {
  min-height: 220px;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.directory-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 18px 40px -24px rgba(13,13,13,0.35); }
.directory-card h2 { font-size: 1.7rem; }
.directory-card p { color: var(--text-muted); line-height: 1.65; margin-top: 0.8rem; }
.directory-link { color: var(--teal); font-weight: 700; margin-top: 2rem; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; align-items: start; }
.detail-content { display: grid; gap: 3rem; }
.content-block { border-bottom: 1px solid var(--line); padding-bottom: 3rem; }
.content-block:last-child { border-bottom: 0; padding-bottom: 0; }
.content-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.content-block p { color: var(--text-muted); line-height: 1.75; }
.content-block p + p { margin-top: 1rem; }
.detail-aside { position: sticky; top: 120px; display: grid; gap: 1rem; }
.fact-card { background: var(--navy); color: var(--cream); padding: 1.7rem; border-radius: var(--radius); }
.fact-card h3 { color: var(--cream); font-size: 1.25rem; margin-bottom: 1rem; }
.fact-list { display: grid; gap: 0.9rem; }
.fact-list div { padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.fact-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list span { display: block; color: rgba(255,255,255,0.58); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.fact-list strong { display: block; margin-top: 0.25rem; font-size: 0.9rem; }
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 1.4rem; }
.topic-item { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.85rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--text-muted); line-height: 1.6; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--teal); font-weight: 700; font-size: 0.9rem; }
.cta-band { margin-top: 2.5rem; padding: 1.5rem; background: var(--cream-dim); border-radius: var(--radius); }
.cta-band h3 { font-size: 1.25rem; }
.cta-band p { margin-top: 0.5rem; color: var(--text-muted); line-height: 1.55; }
.cta-band .btn { margin-top: 1rem; }

/* ===== Timetable ===== */
.timetable-section { max-width: 1180px; margin: 0 auto; padding: 3rem 2rem 7rem; }
.board { background: var(--navy); border-radius: 20px; padding: 2rem; box-shadow: 0 30px 60px -25px rgba(13,13,13,0.4); }
.board-days { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.day-btn {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 0.55rem 1.1rem; border-radius: 999px; color: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.2); transition: all 0.25s var(--ease); cursor: pointer; background: transparent;
}
.day-btn:hover { color: var(--cream); border-color: var(--gold); }
.day-btn.active { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }

.board-panel { display: flex; flex-direction: column; gap: 0.7rem; min-height: 260px; }
.slot {
  display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; background: rgba(255,255,255,0.06); border-radius: 10px;
  border-left: 3px solid var(--gold);
  opacity: 0; transform: translateX(-10px);
  animation: slotIn 0.4s var(--ease) forwards;
}
.slot:nth-child(1) { animation-delay: 0.02s; }
.slot:nth-child(2) { animation-delay: 0.08s; }
.slot:nth-child(3) { animation-delay: 0.14s; }
.slot:nth-child(4) { animation-delay: 0.20s; }
@keyframes slotIn { to { opacity: 1; transform: translateX(0); } }
.slot-time { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }
.slot-info h4 { color: var(--cream); font-size: 1.02rem; font-weight: 600; margin: 0; }
.slot-info span { color: rgba(255,255,255,0.62); font-size: 0.8rem; }
.slot-room { font-family: var(--mono); font-size: 0.75rem; color: rgba(255,255,255,0.56); text-align: right; }
.slot-empty { color: rgba(255,255,255,0.5); font-family: var(--mono); font-size: 0.9rem; padding: 2rem 0; text-align: center; }

/* ===== About ===== */
.about { background: var(--cream-dim); padding: 6rem 2rem; }
.about-inner { max-width: 1180px; margin: 0 auto; }
.about h2 { font-size: clamp(2rem, 4vw, 3rem); }
.about-text { max-width: 640px; margin-top: 1.4rem; color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.about-item { border-top: 2px solid var(--navy); padding-top: 1.2rem; }
.about-num { font-family: var(--mono); color: var(--gold); font-size: 0.85rem; }
.about-item h4 { margin-top: 0.6rem; font-size: 1.15rem; }
.about-item p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }

/* ===== Enroll ===== */
.enroll { background: var(--navy); padding: 6rem 2rem; }
.enroll-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.enroll .eyebrow { color: var(--gold); }
.enroll h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 2.8rem); }
.enroll p { color: rgba(255,255,255,0.7); margin-top: 1rem; font-size: 1.05rem; }
.contact-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.contact-points div {
  padding: 1.3rem 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
}
.contact-points strong { display: block; color: var(--cream); font-size: 0.92rem; margin-top: 0.25rem; }
.contact-label {
  color: rgba(255,255,255,0.56);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Homepage contact form ===== */
.contact-form-section { padding: 5rem 2rem; background: var(--navy); }
.contact-form-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.contact-form-intro .eyebrow { color: var(--gold); }
.contact-form-intro h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); }
.contact-form-intro h2 + p { margin-top: 1rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.contact-email {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--gold);
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.contact-email:hover { color: var(--surface); }
.contact-form { padding: 2rem; background: var(--surface); border-top: 4px solid var(--gold); border-radius: var(--radius); }
.form-honeypot { position: absolute !important; left: -10000px !important; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.contact-field label { color: var(--navy); font-size: 0.78rem; font-weight: 700; }
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(13,13,13,0.18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  outline: none;
}
.contact-field textarea { min-height: 110px; resize: vertical; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,193,7,0.28); }
.contact-form .btn { border: 0; cursor: pointer; }
.contact-form .btn:disabled { cursor: wait; opacity: 0.72; }
.contact-form-status { min-height: 1.3em; margin-top: 0.8rem; color: var(--teal); font-size: 0.82rem; }

/* ===== Footer ===== */
.footer { padding: 1.1rem 2rem; border-top: 3px solid var(--gold); background: var(--navy); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand strong { display: block; color: var(--surface); font-family: var(--display); font-size: 0.95rem; }
.footer-brand span { display: block; margin-top: 0.15rem; color: rgba(255,255,255,0.58); font-size: 0.68rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; color: rgba(255,255,255,0.72); font-size: 0.75rem; font-weight: 600; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

/* ===== Reveal on scroll ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].visible { opacity: 1; transform: translateY(0); }
.course-card[data-reveal] { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav-inner { gap: 1.25rem; }
  .nav-links { gap: 3.6rem; }
  .head-inner { gap: 3rem; }
  .detail-layout { gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 2rem;
    right: 2rem;
    padding: 0.8rem;
    gap: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(13,13,13,0.14);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.9rem; border-radius: 8px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--cream-dim); }
  .nav-links a::after { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
    order: 3;
  }
  .nav-toggle span { width: 23px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .head-inner { grid-template-columns: 1fr; gap: 3rem; }
  .home-leadership { padding: 2rem 2rem 4.5rem; }
  .head-portrait { width: min(100%, 520px); margin: 0 auto; }
  .head-content { max-width: 680px; margin: 0 auto; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .slot { grid-template-columns: 90px 1fr; }
  .slot-room { display: none; }
  .page-header { padding: 4.5rem 2rem 3.5rem; }
  .page-section { padding-top: 4rem; }
  .about, .enroll { padding: 4.5rem 2rem; }
}

@media (max-width: 700px) {
  .course-grid, .home-directory { grid-template-columns: 1fr; }
  .contact-points { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; }
}

@media (max-width: 600px) {
  .brand-logo { width: 40px; height: 40px; }
  .brand-logo-footer { width: 42px; height: 42px; }
  .nav-inner { padding: 0.45rem 1.2rem; }
  .nav-cta { padding: 0.48rem 0.8rem; font-size: 0.74rem; }
  .nav-links { left: 1.2rem; right: 1.2rem; }
  .page-main { padding-top: 55px; }
  .home-leadership { padding: 1rem 1.2rem 3.5rem; }
  .head-inner { gap: 2.2rem; }
  .head-name { font-size: clamp(2rem, 11vw, 2.7rem); }
  .head-quote { font-size: 1.15rem; margin-top: 1.25rem; }
  .head-bio { margin-top: 1.2rem; font-size: 0.94rem; }
  .frame-tag { left: 0.75rem; bottom: 0.75rem; font-size: 0.6rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .page-header { padding: 3.4rem 1.2rem 2.8rem; }
  .page-header h1 { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .page-lead { font-size: 1rem; line-height: 1.65; }
  .page-section { padding: 3.5rem 1.2rem 5rem; }
  .courses { padding: 3.5rem 1.2rem 5rem; }
  .course-card, .directory-card { padding: 1.4rem; }
  .directory-card { min-height: 190px; }
  .timetable-section { padding: 2.5rem 1.2rem 5rem; }
  .board-days { display: grid; grid-template-columns: repeat(3, 1fr); }
  .day-btn { width: 100%; padding-inline: 0.5rem; }
  .slot { grid-template-columns: 72px minmax(0, 1fr); padding: 0.9rem; gap: 0.75rem; }
  .slot-info h4 { font-size: 0.94rem; overflow-wrap: anywhere; }
  .about, .enroll { padding: 3.5rem 1.2rem; }
  .contact-form-section { padding: 3.5rem 1.2rem; }
  .contact-form { padding: 1.3rem; }
  .contact-form-row { grid-template-columns: 1fr; gap: 0; }
  .board { padding: 1.4rem; }
  .footer { padding: 1rem 1.2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 0.7rem 1rem; }
}

@media (max-width: 420px) {
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.1em; }
  .btn { width: 100%; padding-inline: 1rem; }
  .board { padding: 1rem; border-radius: 14px; }
  .slot { grid-template-columns: 1fr; }
  .slot-time { margin-bottom: -0.2rem; }
  .contact-form { padding: 1rem; }
  .footer-brand span { max-width: 220px; line-height: 1.45; }
}

@media (hover: none) {
  .course-card:hover,
  .directory-card:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .nav-cta:hover { transform: none; }
}

/* ===== High-contrast dark theme ===== */
.nav,
.nav .brand,
.nav-links a {
  color: var(--ink);
}
.nav {
  background: rgba(10,10,10,0.9);
  border-bottom-color: rgba(255,193,7,0.16);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}
.nav.scrolled {
  background: rgba(10,10,10,0.97);
  border-bottom-color: rgba(255,193,7,0.3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 5px 16px rgba(255,193,7,0.2);
}
.nav-cta:hover {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 7px 20px rgba(255,138,0,0.28);
}
.nav-toggle span {
  background: var(--gold);
}

.btn {
  font-family: var(--body);
  font-weight: 700;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 7px 20px rgba(255,193,7,0.22);
}
.btn-primary:hover {
  background: var(--teal);
  color: var(--navy);
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--navy);
}

.stat-num,
.head-name,
.head-title,
.head-quote,
.course-link,
.directory-card h2,
.about-item h4,
.about-item p {
  color: var(--ink);
}
.course-link:hover,
.directory-link:hover,
.back-link:hover {
  color: var(--gold);
}
.about-item {
  border-top-color: var(--gold);
}

.fact-card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.fact-card h3,
.slot-info h4,
.enroll h2,
.contact-points strong,
.contact-form-intro h2 {
  color: var(--ink);
}
.day-btn:hover {
  color: var(--ink);
}
.day-btn.active {
  color: var(--navy);
}

.contact-email:hover {
  color: var(--ink);
}
.contact-field label {
  color: var(--ink);
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  background: #0E0E0E;
  color: var(--ink);
  border-color: rgba(255,193,7,0.32);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-soft);
  opacity: 1;
}
.contact-form-status {
  color: var(--gold);
}
.footer-brand strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links {
    background: rgba(18,18,18,0.98);
    border-color: rgba(255,193,7,0.2);
    box-shadow: 0 18px 40px rgba(0,0,0,0.38);
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: rgba(255,193,7,0.1);
    color: var(--gold);
  }
}
