/* ==========================================================================
   Aflah Daycare — "Bright & Playful" design
   White and light-grey sections, a photo hero with a yellow "Enroll Now" pill,
   overlapping photo cards and the colourful lettering from the Aflah logo.
   ========================================================================== */

:root {
  --blue: #0b7fb3;
  --sky: #1d8fd1;
  --green: #4f9a2a;
  --lime: #8cc63f;
  --red: #e02f44;
  --orange: #f7941d;
  --purple: #7a4fd8;
  --yellow: #ffcc29;
  --yellow-dark: #f2b705;
  --ink: #1f2a44;
  --muted: #556070;
  --grey: #f3f4f6;
  --line: #e5e7eb;
  --navy: #14264a;
  --radius: 26px;
  --shadow: 0 18px 40px -18px rgba(31, 42, 68, 0.35);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --hand: "Patrick Hand", "Nunito", cursive;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Colour sets shared by cards, icons, bubbles and badges */
.c-blue { --c: #1d8fd1; --c-soft: #e3f3fc; --c-ink: #0f6ea6; }
.c-green { --c: #4c9a2a; --c-soft: #eaf6e1; --c-ink: #3b7d1f; }
.c-orange { --c: #e5761a; --c-soft: #fff0e0; --c-ink: #a4520c; }
.c-pink { --c: #d63a82; --c-soft: #fce7f1; --c-ink: #a92463; }
.c-red { --c: #e0364f; --c-soft: #fde7ea; --c-ink: #b3263b; }
.c-teal { --c: #12998f; --c-soft: #def5f3; --c-ink: #0c6f68; }
.c-purple { --c: #7a4fd8; --c-soft: #efe8fd; --c-ink: #5b35b5; }

/* Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background: #fff;
}

/* Keeps slide-in animations from causing sideways scrolling on phones */
main {
  overflow-x: hidden;
  overflow-x: clip;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

/* Rounded, playful type for everything that isn't running text */
.nav__link,
.logo__name,
.logo__sub,
.highlight__title,
.hero__facts strong,
.badge__num,
.badge__label,
.step__num,
.bubble__text,
.class-card__age,
.program-nav a,
.program__type,
.schedule time,
.faq summary,
.breadcrumb {
  font-family: var(--display);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[id] {
  scroll-margin-top: 90px;
}

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

.container {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--grey {
  background: var(--grey);
}

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

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 400;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

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

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

/* Section headings
   ========================================================================== */

/* Small handwritten label above each heading */
.label,
.section .label,
.page-hero .page-hero__label {
  margin-bottom: 0.35rem;
  font-family: var(--hand);
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--blue);
}

.section h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--green);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: 1.08rem;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.btn--primary {
  background: var(--yellow);
  color: #2b2100;
  box-shadow: 0 10px 20px -10px rgba(242, 183, 5, 0.95);
}

.btn--primary:hover {
  background: var(--yellow-dark);
}

.btn--secondary {
  background: var(--purple);
  color: #fff;
}

.btn--secondary:hover {
  background: #6340c0;
}

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

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

.btn--small {
  padding: 0.55rem 1.25rem;
  font-size: 0.92rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Tick lists */
.ticks {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--tick, var(--green)) var(--check) center / 12px no-repeat;
}

/* Header
   ========================================================================== */

.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35);
}

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

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

.logo__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.logo__name span:nth-child(1) { color: var(--red); }
.logo__name span:nth-child(2) { color: var(--orange); }
.logo__name span:nth-child(3) { color: var(--lime); }
.logo__name span:nth-child(4) { color: #29abe2; }
.logo__name span:nth-child(5) { color: var(--purple); }

.logo__sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green);
}

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

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1b1f3b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--red);
}

.menu-btn {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn svg {
  width: 24px;
  height: 24px;
}

.menu-btn .i-close,
.menu-btn[aria-expanded="true"] .i-menu {
  display: none;
}

.menu-btn[aria-expanded="true"] .i-close {
  display: block;
}

/* Home hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 720px);
  padding: 5rem 0 10rem;
  overflow: hidden;
  background: #0f1423;
  color: #fff;
}

.hero__bg,
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The photo sits to the right and is sized from the hero's height so the whole logo,
   down to its "An inclusive and supportive…" ribbon (86% of the image height),
   stays above the cards that overlap the bottom 7rem of the hero. */
.hero__bg {
  inset: 0 auto auto 65%;
  width: auto;
  max-width: none;
  height: calc((100% - 8rem) / 0.86);
  object-fit: fill;
  translate: -50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 90%, transparent 100%), linear-gradient(to bottom, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 90%, transparent 100%), linear-gradient(to bottom, #000 90%, transparent 100%);
  mask-composite: intersect;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 20, 35, 0.8) 0%, rgba(15, 20, 35, 0.55) 45%, rgba(15, 20, 35, 0.12) 100%);
}

.hero::after {
  background: linear-gradient(90deg, rgba(15, 20, 35, 0.78) 0%, rgba(15, 20, 35, 0.55) 34%, rgba(15, 20, 35, 0.1) 56%, rgba(15, 20, 35, 0) 100%);
}

.hero__content,
.page-hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
}

/* "Fun" in the logo's rainbow colours; each letter bounces in */
.rainbow {
  white-space: nowrap;
}

.rainbow span {
  display: inline-block;
  transform-origin: 50% 100%;
}

.rainbow span:nth-child(1) { color: #ff5a6e; }
.rainbow span:nth-child(2) { color: #ffb23f; }
.rainbow span:nth-child(3) { color: #9bd84a; }

.js .is-in .rainbow span {
  animation: letter-bounce 0.9s cubic-bezier(0.28, 0.84, 0.42, 1) both;
}

.js .is-in .rainbow span:nth-child(2) { animation-delay: 0.1s; }
.js .is-in .rainbow span:nth-child(3) { animation-delay: 0.2s; }

.rainbow:hover span {
  animation: icon-boing 0.8s cubic-bezier(0.28, 0.84, 0.42, 1) both;
}

.rainbow:hover span:nth-child(2) { animation-delay: 0.08s; }
.rainbow:hover span:nth-child(3) { animation-delay: 0.16s; }

@keyframes letter-bounce {
  0% { opacity: 0; transform: translateY(-40px) scale(0.8, 1.2); }
  45% { opacity: 1; transform: translateY(0) scale(1.15, 0.85); }
  65% { transform: translateY(-10px) scale(0.95, 1.05); }
  82% { transform: translateY(0) scale(1.04, 0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1, 1); }
}

/* "Hand in Hand" in yellow with a hand-drawn underline */
.hero__accent {
  position: relative;
  color: var(--yellow);
  white-space: nowrap;
}

.hero__accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.16em;
  height: 0.26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11C38 4 66 3 100 8s64 6 97-3' fill='none' stroke='%23ffcc29' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero__text {
  max-width: 31rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero .btn-row {
  margin-top: 1.75rem;
}

/* A soft, blurred copy of the classroom photo fills the whole hero behind the
   text, so the background keeps the photo's warm colours instead of flat navy. */
.hero::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: url("../images/aflah-hero.jpg") 50% 60% / cover no-repeat;
  filter: blur(32px) saturate(1.35) brightness(0.4);
}

/* Quick facts: glass cards beside the text on tablets, stacked on phones */
.hero__facts {
  display: none;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem 0.8rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.hero__facts strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
}

.hero__fact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--c);
  color: #fff;
}

.hero__fact-icon svg {
  width: 21px;
  height: 21px;
}

/* Floating confetti in the logo's colours */
.hero__confetti {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__confetti span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--confetti);
  opacity: 0.9;
  animation: confetti-float 7s ease-in-out infinite;
}

.hero__confetti span:nth-child(1) { --confetti: var(--red); top: -0.5rem; right: 6%; }
.hero__confetti span:nth-child(2) { --confetti: var(--yellow); top: 44%; left: 57%; width: 16px; height: 16px; border-radius: 4px; rotate: 20deg; animation-delay: -1.5s; }
.hero__confetti span:nth-child(3) { --confetti: var(--lime); bottom: -1rem; right: 34%; width: 12px; height: 12px; animation-delay: -3s; }
.hero__confetti span:nth-child(4) { --confetti: #29abe2; top: 6%; left: 50%; width: 20px; height: 20px; background: none; border: 3px solid #29abe2; animation-delay: -4.5s; }
.hero__confetti span:nth-child(5) { --confetti: var(--purple); bottom: 18%; left: 48%; width: 18px; height: 18px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); border-radius: 0; animation-delay: -2.2s; }
.hero__confetti span:nth-child(6) { --confetti: var(--orange); top: 22%; right: -0.5rem; width: 10px; height: 10px; animation-delay: -5.2s; }

@keyframes confetti-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* Inner page hero (photo banner) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4.5rem, 8vw, 5.5rem);
  color: #fff;
}

.page-hero__bg {
  transform: scale(1.7);
}

.page-hero--about .page-hero__bg { object-position: 0 0; transform-origin: 0 0; }
.page-hero--programs .page-hero__bg { object-position: 100% 35%; transform-origin: 100% 35%; }
.page-hero--registration .page-hero__bg { object-position: 0 100%; transform: scale(2.3); transform-origin: 0 100%; }
.page-hero--contact .page-hero__bg { object-position: 100% 0; transform-origin: 100% 0; }

.page-hero::after {
  background: linear-gradient(90deg, rgba(15, 20, 35, 0.82) 0%, rgba(15, 20, 35, 0.6) 55%, rgba(15, 20, 35, 0.35) 100%);
}

.page-hero .page-hero__label {
  color: var(--yellow);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.06;
  color: #fff;
}

.page-hero p {
  max-width: 36rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: #fff;
}

/* Photo cards overlapping the hero
   ========================================================================== */

.highlights {
  position: relative;
  z-index: 2;
  margin-top: -7rem;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.55);
}

.highlight {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 220px;
  padding: 1rem 1rem 1.1rem;
  overflow: hidden;
  text-decoration: none;
}

.highlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Shade only the bottom, behind the title, so the children's faces stay clear */
.highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 30, 0.75) 0%, rgba(20, 20, 30, 0.3) 38%, rgba(20, 20, 30, 0) 65%);
  transition: opacity 0.3s ease;
}

.highlight:hover img {
  transform: scale(1.08);
}

.highlight:hover::after {
  opacity: 0.8;
}

.highlight__title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Two-column media sections (about, value, teachers, program details)
   ========================================================================== */

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

.split--reverse .split__media {
  order: -1;
}

.split__text p {
  font-size: 1.05rem;
}

.photo-stack {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  margin: 2rem 2.5rem 2rem 0;
}

.split--reverse .photo-stack {
  justify-self: start;
  margin: 2rem 0 2rem 2.5rem;
}

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

.photo-stack__main--emblem {
  aspect-ratio: 1;
  padding: 8%;
  background: var(--grey);
  object-fit: contain;
}

.photo-stack__small {
  position: absolute;
  right: -2.5rem;
  bottom: -2rem;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: -1.75rem;
  left: -3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.4rem;
  border: 3px dashed var(--red);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.badge__num {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.badge__num--text {
  font-size: 2.3rem;
}

.badge__label {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--blue);
}

.duo {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.duo img {
  width: calc(50% - 0.625rem);
  aspect-ratio: 9 / 15;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.duo img:last-child {
  margin-top: 4rem;
}

.rounded-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Program cards
   ========================================================================== */

.classes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 1.5rem;
}

.class-card:nth-child(odd) {
  margin-top: 2.5rem;
}

.class-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.class-card:hover,
.js .class-card.is-in:hover {
  transform: translateY(-6px);
  transition-delay: 0s;
}

.class-card__title,
.color-card .color-card__title {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--c);
  font-size: 1.7rem;
  color: #fff;
  text-align: center;
}

.class-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.class-card__body {
  padding: 1.3rem 1.25rem 1.6rem;
  background: var(--c-soft);
  text-align: center;
}

.class-card__age {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-ink);
}

.class-card .btn {
  background: var(--yellow);
  color: #2b2100;
}

/* Colour-topped content cards (mission, vision, fees, what to bring) */
.card-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.color-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-soft);
  box-shadow: var(--shadow);
}

.color-card .color-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.color-card__title svg {
  width: 26px;
  height: 26px;
}

.color-card__body {
  padding: 1.75rem clamp(1.4rem, 3vw, 2.25rem) 2rem;
}

.color-card__body > p {
  font-size: 1.05rem;
}

.color-card .ticks {
  --tick: var(--c);
  margin-top: 0;
}

/* Feature cards with icons (logo story, enrichment) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: 1.75rem 1.5rem;
  border-top: 6px solid var(--c);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.icon-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--c-soft);
  color: var(--c-ink);
}

.icon-circle svg {
  width: 26px;
  height: 26px;
}

/* Join / call-to-action banner
   ========================================================================== */

.join {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  color: #fff;
  text-align: center;
}

.join__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24, 70, 160, 0.9), rgba(29, 143, 209, 0.8));
}

.join .container {
  position: relative;
  z-index: 1;
}

.join__content {
  max-width: 720px;
  margin-inline: auto;
}

.join h2 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  color: #fff;
}

.join p {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.95);
}

.join .btn-row {
  justify-content: center;
  margin-top: 2rem;
}

/* Value circles
   ========================================================================== */

.joy {
  overflow: hidden;
  background: var(--grey);
}

.joy::before,
.joy::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

.joy::before {
  top: -520px;
  right: -260px;
  width: 1000px;
  height: 1000px;
}

.joy::after {
  bottom: -320px;
  left: -200px;
  width: 560px;
  height: 560px;
  opacity: 0.8;
}

.joy .container {
  position: relative;
  z-index: 1;
}

.joy__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.joy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  color: var(--sky);
}

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

.bubble:nth-child(even) {
  margin-top: 2rem;
}

.bubble__ring {
  aspect-ratio: 1;
  padding: 10px;
  border: 3px dashed var(--c);
  border-radius: 50%;
  animation: floaty 6s ease-in-out infinite;
}

.bubble:nth-child(even) .bubble__ring {
  animation-delay: -3s;
}

.bubble__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.bubble__inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c);
  opacity: 0.8;
}

.bubble__text {
  position: relative;
  z-index: 1;
  padding: 0 0.6rem;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-align: center;
  transform: rotate(-28deg);
}

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

/* Dots under the sliding circles (phones only) */
.joy__dots {
  display: none;
}

/* Core values (About page) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.value {
  text-align: center;
}

.value__ring {
  width: 150px;
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  padding: 9px;
  border: 3px dashed var(--c);
  border-radius: 50%;
  animation: floaty 6s ease-in-out infinite;
}

.value:nth-child(even) .value__ring {
  animation-delay: -3s;
}

.value__icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
}

.value__icon svg {
  width: 52px;
  height: 52px;
}

.value h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.value__tr {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--c-ink);
}

.value p {
  max-width: 20rem;
  margin: 0 auto;
  color: var(--muted);
}

/* Why choose us / enrichment list
   ========================================================================== */

.why {
  background: linear-gradient(#fff, #f1f8fd);
}

.why__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.why h2,
.teachers h2 {
  color: var(--sky);
}

.icon-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
}

.icon-list--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0;
}

.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.icon-list__item h3 {
  margin: 0 0 0.15rem;
  font-size: 1.12rem;
  font-weight: 600;
}

.icon-list__item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.why__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) var(--radius) 140px;
  box-shadow: var(--shadow);
}

/* Programs page
   ========================================================================== */

.program-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.program-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--c);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.program-nav a:hover {
  background: var(--c);
  color: #fff;
}

.program-nav svg {
  width: 20px;
  height: 20px;
}

.program h2 {
  margin-bottom: 0.2rem;
}

.program__type {
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--c-ink);
}

.program .ticks {
  --tick: var(--c);
  margin-bottom: 1.75rem;
}

.program .badge {
  border-color: var(--c);
}

.program .badge__num {
  color: var(--c-ink);
}

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

.schedule li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem 0.85rem 0.85rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(31, 42, 68, 0.05);
}

.schedule time {
  flex: none;
  min-width: 6rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--c);
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.schedule li:nth-child(4n + 1) time { background: #1d8fd1; }
.schedule li:nth-child(4n + 2) time { background: #4c9a2a; }
.schedule li:nth-child(4n + 3) time { background: #c9621a; }
.schedule li:nth-child(4n + 4) time { background: #d63a82; }

.schedule span {
  font-weight: 500;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

/* Registration page
   ========================================================================== */

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

.step {
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.step__num {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.1rem;
  border: 3px dashed var(--c);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-ink);
}

.step h3 {
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
  font-weight: 600;
}

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

.faq {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  padding: 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.faq details[open] {
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.4rem;
  line-height: 1;
  color: #2b2100;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding-bottom: 1.25rem;
  color: var(--muted);
}

/* Forms
   ========================================================================== */

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

.form-card h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

.form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.req {
  color: var(--red);
}

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

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sky);
  outline: none;
  box-shadow: 0 0 0 4px rgba(29, 143, 209, 0.18);
}

.field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.options label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

.options label:has(input:checked) {
  border-color: var(--sky);
  background: #e3f3fc;
  color: #0f6ea6;
}

.options input {
  width: auto;
  accent-color: var(--sky);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-hint {
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status {
  display: none;
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-weight: 500;
}

.form-status.is-success {
  display: block;
  background: #eaf6e1;
  color: #2f6a17;
}

.form-status.is-error {
  display: block;
  background: #fde7ea;
  color: #a3202f;
}

/* Contact page
   ========================================================================== */

.contact-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: -3.5rem;
}

.contact-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45);
}

.contact-card h2 {
  margin: 1rem 0 0.3rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card a {
  font-weight: 500;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
  gap: clamp(2rem, 4vw, 3rem);
}

.side-stack {
  display: grid;
  gap: 1.5rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 0.55rem 0;
  border-bottom: 1px dashed #cfd6e0;
  text-align: left;
  font-weight: 400;
}

.hours td {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* Footer
   ========================================================================== */

.footer {
  position: relative;
  padding: clamp(2.75rem, 5vw, 4rem) 0 0;
  background: var(--navy);
  color: #cfd6e4;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 20%, var(--orange) 20% 40%, var(--lime) 40% 60%, #29abe2 60% 80%, var(--purple) 80%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.3fr;
  gap: 2.5rem;
}

.footer h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.footer ul {
  display: grid;
  gap: 0.55rem;
}

.footer a {
  text-decoration: none;
}

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

.footer__brand > p:first-of-type {
  margin-top: 1.2rem;
}

.footer .logo__sub {
  color: var(--lime);
}

.footer__tagline {
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--yellow);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer__contact svg {
  width: 18px;
  height: 18px;
  margin-top: 0.3rem;
  color: var(--yellow);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer__bottom p {
  margin: 0;
}

/* Scroll animations (content only hides while JavaScript is running)
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="zoom"] { transform: scale(0.88); }

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Bouncy icons
   Icons pop in with a spring when they scroll into view, hop now and then
   (taking turns along a row), and boing when a card is hovered or tapped.
   ========================================================================== */

.icon-circle,
.step__num,
.value__icon svg {
  transform-origin: 50% 100%;
  animation: icon-hop 3.6s ease-in-out var(--hop-delay, 0s) infinite;
}

.js .is-in .icon-circle,
.js .is-in .step__num,
.js .is-in .value__icon svg,
.js .is-in.step .step__num {
  animation:
    icon-pop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--delay, 0s) + 0.15s) both,
    icon-hop 3.6s ease-in-out calc(var(--hop-delay, 0s) + 1.2s) infinite;
}

:is(.feature-card, .icon-list__item, .contact-card, .value, .step):nth-child(2) { --hop-delay: 0.45s; }
:is(.feature-card, .icon-list__item, .contact-card, .value, .step):nth-child(3) { --hop-delay: 0.9s; }
:is(.feature-card, .icon-list__item, .contact-card, .value, .step):nth-child(4) { --hop-delay: 1.35s; }
:is(.feature-card, .icon-list__item, .contact-card, .value, .step):nth-child(5) { --hop-delay: 1.8s; }
:is(.feature-card, .icon-list__item, .contact-card, .value, .step):nth-child(6) { --hop-delay: 2.25s; }

.feature-card:hover .icon-circle,
.icon-list__item:hover .icon-circle,
.contact-card:hover .icon-circle,
.step:hover .step__num,
.value:hover .value__icon svg,
.js .is-in .feature-card:hover .icon-circle,
.js .is-in .icon-list__item:hover .icon-circle,
.js .is-in.feature-card:hover .icon-circle,
.js .is-in.contact-card:hover .icon-circle,
.js .is-in.step:hover .step__num,
.js .is-in.value:hover .value__icon svg {
  animation: icon-boing 0.8s cubic-bezier(0.28, 0.84, 0.42, 1);
}

.btn:hover .icon,
.program-nav a:hover svg {
  transform-origin: 50% 100%;
  animation: icon-boing 0.7s cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes icon-pop {
  0% { opacity: 0; transform: scale(0.2); }
  55% { opacity: 1; transform: scale(1.18); }
  75% { transform: scale(0.93); }
  90% { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes icon-hop {
  0%, 62%, 100% { transform: translateY(0) scale(1, 1); }
  68% { transform: translateY(0) scale(1.1, 0.9); }
  76% { transform: translateY(-12px) scale(0.94, 1.07); }
  84% { transform: translateY(0) scale(1.06, 0.94); }
  90% { transform: translateY(-4px) scale(1, 1); }
  95% { transform: translateY(0) scale(1, 1); }
}

@keyframes icon-boing {
  0% { transform: translateY(0) scale(1, 1) rotate(0); }
  20% { transform: translateY(0) scale(1.16, 0.84); }
  42% { transform: translateY(-18px) scale(0.9, 1.1) rotate(-7deg); }
  62% { transform: translateY(0) scale(1.1, 0.9) rotate(4deg); }
  78% { transform: translateY(-6px) scale(0.97, 1.03) rotate(0); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .classes__grid,
  .feature-grid,
  .steps,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .class-card:nth-child(odd) {
    margin-top: 0;
  }

  .class-card:nth-child(even) {
    margin-top: 2rem;
  }

  .joy__circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 1.5rem;
  }

  .joy__circles .bubble {
    flex: 0 0 calc((100% - 3rem) / 3);
  }

  .icon-list--3 {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 980px) {
  .menu-btn {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.35);
  }

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

  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 10rem;
  }

  .hero__bg {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 45%;
    translate: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  }

  .hero::after {
    display: none;
  }

  .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15.5rem;
    align-items: center;
    gap: 1.5rem 2.25rem;
    padding-top: 1.75rem;
  }

  .hero__facts {
    display: grid;
    gap: 0.75rem;
  }

  .hero__confetti {
    display: block;
  }

  .page-hero::after {
    background: rgba(15, 20, 35, 0.74);
  }

  .split,
  .why__grid,
  .joy__head,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split,
  .why__grid {
    gap: 1.5rem;
  }

  /* Stacked photos: capped width and a shorter shape, so they don't fill
     the whole screen on tablets */
  .duo,
  .why__media,
  .rounded-photo {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .duo img {
    aspect-ratio: 4 / 5;
  }

  .duo img:last-child {
    margin-top: 2rem;
  }

  .rounded-photo,
  .why__media img {
    aspect-ratio: 16 / 11;
  }

  .photo-stack,
  .split--reverse .photo-stack {
    justify-self: center;
    margin: 2rem auto 2.25rem;
  }

  .badge {
    left: -1rem;
  }

  .photo-stack__small {
    right: -1rem;
  }

  .values-grid,
  .feature-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 2rem, 1180px);
  }

  .hero {
    padding: 0 0 9rem;
  }

  .hero__bg {
    aspect-ratio: 5 / 4;
  }

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

  .hero__confetti span:nth-child(n + 2):nth-child(-n + 5) {
    display: none;
  }

  .highlights__grid,
  .classes__grid,
  .icon-list,
  .icon-list--3,
  .feature-grid,
  .feature-grid--3,
  .card-pair,
  .values-grid,
  .schedule,
  .steps,
  .form-row,
  .contact-cards,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .highlight {
    min-height: 190px;
  }

  .class-card:nth-child(n) {
    margin-top: 0;
  }

  /* The circles become a slider: one in the middle, its neighbours peeking in */
  .joy__circles {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    margin-inline: calc(50% - 50vw);
    padding: 0.75rem 18vw 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .joy__circles::-webkit-scrollbar {
    display: none;
  }

  .joy__circles .bubble {
    flex: 0 0 64vw;
    scroll-snap-align: center;
  }

  .joy__circles.is-sliding .bubble__ring {
    transition: scale 0.45s ease;
  }

  .joy__circles.is-sliding .bubble:not(.is-active) .bubble__ring {
    scale: 0.84;
  }

  .joy__circles.no-anim .bubble__ring {
    transition: none;
  }

  .joy__dots {
    display: flex;
    justify-content: center;
    gap: 0.15rem;
  }

  .joy__dots button {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 28px;
    padding: 0 2px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .joy__dots button::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--c);
    opacity: 0.35;
    transition: width 0.3s ease, opacity 0.3s ease;
  }

  .joy__dots button[aria-current="true"]::before {
    width: 28px;
    opacity: 1;
  }

  .bubble:nth-child(even) {
    margin-top: 0;
  }

  .badge {
    top: -1.25rem;
    left: -0.5rem;
    padding: 0.75rem 1rem;
  }

  .badge__num {
    font-size: 2.6rem;
  }

  .badge__num--text {
    font-size: 1.8rem;
  }

  .photo-stack__small {
    right: -0.5rem;
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }
}

/* Phones: icons and number circles sit beside their text instead of above it,
   and tall photos are shorter, so each screen shows more */
@media (max-width: 640px) {
  .values-grid {
    gap: 1.25rem;
  }

  .value {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    text-align: left;
  }

  .value__ring {
    grid-row: 1 / span 3;
    width: 84px;
    margin: 0;
    padding: 6px;
    border-width: 2px;
  }

  .value__icon svg {
    width: 34px;
    height: 34px;
  }

  .value h3 {
    margin-top: 0.35rem;
    font-size: 1.25rem;
  }

  .value__tr {
    margin-bottom: 0.2rem;
  }

  .value p {
    max-width: none;
    margin: 0;
  }

  .steps {
    gap: 0.85rem;
  }

  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.15rem;
    text-align: left;
  }

  .step__num {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    margin: 0;
    font-size: 1.5rem;
  }

  .step h3 {
    margin-bottom: 0.15rem;
    font-size: 1.2rem;
  }

  .feature-card,
  .contact-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 1rem;
    align-content: start;
    padding: 1.2rem 1.15rem;
  }

  .feature-card .icon-circle,
  .contact-card .icon-circle {
    grid-row: 1 / span 4;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .feature-card h3,
  .contact-card h2 {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
  }
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
