/* =========================================
   WHETSTONE ADMISSIONS — STYLES
   ========================================= */

html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
.desktop-only { display: inline; }
@media (max-width: 768px) { .desktop-only { display: none; } }

/* ── Typography: prevent orphaned words site-wide ── */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }

:root {
  --navy: #191970;
  --navy-light: #2a2a9a;
  --gold: #FFC247;
  --gold-light: #ffd07a;
  --cream: #F6F6F9;
  --slate: #6A7A90;
  --white: #ffffff;
  --text: #191970;
  --text-muted: #6A7A90;
  --border: #e2e2ea;
  --font-serif: 'Libre Caslon Text', Georgia, serif;
  --font-sans: 'Libre Franklin', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(25,25,112,0.10);
  --shadow-lg: 0 12px 48px rgba(25,25,112,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0px);
}

.btn-primary { background: rgba(255,255,255,0.90); color: var(--navy); }
.btn-primary:hover { background: rgba(255,255,255,1); box-shadow: 0 4px 16px rgba(255,255,255,0.25); }

.btn-gold { background: linear-gradient(135deg, #FFD878 0%, #FFC247 55%, #E8A020 100%); color: var(--navy); }
.btn-gold:hover { background: linear-gradient(135deg, #FFE090 0%, #FFD068 55%, #F0AA30 100%); color: var(--navy); box-shadow: 0 6px 20px rgba(255,194,71,0.35); }

.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); box-shadow: 0 6px 20px rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.9); }

/* ---- SECTION LABELS ---- */
.section-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(25, 25, 112, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 24px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 32px; }

.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px 0 8px;
  padding-top: 14px; /* invisible hover bridge — no gap between trigger and menu */
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s;
  transition-delay: 0.08s; /* slight delay before hiding so mouse can travel */
}

.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.12s;
  border-radius: 6px;
  margin: 0 6px;
}
.dropdown-menu a:hover { background: var(--cream); color: var(--navy); }

/* Section divider inside dropdown */
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 12px;
}

.caret { font-size: 10px; margin-left: 2px; display: inline-block; transition: transform 0.2s; }
.nav-dropdown:hover .caret { transform: rotate(180deg); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--navy); text-decoration: none; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn-primary { background: var(--navy); color: var(--white); border: none; margin-top: 12px; text-align: center; border-bottom: none; border-radius: var(--radius); padding: 12px 20px; font-weight: 600; }
.mobile-nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 14px 0 2px; margin: 0; border-bottom: none !important; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25,25,112,0.50) 0%, rgba(15,15,80,0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 80px;
  max-width: none;
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  margin-bottom: 12px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
}

@media (min-width: 860px) {
  .hero-headline { white-space: nowrap; }
}

.hero-headline em { color: var(--gold); font-style: italic; }

.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   STATS
   ============================================ */
.stats { padding: 96px 0; background: #fff; overflow: hidden; }
.stats .section-label { color: var(--text-muted); }
.stats .section-title { color: var(--navy); }
/* stat/chart cards stay white on gradient background */

.stats-header {
  margin-bottom: 40px;
}

.stats-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
}

/* Two-col bottom row — equal height */
.stats-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.stat-primary { grid-column: 1; grid-row: 1; }
.stats-right { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
.stat-secondary { grid-column: 1; grid-row: 2; }

.stat-card-v2 {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.stat-num-v2 {
  display: block;
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 16px;
}

.stat-desc-v2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin: 0;
}

/* Right column: chart fills same height as left */
.stats-right {
  display: flex;
  flex-direction: column;
}

.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.chart-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.chart-card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot--gray { background: #b0b8d0; }
.legend-dot--gold { background: var(--gold); }

/* Ivy table — mobile only */
.ivy-table { display: none; }
@media (max-width: 768px) {
  .chart-wrap { display: none; }
  .chart-legend { display: none; }
  .ivy-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
  }
  .ivy-table thead tr { background: var(--cream); }
  .ivy-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
  }
  .ivy-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-weight: 500;
  }
  .ivy-table tbody tr:nth-child(even) { background: var(--cream); }
  .ivy-table .ivy-rate { color: var(--gold); font-weight: 700; font-size: 13px; }

  .story-cards {
    padding: 0 20px 16px;
  }

  /* Mobile carousel: scrollable, side padding allows centering any card */
  .story-carousel {
    justify-content: flex-start;
    padding-left: calc(50% - 130px);
    padding-right: calc(50% - 130px);
  }

  .story-card {
    flex: 0 0 180px;
    transform: scale(0.85);
    opacity: 0.5;
  }

  .story-card-active {
    flex: 0 0 260px;
    transform: scale(1);
    opacity: 1;
  }
}

/* Legacy stat classes */
.stats-grid { display: flex; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 48px; }
.stat-card { flex: 1; padding: 48px; text-align: center; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 64px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 12px; }
.stat-label { font-size: 16px; color: var(--text-muted); line-height: 1.5; }
.stat-divider { width: 1px; height: 120px; background: var(--border); flex-shrink: 0; }
.chart-container { text-align: center; }
.chart-img { max-height: 320px; margin: 0 auto 12px; border-radius: var(--radius); }
.chart-caption { font-size: 13px; color: var(--text-muted); }

/* ============================================
   LOGOS
   ============================================ */
.logos {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.logos-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.logos { overflow: hidden; }
.logos-row { overflow: hidden; display: flex; width: 100%; }
.logos-track { display: flex; flex-wrap: nowrap; align-items: center; gap: 60px; animation: marquee 22s linear infinite; will-change: transform; flex-shrink: 0; }
.logos-track:hover { animation-play-state: paused; }
.logo-cell { display: flex; align-items: center; justify-content: center; height: 48px; flex-shrink: 0; }
.logo-cell img { width: auto; opacity: 0.55; filter: grayscale(100%); transition: opacity 0.2s; }
.logo-cell img:hover { opacity: 0.85; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   METHOD / SERVICES
   ============================================ */
.method { padding: 96px 0 160px; background: var(--white); }

.service-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 120px;
  align-items: start;
  margin-bottom: 96px;
  padding-bottom: 120px;
  border-bottom: 1px solid var(--border);
}

.service-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-card-wrap { position: relative; z-index: 1; justify-self: end; }

.service-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}

.service-content h3 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-content p { color: var(--text-muted); font-size: 17px; margin-bottom: 20px; }

.service-list { list-style: none; margin-bottom: 24px; }
.service-list li { padding: 6px 0 6px 28px; position: relative; color: var(--text-muted); font-size: 16px; }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--navy); font-weight: 700; }

.service-highlight {
  font-style: italic;
  color: var(--navy) !important;
  font-weight: 500;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.service-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Photo card with overlapping checklist */
.service-card-wrap { padding-bottom: 0; }

.service-photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}

.student-photo {
  display: block;
  max-width: 100%;
  max-height: 460px;
  width: auto;
  border-radius: var(--radius);
}

.student-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(4px);
  padding: 10px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.student-badge strong { font-family: var(--font-serif); font-size: 16px; color: var(--navy); }
.student-badge span { font-size: 13px; color: var(--text-muted); }

.service-checklist-card {
  position: absolute;
  bottom: -60px;
  left: -24px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  z-index: 2;
}

.service-checklist-card--right {
  left: auto;
  right: -24px;
}

.service-checklist-card .service-tag { margin-bottom: 14px; display: block; }
.service-checklist-card .service-list { margin-bottom: 0; }

.service-sentence-card {
  position: absolute;
  bottom: -60px;
  left: -24px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 260px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--navy);
  line-height: 1.55;
}

.service-sentence-card .score-chart img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-top: 12px;
  display: block;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { padding: 77px 0; background: var(--cream); }
.reviews .section-label { color: var(--gold); }
.reviews .section-title { color: var(--navy); }
.reviews .review-card { color: var(--navy); }
.reviews .review-card .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.reviews .review-card blockquote { color: var(--navy); font-style: italic; margin: 0 0 20px; line-height: 1.75; }
.reviews .review-card .reviewer strong { color: var(--navy); }
.reviews .review-card .reviewer span { color: #3d4f63; }

/* Story carousel */
.story-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 48px auto 0;
  padding: 16px 24px 56px;
  max-width: 1120px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.story-carousel::-webkit-scrollbar {
  display: none;
}

.story-card {
  flex: 0 0 330px;
  cursor: pointer;
  transform: scale(0.82);
  opacity: 0.45;
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}

.story-card-active {
  transform: scale(1);
  opacity: 1;
}

.story-card:not(.story-card-active):hover {
  transform: scale(0.88);
  opacity: 0.7;
}
.story-card:first-child:not(.story-card-active):hover {
  transform: scale(0.88) translateX(32px);
  opacity: 0.7;
}
.story-card:last-child:not(.story-card-active):hover {
  transform: scale(0.88) translateX(-32px);
  opacity: 0.7;
}

.story-card-media {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}

.story-card-empty {
  background: #c8ccd8;
}

.story-card-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.story-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.story-card:hover .story-thumb {
  transform: scale(1.03);
}

.story-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.story-card:hover .story-card-play {
  opacity: 0.85;
}

.story-card-play svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.story-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  padding: 32px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  border-radius: 0 0 5px 5px;
  text-align: left;
}

.story-card-title-placeholder {
  color: #8a94a6;
  font-style: italic;
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section { padding: 96px 0; background: url('assets/gradientbg.jpg') center center / cover no-repeat; position: relative; }
.form-section::before { content: ''; position: absolute; inset: 0; background: rgba(25,25,112,0.50); pointer-events: none; }
.form-section .container { position: relative; z-index: 1; }

/* New consultation form */
.cform-wrap { max-width: 680px; margin: 0 auto; text-align: center; }

.cform-title {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.3;
}

.cform-sub { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 40px; line-height: 1.6; text-wrap: balance; }

.cform-step { display: none; text-align: left; }
.cform-step.active { display: block; }

.cform-qlabel {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  margin-top: 20px;
}
.cform-qlabel:first-child { margin-top: 0; }

.cform-toggle { display: flex; gap: 12px; margin-bottom: 28px; }

.cform-toggle-btn {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.35);
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.cform-toggle-btn.active {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.cform-toggle-btn:hover { border-color: var(--white); }

.cform-group { margin-bottom: 16px; }

.cform-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.cform-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(240,242,248,0.95);
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--navy);
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.2s;
}
.cform-input:focus { box-shadow: 0 0 0 3px rgba(201,163,87,0.4); }
.cform-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23374776' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-color: rgba(240,242,248,0.95); cursor: pointer; }

.cform-phone-wrap { display: flex; align-items: center; background: rgba(240,242,248,0.95); border-radius: 10px; margin-bottom: 20px; overflow: hidden; }
.cform-flag { padding: 14px 14px; font-size: 15px; color: var(--navy); white-space: nowrap; font-weight: 600; }
.cform-phone-input { background: transparent; padding-left: 4px; }

.cform-privacy-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin: 20px 0;
  cursor: pointer;
}
.cform-privacy-label a { color: var(--gold); }
.cform-privacy-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }

.cform-submit-btn { width: 100%; padding: 16px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; margin-top: 8px; }

.cform-actions { display: flex; gap: 16px; margin-top: 8px; }
.cform-back-btn {
  flex: 1;
  padding: 16px;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.cform-back-btn:hover { background: rgba(255,255,255,0.1); }
.cform-actions .btn-gold { flex: 1; text-align: center; }

.cform-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.cdot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.cdot.active { background: var(--white); }

.cform-thanks { text-align: center; padding: 40px 0; }
.cform-thanks h3 { font-family: var(--font-sans); font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.cform-thanks p { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.6; }

.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.form-intro h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.form-intro p { font-size: 16px; color: var(--text-muted); margin-bottom: 16px; }

.form-intro ul { list-style: none; }
.form-intro li { padding: 8px 0 8px 28px; position: relative; color: var(--text-muted); font-size: 15px; }
.form-intro li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.consult-form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }

.form-step { display: none; }
.form-step.active { display: block; }

.form-question {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}

.form-radio-group { display: flex; gap: 16px; margin-bottom: 24px; }

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
}
.radio-label:hover { border-color: var(--navy); }
.radio-label input { accent-color: var(--navy); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--navy); }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  cursor: pointer;
}
.checkbox-label a { color: var(--navy); }

.next-btn { width: 100%; margin-top: 8px; text-align: center; }

#step-thanks h3 { font-family: var(--font-serif); font-size: 24px; color: var(--navy); margin-bottom: 16px; }
#step-thanks p { color: var(--text-muted); margin-bottom: 16px; }
#step-thanks ul { list-style: none; }
#step-thanks li { padding: 8px 0 8px 28px; position: relative; color: var(--text-muted); font-size: 14px; }
#step-thanks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }

/* ============================================
   MORE SERVICES
   ============================================ */
.more-services { padding: 96px 0; background: var(--white); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.service-tile {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-tile img { width: 100%; height: 220px; object-fit: cover; }
.service-tile-body { padding: 28px; }
.service-tile h3 { font-family: var(--font-serif); font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.service-tile p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }

.link-arrow { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15px; }
.link-arrow:hover { color: var(--gold); }

/* ============================================
   FAQ
   ============================================ */
.faq { padding: 72px 0; background: var(--cream); }

.faq-list { max-width: 760px; }

.faq-item { border-bottom: 1px solid var(--border); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-item:hover { transform: translateX(6px); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  gap: 16px;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--navy-light); }

.faq-icon { font-size: 22px; font-weight: 300; color: var(--navy); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a { display: none; padding-bottom: 20px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta { padding: 96px 0; background: url('assets/gradientbg2.jpg') center center / cover no-repeat; text-align: center; }
.final-cta .btn { font-weight: 800; }

.final-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #08102a; padding: 72px 0 0; color: rgba(255,255,255,0.65); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; }

.footer-brand .logo-light { color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 14px; margin-bottom: 8px; }
.footer-contact { font-size: 14px; margin-top: 16px !important; line-height: 1.8; }

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }

.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

.footer-legal { font-size: 12px; color: rgba(255,255,255,0.35); max-width: 580px; }

.footer-links { display: flex; gap: 24px; flex-shrink: 0; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner .btn-primary { display: none; }
  .hamburger { display: flex; }
  .service-row { grid-template-columns: 1fr; gap: 32px; }
  .service-content h3 { font-size: 28px; }
  .section-sub { font-size: 15px; }
  .cform-title { font-size: 20px; }
  .cform-sub { font-size: 13px; }
  .form-wrap { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
  .stat-primary { grid-column: 1; grid-row: 1; }
  .stats-right { grid-column: 1; grid-row: 2; }
  .stat-secondary { grid-column: 1; grid-row: 3; }
  .stat-card-v2 { padding: 20px; }
  .stat-num-v2 { font-size: 42px !important; margin-bottom: 8px; }
  .stats-grid { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-card-wrap { max-width: 100%; padding-bottom: 0; }
  .service-checklist-card,
  .service-sentence-card {
    position: static;
    margin-top: 16px;
    left: auto; right: auto; bottom: auto;
    box-shadow: var(--shadow);
    min-width: unset;
    width: 100%;
  }
  .service-row { padding-bottom: 48px; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 38px; }
  .section-title { font-size: 22px; }
  .hero-cta { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .hero { align-items: center; }
  .hero-content { padding-top: 100px; padding-bottom: 60px; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

/* ============================================
   MOBILE: center-align all buttons site-wide
   ============================================ */
@media (max-width: 768px) {
  /* Stack 2-col grad form to single column on mobile so it doesn't overflow */
  #grad-form { grid-template-columns: 1fr !important; }
  #grad-form > [style*="grid-column:span 2"],
  #grad-form > [style*="grid-column: span 2"] { grid-column: auto !important; }
  /* Allow button text to wrap when forced into a narrow grid cell */
  #grad-form .btn { white-space: normal; }
  /* Center button groups in page heros (inline-styled flex divs) */
  .page-hero .container > div[style*="display:flex"],
  .page-hero .container > div[style*="display: flex"] {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  /* Center hero CTAs */
  .hero-cta { justify-content: center; align-items: stretch; flex-direction: column; }
  /* Center buttons in final-cta and form-section */
  .final-cta .container,
  .form-section .container { text-align: center; }
  /* Make hero/CTA buttons full width on mobile */
  .page-hero .btn,
  .hero-cta .btn,
  .final-cta .btn { width: 100%; text-align: center; flex: 1 1 auto; }
  /* Center buttons inside two-col text blocks on mobile */
  .two-col-text > .btn,
  .two-col-text > a.btn { display: block; margin-left: auto; margin-right: auto; width: fit-content; }
}

/* ============================================
   STICKY BOTTOM CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(25, 25, 112, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.12);
  z-index: 98;
  padding: 14px 0;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.sticky-cta.visible { transform: translateY(0); }

.header-inner .btn:hover,
.sticky-cta .btn:hover { transform: none; }

.sticky-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.sticky-cta p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(11px, 2.5vw, 16px);
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .sticky-cta-inner { flex-direction: row; gap: 12px; align-items: center; }
  .sticky-cta .btn { white-space: nowrap; flex-shrink: 0; font-size: 12px; padding: 10px 14px; }
}

/* ============================================
   INNER PAGE SHARED STYLES
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.75;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .section-label { color: var(--gold); }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 19px;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 32px;
}

.page-section { padding: 80px 0; }
.page-section-alt { padding: 80px 0; background: var(--cream); }

/* ============================================
   WHY WHETSTONE SECTION
   ============================================ */
.why-section {
  padding: 96px 0;
  background: #EEEEF4;
  overflow: hidden;
}
.why-fade {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s ease, transform 1s ease;
}
.why-fade.why-visible {
  opacity: 1;
  transform: scale(1);
}
.why-section .section-label { color: var(--text-muted); }
.why-section .section-title { color: var(--navy); }
.why-section .section-sub { color: var(--text-muted); }
.why-section .btn-primary { background: var(--navy); color: var(--white); }
.why-section .btn-primary:hover { background: var(--navy-light); box-shadow: 0 4px 16px rgba(25,25,112,0.2); }

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-card {
  background: #fff;
  border: 1px solid rgba(25,25,112,0.08);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(25,25,112,0.07);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(25,25,112,0.12); }
.why-num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.why-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}
.why-card-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: #3d4f63;
  margin: 0;
}
.why-card-body strong { color: var(--navy); font-weight: 700; }

@media (max-width: 900px) {
  .why-cards { grid-template-columns: 1fr; gap: 16px; }
  .why-card { padding: 28px 24px; }
}
.page-section-dark { padding: 80px 0; background: var(--navy); }
.page-section-dark .section-label { color: var(--gold); }
.page-section-dark .section-title { color: var(--white); }
.page-section-dark p { color: rgba(255,255,255,0.75); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.two-col-text p { color: var(--text-muted); font-size: 17px; margin-bottom: 16px; }

.two-col-img { border-radius: 5px; overflow: hidden; box-shadow: var(--shadow-lg); }
.two-col-img img { width: 100%; height: 420px; object-fit: cover; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 { font-family: var(--font-serif); font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.step-card p { font-size: 15px; color: var(--text-muted); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.team-photo { width: 100%; height: 280px; object-fit: cover; object-position: top; }

.team-body { padding: 24px; }
.team-body h3 { font-family: var(--font-serif); font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; display: block; }
.team-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.success-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.success-card img { width: 100%; height: 200px; object-fit: cover; }
.success-body { padding: 24px; }
.success-body h3 { font-family: var(--font-serif); font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.success-body .admit { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.success-body p { font-size: 14px; color: var(--text-muted); }

.mentor-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.mentor-logos img { height: 28px; opacity: 0.5; filter: grayscale(100%); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-family: var(--font-serif); font-size: 36px; color: var(--navy); margin-bottom: 16px; }
.contact-info p { font-size: 17px; color: var(--text-muted); margin-bottom: 24px; }

.contact-steps { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.contact-step { display: flex; gap: 20px; align-items: flex-start; }
.contact-step-num { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1; flex-shrink: 0; width: 40px; }
.contact-step-text h4 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.contact-step-text p { font-size: 15px; color: var(--text-muted); }

.contact-form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.feature-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); cursor: default; }
.feature-item:hover { transform: translateX(6px); }
.feature-item:hover h4 { color: var(--navy-light); }
.feature-item h4 { transition: color 0.3s ease; }
.feature-icon { color: var(--navy); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.feature-item h4 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.feature-item p { font-size: 14px; color: var(--text-muted); }

.quote-block {
  position: relative;
  padding: 32px 0 0;
  margin: 36px 0 0;
  border-top: 2px solid var(--gold);
}
.quote-block::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  position: absolute;
  top: 20px;
  left: 0;
}
.quote-block blockquote { font-family: var(--font-serif); font-size: 17px; font-style: italic; color: var(--navy); margin: 0 0 12px; padding-left: 40px; line-height: 1.7; }
.quote-block cite { font-size: 13px; color: var(--text-muted); font-style: normal; padding-left: 40px; letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .steps-grid, .team-grid, .success-grid { grid-template-columns: 1fr 1fr; }
  .students-grid { grid-template-columns: 1fr !important; }
  .students-grid .students-img { order: -1; }
}
@media (max-width: 600px) {
  .steps-grid, .team-grid, .success-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 60px; }
}

/* =========================================
   TEAM MEMBER PROFILE PAGES
   ========================================= */

.profile-page {
  background: var(--cream);
  min-height: calc(100vh - 72px);
  padding: 80px 0 120px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: start;
}

.profile-left {}

.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.profile-education {
  margin-top: 32px;
}

.profile-education-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.profile-education-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-education-list li {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.profile-right {}

.profile-name {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 12px;
}

.profile-role {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}

.profile-bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-bio p {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--navy);
  line-height: 1.75;
}

.profile-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

/* Team listing page */
/* ============================================
   TEAM PAGE — GLASS CARD DESIGN
   ============================================ */
.team-glass-section {
  background: var(--white);
  padding: 80px 0 120px;
}

.team-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.team-card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-card-photo-wrap::before {
  display: none;
}

.team-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  z-index: 1;
}

.team-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.team-card-role {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.team-card-edu {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}

.team-card-edu li {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 1px 0;
}

.team-card-btn {
  display: block;
  text-align: center;
  margin-top: auto;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
}

.team-card-btn:hover {
  opacity: 0.85;
}

@media (max-width: 1000px) {
  .profile-grid {
    grid-template-columns: 340px 1fr;
    gap: 56px;
  }
  .profile-name { font-size: 40px; }
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .profile-name { font-size: 36px; }
  .team-listing-grid { grid-template-columns: 1fr 1fr; }
}

/* Essay form — desktop: 2-col inputs */
#essay-form { grid-template-columns: 1fr 1fr; }

@media (max-width: 768px) {
  #form {
    overflow-x: hidden;
    padding: 32px 16px !important;
  }
  #form .container {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  #form .container > div:first-child img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px 8px 0 0;
    display: block;
  }
  #form .container > div:last-child {
    padding: 28px 20px !important;
    box-sizing: border-box;
    border-radius: 0 0 5px 5px !important;
  }
  #essay-form {
    grid-template-columns: 1fr;
  }
  #essay-form input[style*="span 2"] {
    grid-column: span 1;
  }
}

@media (max-width: 500px) {
  .team-listing-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.school-tag {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(25,25,112,0.12);
  color: var(--navy);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: default;
}
.school-tag:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25,25,112,0.1);
  border-color: rgba(25,25,112,0.25);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
