/* =========================================================
   LIAS Homepage — Design tokens
   Palette: deep navy + brass gold, ivory support, restrained.
   Type: Fraunces (display) + Libre Franklin (body/utility).
   ========================================================= */
:root {
  --navy-deep:    #0B1F3A;
  --navy-rich:    #142B4D;
  --navy-line:    rgba(247, 244, 236, 0.14);
  --gold:         #C9A24B;
  --gold-light:   #E4C876;
  --gold-dim:     rgba(201, 162, 75, 0.35);
  --ivory:        #F7F4EC;
  --ivory-dim:    #EFEAdd;
  --ink:          #1A1A1A;
  --ink-soft:     #4A4A46;
  --on-navy:      #F2EFE6;
  --on-navy-dim:  rgba(242, 239, 230, 0.72);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The `hidden` attribute is used to toggle a few dynamic panels (Careers
   job-details / application / confirmation). Elements that also carry an
   author `display` rule (e.g. display:grid on .form-panel) would otherwise
   ignore `hidden`, since author CSS outranks the UA stylesheet — so this
   reinforces it globally. */
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.5em; color: inherit; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.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; left: -999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--navy-deep); padding: 0.75em 1.25em;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

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

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1em;
}
.eyebrow-dark { color: #755A1F; }

.lede { font-size: 1.15rem; max-width: 62ch; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-lg { padding: 1em 2em; font-size: 1rem; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 8px 20px -8px rgba(201, 162, 75, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(201, 162, 75, 0.7); }

.btn-ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--navy-line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* =========================================================
   Reading progress
   ========================================================= */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.15s linear;
}

/* =========================================================
   Floating actions
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.4);
  z-index: 150;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 16px 32px -8px rgba(0,0,0,0.5); }

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(201, 162, 75, 0.6);
  z-index: 150;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.sticky-cta.is-hidden { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(12px); }
@media (min-width: 780px) { .sticky-cta { display: none; } }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--navy-line);
  opacity: 0;
  animation: header-fade 0.6s var(--ease) forwards;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(10px);
}
@keyframes header-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); }
.brand-logo {
  height: clamp(36px, 4.2vw, 48px);
  width: auto;
  max-width: 280px;
}

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav ul { display: flex; gap: 32px; }
.primary-nav a {
  text-decoration: none;
  color: var(--on-navy-dim);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a:hover { color: var(--on-navy); }
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--gold);
  transition: right 0.25s var(--ease);
}
.primary-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-bar { width: 22px; height: 2px; background: var(--on-navy); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-navy);
  overflow: hidden;
}
.hero-split {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-photo, .hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-photo img {
  object-fit: cover;
  object-position: 68% center;
  animation: hero-zoom 8s var(--ease) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,31,58,0.95) 0%, rgba(11,31,58,0.88) 30%, rgba(11,31,58,0.5) 52%, rgba(11,31,58,0.12) 75%, rgba(11,31,58,0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 64px) 32px clamp(40px, 6vw, 64px) clamp(32px, 8vw, 140px);
}
.hero-content .eyebrow {
  opacity: 0;
  animation: rise 0.7s var(--ease) forwards 0.15s;
}
.hero-divider {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 12px 0 18px;
  opacity: 0;
  animation: rise 0.7s var(--ease) forwards 0.25s;
}
.hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.1;
  color: var(--on-navy);
  max-width: 600px;
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards 0.35s;
}
.hero-accent {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}
.hero-lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #F2F2F2;
  max-width: 42ch;
  margin-top: 18px;
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards 0.5s;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards 0.68s;
}
.hero-actions .btn-gold:hover { background: linear-gradient(180deg, var(--gold), #B4903F); }
.hero-actions .btn-ghost { border-color: var(--gold); color: var(--on-navy); }
.hero-actions .btn-ghost:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero-split { min-height: 85vh; }
  .hero-media::after {
    background: linear-gradient(100deg, rgba(11,31,58,0.97) 0%, rgba(11,31,58,0.92) 40%, rgba(11,31,58,0.65) 65%, rgba(11,31,58,0.3) 100%);
  }
}
@media (max-width: 720px) {
  .hero-split { min-height: 80vh; }
  .hero-content { padding-top: clamp(90px, 20vw, 110px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

.trust-strip {
  position: relative;
  border-top: 1px solid var(--navy-line);
  background: rgba(255,255,255,0.02);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  padding: 22px 24px;
  border-right: 1px solid var(--navy-line);
  text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-light);
  font-weight: 600;
}
.trust-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-navy-dim);
  margin-top: 4px;
}

/* =========================================================
   Generic light section
   ========================================================= */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--navy-deep); max-width: 20ch; }

.section-divider {
  display: flex; justify-content: center; align-items: center;
  padding: 12px 0;
  color: var(--gold);
  background: var(--ivory);
}
.section-divider-light { color: var(--gold-dim); background: var(--navy-deep); }

/* =========================================================
   Why LIAS — pillars
   ========================================================= */
.why-lias { background: var(--ivory); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.pillar-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 22px; }
@media (max-width: 1080px) { .pillar-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pillar-grid-5 { grid-template-columns: 1fr; } }
.pillar-card {
  background: #fff;
  border: 1px solid rgba(11,31,58,0.08);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(11,31,58,0.25); }
.pillar-card:hover .pillar-icon { transform: scale(1.08) rotate(-2deg); }
.pillar-icon {
  width: 44px; height: 44px; color: var(--gold);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease);
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-card h3 { font-size: 1.15rem; color: var(--navy-deep); }
.pillar-card p { font-size: 0.96rem; margin-bottom: 0; }

/* =========================================================
   Founder
   ========================================================= */
.founder { background: #fff; }
.founder-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--navy-rich), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--on-navy-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--navy-line);
}
.pull-quote {
  margin: 20px 0 24px;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy-deep);
  line-height: 1.5;
}
.signature { margin-top: 20px; color: var(--navy-deep); }
.signature-script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--navy-deep);
}
.portrait-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--gold-dim); }
.portrait-placeholder svg { color: var(--gold); }

/* =========================================================
   Vision band
   ========================================================= */
.vision-band {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding: clamp(56px, 8vw, 84px) 0;
}
.vision-inner { text-align: center; max-width: 1180px; }
.vision-band .eyebrow { text-align: center; }
.vision-divider {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 28px;
}
.vision-band .vision-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.6;
  color: var(--on-navy);
  max-width: 760px;
  margin: 0 auto;
}

/* =========================================================
   Philosophy
   ========================================================= */
.philosophy { background: var(--ivory); }
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-top: 36px;
}
.philosophy-item { border-top: 2px solid var(--gold); padding-top: 16px; }
.philosophy-item h3 { font-size: 1.1rem; color: var(--navy-deep); }
.philosophy-item p { font-size: 0.96rem; margin-bottom: 0; }

.philosophy-principles-lede {
  margin-top: 48px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #755A1F;
}
.principle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.principle-chips li {
  background: #fff;
  border: 1px solid rgba(11,31,58,0.12);
  color: var(--navy-deep);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.principle-chips li:hover {
  background: var(--navy-deep);
  color: var(--on-navy);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
}

/* =========================================================
   The LIAS Graduate
   ========================================================= */
.graduate { background: #fff; }
.graduate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.graduate-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(11,31,58,0.1);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.graduate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -20px rgba(11,31,58,0.3);
  border-color: var(--gold-dim);
}
.graduate-check {
  flex: none;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-weight: 700;
}
.graduate-card h3 { font-size: 1.02rem; margin: 0; color: var(--navy-deep); }
@media (max-width: 780px) { .graduate-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Emotional story sections
   ========================================================= */
.story { padding: clamp(48px, 7vw, 80px) 0; }
.story:nth-of-type(odd) { background: var(--ivory); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-reverse .story-grid { direction: rtl; }
.story-reverse .story-copy, .story-reverse .story-media { direction: ltr; }
.story-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -28px rgba(11,31,58,0.35);
}
.story-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.story-copy p { font-size: 1.02rem; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-reverse .story-grid { direction: ltr; }
}

/* =========================================================
   Values
   ========================================================= */
.values { background: var(--navy-deep); color: var(--on-navy); }
.values .eyebrow-dark { color: var(--gold-light); }
.values h2 { color: var(--on-navy); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.value-card {
  background: var(--navy-rich);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -24px rgba(0,0,0,0.6); }
.value-card-media { aspect-ratio: 4/3; overflow: hidden; }
.value-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.value-card:hover .value-card-media img { transform: scale(1.06); }
.value-card-body { padding: 26px 26px 30px; border-top: 3px solid var(--gold); }
.value-num {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.value-card h3 { color: var(--on-navy); font-size: 1.1rem; }
.value-card p { color: var(--on-navy-dim); font-size: 0.94rem; margin-bottom: 0; }

/* =========================================================
   Academics
   ========================================================= */
.academics { background: #fff; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.checklist { margin-top: 22px; display: grid; gap: 12px; }
.checklist li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
}
.checklist em { color: #755A1F; font-style: normal; font-weight: 700; }

.academics-panel {
  background: var(--ivory);
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius-md);
  padding: 28px;
}
.academics-panel h3 { color: var(--navy-deep); font-size: 1.15rem; }
.muted { color: var(--ink-soft); font-size: 0.93rem; }

/* =========================================================
   Campus & Facilities
   ========================================================= */
.campus { background: var(--ivory); }
.campus-lede {
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 14px;
  font-size: 1.02rem;
}
.campus-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.campus-group {
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.campus-group h3 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.campus-group .checklist { margin-top: 16px; }
.campus-group .checklist li { font-size: 0.9rem; }

/* =========================================================
   Parent Promise
   ========================================================= */
.promise {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy-rich));
  color: var(--on-navy);
}
.promise-inner { text-align: center; }
.promise .eyebrow { text-align: center; }
.promise h2 { color: var(--on-navy); margin: 0 auto 40px; max-width: 32ch; }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.promise-item {
  border-top: 2px solid var(--gold);
  padding-top: 14px;
}
.promise-item h3 { color: var(--gold-light); font-size: 1.05rem; }
.promise-item p { color: var(--on-navy-dim); font-size: 0.92rem; margin-bottom: 0; }
.promise-guiding {
  margin: 48px auto 0;
  max-width: 62ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--on-navy-dim);
}

/* =========================================================
   Trust signals
   ========================================================= */
.trust-signals { background: var(--ivory); }
.signal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.signal { border-left: 2px solid var(--gold); padding-left: 16px; }
.signal strong { display: block; color: var(--navy-deep); font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 6px; }
.signal span { color: var(--ink-soft); font-size: 0.9rem; }

/* =========================================================
   Visit CTA
   ========================================================= */
.visit-cta {
  background: radial-gradient(120% 160% at 85% 0%, var(--navy-rich) 0%, var(--navy-deep) 60%, #081627 100%);
  color: var(--on-navy);
}
.visit-inner { max-width: 640px; text-align: center; }
.visit-crest { margin: 0 auto 18px; }
.lias-crest-icon { object-fit: contain; }
.visit-cta h2 { color: var(--on-navy); }
.visit-cta > .section-inner > p { color: var(--on-navy-dim); max-width: 52ch; margin: 0 auto 36px; }

.visit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-row label { font-size: 0.82rem; font-weight: 600; color: var(--on-navy-dim); }
.form-row input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
  color: var(--on-navy);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}
.form-row input::placeholder { color: var(--on-navy-dim); }
.form-row input:focus { border-color: var(--gold); }
.form-submit { grid-column: 1 / -1; margin-top: 8px; }
.form-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 0.8rem; color: var(--on-navy-dim); }
.field-error { margin: 4px 0 0; font-size: 0.78rem; font-weight: 600; color: #E4785A; min-height: 1em; }
.field-error:empty { margin: 0; }
[aria-invalid="true"] { border-color: #E4785A !important; }
.field-hint { margin: 4px 0 0; font-size: 0.78rem; font-weight: 600; color: var(--gold); min-height: 1em; }
.field-hint:empty { margin: 0; }
.form-panel .field-hint { color: var(--ink-soft); }
.form-panel-on-dark .field-hint { color: var(--on-navy-dim); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #081627; color: var(--on-navy-dim); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--gold); }
.footer-logo { height: 48px; width: auto; flex-shrink: 0; }
.footer-tag { font-size: 0.82rem; margin: 4px 0 0; }
.footer-contact p { margin: 0 0 10px; font-size: 0.9rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 16px; }
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  text-align: center;
  padding: 20px 24px;
  font-size: 0.8rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .founder-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { max-width: 320px; }
  .two-col { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .signal-row { grid-template-columns: 1fr 1fr; }
  .campus-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item { border-bottom: 1px solid var(--navy-line); }
  .pillar-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .signal-row { grid-template-columns: 1fr; }
  .visit-form { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; }
  .job-req-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .job-req-row dd { text-align: left; }
  .job-details-panel { padding: 24px 20px; }
}

/* Body scroll lock when mobile nav open */
body.nav-open { overflow: hidden; }
@media (max-width: 720px) {
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--navy-deep);
    padding: 96px 28px 40px;
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.open ul { flex-direction: column; gap: 6px; }
  .primary-nav.open a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--navy-line); }
  .primary-nav.open .nav-cta { margin-top: 24px; }
}

/* =========================================================
   Multi-page system: dropdown nav, page hero, breadcrumbs,
   footer redesign, timeline, blog, FAQ, extended forms
   ========================================================= */

/* --- Dropdown nav --- */
.primary-nav ul { align-items: center; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s var(--ease); }
.nav-item.open .nav-caret, .nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(-135deg) translateY(1px); }
.nav-item a[aria-current="page"] { color: var(--gold-light); }
.nav-item a[aria-current="page"]::after { right: 0; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--navy-rich);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 24px 44px -18px rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 120;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-navy-dim);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.nav-dropdown a::after { content: none; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: rgba(201,162,75,0.12); color: var(--gold-light); }

@media (max-width: 720px) {
  .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    display: none; background: rgba(255,255,255,0.03); box-shadow: none; margin: 4px 0 8px;
    border: none; padding: 0 0 0 14px;
  }
  .nav-item.open .nav-dropdown { display: block; transform: none; }
  .nav-item > a { justify-content: space-between; width: 100%; }
  .nav-dropdown a { padding: 12px 0; border-bottom: 1px solid var(--navy-line); font-size: 1rem; }
}

/* --- Sub-page hero --- */
.page-hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-rich) 0%, var(--navy-deep) 55%, #081627 100%);
  color: var(--on-navy);
  padding: clamp(56px, 8vw, 90px) 0 clamp(40px, 6vw, 56px);
}
.page-hero-photo { overflow: hidden; }
.page-hero-photo .page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-photo .page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.page-hero-photo .page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,31,58,0.94) 0%, rgba(11,31,58,0.85) 38%, rgba(8,22,39,0.5) 70%, rgba(8,22,39,0.32) 100%);
}
.page-hero-photo .section-inner { position: relative; z-index: 1; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--on-navy-dim); margin: 0 0 18px; }
.breadcrumbs a { text-decoration: none; color: var(--on-navy-dim); }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--gold-light); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--on-navy); max-width: 18ch; margin-bottom: 0.4em; }
.page-hero .page-lede { font-size: 1.1rem; color: var(--on-navy-dim); max-width: 62ch; margin-bottom: 0; }

/* --- Content sections shared across subpages --- */
.content-section { background: #fff; }
.content-section.alt { background: var(--ivory); }
.content-section .lede { margin-bottom: 12px; }
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.icon-card {
  background: #fff; border: 1px solid rgba(11,31,58,0.08); border-radius: var(--radius-md);
  padding: 28px 24px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.icon-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(11,31,58,0.25); }
.icon-card .pillar-icon { margin-bottom: 14px; }
.icon-card h3 { font-size: 1.05rem; color: var(--navy-deep); }
.icon-card p { font-size: 0.93rem; margin-bottom: 0; }
.content-section.alt .icon-card { background: #fff; }

.two-col-media { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-media img { width: 100%; border-radius: var(--radius-md); box-shadow: 0 24px 48px -28px rgba(11,31,58,0.35); }

/* --- Timeline (Learning Journey) --- */
.timeline { margin-top: 48px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 24px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
}
@media (min-width: 780px) { .timeline::before { left: 50%; transform: translateX(-1px); } }
.timeline-stage { position: relative; padding: 0 0 44px 64px; }
@media (min-width: 780px) {
  .timeline-stage { width: 50%; padding: 0 0 56px 0; }
  .timeline-stage:nth-child(odd) { padding-right: 56px; text-align: right; }
  .timeline-stage:nth-child(even) { padding-left: 56px; margin-left: 50%; }
}
.timeline-dot {
  position: absolute; left: 17px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(201,162,75,0.18);
}
@media (min-width: 780px) {
  .timeline-stage:nth-child(odd) .timeline-dot { right: -8px; left: auto; }
  .timeline-stage:nth-child(even) .timeline-dot { left: -8px; }
}
.timeline-stage h3 { color: var(--navy-deep); font-size: 1.25rem; margin-bottom: 6px; }
.timeline-stage .timeline-age { color: #755A1F; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.timeline-stage p { font-size: 0.96rem; }

/* --- FAQ accordion --- */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid rgba(11,31,58,0.12); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-deep); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 18px; font-size: 1.4rem; color: var(--gold); font-family: var(--font-body);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; margin: 0; font-size: 0.95rem; max-width: 68ch; }

/* --- Extended form fields --- */
.form-row-full { grid-column: 1 / -1; }
.form-row select, .form-row textarea {
  background: rgba(255,255,255,0.06); border: 1px solid var(--navy-line); border-radius: var(--radius-sm);
  padding: 0.75em 0.9em; color: var(--on-navy); font-family: var(--font-body); font-size: 0.95rem; resize: vertical;
  width: 100%; box-sizing: border-box;
}
.form-row select:focus, .form-row textarea:focus { border-color: var(--gold); outline: none; }
.form-row select option { color: #1A1A1A; }
.form-row-file { border: 1.5px dashed var(--navy-line); border-radius: var(--radius-sm); padding: 0.9em; min-width: 0; }
.form-row-file input { color: var(--on-navy-dim); font-size: 0.85rem; width: 100%; max-width: 100%; box-sizing: border-box; }

/* Light-background variant of visit-form, used on Admissions/Contact/Careers pages */
.form-panel {
  background: #fff; border: 1px solid rgba(11,31,58,0.1); border-radius: var(--radius-md); padding: 32px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.form-panel .form-row label { color: var(--navy-deep); }
.form-panel .form-row input, .form-panel .form-row select, .form-panel .form-row textarea {
  background: var(--ivory); border: 1px solid rgba(11,31,58,0.14); color: var(--ink);
}
.form-panel .form-row input:focus, .form-panel .form-row select:focus, .form-panel .form-row textarea:focus { border-color: var(--gold); }
.form-panel .form-note { color: var(--ink-soft); }
.form-panel .field-error { color: #C0392B; }
/* Careers "Apply" form sits on a dark, near-transparent panel (not the usual
   solid white .form-panel) — labels/notes need the light-on-dark palette
   instead of the default navy-on-white one, or they're invisible. */
.form-panel-on-dark .form-row label { color: var(--on-navy-dim); }
.form-panel-on-dark .form-note { color: var(--on-navy-dim); }
.form-panel-on-dark .field-error { color: #E4785A; }
@media (max-width: 720px) { .form-panel, .visit-form { grid-template-columns: 1fr; } }

/* --- Contact info cards / map --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-list { display: grid; gap: 22px; margin-top: 28px; }
.contact-info-item { border-left: 2px solid var(--gold); padding-left: 16px; }
.contact-info-item strong { display: block; color: var(--navy-deep); font-family: var(--font-display); margin-bottom: 4px; }
.map-placeholder {
  aspect-ratio: 16/9; border-radius: var(--radius-md); border: 1px dashed var(--gold-dim);
  background: repeating-linear-gradient(135deg, var(--ivory), var(--ivory) 12px, #EFE7D2 12px, #EFE7D2 24px);
  display: flex; align-items: center; justify-content: center; color: #755A1F; font-weight: 600; font-size: 0.9rem; margin-top: 28px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Careers --- */
.job-list { margin-top: 40px; display: grid; gap: 1px; background: rgba(11,31,58,0.1); border: 1px solid rgba(11,31,58,0.1); border-radius: var(--radius-md); overflow: hidden; }
.job-item { background: #fff; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.job-item h3 { font-size: 1.02rem; color: var(--navy-deep); margin: 0 0 4px; }
.job-item span { font-size: 0.85rem; color: var(--ink-soft); }
.job-item .btn-ghost { color: var(--navy-deep); border-color: rgba(11,31,58,0.2); }

/* Job requirements panel — shown after "Apply" is clicked on a job card,
   before the applicant reaches the common application form. */
.job-details-panel {
  margin-top: 28px;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.1);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 18px 34px -24px rgba(11,31,58,0.18);
}
.job-details-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin-bottom: 22px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  color: var(--ink-soft); cursor: pointer;
}
.job-details-back:hover { color: var(--gold); }
.job-details-meta { margin-bottom: 6px; }
.job-details-panel h3 { font-size: 1.5rem; color: var(--navy-deep); margin-bottom: 22px; }
.job-details-subhead {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #755A1F; margin-bottom: 4px;
}
.job-details-intro { font-size: 0.88rem; margin-bottom: 18px; }
.job-req-list { margin: 0 0 20px; border-top: 1px solid rgba(11,31,58,0.1); }
.job-req-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(11,31,58,0.1); }
.job-req-row dt { font-weight: 700; color: var(--navy-deep); font-size: 0.88rem; margin: 0; flex-shrink: 0; }
.job-req-row dd { margin: 0; color: var(--ink-soft); font-size: 0.92rem; text-align: right; }
.job-details-disclaimer { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 26px; }

/* "Applying for: <job>" context line above the common application form */
.visit-cta > .section-inner > p.job-apply-context { color: var(--gold-light); font-weight: 700; margin-bottom: 22px; }
.job-apply-context .change-position-btn {
  display: inline; margin-left: 8px; background: none; border: none; padding: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  color: var(--on-navy-dim); text-decoration: underline; cursor: pointer;
}
.job-apply-context .change-position-btn:hover { color: var(--gold-light); }
.form-row input[readonly] { cursor: default; opacity: 0.85; }

/* Application confirmation, shown in place of the form after submission */
.job-confirmation h3 { color: var(--on-navy); font-size: 1.6rem; margin-bottom: 14px; }
.job-confirmation p { color: var(--on-navy-dim); margin: 0 0 14px; }
.job-confirmation-position { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--gold-light); }
.job-confirmation .btn { margin-top: 10px; }

/* --- Legal pages --- */
.legal-content { max-width: 76ch; }
.legal-content h2 { font-size: 1.3rem; color: var(--navy-deep); margin-top: 2em; }
.legal-content p, .legal-content li { font-size: 0.96rem; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.4em; color: var(--ink-soft); }

/* --- 404 --- */
.error-page { text-align: center; padding: clamp(90px, 14vw, 150px) 0; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); color: var(--gold-dim); margin: 0; line-height: 1; }
.error-page h1 { color: var(--navy-deep); margin-top: 0.2em; }
.error-page p { max-width: 50ch; margin: 0 auto 28px; }

/* --- Footer (redesigned) --- */
.site-footer { background: #081627; color: var(--on-navy-dim); }
.footer-top-inner {
  max-width: var(--container); margin: 0 auto; padding: 64px 24px 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer-col h4 { color: var(--on-navy); font-family: var(--font-display); font-size: 0.98rem; margin: 0 0 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 0.88rem; color: var(--on-navy-dim); }
.footer-col a:hover { color: var(--gold-light); }
.footer-mission p { font-size: 0.9rem; max-width: 32ch; }
.footer-newsletter-form { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.footer-newsletter-form input {
  flex: 1; min-width: 140px; background: rgba(255,255,255,0.06); border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm); padding: 0.7em 0.9em; color: var(--on-navy); font-size: 0.9rem;
}
.footer-newsletter-form button {
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-deep); border: none;
  border-radius: var(--radius-sm); padding: 0.7em 1.2em; font-weight: 700; cursor: pointer; font-size: 0.88rem;
}
.footer-newsletter-note { font-size: 0.76rem; margin-top: 8px; }
.back-to-top {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--on-navy-dim);
  text-decoration: none; font-size: 0.84rem; font-weight: 600; border: 1px solid var(--navy-line);
  border-radius: 999px; padding: 8px 16px; transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.back-to-top:hover { border-color: var(--gold); color: var(--gold-light); }
@media (max-width: 960px) { .footer-top-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top-inner { grid-template-columns: 1fr; } }

/* --- Generic media placeholder (for concept imagery not yet photographed) --- */
.media-placeholder {
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--navy-rich), var(--navy-deep));
  border: 1px solid var(--navy-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--on-navy-dim); text-align: center; padding: 28px; aspect-ratio: 4/3;
}
.media-placeholder svg { color: var(--gold); }
.media-placeholder span { font-size: 0.82rem; max-width: 22ch; }
.media-placeholder .mp-label { font-weight: 700; color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* =========================================================
   Responsive (multi-page additions)
   ========================================================= */
@media (max-width: 960px) {
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .two-col-media { grid-template-columns: 1fr; }
  .form-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .icon-grid { grid-template-columns: 1fr; }
}

/* Scroll reveal (progressive enhancement, JS adds .is-visible) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-content .eyebrow, .hero-divider, .hero h1, .hero-lede, .hero-actions { animation: none; opacity: 1; }
  .hero-photo img { animation: none; transform: none; }
  .site-header { animation: none; opacity: 1; }
}
