:root {
  --ink: #14243a;
  --muted: #607286;
  --paper: #f7fbff;
  --surface: #ffffff;
  --blue: #b9e5ff;
  --blue-soft: #e7f6ff;
  --pink: #ffd8e7;
  --pink-soft: #fff2f7;
  --accent: #d94b78;
  --primary: #245f8f;
  --line: rgba(20, 36, 58, 0.12);
  --shadow: 0 18px 48px rgba(20, 36, 58, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 216, 231, 0.55), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(185, 229, 255, 0.68), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 70%);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  opacity: 0;
  animation: pageFade 420ms ease forwards;
}

a {
  color: inherit;
}

body::before,
body::after {
  position: fixed;
  inset: 0 -18vw;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0;
  transform: translateX(-145%) skewX(-12deg);
}

body::before {
  background: var(--pink);
  transition: opacity 80ms ease, transform 360ms cubic-bezier(0.65, 0, 0.35, 1);
}

body::after {
  background: var(--blue);
  transition: opacity 80ms ease, transform 360ms cubic-bezier(0.65, 0, 0.35, 1) 80ms;
}

body.page-leaving::before,
body.page-leaving::after {
  opacity: 1;
  transform: translateX(0) skewX(-12deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--pink);
  font-size: 13px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

nav a {
  position: relative;
  text-decoration: none;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

nav a:hover::after,
nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(36, 95, 143, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 95, 143, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(255, 216, 231, 0.7), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(185, 229, 255, 0.82), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 246, 255, 0.92));
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  min-height: calc(100vh - 77px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
  padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.page-hero {
  padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 78px);
}

.hero-copy,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.motion-icons {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.motion-icons::before,
.motion-icons::after {
  position: absolute;
  border-top: 3px dashed rgba(36, 95, 143, 0.24);
  border-radius: 50%;
  content: "";
}

.motion-icons::before {
  top: 20%;
  right: 8%;
  width: min(430px, 40vw);
  height: 150px;
  transform: rotate(-10deg);
}

.motion-icons::after {
  right: 11%;
  bottom: 17%;
  width: min(380px, 38vw);
  height: 130px;
  transform: rotate(12deg);
}

.float-icon {
  position: absolute;
  width: clamp(70px, 8vw, 104px);
  height: clamp(48px, 5.7vw, 70px);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 36, 58, 0.16);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(20, 36, 58, 0.09);
  animation: drift 6s ease-in-out infinite;
}

.float-icon::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(32deg, transparent 49%, currentColor 50% 51%, transparent 52%),
    linear-gradient(148deg, transparent 49%, currentColor 50% 51%, transparent 52%);
  background-position: 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 50% 100%;
  content: "";
  opacity: 0.5;
}

.float-icon::after {
  position: absolute;
  top: 66%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--pink);
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.float-icon.block-a {
  top: 18%;
  right: 7%;
  transform: rotate(-9deg);
}

.float-icon.block-b {
  right: 39%;
  bottom: 24%;
  color: var(--accent);
  background: rgba(255, 242, 247, 0.92);
  animation-delay: -1.2s;
  transform: rotate(8deg);
}

.float-icon.block-c {
  top: 28%;
  right: 39%;
  background: rgba(231, 246, 255, 0.92);
  animation-delay: -2.4s;
  transform: rotate(12deg);
}

.float-icon.block-d {
  right: 9%;
  bottom: 13%;
  animation-delay: -3.2s;
  transform: rotate(-16deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(20, 36, 58, 0.14);
  border-radius: 12px 8px 14px 9px;
  box-shadow: 5px 5px 0 rgba(185, 229, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 10vw, 118px);
  line-height: 0.94;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.hero-copy p,
.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-copy .eyebrow {
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid rgba(36, 95, 143, 0.18);
  border-radius: 18px 13px 20px 12px;
  box-shadow: 0 10px 22px rgba(20, 36, 58, 0.08);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  box-shadow: 0 14px 28px rgba(20, 36, 58, 0.14);
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 7px 8px 0 rgba(255, 216, 231, 0.7);
}

.button.secondary,
.button.light {
  background: var(--surface);
}

.letter-stack {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
}

.letter-card {
  position: absolute;
  display: flex;
  width: min(330px, 78vw);
  min-height: 172px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background:
    linear-gradient(rgba(36, 95, 143, 0.14) 1px, transparent 1px),
    var(--surface);
  background-position: 0 94px;
  background-size: 100% 24px;
  border: 1px solid rgba(20, 36, 58, 0.14);
  border-radius: 22px 14px 26px 16px;
  box-shadow: var(--shadow);
}

.letter-card::after {
  position: absolute;
  inset: 13px;
  border-right: 1px dashed rgba(36, 95, 143, 0.28);
  content: "";
  pointer-events: none;
  transform: translateX(-86px);
}

.letter-card span,
.letter-card strong {
  position: relative;
  z-index: 1;
}

.letter-card span {
  color: var(--muted);
  font-weight: 900;
}

.letter-card strong {
  max-width: 250px;
  font-size: 26px;
  line-height: 1.12;
}

.blue-card {
  z-index: 4;
  background:
    linear-gradient(rgba(36, 95, 143, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, var(--blue), var(--blue-soft));
  background-position: 0 94px, 0 0;
  background-size: 100% 24px, auto;
  transform: rotate(-4deg) translate(-18px, -58px);
}

.yellow-card {
  z-index: 3;
  background:
    linear-gradient(rgba(217, 75, 120, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, var(--pink), var(--pink-soft));
  background-position: 0 94px, 0 0;
  background-size: 100% 24px, auto;
  transform: rotate(7deg) translate(34px, 50px);
}

.orange-card {
  z-index: 2;
  background: var(--surface);
  transform: rotate(-12deg) translate(-44px, 132px);
}

.section,
.stats-band,
.preview-band,
.contact-page {
  padding: clamp(58px, 8vw, 98px) clamp(18px, 5vw, 72px);
}

.intro,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro,
.program-preview,
.contact-page,
.form-section {
  background: rgba(255, 255, 255, 0.74);
  border-block: 1px solid var(--line);
}

.intro > p,
.feature-list p,
.program-card p,
.program-card li,
.program-preview p,
.contact-card p {
  color: var(--muted);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
}

.program-grid,
.contact-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.program-card,
.contact-card,
.stat,
.feature-list div,
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(20, 36, 58, 0.12);
  border-radius: 24px 15px 28px 17px;
  box-shadow: 0 16px 34px rgba(20, 36, 58, 0.08);
}

.program-card:nth-child(even),
.contact-card:nth-child(even),
.feature-list div:nth-child(even),
.stat:nth-child(even) {
  border-radius: 16px 26px 15px 28px;
}

.program-card,
.contact-card {
  position: relative;
  display: flex;
  min-height: 410px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 38px);
}

.program-card::after,
.contact-card::after {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(36, 95, 143, 0.14);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.program-card.featured {
  background: linear-gradient(135deg, var(--blue-soft), var(--surface));
}

.program-card.upcoming,
.contact-card.blue {
  background: linear-gradient(135deg, var(--pink-soft), var(--surface));
}

.program-status {
  margin-bottom: 22px;
  padding: 7px 12px;
  color: var(--primary);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.program-card.upcoming .program-status {
  color: var(--accent);
  background: var(--pink-soft);
}

.program-card ul {
  margin: 12px 0 24px;
  padding-left: 20px;
}

.text-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
}

.preview-band,
.stats-band {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 16%, rgba(255, 216, 231, 0.78), transparent 28%),
    repeating-linear-gradient(-10deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, var(--blue), var(--blue-soft));
}

.stats-band {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 216, 231, 0.64), transparent 28%),
    repeating-linear-gradient(-10deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, var(--pink), var(--pink-soft));
}

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

.preview-band .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  margin-bottom: 4px;
}

.stat {
  position: relative;
  min-height: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.preview-band .stat {
  min-height: 170px;
}

.stat::before,
.feature-list div::before {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(36, 95, 143, 0.14);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 900;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list div {
  position: relative;
  padding: 24px;
}

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

.contact-form {
  display: grid;
  max-width: 940px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.9);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(20, 36, 58, 0.2);
  border-radius: 10px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 4px solid rgba(185, 229, 255, 0.5);
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--primary);
  font-weight: 900;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.program-preview .button {
  margin-top: 8px;
}

.preview-band .button {
  margin-top: 28px;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 10px -14px;
  }
}

@media (max-width: 860px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro,
  .split,
  .program-grid,
  .contact-page,
  .stats-grid,
  .preview-band .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  nav {
    width: 100%;
  }

  .letter-stack {
    min-height: 350px;
  }

  .letter-card {
    width: min(300px, 82vw);
  }

  .float-icon {
    opacity: 0.34;
  }

  .program-card,
  .contact-card {
    min-height: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

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