/* ==========================================================================
   Little Wonders Childcare & Learning
   Colors are pulled from the logo: sun yellow, purple, sky blue, and the
   wordmark blue / tagline maroon.
   ========================================================================== */

:root {
  --cream: #fff8ee;
  --cream-2: #fdf0dc;
  --paper: #ffffff;
  --ink: #1d2b3a;
  --ink-2: #4e5b6b;
  --line: #eadfcb;

  --blue: #23628c;
  --blue-deep: #163e5c;
  --sky: #1e9fd6;
  --sky-soft: #ddf1fa;
  --sky-ink: #0f6c96;
  --sun: #f6b331;
  --sun-soft: #ffedc4;
  --sun-ink: #9a5f00;
  --plum: #7a4aa6;
  --plum-soft: #eee5f7;
  --plum-ink: #643a8c;
  --berry: #9a2445;
  --berry-soft: #f9e1e7;

  --radius: 22px;
  --radius-lg: 34px;
  --shadow-sm: 0 2px 6px rgba(29, 43, 58, 0.05), 0 10px 28px rgba(29, 43, 58, 0.07);
  --shadow: 0 6px 16px rgba(29, 43, 58, 0.08), 0 24px 48px rgba(29, 43, 58, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif; /* italic is loaded too, for the quote band */
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
  --header-h: 76px;
}

/* Base ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Decorative blobs can poke past the screen edge; never let them cause sideways scrolling */
main {
  overflow-x: clip;
}

img {
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--blue-deep);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.5rem;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Tones: shared by features, programs, avatars ----------------------------- */

.tone-sky {
  --tone: var(--sky);
  --tone-soft: var(--sky-soft);
  --tone-ink: var(--sky-ink);
}

.tone-sun {
  --tone: var(--sun);
  --tone-soft: var(--sun-soft);
  --tone-ink: var(--sun-ink);
}

.tone-plum {
  --tone: var(--plum);
  --tone-soft: var(--plum-soft);
  --tone-ink: var(--plum-ink);
}

.tone-berry {
  --tone: var(--berry);
  --tone-soft: var(--berry-soft);
  --tone-ink: var(--berry);
}

/* Type helpers ------------------------------------------------------------ */

.eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: var(--font-hand);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  color: var(--berry);
  transform: rotate(-2deg);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
}

.squiggle {
  position: relative;
  white-space: nowrap;
}

.squiggle::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.18em;
  height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c18-8 30 6 48 0s30-8 48 0 30 6 48 0 30-7 50-1' fill='none' stroke='%23f6b331' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.section-head p {
  margin-top: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}

.text-link .icon {
  transition: transform 0.2s ease;
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 4px 0 #d38f12;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d38f12;
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d38f12;
}

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

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--blue-deep);
}

.btn-light:hover {
  background: var(--sun-soft);
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
}

/* Top bar + header -------------------------------------------------------- */

.topbar {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}

.topbar p {
  margin: 0;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.topbar-item .icon {
  color: var(--sun);
  width: 1.05em;
  height: 1.05em;
}

a.topbar-item:hover {
  color: #fff;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 238, 0.86);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(29, 43, 58, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 54px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--berry);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--sun-soft);
}

.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: var(--sky-soft);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--sun-soft);
  color: var(--blue-deep);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 26px;
  height: 26px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Waves --------------------------------------------------------------------
   A wavy edge in the section's own color that overlaps its neighbor. */

.has-wave-top,
.has-wave-bottom {
  position: relative;
}

.has-wave-top::before,
.has-wave-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1;
  background: var(--wave, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20Q150 0 300 20T600 20T900 20T1200 20V40H0Z'/%3E%3C/svg%3E") repeat-x 0 0 / 1200px 40px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20Q150 0 300 20T600 20T900 20T1200 20V40H0Z'/%3E%3C/svg%3E") repeat-x 0 0 / 1200px 40px;
  pointer-events: none;
}

.has-wave-top::before {
  top: -39px;
}

.has-wave-bottom::after {
  bottom: -39px;
  transform: scaleY(-1);
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding-block: var(--section);
}

.section-white {
  --wave: var(--paper);
  background: var(--paper);
}

.section-blue {
  --wave: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4.5rem, 9vw, 7.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 179, 49, 0.22), rgba(246, 179, 49, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero h1 {
  margin-bottom: 1.25rem;
  isolation: isolate;
}

.hero .lead {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -10px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.avatar-stack span:first-child {
  margin-left: 0;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--sun);
}

.stars .icon {
  width: 1rem;
  height: 1rem;
}

.hero-proof small {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.hero-proof:hover small {
  color: var(--blue);
  text-decoration: underline;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 0.92;
  max-width: 560px;
  width: 100%;
  justify-self: end;
}

.hero-sun {
  position: absolute;
  top: -2%;
  right: -4%;
  width: 46%;
  aspect-ratio: 1;
  color: var(--sun);
  animation: spin 60s linear infinite;
}

.hero-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: var(--shadow);
  background: var(--cream-2);
}

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

.hero-photo-main {
  inset: 8% 4% 6% 8%;
  border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
}

.hero-photo-small {
  left: -2%;
  bottom: -4%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.sticker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
}

.sticker-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--tone-soft);
  color: var(--tone-ink);
}

.sticker small {
  display: block;
  font-weight: 600;
  color: var(--ink-2);
}

.sticker-a {
  top: 4%;
  left: -4%;
}

.sticker-b {
  right: -2%;
  bottom: 12%;
  animation-delay: -3s;
}

.doodle {
  position: absolute;
  fill: currentColor;
  pointer-events: none;
}

.doodle-sparkle {
  width: 34px;
  color: var(--plum);
  animation: twinkle 3.5s ease-in-out infinite;
}

.doodle-sparkle.is-sky {
  width: 22px;
  color: var(--sky);
  animation-delay: -1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.75) rotate(20deg); opacity: 0.7; }
}

/* Page hero (inner pages) -------------------------------------------------- */

.page-hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}

.page-hero .wrap {
  position: relative;
  max-width: 820px;
}

.page-hero h1 {
  isolation: isolate;
}

.page-hero .lead {
  margin: 0 auto;
  max-width: 36rem;
}

.page-hero .doodle-sun {
  width: 120px;
  top: 8%;
  right: 6%;
  color: var(--sun);
  opacity: 0.85;
  animation: spin 60s linear infinite;
}

.page-hero .doodle-sparkle {
  top: 28%;
  left: 9%;
}

.page-hero .doodle-sparkle.is-sky {
  top: 66%;
  left: 16%;
}

.page-hero .doodle-dots {
  bottom: 12%;
  right: 14%;
  width: 70px;
  color: var(--sky);
  opacity: 0.6;
}

.banner-photo {
  position: relative;
  z-index: 2;
  margin: 0 auto calc(-1 * clamp(3rem, 8vw, 6rem));
  max-width: var(--wrap);
  padding-inline: var(--gutter);
}

.banner-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.after-banner {
  padding-top: calc(var(--section) + clamp(3rem, 8vw, 6rem));
}

/* Intro / why -------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.split-media {
  position: relative;
}

.split-media > img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.split-media .sticker {
  right: -1rem;
  bottom: -1.5rem;
}

.blob-frame {
  position: relative;
  isolation: isolate;
}

.blob-frame::before {
  content: "";
  position: absolute;
  inset: -6% -5% -5% -6%;
  z-index: -1;
  border-radius: 46% 54% 42% 58% / 54% 44% 56% 46%;
  background: var(--tone-soft, var(--sun-soft));
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.feature {
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  background: var(--tone-soft);
  color: var(--tone-ink);
  transform: rotate(-4deg);
}

.feature:nth-child(even) .feature-icon {
  transform: rotate(4deg);
}

.feature-icon .icon {
  width: 28px;
  height: 28px;
}

.feature h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

/* Programs ---------------------------------------------------------------- */

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

.program {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.program-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program:hover .program-media img {
  transform: scale(1.05);
}

.program-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 22px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 12Q50 0 100 12T200 12T300 12T400 12V22H0Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 12Q50 0 100 12T200 12T300 12T400 12V22H0Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

.program-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 1.75rem 1.9rem;
}

.pill {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.program h3 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.program p {
  color: var(--ink-2);
}

.program .text-link {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  color: var(--tone-ink);
  cursor: pointer;
}

/* Dialogs ----------------------------------------------------------------- */

.modal {
  width: min(940px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(22, 62, 92, 0.35);
  overflow: auto;
}

.modal[open] {
  animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal::backdrop {
  background: rgba(22, 62, 92, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--sun-soft);
}

.modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.modal-media {
  background: var(--tone-soft);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.modal-body h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.modal-body > p {
  color: var(--ink-2);
}

.check-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2.1rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--tone-soft, var(--sun-soft)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2b3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 60%;
}

.lightbox .modal-inner {
  display: block;
}

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 7rem);
  object-fit: contain;
  background: var(--ink);
}

.lightbox figure {
  margin: 0;
}

.lightbox figcaption {
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* Quote band -------------------------------------------------------------- */

.quote-band {
  text-align: center;
}

.quote-band .wrap {
  position: relative;
  max-width: 940px;
}

.quote-mark {
  width: 64px;
  margin: 0 auto 1.25rem;
  color: var(--sun);
}

.quote-band blockquote {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.6rem, 3.3vw, 2.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

.quote-band cite {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-hand);
  font-size: 1.9rem;
  font-style: normal;
  color: var(--sun-soft);
}

.quote-band .text-link {
  color: #fff;
}

.quote-band .doodle-sparkle {
  top: 10%;
  left: 2%;
  color: var(--sun);
}

.quote-band .doodle-sparkle.is-sky {
  top: auto;
  bottom: 12%;
  left: auto;
  right: 4%;
  color: var(--sky-soft);
}

/* Reviews ----------------------------------------------------------------- */

.reviews {
  columns: 3 300px;
  column-gap: 1.5rem;
}

.review {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-weight: 800;
}

.review h3 {
  margin: 0 0 0.15rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}

.review blockquote {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.review blockquote p,
.quote-band blockquote p {
  margin: 0;
}

.site-footer li {
  overflow-wrap: anywhere;
}

/* Visit ------------------------------------------------------------------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.map-frame {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.info-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.info-list {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tone-soft);
  color: var(--tone-ink);
}

.info-list strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.info-list a,
.info-list .val {
  display: block;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.info-list a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.info-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

/* About page -------------------------------------------------------------- */

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

.prose p:first-of-type {
  font-size: 1.2rem;
  color: var(--ink);
}

.split-top {
  align-items: start;
}

.glance {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.glance .btn {
  margin-top: 1.75rem;
}

.glance h3 {
  margin-bottom: 0.25rem;
}

.glance .check-list {
  margin-top: 1.25rem;
}

.signature {
  margin-top: 1.5rem;
  font-family: var(--font-hand);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--berry);
}

.signature small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-2);
}

.split-media > .blob-photo {
  width: 100%;
  border: 8px solid #fff;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery a:hover img {
  transform: scale(1.06);
}

.gallery .g-wide {
  grid-column: span 2;
}

.gallery .g-tall {
  grid-row: span 2;
}

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

.connect-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.connect-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.connect-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 14px;
  background: #1877f2;
  color: #fff;
}

.connect-logo .icon {
  width: 26px;
  height: 26px;
}

.connect-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.connect-logo.is-light {
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.connect-card strong {
  display: block;
  font-weight: 800;
}

.connect-card strong + span {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sun-soft);
}

.cta-card h2 {
  margin-bottom: 0.4rem;
}

.cta-card p {
  margin: 0;
  color: var(--ink-2);
}

.cta-card .actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-card .doodle-sun {
  width: 180px;
  right: -40px;
  top: -60px;
  color: var(--sun);
  opacity: 0.45;
}

/* Contact page ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-grid .info-list {
  margin-top: 0;
}

.form-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.form-intro {
  margin-bottom: 1.5rem;
  color: var(--ink-2);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 800;
}

.field label small {
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field select {
  appearance: none;
  padding-right: 2.75rem;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323628c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--sky-soft);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--berry);
}

.form-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.form-card .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-align: center;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  background: var(--berry-soft);
  color: var(--berry);
}

.form-success {
  padding: 2rem 0 1rem;
  text-align: center;
}

.form-success .success-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--sun-ink);
}

.form-success .success-icon .icon {
  width: 40px;
  height: 40px;
}

.form-success p {
  color: var(--ink-2);
}

.hidden {
  display: none !important;
}

.wide-map {
  height: 460px;
}

.wide-map iframe {
  min-height: 460px;
}

/* 404 --------------------------------------------------------------------- */

.not-found {
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
}

.not-found .big {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  color: var(--sun);
  margin-bottom: 0.5rem;
}

.not-found .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  --wave: var(--blue-deep);
  padding-top: clamp(3.5rem, 6vw, 4.5rem);
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand img {
  width: 62px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-sub {
  color: var(--sun-soft);
}

.site-footer h2 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
}

.site-footer ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social img {
  width: 26px;
  padding: 2px;
  border-radius: 7px;
  background: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom p {
  margin: 0;
}

/* Reveal on scroll -------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive -------------------------------------------------------------- */

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

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(29, 43, 58, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
  }

  .hero-grid,
  .split,
  .visit,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    justify-self: center;
    max-width: 520px;
    margin-top: 1rem;
  }

  .programs {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .modal-inner {
    grid-template-columns: 1fr;
  }

  .modal-media {
    height: 280px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .cta-card {
    grid-template-columns: 1fr;
  }

  .split-media .sticker {
    right: 0.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 1rem;
  }

  .topbar-hide-sm {
    display: none;
  }

  .topbar .wrap {
    justify-content: center;
  }

  .brand img {
    width: 46px;
  }

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

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .sticker {
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
  }

  .sticker-icon {
    width: 32px;
    height: 32px;
  }

  .sticker-a {
    left: 0;
  }

  .sticker-b {
    right: 0;
  }

  .features,
  .connect,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .banner-photo img {
    aspect-ratio: 4 / 3;
  }

  .page-hero .doodle-sun {
    width: 64px;
    top: 10px;
    right: 10px;
    opacity: 0.5;
  }

  .page-hero .doodle-sparkle {
    top: 12%;
    left: 4%;
  }

  .map-frame,
  .map-frame iframe,
  .wide-map,
  .wide-map iframe {
    min-height: 340px;
    height: 340px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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