:root {
  --pearl: #f1f5f9;
  --pearl-2: #e4ebf2;
  --silver: #c5ced8;
  --cyan: #7ec8c4;
  --cyan-deep: #4a9e9a;
  --lavender: #b8a9c9;
  --navy: #0f1c33;
  --navy-mid: #152844;
  --ink: #121c2c;
  --muted: #4d5d73;
  --line: rgba(21, 40, 68, 0.16);
  --glass: rgba(241, 245, 249, 0.78);
  --shadow: 0 20px 48px rgba(15, 28, 51, 0.14);
  --display: "Fraunces", "Palatino Linotype", serif;
  --text: "Onest", "Segoe UI", sans-serif;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(126, 200, 196, 0.35), transparent 55%),
    radial-gradient(760px 440px at 96% 12%, rgba(184, 169, 201, 0.28), transparent 50%),
    linear-gradient(168deg, var(--pearl) 0%, var(--pearl-2) 46%, #d5e0ea 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(132deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%),
    radial-gradient(circle at 72% 78%, rgba(126, 200, 196, 0.12), transparent 40%);
  animation: tide-sheen 26s ease-in-out infinite alternate;
}

@keyframes tide-sheen {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.5%, 1.2%, 0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes moon-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

main,
.site-header,
.site-footer,
.cookie {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--cyan-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
.brand {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.55rem);
  margin: 0.15em 0 0.45em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--pearl);
  padding: 0.5rem 0.8rem;
  z-index: 40;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.96), rgba(241, 245, 249, 0.82));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

.brand--footer {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle__bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--cyan-deep);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy));
  color: var(--pearl);
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 28, 51, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  color: var(--pearl);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 28, 51, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.45);
}

.btn--light {
  background: linear-gradient(145deg, #eef6f6, #d7ecea);
  color: var(--navy);
}

.btn-ring {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(126, 200, 196, 0.55) 0%, rgba(184, 169, 201, 0.2) 45%, transparent 70%);
  animation: ring-expand 0.7s ease-out forwards;
}

@keyframes ring-expand {
  to {
    transform: scale(18);
    opacity: 0;
  }
}

/* Full-bleed hero — brand dominant, one composition */
.hero-bleed {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--pearl);
  overflow: hidden;
  isolation: isolate;
}

.hero-bleed__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bleed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rise-in 1.1s ease both;
}

.hero-bleed__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(15, 28, 51, 0.88) 0%, rgba(15, 28, 51, 0.55) 42%, rgba(15, 28, 51, 0.28) 100%),
    radial-gradient(circle at 78% 22%, rgba(126, 200, 196, 0.35), transparent 42%);
}

.hero-bleed__moon {
  position: absolute;
  top: 12%;
  right: 14%;
  width: clamp(70px, 12vw, 120px);
  height: clamp(70px, 12vw, 120px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f7fbff, #c5ced8 55%, transparent 72%);
  box-shadow: 0 0 60px rgba(126, 200, 196, 0.35);
  animation: moon-pulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.hero-bleed__content {
  padding: clamp(4.5rem, 12vh, 7rem) 0 3.5rem;
  max-width: 34rem;
  animation: rise-in 0.9s 0.15s ease both;
}

.hero-bleed .brand-mark {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 0.65rem;
  color: #f7fbff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-bleed__line {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.92);
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--tight {
  padding-top: 2.5rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

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

.primary-offer {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.primary-offer__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.primary-offer__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(15, 28, 51, 0.35));
  pointer-events: none;
}

.primary-offer__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.program-rail {
  display: grid;
  gap: 1.25rem;
}

.program-row {
  display: grid;
  grid-template-columns: minmax(0, 180px) 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

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

.program-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.program-row h3 {
  margin-bottom: 0.25rem;
}

.program-row h3 a {
  text-decoration: none;
  color: var(--navy);
}

.program-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.voice blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--navy);
}

.voice cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(229, 238, 244, 0.72));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  box-shadow: var(--shadow);
}

.stack > * + * {
  margin-top: 1rem;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.page-hero p {
  max-width: 38rem;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.service-tile {
  display: grid;
  gap: 0.85rem;
}

.service-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-tile h2 {
  font-size: 1.45rem;
  margin: 0;
}

.service-tile h2 a {
  text-decoration: none;
  color: var(--navy);
}

.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.blog-item img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-item h2 {
  font-size: 1.4rem;
  margin: 0.2rem 0 0.45rem;
}

.blog-item h2 a {
  text-decoration: none;
  color: var(--navy);
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
}

.prose p + p {
  margin-top: 1em;
}

.curriculum-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.curriculum-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.curriculum-list .week {
  font-weight: 700;
  color: var(--cyan-deep);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  color: var(--ink);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(126, 200, 196, 0.55);
  outline-offset: 1px;
}

.form-inline-error,
.form-status.is-error {
  color: #8a2f3a;
  font-size: 0.92rem;
}

.form-status.is-success {
  color: var(--cyan-deep);
  font-size: 0.95rem;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.legal h2 {
  margin-top: 1.75rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(21, 40, 68, 0.06));
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.65rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--navy);
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.92), rgba(228, 235, 242, 0.97));
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(15, 28, 51, 0.12);
  backdrop-filter: blur(12px);
}

.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.cookie__inner p {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
}

.error-page {
  min-height: 55vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

@media (max-width: 900px) {
  .primary-offer,
  .grid-2,
  .grid-services,
  .contact-split,
  .voices,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .program-row {
    grid-template-columns: 120px 1fr;
  }

  .program-row .btn {
    grid-column: 2;
    justify-self: start;
  }

  .blog-item {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(241, 245, 249, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 0.65rem;
  }

  .curriculum-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero-bleed__moon {
    right: 8%;
    top: 8%;
  }
}
