:root {
  --pearl: #f5f7fb;
  --pearl-deep: #e8eef5;
  --silver: #c5cad3;
  --navy: #1a2744;
  --navy-soft: #243556;
  --cyan: #7ec8d4;
  --cyan-soft: #a8dde6;
  --lavender: #c9b8d9;
  --lavender-soft: #e4d8ef;
  --ink: #1a2744;
  --muted: #5a6578;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(247, 248, 250, 0.82);
  --glow: rgba(126, 200, 212, 0.45);
  --ring: rgba(201, 184, 217, 0.55);
  --radius: 1.25rem;
  --font-display: "Quicksand", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --shadow-soft: 0 18px 50px rgba(26, 39, 68, 0.08);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 85% -10%, rgba(201, 184, 217, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 20%, rgba(126, 200, 212, 0.22), transparent 50%),
    linear-gradient(180deg, var(--pearl) 0%, var(--pearl-deep) 42%, #dfe8f2 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

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

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

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; }
h3 { font-size: 1.2rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--navy);
  color: var(--pearl);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 999px;
}

.skip-link:focus {
  left: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 251, 0.72);
  border-bottom: 1px solid rgba(197, 202, 211, 0.45);
}

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

.brand {
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.brand--footer {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

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

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

.nav-toggle {
  display: none;
  border: 1px solid var(--silver);
  background: var(--surface-strong);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

/* Buttons — liquid moonlight rings */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--pearl);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.18);
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 248, 250, 0.85) 0%, rgba(126, 200, 212, 0.35) 45%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--navy-soft);
  color: var(--pearl);
}

.btn:hover::before {
  animation: moonlight-ring 1.1s ease-out;
}

.btn:hover::after {
  animation: moonlight-ring 1.1s ease-out 0.18s;
}

.btn:active::before {
  animation: moonlight-ring 0.7s ease-out;
}

@keyframes moonlight-ring {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.9; }
  70% { opacity: 0.35; }
  100% { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border: 1px solid rgba(26, 39, 68, 0.28);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(126, 200, 212, 0.2);
  color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* Hero — full-bleed, brand-first, asymmetric copy dock */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: tide-drift 22s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(26, 39, 68, 0.72) 0%, rgba(26, 39, 68, 0.35) 48%, rgba(126, 200, 212, 0.18) 100%),
    radial-gradient(circle at 78% 18%, rgba(247, 248, 250, 0.35), transparent 42%);
  animation: veil-pulse 14s ease-in-out infinite alternate;
}

.hero__dock {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  color: var(--pearl);
  max-width: 34rem;
  margin-right: auto;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--pearl);
  text-shadow: 0 8px 40px rgba(26, 39, 68, 0.35);
  animation: rise-in 0.9s ease both;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  margin: 0 0 0.65rem;
  color: var(--cyan-soft);
  animation: rise-in 0.9s ease 0.12s both;
}

.hero__support {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(245, 247, 251, 0.9);
  max-width: 28rem;
  animation: rise-in 0.9s ease 0.22s both;
}

.hero .btn {
  animation: rise-in 0.9s ease 0.32s both;
}

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

@keyframes tide-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

@keyframes veil-pulse {
  from { opacity: 1; }
  to { opacity: 0.88; }
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section--stone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(232, 238, 245, 0.55));
  border-block: 1px solid rgba(197, 202, 211, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-soft);
}

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

/* Primary service band — not cards */
.primary {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.primary__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-soft);
}

.primary__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.primary__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(126, 200, 212, 0.25));
  pointer-events: none;
}

.offer-stack {
  display: grid;
  gap: 0;
}

.offer-stack article {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(197, 202, 211, 0.55);
}

.offer-stack article:first-child {
  border-top: 1px solid rgba(197, 202, 211, 0.55);
}

.offer-stack img {
  width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.offer-stack h3 {
  margin: 0.2rem 0 0.35rem;
}

.offer-stack h3 a {
  text-decoration: none;
}

.offer-stack .price {
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Quotes — open layout, not cards */
.quotes {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.quotes blockquote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--cyan);
  max-width: 36rem;
}

.quotes p {
  font-size: 1.12rem;
  font-weight: 300;
  margin: 0 0 0.75rem;
}

.quotes footer {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Journal / blog preview */
.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.journal article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.9rem;
  margin-bottom: 0.85rem;
}

.journal h3 {
  margin: 0.35rem 0;
}

.journal h3 a {
  text-decoration: none;
}

/* Curriculum path */
.path {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  counter-reset: path;
}

.path__step {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(197, 202, 211, 0.55);
  position: relative;
}

.path__step:last-child {
  border-bottom: 1px solid rgba(197, 202, 211, 0.55);
}

.path__day {
  font-family: var(--font-display);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Moonstone surface panels for forms/legal */
.stone {
  background: var(--surface-strong);
  border: 1px solid rgba(197, 202, 211, 0.55);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.stone::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(126, 200, 212, 0.18), transparent 65%);
  pointer-events: none;
  animation: tide-glow 10s ease-in-out infinite alternate;
}

@keyframes tide-glow {
  from { transform: translateX(0); opacity: 0.7; }
  to { transform: translateX(-8%); opacity: 1; }
}

.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.25rem 0 1.75rem;
  box-shadow: var(--shadow-soft);
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
}

.service-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.service-list article {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(197, 202, 211, 0.5);
}

.service-list img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.9rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

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

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(197, 202, 211, 0.9);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

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

.field-error {
  color: #8b3a4a;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-status {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.form-status[data-state="ok"] {
  background: rgba(126, 200, 212, 0.25);
  color: var(--navy);
}

.form-status[data-state="err"] {
  background: rgba(201, 184, 217, 0.4);
  color: #5a2a45;
}

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

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(26, 39, 68, 0.06)),
    rgba(232, 238, 245, 0.65);
  border-top: 1px solid rgba(197, 202, 211, 0.5);
}

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

.footer-label {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

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

.footer-links a {
  text-decoration: none;
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 202, 211, 0.45);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(26, 39, 68, 0.92);
  color: var(--pearl);
  padding: 1rem 0;
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(126, 200, 212, 0.35);
  box-shadow: 0 -12px 40px rgba(26, 39, 68, 0.25);
}

.cookie-banner a {
  color: var(--cyan-soft);
}

.cookie-banner__inner {
  display: grid;
  gap: 0.85rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-banner .btn--ghost {
  --btn-fg: var(--pearl);
  border-color: rgba(245, 247, 251, 0.35);
  background: transparent;
}

.cookie-banner .btn--ghost:hover {
  background: rgba(126, 200, 212, 0.2);
  color: var(--pearl);
}

/* 404 */
.page-404 {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.page-404 .brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
  color: var(--navy);
}

/* Legal */
.legal h2 {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .primary,
  .service-list article,
  .contact-layout,
  .site-footer__grid,
  .journal {
    grid-template-columns: 1fr;
  }

  .offer-stack article {
    grid-template-columns: 100px 1fr;
  }

  .offer-stack .price {
    grid-column: 2;
  }

  .path__step {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

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

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0 0.75rem;
  }

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

  .site-header__inner {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 78vh;
  }

  .offer-stack img {
    width: 100px;
    height: 72px;
  }
}
