:root {
  --brand: #18509a;
  --brand-deep: #0d3a72;
  --brand-soft: #e8f0fa;
  --sky: #74acdf;
  --ink: #132033;
  --muted: #5a6b7d;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: rgba(19, 32, 51, 0.12);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(13, 58, 114, 0.12);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.lead,
.section-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  margin: 0;
  line-height: 1.65;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: var(--header-h);
  height: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(19, 32, 51, 0.06);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:not(.nav-cta):hover {
  color: var(--brand);
}

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--brand-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.25rem 0 1.1rem;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
  margin-top: 0.35rem;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 0.9rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-soft);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 58, 0.55) 0%, rgba(8, 28, 58, 0.25) 32%, rgba(8, 28, 58, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 28, 58, 0.82) 0%, rgba(8, 28, 58, 0.45) 38%, rgba(8, 28, 58, 0.12) 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 0 5rem;
}

.hero-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.4rem, 6.8vw, 5rem);
  margin: 0 0 0.65rem;
  letter-spacing: 0.02em;
  line-height: 1.02;
  animation: rise 0.9s ease both;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero-title {
  color: #fff;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  max-width: 18ch;
  margin-bottom: 1rem;
  animation: rise 0.9s ease 0.12s both;
  font-weight: 400;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
}

.hero-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  max-width: 28ch;
  margin: 0 0 1.75rem;
  color: #fff;
  line-height: 1.45;
  animation: rise 0.9s ease 0.22s both;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.32s both;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.hero .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.hero .btn-primary:hover {
  background: var(--sky);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: pulse 2.4s ease-in-out infinite;
}

/* Purpose */
.purpose {
  background:
    radial-gradient(ellipse at top, rgba(116, 172, 223, 0.18), transparent 55%),
    linear-gradient(180deg, #eef4fb, var(--paper));
  text-align: center;
}

.purpose h2 {
  margin-bottom: 1.1rem;
}

.audience {
  margin: 1.5rem auto 0;
  max-width: 38rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(24, 80, 154, 0.18);
}

.audience strong {
  color: var(--brand-deep);
}

/* Benefits */
.benefits {
  background: var(--white);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  column-gap: 2.5rem;
}

.benefit {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.benefit h3 {
  margin-bottom: 0.45rem;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Program */
.program {
  background: linear-gradient(180deg, var(--brand-soft), #f4f8fc);
}

.encounters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.encounter {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(24, 80, 154, 0.15);
  align-items: start;
}

.encounter:last-child {
  border-bottom: 1px solid rgba(24, 80, 154, 0.15);
}

.enc-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brand);
  line-height: 1.2;
  padding-top: 0.15rem;
}

.encounter h3 {
  margin-bottom: 0.3rem;
}

.encounter p {
  margin: 0;
  color: var(--muted);
}

/* Visual band */
.visual-band {
  position: relative;
  min-height: min(58vh, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 58, 114, 0.58), rgba(8, 28, 58, 0.8));
}

.visual-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(780px, calc(100% - 2.5rem));
  text-align: center;
  color: #fff;
  padding: 2rem 0;
}

.visual-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.6vw, 2.45rem);
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}

/* Faculty */
.faculty {
  background: var(--white);
}

.flag {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 18px;
  border: 1px solid rgba(19, 32, 51, 0.15);
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}

.flag-stripe {
  display: block;
  height: 6px;
}

.flag-stripe.sky {
  background: var(--sky);
}

.flag-stripe.white {
  background: #fff;
}

.flag-sun {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
}

.flag-sun::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f6b40e;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.faculty-card h3 {
  margin-top: 1.1rem;
}

.faculty-card .role {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.faculty-card p:last-child {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.faculty-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-soft);
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-flag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.flag-mini {
  display: inline-grid;
  width: 34px;
  height: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.flag-mini i {
  display: block;
  height: 7.33px;
}

.flag-mini i:nth-child(1),
.flag-mini i:nth-child(3) {
  background: var(--sky);
}

.flag-mini i:nth-child(2) {
  background: #fff;
  position: relative;
}

.flag-mini i:nth-child(2)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f6b40e;
  transform: translate(-50%, -50%);
}

/* Details / pricing */
.details {
  background:
    radial-gradient(circle at 15% 20%, rgba(116, 172, 223, 0.22), transparent 40%),
    linear-gradient(180deg, #eef3f9, #f7f9fc);
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  align-items: start;
}

.detail-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.schedule {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.schedule li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
}

.schedule li:last-child {
  border-bottom: 1px solid var(--line);
}

.schedule span {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--brand-deep);
  font-weight: 600;
}

.modality {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.pricing {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand);
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  margin: 0.4rem 0 0.75rem;
}

.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.1rem;
}

.price-now {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  color: var(--brand-deep);
  line-height: 1;
}

.price-note {
  color: var(--muted);
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pricing .btn + .btn {
  margin-top: 0.7rem;
}

/* Enroll */
.enroll {
  background: var(--white);
}

.enroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.enroll-points {
  margin: 1.5rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.enroll-points li {
  margin-bottom: 0.45rem;
}

.contact-line {
  margin: 0;
  color: var(--muted);
}

.enroll-form {
  background: linear-gradient(180deg, #f4f8fc, #eef4fb);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(24, 80, 154, 0.12);
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.form-row label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(19, 32, 51, 0.18);
  background: #fff;
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  min-height: 3rem;
  height: auto;
  overflow: visible;
}

.form-row select {
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  padding-right: 2.4rem;
  line-height: 1.45;
  /* Prevent theme/browser clipping of option text */
  text-overflow: clip;
  white-space: nowrap;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(24, 80, 154, 0.35);
  border-color: var(--brand);
}

.form-note,
.form-success {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-success {
  color: var(--brand-deep);
  font-weight: 600;
}

.form-row.is-invalid input,
.form-row.is-invalid select,
.form-row.is-invalid textarea {
  border-color: #b42318;
}

/* Footer */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 420px;
}

.footer-brand img {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 0.35rem;
}

.footer-brand p,
.footer-meta p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-meta {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-meta a {
  color: #fff;
  word-break: break-word;
}

.social-icons {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .benefit-grid,
  .faculty-grid,
  .details-grid,
  .enroll-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 4.25rem;
  }

  .hero-title,
  .hero-motto {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container,
  .container.narrow,
  .header-inner,
  .hero-content,
  .mobile-nav {
    width: calc(100% - 1.5rem);
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .encounter {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .enc-num {
    font-size: 1.15rem;
  }

  .schedule li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .visual-band {
    min-height: 42vh;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-brand,
  .hero-title,
  .hero-motto,
  .hero-actions,
  .hero-scroll,
  .reveal,
  .menu-toggle span {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
