:root {
  --bg-deep: #f6f9ff;
  --bg-surface: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(255, 255, 255, 0.9);
  --border: rgba(13, 34, 70, 0.1);
  --border-glow: rgba(13, 34, 70, 0.18);
  --text-main: #1f2a37;
  --text-muted: #64748b;
  --text-dark: #0d2246;
  
  --accent-cyan: #0d2246;
  --accent-purple: #173f78;
  --accent-blue: #ffffff;
  
  --gradient-neon: linear-gradient(135deg, #0d2246, #174a89);
  --gradient-glow: 0 10px 24px rgba(13, 34, 70, 0.2);
  
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(13, 34, 70, 0.06), transparent 420px),
    var(--bg-deep);
  background-attachment: fixed;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.subpage {
  padding-top: 80px;
}

body.has-lightbox {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Site Header */
.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 5vw, 64px);
  color: #ffffff;
  transition: all 300ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #ffffff;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.site-header.is-scrolled .site-nav a {
  color: var(--text-muted);
}

.site-header.is-scrolled .site-nav a:hover {
  color: var(--text-dark);
  background: rgba(15, 23, 42, 0.04);
}

.site-header.is-scrolled .brand {
  color: var(--text-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 300ms ease;
}

.site-logo-footer {
  height: 64px;
}

.brand:hover .site-logo {
  transform: scale(1.05);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  border-radius: 8px;
  padding: 10px 16px;
  transition: all 200ms ease;
  color: rgba(255, 255, 255, 0.85);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-neon);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
  border-radius: 2px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.site-nav a:hover::after {
  transform: scaleX(0.6);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  position: relative;
  cursor: pointer;
  z-index: 101;
  transition: all 300ms ease;
}

.site-header.is-scrolled .nav-toggle {
  background: var(--bg-deep);
  border-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 11px;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 26px; }

.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.is-open .nav-toggle span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(18px, 5vw, 64px) 44px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  transition: opacity 500ms ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.05);
}

.hero.is-changing .hero-image,
.hero.is-changing .hero-content {
  opacity: 0;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(5, 20, 45, 0.92) 0%, rgba(13, 34, 70, 0.78) 100%);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  max-width: 900px;
  transition: opacity 500ms ease, transform 500ms ease;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: none;
}

.eyebrow::before {
  display: inline-block;
  width: 32px;
  height: 2px;
  margin-right: 14px;
  background: currentColor;
  content: "";
  vertical-align: middle;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
}

h1 {
  max-width: 850px;
  font-size: clamp(42px, 6vw, 72px);
  background: linear-gradient(to right, #fff, #f6d58a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
}

h3 {
  font-size: 24px;
  color: var(--text-main);
}

.hero-content > p:not(.eyebrow) {
  max-width: 720px;
  margin: 32px 0 0;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero .eyebrow {
  color: #ffffff;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 28px;
  font-size: 16px;
  font-weight: 700;
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button-primary {
  color: #fff;
  background: var(--gradient-neon);
  box-shadow: var(--gradient-glow);
  border: none;
}

.button-primary::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  border-radius: calc(var(--radius) - 1px);
  z-index: -1;
}

.button-secondary {
  color: var(--text-main);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary:hover {
  box-shadow: 0 12px 30px rgba(13, 34, 70, 0.28);
  filter: brightness(1.1);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
}

/* Sections & Cards */
.section {
  padding: 120px clamp(18px, 5vw, 64px);
  position: relative;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.stats-strip article {
  padding: 42px clamp(18px, 5vw, 64px);
  background: var(--bg-deep);
  text-align: center;
  transition: all 300ms ease;
}

.stats-strip article:hover {
  background: var(--bg-surface);
  transform: translateY(-4px);
}

.stats-strip strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.stats-strip span {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 64px;
  align-items: center;
}

.intro-section > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1.8;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 56px;
  align-items: start;
  background: #ffffff;
}

.about-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.8;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.values-grid {
  display: grid;
  gap: 16px;
}

.values-grid article,
.info-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-glass);
  padding: 32px;
}

.values-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.values-grid p,
.info-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.boarding-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: stretch;
  color: #ffffff;
  background: linear-gradient(135deg, #061735 0%, #0d2246 56%, #174a89 100%);
}

.boarding-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.22;
  pointer-events: none;
}

.boarding-copy,
.boarding-grid {
  position: relative;
  z-index: 1;
}

.boarding-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.boarding-copy .eyebrow {
  color: #ffffff;
}

.boarding-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 5vw, 52px);
  color: #ffffff;
}

.boarding-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.boarding-grid {
  display: grid;
  gap: 18px;
}

.boarding-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 30px 32px 30px 82px;
}

.boarding-grid article::before {
  position: absolute;
  top: 30px;
  left: 30px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #0d2246;
  background: #ffffff;
  box-shadow: inset 0 0 0 7px #dce9fb, 0 8px 18px rgba(13, 34, 70, 0.16);
  content: "01";
  font-size: 11px;
  font-weight: 800;
}

.boarding-grid article:nth-child(2)::before {
  content: "02";
}

.boarding-grid article:nth-child(3)::before {
  content: "03";
}

.boarding-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-purple);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.boarding-grid h3 {
  margin-bottom: 12px;
  color: var(--text-dark);
}

.boarding-grid p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.admissions-boarding-section {
  background: linear-gradient(135deg, #071a3a 0%, #0d2246 100%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

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

.glass-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-glass);
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: 300px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-glass);
}

.service-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--gradient-neon);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(13, 34, 70, 0.22);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card span {
  display: block;
  width: 54px;
  height: 6px;
  margin-bottom: 38px;
  border-radius: 8px;
  background: var(--gradient-neon);
}

.service-card p,
.project-card p,
.capability-grid p,
.team-card p,
.process-list p {
  color: var(--text-muted);
  line-height: 1.7;
}

.capabilities-section {
  background: #eef4ff;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.capability-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  min-height: 240px;
  padding: 32px;
  transition: all 300ms ease;
}

.capability-grid article:hover {
  background: #ffffff;
  transform: translateY(-4px);
  border-color: var(--accent-purple);
}

.capability-grid h3 {
  margin-bottom: 18px;
}

.work-section {
  background: #ffffff;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  transition: all 400ms ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
  filter: grayscale(20%) brightness(0.9);
}

.project-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  transform: translateY(-8px);
}

.project-card:hover img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.08);
}

.project-card div {
  padding: 28px;
}

.project-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.project-card p {
  margin-top: 12px;
}

.page-heading {
  padding-bottom: 48px;
  background: #ffffff;
}

.page-heading h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 72px);
  background: none;
  color: var(--text-dark);
  -webkit-text-fill-color: currentColor;
}

.page-heading > p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 20px;
}

.admissions-hero .hero-actions,
.form-toolbar .hero-actions {
  margin-top: 32px;
}

.admissions-grid-section,
.calendar-section {
  padding-top: 48px;
  background: #eef4ff;
}

.admissions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.info-panel h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 44px);
}

.highlight-panel {
  background: #10243d;
  color: #ffffff;
}

.highlight-panel h2 {
  color: #ffffff;
}

.highlight-panel p {
  color: #dbeafe;
  margin-bottom: 28px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.2em;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent-cyan);
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 32px;
  align-items: start;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-glass);
  padding: 28px;
}

.event-card time {
  display: grid;
  min-height: 84px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--gradient-neon);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.event-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.event-card h2 {
  font-size: 28px;
}

.event-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.calendar-aside {
  position: sticky;
  top: 110px;
}

.calendar-aside .button {
  margin-top: 28px;
}

.gallery-section {
  background: #eef4ff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}

.gallery-card {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-glass);
  color: inherit;
}

.gallery-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 31, 50, 0.86));
  content: "";
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 4px;
}

.gallery-card div {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
  color: #ffffff;
}

.gallery-card span {
  display: block;
  margin-bottom: 8px;
  color: #f6d58a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gallery-card h3 {
  color: #ffffff;
  font-size: 22px;
}

.gallery-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.gallery-page-section {
  padding-top: 64px;
}

.gallery-page-grid {
  grid-auto-rows: minmax(260px, auto);
}

.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 31, 50, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-panel {
  width: min(1100px, 100%);
  max-height: 92vh;
  display: grid;
  gap: 18px;
}

.lightbox-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #061623;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.lightbox-copy {
  color: #ffffff;
}

.lightbox-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: #ffffff;
}

.lightbox-copy p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(8, 31, 50, 0.72);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 3px solid #f6d58a;
  outline-offset: 3px;
}

.print-sheet {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 80px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-glass);
}

.form-letterhead {
  display: flex;
  gap: 22px;
  align-items: center;
  border-bottom: 2px solid var(--accent-cyan);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.form-letterhead img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.form-letterhead h2 {
  font-size: 30px;
}

.form-letterhead p {
  margin: 8px 0;
  color: var(--text-muted);
}

.form-letterhead strong {
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-section {
  margin-top: 32px;
}

.form-section h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.paper-grid,
.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.paper-grid label,
.signature-grid label {
  min-height: 64px;
  display: flex;
  align-items: start;
  border-bottom: 1px solid #94a3b8;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.application-form {
  display: grid;
  gap: 4px;
}

.application-grid label,
.application-note {
  display: grid;
  gap: 8px;
  min-height: auto;
  border-bottom: 0;
  color: #0f172a;
}

.application-grid input,
.application-grid textarea,
.application-note textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 13px 14px;
  color: #0f172a;
  background: #fff;
  font: inherit;
}

.application-grid textarea,
.application-note textarea {
  min-height: 96px;
  resize: vertical;
}

.application-grid input:focus,
.application-grid textarea:focus,
.application-note textarea:focus {
  border-color: var(--accent-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 34, 70, 0.14);
}

.form-alert {
  margin: 0 0 24px;
  border-radius: 8px;
  padding: 16px 18px;
  font-weight: 700;
}

.form-alert p {
  margin: 0;
}

.form-alert label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: inherit;
  font-size: 13px;
}

.form-alert input {
  width: 100%;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 12px 14px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 600;
}

.form-alert.success {
  border: 1px solid #10b981;
  color: #047857;
  background: #ecfdf5;
}

.form-alert.error {
  border: 1px solid #ef4444;
  color: #b91c1c;
  background: #fef2f2;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.checkbox-grid label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
}

.checkbox-grid span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--text-muted);
}

.blog-card {
  max-width: 400px;
  justify-self: center;
}

.blog-card img {
  aspect-ratio: 16 / 9;
}

.blog-card div {
  padding: 20px;
}

.blog-card h3 {
  font-size: 18px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  margin-top: 8px;
}

.blog-card span {
  color: var(--accent-purple);
  font-size: 11px !important;
  margin-bottom: 6px;
}

.partners-section {
  background: #f8fafc;
}

.auto-slider {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.auto-slider-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: slider-scroll 35s linear infinite;
}

.auto-slider:hover .auto-slider-track {
  animation-play-state: paused;
}

.partner-slider article {
  width: 250px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}

.partner-slider img,
.partner-mark {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--bg-deep);
}

.partner-slider img {
  object-fit: cover;
}

.partner-mark {
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.partner-slider strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.partner-sector {
  color: var(--accent-purple);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

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

.team-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: all 400ms ease;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  transition: transform 500ms ease;
  filter: brightness(0.9) contrast(1.1);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(199, 151, 45, 0.42);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.team-card:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.team-card div {
  padding: 24px;
}

.team-card span {
  display: block;
  margin: 10px 0 16px;
  color: var(--accent-purple);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-list article {
  display: grid;
  grid-template-columns: 80px 280px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: all 300ms ease;
}

.process-list span {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.process-list article:hover {
  transform: translateX(8px);
  border-color: var(--accent-cyan);
  background: #ffffff;
}

.process-list p {
  margin: 0;
  font-size: 18px;
}

.testimonials-section {
  background: #f8fafc;
}

.testimonial-slider .auto-slider-track {
  animation-duration: 40s;
}

.testimonial-slider article {
  width: min(400px, calc(100vw - 36px));
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 36px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.testimonial-slider blockquote {
  margin: 0 0 32px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
  position: relative;
}

.testimonial-slider blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -16px;
  font-size: 64px;
  color: var(--accent-purple);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-slider p {
  margin: 0;
  font-weight: 800;
  color: var(--accent-cyan);
}

.testimonial-slider span {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
  display: block;
}

@keyframes slider-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 64px;
  padding: 120px clamp(18px, 5vw, 64px);
  background: #10243d;
  color: #ffffff;
  position: relative;
}
.contact-section h2 {
  color: #ffffff;
}
.contact-section p.contact-copy {
  color: #94a3b8;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.3;
}

.contact-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 20px;
}

.contact-panel {
  display: grid;
  gap: 20px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 40px;
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
}
.contact-panel p {
  color: #94a3b8 !important;
}

.contact-panel::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: var(--gradient-neon);
  border-radius: 0 4px 4px 0;
}

.contact-panel a {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  transition: text-shadow 300ms ease;
}

.contact-panel a:hover {
  text-shadow: 0 0 16px rgba(246, 213, 138, 0.36);
}

.contact-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.site-footer {
  padding: 80px clamp(18px, 5vw, 64px) 40px;
  color: #94a3b8;
  background: #081f32;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer p {
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand {
  display: grid;
  gap: 24px;
  max-width: 460px;
}

.site-footer h3 {
  margin: 0 0 24px;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-grid > div:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-grid a,
.footer-bottom a {
  color: var(--text-muted);
  transition: all 200ms ease;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 100px 32px 40px;
    border-left: 1px solid var(--border);
    background: #ffffff;
    backdrop-filter: blur(32px);
    box-shadow: -15px 0 40px rgba(0,0,0,0.15);
    transform: translateX(101%);
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    color: var(--text-dark);
    font-size: 20px;
    padding: 16px 0;
    font-weight: 700;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 0;
  }

  .section-heading {
    display: block;
  }

  .process-list article {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .process-list p {
    grid-column: 2;
  }

  .footer-grid,
  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 900px) {
  .stats-strip,
  .service-grid,
  .project-grid,
  .gallery-grid,
  .team-grid,
  .intro-section,
  .about-section,
  .boarding-section,
  .admissions-grid,
  .calendar-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .gallery-card.is-featured {
    grid-column: auto;
    grid-row: auto;
  }
  
  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 85vh;
    padding-top: 110px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.15;
  }

  h2 {
    font-size: 30px;
  }

  .hero-content > p:not(.eyebrow),
  .intro-section > p {
    font-size: 17px;
    margin-top: 20px;
  }

  .stats-strip strong {
    font-size: 36px;
  }

  .section,
  .contact-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .site-logo {
    height: 38px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 300px;
  }

  .event-card,
  .paper-grid,
  .signature-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .print-sheet {
    width: calc(100% - 28px);
    padding: 24px;
  }

  .form-letterhead {
    display: grid;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 380px) {
  h1 { font-size: 34px; }
  .section { padding-left: 14px; padding-right: 14px; }
  .hero { padding-top: 100px; }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
    padding: 0;
  }

  .site-header,
  .form-toolbar,
  .nav-toggle,
  script {
    display: none !important;
  }

  .print-sheet {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .paper-grid,
  .signature-grid,
  .checkbox-grid {
    break-inside: avoid;
  }
}
/* Pere Planque visual system. Presentation only; existing state classes remain owned by site.js. */
@media screen {
  :root {
    --bg-deep: #f3f6f8;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border: #dce3e9;
    --border-glow: #b8c6d2;
    --text-main: #24384a;
    --text-muted: #566777;
    --text-dark: #112e48;
    --accent-cyan: #112e48;
    --accent-purple: #315872;
    --accent-blue: #ffffff;
    --gold: #e7bd68;
    --gold-dark: #785319;
    --gradient-neon: linear-gradient(#112e48, #112e48);
    --gradient-glow: none;
    --shadow-glass: 0 6px 24px rgb(17 46 72 / 4%);
    --radius: 6px;
    --page-inset: max(24px, calc((100vw - 1240px) / 2));
    --scroll-thumb: #8499a9;
    --scroll-track: #edf1f4;
  }
  html { scrollbar-gutter: stable; scroll-padding-top: 110px; scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
  * { scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--scroll-track); }
  ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--scroll-track); border-radius: 8px; }
  ::-webkit-scrollbar-thumb:hover { background: #526e82; }
  ::-webkit-scrollbar-thumb:active { background: var(--text-dark); }
  body { background: var(--bg-deep); font-family: "Inter", "Segoe UI", sans-serif; line-height: 1.7; }
  body.subpage { padding-top: 92px; }
  a, button, input[type="checkbox"], input[type="radio"], select { cursor: pointer; }
  button, input, textarea, select { font: inherit; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #b98228; outline-offset: 4px;
  }
  button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
  ::selection { background: var(--gold); color: var(--text-dark); }
  h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
  h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.08; background: none; color: var(--text-dark); -webkit-text-fill-color: currentColor; }
  h2 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.16; }
  h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.025em; font-weight: 700; }
  .eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: .16em; color: var(--gold-dark); margin-bottom: 18px; }
  .eyebrow::before { width: 22px; margin-right: 10px; }
  .site-header, .site-header.is-scrolled, .site-header.is-open {
    min-height: 92px; padding: 14px var(--page-inset); gap: 24px;
    color: var(--text-dark); background: #fff; border-top: 4px solid var(--text-dark);
    border-bottom: 1px solid var(--border); box-shadow: none; backdrop-filter: none;
  }
  .site-header.is-scrolled { box-shadow: 0 4px 20px rgb(17 46 72 / 6%); }
  .site-logo { height: 56px; max-width: 180px; }
  .brand:hover .site-logo { transform: none; }
  .site-nav { gap: 2px; font-size: 12px; }
  .site-nav a, .site-header.is-scrolled .site-nav a { color: var(--text-dark); padding: 11px 10px; border-radius: 3px; white-space: nowrap; }
  .site-nav a:hover, .site-nav a:focus-visible, .site-header.is-scrolled .site-nav a:hover { color: var(--text-dark); background: #edf2f6; transform: none; }
  .site-nav a:focus-visible { outline: 3px solid #b98228; }
  .site-nav a::after { display: none; }
  .site-nav a[href="admissions.php"] { background: var(--text-dark); color: white; }
  .site-nav a[href="admissions.php"]:hover { background: #315872; color: white; }
  .nav-toggle, .site-header.is-scrolled .nav-toggle { background: #f3f6f8; border: 1px solid var(--border); border-radius: 4px; backdrop-filter: none; }
  .nav-toggle span { background: var(--text-dark); }
  .hero { min-height: 740px; padding: 170px var(--page-inset) 72px; background: var(--text-dark); align-items: center; }
  .hero-image { left: 44%; width: 56%; object-position: center; transform: none; }
  .hero-overlay { background: linear-gradient(90deg, #112e48 0%, #112e48 38%, rgb(17 46 72 / 83%) 51%, rgb(17 46 72 / 12%) 78%); backdrop-filter: none; }
  .hero-content { max-width: 660px; }
  .hero h1 { color: #fff; max-width: 650px; }
  .hero .eyebrow { color: var(--gold); }
  .hero-content > p:not(.eyebrow) { font-size: 17px; line-height: 1.8; max-width: 500px; margin-top: 26px; color: #dce6ee; }
  .hero-actions { margin-top: 30px; gap: 12px; }
  .button { min-height: 48px; padding: 12px 22px; border-radius: 4px; font-size: 13px; line-height: 1.4; font-weight: 700; transition: background 180ms, border-color 180ms, box-shadow 180ms; }
  .button-primary { background: var(--text-dark); box-shadow: none; color: #fff; border: 1px solid transparent; }
  .button-primary::before { display: none; }
  .button:hover { transform: none; }
  .button-primary:hover { background: #315872; filter: none; box-shadow: none; }
  .button-secondary { border: 1px solid #b8c6d2; background: transparent; backdrop-filter: none; color: var(--text-dark); }
  .button-secondary:hover { background: #e8eef2; border-color: var(--text-dark); }
  .hero .button-primary, .boarding-section .button-primary, .contact-section .button-primary { background: var(--gold); color: var(--text-dark); }
  .hero .button-primary:hover, .boarding-section .button-primary:hover, .contact-section .button-primary:hover { background: #f2d39a; }
  .hero .button-secondary, .boarding-section .button-secondary { color: #fff; border-color: #8b9caa; background: transparent; }
  .hero .button-secondary:hover, .boarding-section .button-secondary:hover { background: rgb(255 255 255 / 12%); }
  .hero-proof { margin-top: 34px; gap: 0; }
  .hero-proof span { border: 0; border-radius: 0; padding: 0 16px; background: none; backdrop-filter: none; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #dce6ee; }
  .hero-proof span:first-child { padding-left: 0; }
  .hero-proof span + span { border-left: 1px solid #62778a; }
  .stats-strip { padding: 0 var(--page-inset); gap: 0; background: white; border-bottom: 1px solid var(--border); }
  .stats-strip article { padding: 30px 24px; background: white; text-align: left; border-right: 1px solid var(--border); }
  .stats-strip article:first-child { border-left: 1px solid var(--border); }
  .stats-strip article:hover { transform: none; background: white; }
  .stats-strip strong { color: var(--text-dark); background: none; -webkit-text-fill-color: currentColor; font: 400 38px/1.1 Georgia, serif; margin-bottom: 8px; }
  .stats-strip span { font-size: 10px; letter-spacing: .12em; color: var(--text-muted); }
  .section { padding: 88px var(--page-inset); }
  .intro-section { gap: 80px; }
  .intro-section > p, .about-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.9; }
  .about-section { gap: 80px; background: white; }
  .values-grid { gap: 0; border-top: 1px solid var(--border); }
  .values-grid article { padding: 24px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
  .values-grid span { color: var(--gold-dark); font-size: 11px; }
  .values-grid p { font-size: 14px; }
  .section-heading { margin-bottom: 36px; align-items: start; gap: 40px; }
  .section-heading h2 { max-width: 720px; }
  .section-heading > .eyebrow { padding-top: 10px; flex-shrink: 0; }
  .service-grid { gap: 20px; }
  .service-card, .glass-card, .capability-grid article, .info-panel { border-radius: var(--radius); backdrop-filter: none; box-shadow: none; padding: 30px; }
  .service-card { min-height: 240px; border-top: 3px solid var(--gold); }
  .service-card span { background: var(--text-dark); width: 24px; height: 2px; margin-bottom: 28px; }
  .service-card p, .capability-grid p { font-size: 14px; }
  .service-card:hover, .capability-grid article:hover { transform: none; border-color: #b8c6d2; box-shadow: var(--shadow-glass); }
  .service-card::after, .glass-card::before { display: none; }
  .boarding-section { background: var(--text-dark); gap: 72px; }
  .boarding-section::before { display: none; }
  .boarding-copy .eyebrow { color: var(--gold); }
  .boarding-copy { min-height: auto; }
  .boarding-copy h2 { font-size: clamp(32px, 3.3vw, 48px); }
  .boarding-copy p { font-size: 16px; }
  .boarding-grid { gap: 0; border-top: 1px solid #526a7e; }
  .boarding-grid article { padding: 24px 0; background: transparent; border: 0; border-bottom: 1px solid #526a7e; border-radius: 0; box-shadow: none; }
  .boarding-grid article::before { display: none; }
  .boarding-grid span { color: var(--gold); font-size: 10px; letter-spacing: .12em; }
  .boarding-grid h3 { color: white; }
  .boarding-grid p { color: #dce6ee; font-size: 14px; }
  .capabilities-section, .partners-section, .admissions-grid-section, .calendar-section { background: #eaf0f4; }
  .capability-grid { gap: 18px; }
  .capability-grid article { min-height: 210px; padding: 24px; }
  .project-card, .team-card { background: white; border-radius: var(--radius); backdrop-filter: none; box-shadow: none; }
  .project-card img, .team-card img { filter: none; }
  .project-card:hover, .team-card:hover { transform: none; box-shadow: var(--shadow-glass); border-color: #b8c6d2; }
  .project-card:hover img, .team-card:hover img { transform: none; filter: none; }
  .project-card span, .team-card span { color: var(--gold-dark); font-size: 10px; letter-spacing: .1em; }
  .project-card p, .team-card p { font-size: 14px; }
  .page-heading { background: white; border-bottom: 1px solid var(--border); padding-top: 64px; padding-bottom: 54px; }
  .page-heading h1 { font-size: clamp(40px, 5vw, 62px); }
  .page-heading > p:not(.eyebrow) { font-size: 16px; max-width: 620px; }
  .admissions-grid-section, .calendar-section { padding-top: 48px; }
  .info-panel h2 { font-size: 32px; }
  .highlight-panel { background: var(--text-dark); }
  .highlight-panel .button-secondary { background: white; }
  .event-card { box-shadow: none; border-radius: var(--radius); }
  .event-date { background: #eaf0f4; color: var(--text-dark); }
  .gallery-card { border-radius: var(--radius); }
  .process-list article { padding: 26px; border-radius: var(--radius); background: white; backdrop-filter: none; }
  .process-list article:hover { transform: none; }
  .testimonial-slider article { box-shadow: none; border-radius: var(--radius); background: white; backdrop-filter: none; }
  .contact-section { padding: 80px var(--page-inset); background: var(--text-dark); }
  .contact-section h2, .contact-section .eyebrow { color: white; }
  .contact-section .eyebrow { color: var(--gold); }
  .contact-section p, .contact-details a { color: #dce6ee; }
  .contact-form { padding: 32px; background: white; border: 1px solid var(--border); border-radius: 6px; box-shadow: none; backdrop-filter: none; }
  .contact-form label { color: var(--text-dark); font-size: 12px; }
  .contact-form input, .contact-form textarea, .application-grid input, .application-grid textarea, .application-note textarea { background: #f8fafb; color: var(--text-dark); border: 1px solid #b8c6d2; border-radius: 4px; padding: 12px 14px; }
  .contact-form input:focus, .contact-form textarea:focus { border-color: var(--text-dark); box-shadow: 0 0 0 3px #eaf0f4; }
  .contact-form .button-primary { background: var(--text-dark); color: white; }
  .contact-form .button-primary:hover { background: #315872; }
  .print-sheet { margin-top: 40px; border-radius: 6px; box-shadow: var(--shadow-glass); }
  .form-section { padding-top: 24px; border-top: 1px solid var(--border); }
  .form-section h3 { margin-bottom: 22px; }
  .form-letterhead { border-color: var(--gold); }
  .application-grid label, .application-note { font-size: 12px; }
  .application-grid input { min-height: 48px; }
  .application-note textarea { min-height: 150px; }
  .site-footer { background: #0b2236; border-top: 4px solid var(--gold); padding: 60px var(--page-inset) 24px; }
  .site-footer .brand { color: white; }
  .site-logo-footer { height: 64px; }
  .footer-grid { gap: 48px; }
  .footer-grid h3 { color: white; font-size: 14px; letter-spacing: .02em; }
  .footer-bottom { font-size: 11px; color: #b8c6d2; }
  [data-reveal] { opacity: 1; transform: none; }
  @media (min-width: 1101px) and (max-width: 1250px) {
    .site-header { gap: 14px; }
    .site-nav a { padding-inline: 7px; font-size: 11px; }
  }
  @media (max-width: 1100px) {
    .site-nav { width: min(340px, 90vw); height: 100dvh; overflow-y: auto; align-items: stretch; gap: 4px; padding: 100px 24px 28px; background: white; }
    .site-nav a, .site-header.is-scrolled .site-nav a { padding: 14px 12px; font-size: 15px; min-height: 48px; }
    .site-nav a[href="admissions.php"] { color: white; }
    .section-heading > .eyebrow { margin-bottom: 16px; }
  }
  @media (max-width: 900px) {
    .hero { min-height: 710px; }
    .hero-image { left: 22%; width: 78%; }
    .hero-overlay { background: linear-gradient(90deg, #112e48 0%, rgb(17 46 72 / 94%) 28%, rgb(17 46 72 / 55%) 100%); }
    .hero-content { max-width: 620px; }
    .intro-section, .about-section, .boarding-section { gap: 36px; }
    .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-strip article { padding: 24px 16px; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 560px) {
    :root { --page-inset: 22px; }
    body.subpage { padding-top: 80px; }
    html { scroll-padding-top: 96px; }
    .site-header, .site-header.is-scrolled, .site-header.is-open { min-height: 80px; padding: 10px var(--page-inset); }
    .site-logo { height: 48px; }
    .hero { min-height: 720px; padding: 136px var(--page-inset) 48px; }
    .hero h1 { font-size: clamp(40px, 10.5vw, 54px); }
    .hero-content > p:not(.eyebrow) { font-size: 15px; }
    .hero-actions { gap: 10px; }
    .hero-proof span { font-size: 9px; padding-inline: 12px; }
    .stats-strip { padding-inline: 12px; }
    .stats-strip article { padding: 24px 10px; }
    .stats-strip strong { font-size: 28px; }
    .stats-strip span { font-size: 8px; letter-spacing: .05em; }
    .section { padding: 56px var(--page-inset); }
    .section-heading { margin-bottom: 28px; }
    h2 { font-size: 32px; }
    .service-card, .info-panel { padding: 24px; }
    .service-card { min-height: auto; }
    .team-grid { gap: 12px; }
    .team-card div { padding: 16px; }
    .team-card h3 { font-size: 17px; }
    .process-list article { gap: 16px; padding: 22px; grid-template-columns: 36px minmax(0, 1fr); }
    .contact-section { padding: 56px var(--page-inset); gap: 32px; }
    .contact-form { padding: 24px; }
    .print-sheet { padding: 24px 20px; width: calc(100% - 28px); margin-top: 24px; }
    .paper-grid, .signature-grid, .checkbox-grid { grid-template-columns: 1fr; }
    .form-letterhead h2 { font-size: 26px; }
    .button { width: 100%; min-height: 48px; }
    .site-footer { padding-top: 44px; }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-reveal], .hero.is-changing .hero-content, .hero.is-changing .hero-image { opacity: 1; transform: none; }
    .auto-slider-track { animation: none; flex-wrap: wrap; width: auto; }
    .auto-slider { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  }
  @media (forced-colors: active) {
    * { scrollbar-color: auto; }
    .button, .site-nav a, .service-card { border: 1px solid ButtonText; }
  }
}

/* Existing contact markup has inline colors; these visual overrides keep it on the shared light surface. */
@media screen {
  .contact-panel { background: #fff; border: 1px solid var(--border); box-shadow: none; padding: 32px; color: var(--text-main); }
  .contact-panel::after { display: none; }
  .contact-panel input:not([type="hidden"]), .contact-panel textarea {
    background: #f8fafb !important; color: var(--text-dark) !important;
    border: 1px solid #b8c6d2 !important; border-radius: 4px !important;
    font-size: 14px; min-height: 48px;
  }
  .contact-panel input::placeholder, .contact-panel textarea::placeholder { color: #566777; opacity: 1; }
  .contact-panel input:focus-visible, .contact-panel textarea:focus-visible { outline: 3px solid #b98228; outline-offset: 2px; }
  .contact-panel .button-primary { background: var(--text-dark); color: #fff; }
  .contact-panel .button-primary:hover { background: #315872; }
  .contact-panel a { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
  .contact-panel a:hover { text-shadow: none; text-decoration: underline; }
  .contact-panel p { color: var(--text-muted) !important; }
  .contact-section p.contact-copy { color: #dce6ee; font-size: 16px; }
  .footer-grid a, .footer-bottom a, .site-footer { color: #b8c6d2; }
  .footer-grid a:hover, .footer-bottom a:hover { color: #e7bd68; transform: none; }
  .event-card span { color: var(--gold-dark); }
  @media (max-width: 560px) { .contact-panel { padding: 24px; } }
}
@media screen and (max-width: 560px) {
  .process-list span { font-size: 28px; line-height: 1.25; letter-spacing: -.04em; white-space: nowrap; }
}
@media screen {
  .site-header .site-nav a[href="admissions.php"],
  .site-header.is-scrolled .site-nav a[href="admissions.php"] { color: #fff; background: var(--text-dark); }
  .site-header .site-nav a[href="admissions.php"]:hover,
  .site-header.is-scrolled .site-nav a[href="admissions.php"]:hover { color: #fff; background: #315872; }
  .contact-panel > div[style*="#10b981"] { color: #047857 !important; background: #ecfdf5 !important; }
  .contact-panel > div[style*="#ef4444"] { color: #b91c1c !important; background: #fef2f2 !important; }
}

/* Makeover refinement: separate editorial copy from school artwork. */
@media screen {
  .hero { min-height: 750px; padding-top: 164px; padding-bottom: 76px; }
  .hero-content { width: 48%; max-width: 590px; }
  .hero h1 { font-size: clamp(44px, 4.35vw, 64px); }
  .hero-content > p:not(.eyebrow) { font-size: 16px; }
  .hero-image {
    inset: 154px var(--page-inset) 68px auto;
    width: calc((100% - 2 * var(--page-inset)) * .46);
    height: calc(100% - 222px); object-fit: contain;
    background: #eaf0f4; border: 1px solid #526a7e; border-radius: 8px;
  }
  .hero-overlay { display: none; }
  .hero-proof span { font-size: 11px; }
  .stats-strip span { font-size: 12px; letter-spacing: .06em; }
  .section-heading { align-items: center; }
  .section-heading > .eyebrow { padding-top: 0; max-width: 250px; white-space: normal; }
  .capability-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .team-card { display: grid; grid-template-columns: minmax(140px, .7fr) 1fr; align-items: stretch; }
  .team-card img { height: 100%; min-height: 270px; aspect-ratio: auto; }
  .team-card div { padding: 28px; align-self: center; }
  .team-card span { font-size: 11px; }
  .calendar-aside .eyebrow { margin-bottom: 14px; }
  .event-card time { font-size: 18px; }
  .form-toolbar { display: grid; grid-template-columns: 1fr auto; column-gap: 48px; align-items: center; }
  .form-toolbar .eyebrow, .form-toolbar h1, .form-toolbar > p { grid-column: 1; }
  .form-toolbar .hero-actions { grid-column: 2; grid-row: 1 / 4; margin-top: 0; max-width: 260px; }
  .form-toolbar .hero-actions .button { width: 100%; }
  .form-page .print-sheet { max-width: 980px; border-top: 4px solid var(--gold); }
  .form-section h3 { color: var(--text-dark); }
  .application-grid input, .application-note textarea { font-size: 16px; }
  .application-actions { border-top: 1px solid var(--border); padding-top: 24px; }
  .footer-brand { align-content: start; gap: 20px; }
  .footer-grid { grid-template-columns: minmax(240px, 1.15fr) minmax(260px, 1fr) minmax(140px, .75fr) minmax(200px, 1fr); gap: 36px; padding-bottom: 40px; }
  .footer-grid > div:nth-child(2) { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 0; }
  .footer-grid > div:nth-child(2) h3 { grid-column: 1 / -1; }
  .footer-grid a:not(.brand), .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
  .footer-grid h3 { margin-bottom: 14px; font-size: 11px; }
  .footer-brand p { font-size: 13px; line-height: 1.85; }
  .footer-bottom { padding-top: 20px; }
  @media (min-width: 1400px) { .site-nav { font-size: 13px; gap: 4px; } }
  @media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
    .hero-content { width: 49%; }
    .hero h1 { font-size: 48px; }
    .team-card { grid-template-columns: 1fr; }
    .team-card img { height: 280px; min-height: 0; object-position: center 30%; }
    .form-toolbar { display: block; }
    .form-toolbar .hero-actions { margin-top: 28px; max-width: none; }
    .form-toolbar .hero-actions .button { width: auto; }
  }
  @media (max-width: 760px) {
    .hero { display: flex; flex-direction: column; align-items: stretch; gap: 36px; padding-top: 132px; padding-bottom: 36px; min-height: auto; }
    .hero-content { width: 100%; max-width: 620px; }
    .hero h1 { font-size: clamp(40px, 7.5vw, 54px); }
    .hero-image { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; order: 2; border-color: #526a7e; }
    .hero-content > p:not(.eyebrow) { max-width: 580px; }
    .hero-proof { margin-top: 28px; }
  }
  @media (max-width: 560px) {
    .hero h1 { font-size: clamp(39px, 10vw, 52px); }
    .hero-content > p:not(.eyebrow) { font-size: 16px; }
    .hero-proof span { font-size: 10px; }
    .stats-strip { grid-template-columns: 1fr; padding-inline: 22px; }
    .stats-strip article, .stats-strip article:first-child { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; border-bottom: 1px solid var(--border); padding: 18px 0; }
    .stats-strip article:last-child { border-bottom: 0; }
    .stats-strip strong { font-size: 32px; margin: 0; }
    .stats-strip span { font-size: 11px; text-align: right; }
    .team-grid { grid-template-columns: 1fr; gap: 20px; }
    .team-card { grid-template-columns: minmax(100px, .65fr) 1fr; }
    .team-card img { height: 100%; min-height: 220px; }
    .team-card div { padding: 20px; }
    .team-card h3 { font-size: 18px; }
    .team-card p { font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:not(.footer-brand) { gap: 0; }
    .footer-grid h3 { margin-bottom: 12px; }
    .form-toolbar .hero-actions .button { width: 100%; }
  }
}
