:root {
  --pearl: #f4f7fb;
  --pearl-deep: #e7eef6;
  --silver: #c5d0de;
  --navy: #152238;
  --navy-mid: #1e3354;
  --cyan: #8ecad6;
  --cyan-soft: #b7dde6;
  --lavender: #c9c2d8;
  --ink: #1a2740;
  --muted: #5a6b82;
  --glass: rgba(244, 247, 251, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.55);
  --ring: rgba(142, 202, 214, 0.55);
  --shadow: 0 18px 50px rgba(21, 34, 56, 0.12);
  --radius: 1.25rem;
  --font-display: "Quicksand", sans-serif;
  --font-body: "Nunito", sans-serif;
  --space: clamp(1rem, 2vw, 1.75rem);
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(142, 202, 214, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(201, 194, 216, 0.28), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--pearl) 35%, #e4edf5 100%);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

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

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.9), rgba(244, 247, 251, 0.65));
  border-bottom: 1px solid rgba(197, 208, 222, 0.45);
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-mid);
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--pearl) !important;
  box-shadow: 0 0 0 0 transparent;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--silver);
  border-radius: 0.75rem;
  background: var(--glass-strong);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(244, 247, 251, 0.96);
    border-bottom: 1px solid var(--silver);
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(197, 208, 222, 0.4);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Buttons with moonlight rings */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.55rem;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 249, 252, 0.55), rgba(142, 202, 214, 0.15) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: moonlight-ring 0.9s ease-out forwards;
}

@keyframes moonlight-ring {
  0% {
    width: 0;
    height: 0;
    opacity: 0.9;
  }
  100% {
    width: 280%;
    height: 280%;
    opacity: 0;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, #243a61 55%, #2a4d66 100%);
  color: var(--pearl);
  box-shadow: 0 10px 28px rgba(21, 34, 56, 0.22);
}

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

.btn-ghost {
  background: var(--glass-strong);
  color: var(--navy);
  border: 1px solid rgba(197, 208, 222, 0.8);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--navy);
}

/* Hero — full bleed, brand-forward, single composition */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--pearl);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.72);
  animation: tide-drift 18s ease-in-out infinite alternate;
}

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

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(21, 34, 56, 0.25) 0%, rgba(21, 34, 56, 0.55) 45%, rgba(21, 34, 56, 0.88) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(142, 202, 214, 0.35), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 194, 216, 0.22), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #f7f9fc 10%, var(--cyan-soft) 45%, #e8e0f2 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-rise 1s ease-out both;
}

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

.hero-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  max-width: 28ch;
  margin: 0 0 0.75rem;
  color: var(--pearl);
}

.hero-support {
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: rgba(244, 247, 251, 0.85);
  font-weight: 300;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: brand-rise 1.1s ease-out 0.15s both;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

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

.moon-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(183, 221, 230, 0.18) 40%, rgba(201, 194, 216, 0.12)),
    linear-gradient(180deg, var(--pearl-deep), #dfe8f2);
  border: 1px solid rgba(197, 208, 222, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

.program-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(21, 34, 56, 0.16);
}

.program-row img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.program-body {
  padding: 1.75rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

.program-body h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy);
}

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

.program-body p {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 760px) {
  .program-row {
    grid-template-columns: 1fr;
  }

  .program-row img {
    min-height: 180px;
    max-height: 220px;
  }
}

/* Evidence / quotes */
.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.evidence blockquote {
  margin: 0;
  padding: 1.5rem;
  font-weight: 300;
  color: var(--navy-mid);
}

.evidence cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .evidence {
    grid-template-columns: 1fr;
  }
}

/* Feature strip without SaaS cards aesthetic — flowing text columns */
.studio-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.studio-strip img {
  border-radius: var(--radius);
  min-height: 320px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.studio-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 0 0 1rem;
}

@media (max-width: 800px) {
  .studio-strip {
    grid-template-columns: 1fr;
  }
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.page-hero p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-top: 2.25rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose ul {
  padding-left: 1.2rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-item {
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.blog-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.blog-item-body {
  padding: 1.35rem 1.5rem 1.6rem;
}

.blog-item time {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-item h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.4rem 0 0.6rem;
  color: var(--navy);
}

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  max-height: 420px;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 420px;
}

/* Curriculum timeline */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(142, 202, 214, 0.7);
  margin-left: 0.5rem;
  padding-left: 1.75rem;
}

.timeline-step {
  position: relative;
  padding: 0 0 2rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--lavender));
  box-shadow: 0 0 0 4px rgba(244, 247, 251, 0.9);
}

.timeline-step h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  color: var(--navy);
}

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

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

.team-member img {
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: saturate(0.9);
}

.team-member h3 {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.team-member .role {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

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

/* Forms */
.form-panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 36rem;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

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

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

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

.form-error,
.island-error {
  color: #8a2f45;
  font-size: 0.92rem;
  margin: 0.5rem 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  background: rgba(142, 202, 214, 0.25);
  color: var(--navy);
}

.form-status.is-error {
  background: rgba(180, 80, 100, 0.12);
  color: #8a2f45;
}

/* Service detail */
.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.detail-hero img {
  border-radius: var(--radius);
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.outcome-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.outcome-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.4rem;
  border-bottom: 1px solid rgba(197, 208, 222, 0.5);
}

.outcome-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
}

@media (max-width: 800px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal {
  padding-bottom: 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  color: var(--navy);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(21, 34, 56, 0.04)),
    linear-gradient(160deg, #e8eef6, #dce6f0);
  border-top: 1px solid rgba(197, 208, 222, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.6rem;
}

.footer-text {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

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

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

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(197, 208, 222, 0.5);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-inner {
  pointer-events: auto;
  width: min(720px, 100%);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(183, 221, 230, 0.35)),
    var(--pearl);
  border: 1px solid rgba(197, 208, 222, 0.8);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.cookie-inner p {
  margin: 0;
  color: var(--navy-mid);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

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

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.cta-band {
  padding: 3rem 0 4rem;
}

.cta-band .moon-panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}
