/* =========================================================================
   Micro-interactions: small, quick responses to hovering, tapping,
   typing and scrolling. All switch off for "reduce motion".
   ========================================================================= */

/* --- Buttons: ripple on click, magnetic pull ----------------------------- */
.button {
  isolation: isolate;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: #ffffff66;
  transform: scale(0);
  pointer-events: none;
  z-index: -1;
  animation: hsh-ripple 0.6s ease-out forwards;
}
.button.outline .ripple,
.button.light .ripple {
  background: #ed1c2433;
}
@keyframes hsh-ripple {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.magnetic {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.25s;
}

/* --- Headings: letters hop when hovered ---------------------------------- */
.hop-word {
  display: inline-block;
  white-space: nowrap;
}
.hop-letter {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}
.hop-letter.hop {
  transform: translateY(-10px) rotate(-6deg);
  color: #c8141b;
}

/* --- Header: logo shrinks a little once you scroll ---------------------- */
.header .logo {
  transition: width 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header.scrolled .logo {
  width: 136px;
}
.header nav > a:hover,
.nav-dropdown-toggle:hover {
  color: #c8141b;
}
.nav-dropdown-list a {
  transition: background 0.2s, color 0.2s, padding-left 0.25s;
}
.nav-dropdown-list a:hover {
  padding-left: 20px;
}
.logo-click {
  animation: hsh-logo-wiggle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes hsh-logo-wiggle {
  25% { transform: rotate(-6deg) scale(1.08); }
  50% { transform: rotate(5deg) scale(1.1); }
  75% { transform: rotate(-2deg) scale(1.04); }
}

/* --- Badges: the little star spins on hover ------------------------------ */
.badge img {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge:hover img {
  transform: rotate(180deg) scale(1.3);
}

/* --- Links: underline draws in, arrows nudge ----------------------------- */
.footer-links a,
.notes-card a,
.finder-summer a,
.rich-text a:not(.button) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.2s;
}
.footer-links a:hover,
.notes-card a:hover,
.finder-summer a:hover,
.rich-text a:not(.button):hover {
  background-size: 100% 2px;
}
.text-button span,
.arrow-link span {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
}
.text-button:hover span {
  transform: translate(3px, -3px) rotate(45deg);
  background: #ed1c24;
}
.doc-link span {
  display: inline-block;
}
/* Keep the download arrow centred in its circle; only the arrow bobs. */
.download-icon {
  display: grid !important;
  place-items: center;
  line-height: 1;
}
.doc-link:hover span {
  animation: hsh-drop 0.7s ease-in-out infinite;
}
.download:hover .download-icon {
  animation: hsh-drop 0.7s ease-in-out infinite;
}
@keyframes hsh-drop {
  50% { transform: translateY(4px); }
}

/* --- Spotlight: a soft glow follows the pointer across cards ------------ */
.spotlight {
  position: relative;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #ed1c241f, transparent 70%);
}
.spotlight:hover::after {
  opacity: 1;
}

/* --- Icons wiggle on hover ---------------------------------------------- */
.list-card-icon,
.doc-icon,
.contact-info h3 {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.list-card:hover .list-card-icon,
.doc-card:hover .doc-icon {
  transform: rotate(-14deg) scale(1.12);
}
.list-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.list-card:hover {
  transform: translateX(8px);
  box-shadow: 0 14px 30px #00000024;
}
.food-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.food-card:hover {
  transform: translateX(-6px);
  box-shadow: 0 16px 30px #2a1c1012;
}
.holiday-list li {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s;
  cursor: default;
}
.holiday-list li:hover {
  transform: scale(1.05) rotate(-1deg);
  background: #ed1c24;
  color: white;
}
.facility-grid span,
.stats > div {
  transition: transform 0.3s ease;
}
.stats > div:hover {
  transform: translateY(-6px);
}
.stats > div:hover h3 span {
  color: #ffe494;
}

/* --- FAQ: the plus turns into a minus with a spin ------------------------ */
.faq-list button span {
  display: inline-grid;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
}
.faq-list .active button span {
  transform: rotate(180deg);
}
.faq-list article {
  transition: box-shadow 0.3s, transform 0.3s;
}
.faq-list article:hover {
  box-shadow: 0 12px 26px #2a1c100d;
}
.faq-list button:hover {
  color: #c8141b;
}

/* --- Gallery: caption lifts and shows "View" ------------------------------ */
.gallery-item figcaption {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s;
}
.gallery-item figcaption::after {
  content: " ↗";
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  transition: max-width 0.3s ease;
}
.gallery-item:hover figcaption {
  transform: translateY(-6px);
  background: #ed1c24;
  color: white;
}
.gallery-item:hover figcaption::after {
  max-width: 24px;
}

/* --- Check lists tick in one by one when their section appears ----------- */
.motion [data-reveal] .check-list li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.motion [data-reveal].in .check-list li {
  opacity: 1;
  transform: none;
}
.motion [data-reveal].in .check-list li:nth-child(1) { transition-delay: 0.35s; }
.motion [data-reveal].in .check-list li:nth-child(2) { transition-delay: 0.43s; }
.motion [data-reveal].in .check-list li:nth-child(3) { transition-delay: 0.51s; }
.motion [data-reveal].in .check-list li:nth-child(4) { transition-delay: 0.59s; }
.motion [data-reveal].in .check-list li:nth-child(5) { transition-delay: 0.67s; }
.motion [data-reveal].in .check-list li:nth-child(6) { transition-delay: 0.75s; }
.motion [data-reveal].in .check-list li:nth-child(7) { transition-delay: 0.83s; }
.check-list li::before {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.check-list li:hover::before {
  transform: scale(1.25) rotate(-12deg);
}

/* --- Forms: friendly feedback while typing -------------------------------- */
.hsh-form label > span {
  transition: color 0.2s, transform 0.2s;
  transform-origin: left;
  display: inline-block;
}
.hsh-form label:focus-within > span {
  color: #c8141b;
  transform: translateX(3px);
}
.hsh-form input:user-valid:not([type="date"]):not(:placeholder-shown),
.hsh-form textarea:user-valid:not(:placeholder-shown) {
  border-color: #2ebb5e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232ebb5e'/%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.hsh-form input:user-invalid,
.hsh-form textarea:user-invalid {
  border-color: #ed1c24;
}
.shake {
  animation: hsh-shake 0.45s ease;
}
@keyframes hsh-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.hsh-form .submit.sending {
  pointer-events: none;
  opacity: 0.85;
}
.hsh-form .submit.sending::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 50%;
  border: 2.5px solid #ffffff66;
  border-top-color: white;
  animation: hsh-spin 0.7s linear infinite;
}
.char-count {
  justify-self: end;
  font-size: 12px;
  color: #a8a69f;
  margin-top: -10px;
}

/* --- Copy buttons + toast ------------------------------------------------- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffffb3;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1a1917;
  vertical-align: middle;
  transition: background 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.copy-btn:hover {
  background: white;
  transform: scale(1.08);
}
.copy-btn.copied {
  background: #1a1917;
  color: white;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 500;
  transform: translate(-50%, 140%);
  background: #1a1917;
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  box-shadow: 0 14px 34px #00000030;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast.show {
  transform: translate(-50%, 0);
}

/* --- Images: photos gently zoom when their card is hovered --------------- */
.team-photo img,
.educator-photo img,
.scallop-photo img,
.story-photo img,
.mission-photo img,
.band-photo img,
.parents-banner-grid img {
  transition: transform 0.6s ease;
}
.educator-card:hover .educator-photo img,
.mission-list article:hover .scallop-photo img,
.story-photo:hover img,
.mission-photo:hover img,
.band-photo:hover img,
.parents-banner-grid img:hover {
  transform: scale(1.06);
}
.parents-banner-grid {
  overflow: visible;
}
.parents-banner-grid img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}
.parents-banner-grid img:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 24px 40px #2a1c1022;
}

/* --- Tap feedback on touch screens -------------------------------------- */
@media (hover: none) {
  .program-tile:active,
  .doc-card:active,
  .contact-info:active,
  .list-card:active,
  .routine-card:active,
  .blog-card:active,
  .educator-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hop-letter.hop {
    transform: none;
  }
  .ripple,
  .logo-click,
  .shake {
    animation: none !important;
  }
}


/* =========================================================================
   Card reveal: cards flip up like they're being dealt, a coloured panel
   sweeps across and slides away, then the icon pops in.
   ========================================================================= */
.motion .reveal-cards[data-stagger] {
  perspective: 1200px;
}
.motion .reveal-cards[data-stagger] > * {
  position: relative;
  opacity: 0;
  transform: rotateX(-70deg) translateY(50px) scale(0.94);
  transform-origin: top center;
  transition:
    opacity 0.5s ease-in-out,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--delay, 0s) * 2.2);
}
.motion .reveal-cards[data-stagger] > *::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: #ed1c24;
  transform: scaleX(1);
  transform-origin: right center;
  pointer-events: none;
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
  transition-delay: calc(var(--delay, 0s) * 2.2 + 0.4s);
}
.motion .reveal-cards[data-stagger] > :nth-child(4n + 2)::before { background: #2ebb5e; }
.motion .reveal-cards[data-stagger] > :nth-child(4n + 3)::before { background: #58a5ef; }
.motion .reveal-cards[data-stagger] > :nth-child(4n + 4)::before { background: #f6c94b; }
.motion .reveal-cards[data-stagger].in > * {
  opacity: 1;
  transform: none;
}
.motion .reveal-cards[data-stagger].in > *::before {
  transform: scaleX(0);
}
/* The icon pops in once the panel has slid away. */
.motion .reveal-cards[data-stagger] .icon-circle,
.motion .reveal-cards[data-stagger] .routine-icon {
  transform: scale(0) rotate(-90deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--delay, 0s) * 2.2 + 0.85s);
}
.motion .reveal-cards[data-stagger].in .icon-circle,
.motion .reveal-cards[data-stagger].in .routine-icon {
  transform: none;
}
/* Once revealed, cards respond to hover quickly again. */
.motion .reveal-cards[data-stagger].done > *,
.motion .reveal-cards[data-stagger].done .icon-circle,
.motion .reveal-cards[data-stagger].done .routine-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  transition-delay: 0s;
}
.motion .reveal-cards[data-stagger].done .benefit:hover .icon-circle,
.motion .reveal-cards[data-stagger].done .routine-card:hover .routine-icon {
  transform: rotate(-12deg) scale(1.12);
}

/* Photo between the benefit columns: a cover lifts away like a curtain.
   (A cover panel is used instead of clip-path: a fully clipped element
   never counts as "on screen", so its reveal would never start.) */
.motion [data-reveal="curtain"] {
  opacity: 1;
  transform: none;
}
.motion [data-reveal="curtain"]::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 4;
  background: #e8f3fd;
  transform: scaleY(1);
  transform-origin: top center;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1) 0.2s;
}
.motion [data-reveal="curtain"].in::before {
  transform: scaleY(0);
}
.motion [data-reveal="curtain"] > img:first-child {
  transform: scale(1.25);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.motion [data-reveal="curtain"].in > img:first-child {
  transform: none;
}
.motion [data-reveal="curtain"] .benefit-star {
  opacity: 0;
  transition: opacity 0.5s ease 1.2s;
}
.motion [data-reveal="curtain"].in .benefit-star {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-cards > *::before {
    display: none;
  }
  [data-reveal="curtain"]::before {
    display: none;
  }
}


/* =========================================================================
   Home page highlights: four cards that overlap the bottom of the video.
   ========================================================================= */
.features.feature-cards {
  position: relative;
  z-index: 2;
  margin-top: -170px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: left;
}
.feature-card {
  --tone: #2ebb5e;
  --tint: #e7f8ed;
  background: white;
  border-radius: 24px;
  padding: 12px 12px 0;
  box-shadow: 0 24px 50px #2a1c1014;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.feature-card.tone-orange { --tone: #ed1c24; --tint: #fdecec; }
.feature-card.tone-blue { --tone: #58a5ef; --tint: #e8f3fd; }
.feature-card.tone-yellow { --tone: #f2b705; --tint: #fff7da; }
.feature-photo {
  position: relative;
  border-radius: 16px;
}
.feature-photo img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.6s ease;
}
.feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--tone) 45%, transparent));
  pointer-events: none;
}
.feature-icon.icon-circle {
  position: absolute;
  left: 18px;
  bottom: -26px;
  z-index: 2;
  width: 54px;
  height: 54px;
  background: var(--tone);
  color: white;
  border: 5px solid white;
  box-sizing: content-box;
}
.feature-icon svg {
  width: 26px;
  height: 26px;
}
.feature-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 44px 14px 22px;
  border-bottom: 5px solid transparent;
  background-image: linear-gradient(var(--tone), var(--tone));
  background-size: 30% 5px;
  background-position: 14px 100%;
  background-repeat: no-repeat;
  transition: background-size 0.45s ease;
}
.feature-body h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.feature-body p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.feature-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--tone);
  background: var(--tint);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.feature-link span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 60px #2a1c101f;
}
.feature-card:hover .feature-photo img {
  transform: scale(1.07);
}
.feature-card:hover .feature-body {
  background-size: calc(100% - 28px) 5px;
}
.feature-card:hover .feature-link {
  background: var(--tone);
  color: white;
}
.feature-card:hover .feature-link span {
  transform: translateX(4px);
}
.feature-photo {
  overflow: visible;
}
.feature-photo img {
  clip-path: inset(0 round 16px);
}
.feature-card:hover .feature-icon {
  animation: hsh-wiggle 0.8s ease-in-out;
}
.motion .reveal-cards[data-stagger].done .feature-card:hover .feature-icon {
  transform: rotate(-12deg) scale(1.1);
}

@media (max-width: 1050px) {
  .features.feature-cards {
    grid-template-columns: 1fr 1fr;
    margin-top: -110px;
  }
}
@media (max-width: 700px) {
  .features.feature-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: -70px;
  }
  .feature-card {
    flex-direction: row;
    align-items: stretch;
    padding: 10px;
    gap: 6px;
  }
  .feature-photo {
    flex: 0 0 104px;
  }
  .feature-photo img {
    height: 100%;
    min-height: 120px;
  }
  .feature-icon.icon-circle {
    width: 38px;
    height: 38px;
    left: auto;
    right: -14px;
    bottom: 10px;
    border-width: 4px;
  }
  .feature-icon svg {
    width: 20px;
    height: 20px;
  }
  .feature-body {
    padding: 8px 8px 12px 22px;
    background-position: 22px 100%;
  }
  .feature-body h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .feature-body p {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .feature-link {
    font-size: 13px;
    padding: 5px 12px;
  }
}


/* =========================================================================
   Approach cards: large photo on top + icon badge, matching the
   highlight cards under the hero video.
   ========================================================================= */
.approach-card {
  --card: #ff8658;
  justify-content: flex-start;
  min-height: 0;
  padding: 14px 14px 26px;
  border-radius: 20px;
}
.approach-card.color-1 { --card: #26c65b; }
.approach-card.color-2 { --card: #58a7ec; }
.approach-photo {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}
.approach-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 0 4px #ffffff4d;
  transition: transform 0.6s ease;
}
.approach-photo {
  border-radius: 14px;
}
.approach-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--card) 55%, transparent));
  pointer-events: none;
}
.approach-icon {
  position: absolute;
  left: 16px;
  bottom: -26px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: white;
  color: var(--card);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px #00000026;
}
.approach-icon svg {
  width: 26px;
  height: 26px;
}
.approach-card > div:not(.approach-photo) {
  position: relative;
  z-index: 1;
  padding: 0 10px;
}
.approach-card:hover .approach-img {
  transform: scale(1.04);
}
/* The photo settles in as the card arrives. */
.motion .approach-cards[data-stagger] .approach-img {
  opacity: 0;
  transform: scale(1.12);
  transition:
    opacity 0.8s ease-in-out calc(var(--delay, 0s) + 0.3s),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--delay, 0s) + 0.3s);
}
.motion .approach-cards[data-stagger].in .approach-img {
  opacity: 1;
  transform: none;
}
.motion .approach-cards[data-stagger].done .approach-img {
  transition: transform 0.6s ease;
}
.motion .approach-cards[data-stagger].done .approach-card:hover .approach-img {
  transform: scale(1.04);
}
@media (max-width: 700px) {
  .approach-img {
    height: 170px;
  }
}


/* =========================================================================
   Testimonials (real Google reviews)
   ========================================================================= */
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 18px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 10px 24px #2a1c100d;
  color: #1a1917;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.google-rating:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px #2a1c1018;
}
.google-rating .g-logo {
  width: 22px;
  height: 22px;
}
.google-rating strong {
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
}
.g-stars {
  color: #fbbc05;
  letter-spacing: 1px;
  font-size: 17px;
}
.g-star-part {
  background: linear-gradient(90deg, #fbbc05 10%, #dadce0 10%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g-count {
  color: #3a3e45;
  font-size: 14px;
  font-weight: 600;
}
.hsh-reviews {
  margin-top: 50px;
  align-items: stretch;
}
.hsh-reviews .review {
  --tone: #ed1c24;
  border-radius: 20px;
  border-top: 5px solid var(--tone);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.hsh-reviews .review.tone-green { --tone: #2ebb5e; }
.hsh-reviews .review.tone-blue { --tone: #58a5ef; }
.hsh-reviews .review.tone-yellow { --tone: #f2b705; }
.hsh-reviews .review:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 46px #2a1c1014;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 24px;
}
.hsh-reviews .stars {
  color: #fbbc05;
}
.review-source {
  font-size: 12px;
  font-weight: 700;
  color: #4a4e55;
  background: #e8f3fd;
  padding: 4px 10px;
  border-radius: 999px;
}
.hsh-reviews .review blockquote {
  font-family: "Nunito", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #2c2b27;
  position: relative;
}
.review-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tone, #ed1c24);
  color: white;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hsh-reviews .review:hover .review-avatar {
  transform: rotate(-10deg) scale(1.1);
}
.testimonials .more-link .button {
  background: white;
}
@media (max-width: 1050px) {
  .hsh-reviews {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .hsh-reviews {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }
  .google-rating {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* =========================================================================
   Footer strip: scrolling text instead of the logo
   ========================================================================= */
.footer-marquee.text-marquee {
  display: block;
  overflow: hidden;
  margin-left: 0;
  padding: 34px 0 26px;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: hsh-text-marquee 45s linear infinite;
}
.marquee-word {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: clamp(54px, 8vw, 120px);
  line-height: 1;
  color: #c8141b;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.marquee-word.outline {
  color: transparent;
  -webkit-text-stroke: 2px #ed1c24;
}
.marquee-dot {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  color: #2ebb5e;
}
.marquee-dot:nth-of-type(4n) {
  color: #58a5ef;
}
.text-marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes hsh-text-marquee {
  to { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .footer-marquee.text-marquee {
    padding: 22px 0 18px;
  }
  .marquee-track {
    gap: 20px;
  }
  .marquee-word.outline {
    -webkit-text-stroke-width: 1.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}


/* =========================================================================
   Home page daily schedule: left side stays pinned while the cards scroll
   ========================================================================= */
.sticky-routine {
  align-items: start;
}
.sticky-routine .routine-pin {
  position: sticky;
  top: 120px;
  align-self: start;
}
.sticky-routine .schedule {
  gap: 22px;
}
.sticky-routine .schedule article {
  padding: 28px;
  border-radius: 18px;
  border-left: 5px solid transparent;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s, opacity 0.3s;
}
.sticky-routine .schedule article.is-active {
  border-left-color: #ed1c24;
  box-shadow: 0 22px 44px #2a1c1014;
  transform: translateX(-6px) scale(1.02);
}
.sticky-routine .schedule article h3 {
  font-size: 22px;
}
.routine-progress {
  margin: 4px 0 30px;
  max-width: 360px;
}
.routine-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #ece9e1;
  overflow: hidden;
}
.routine-progress-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ed1c24, #ff8555, #f6c94b);
  transform: scaleX(var(--routine-progress, 0));
  transform-origin: left;
  transition: transform 0.15s linear;
}
.routine-now {
  margin-top: 12px;
  font-size: 15px;
  color: #3a3e45;
}
.routine-now strong {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: #1a1917;
}
.motion .routine-now strong.flip {
  display: inline-block;
  animation: hsh-now-flip 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes hsh-now-flip {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 1050px) {
  .sticky-routine .routine-pin {
    position: static;
  }
  .routine-progress {
    display: none;
  }
  .sticky-routine .schedule article.is-active {
    transform: none;
  }
}

/* Approach cards: readable text on the coloured backgrounds. */
.approach-card h3 {
  color: #1a1917;
}
.approach-card p {
  color: #2b2118;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.55;
}
.approach-card .card-line {
  opacity: 0.28;
}
.motion .approach-cards[data-stagger].in .card-line {
  opacity: 0.28;
}


/* =========================================================================
   Home hero clean-up: calmer decoration, trust line, softer photo shapes
   ========================================================================= */
/* Two balloons, placed in empty space away from the text; desktop only. */
.home-hero .balloon-orange {
  left: 1%;
  top: 8%;
  width: 46px;
}
.home-hero .balloon-blue {
  right: 1.5%;
  top: 66%;
  width: 42px;
}
@media (max-width: 1050px) {
  .home-hero .balloons {
    display: none;
  }
}

/* Trust line */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin: 22px auto 0 !important;
  font-size: 15px !important;
  color: #3a3e45;
}
.hero-trust a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3f3d38;
  font-weight: 600;
  transition: color 0.2s;
}
.hero-trust a:hover {
  color: #c8141b;
}
.hero-trust strong {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: #1a1917;
}
.trust-stars {
  color: #fbbc05;
  font-size: 17px;
}
.trust-dot {
  color: #d3d0c7;
}
.motion .hero > .hero-trust {
  animation: hsh-rise 0.9s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Photo cut-outs: soft scalloped circles with a coloured ring, brighter. */
.home-hero .hero-cutout {
  width: 168px;
  height: 168px;
  clip-path: var(--scallop);
  padding: 7px;
}
.home-hero .hero-cutout.left {
  background: #2ebb5e;
  transform: rotate(-6deg);
  top: 250px;
}
.home-hero .hero-cutout.right {
  background: #58a5ef;
  transform: rotate(6deg);
  top: 70px;
}
.home-hero .hero-cutout img {
  clip-path: var(--scallop);
  object-position: center 25%;
  filter: brightness(1.08) saturate(1.08) contrast(1.03);
}
@media (max-width: 1050px) {
  .home-hero .hero-cutout {
    width: 112px;
    height: 112px;
    padding: 5px;
  }
  .home-hero .hero-cutout.left {
    top: 24px;
  }
  .home-hero .hero-cutout.right {
    top: 24px;
  }
}
@media (max-width: 700px) {
  .home-hero .hero-cutout {
    width: 86px;
    height: 86px;
    padding: 4px;
  }
  .hero-trust {
    font-size: 14px !important;
    max-width: 320px;
  }
  .hero-trust .trust-dot {
    display: none;
  }
}


/* =========================================================================
   Home page programs: unified cards (photo on top), 3 / 2 / 1 per view
   ========================================================================= */
.programs .program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.programs .program-pair {
  --tone: #ed1c24;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px #00000029;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.programs .program-pair.tone-green { --tone: #2ebb5e; }
.programs .program-pair.tone-blue { --tone: #58a5ef; }
.programs .program-pair.tone-yellow { --tone: #f2b705; }
.programs .program-pair.tone-peach { --tone: #ff8555; }
.programs .program-pair:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 60px #0000003d;
}
.programs .program-picture {
  display: block !important;
  position: relative;
  order: 0;
  aspect-ratio: 16 / 10;
  clip-path: none;
  border-radius: 0;
  background: var(--tone);
  overflow: hidden;
}
.programs .program-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.programs .program-pair:hover .program-picture img {
  transform: scale(1.06);
}
.programs .program-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, #00000059);
  pointer-events: none;
}
.program-piece {
  position: absolute;
  right: 16px;
  bottom: -26px;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: white;
  color: var(--tone);
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 22px #00000026;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.programs .program-picture {
  overflow: visible;
}
.programs .program-picture img {
  border-radius: 0;
}
.programs .program-pair:hover .program-piece {
  transform: rotate(-12deg) scale(1.1);
}
.program-age {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  background: white;
  color: #1a1917;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
}
.programs .program-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 30px 24px 24px;
  border-radius: 0;
  background: white;
  border-top: 5px solid var(--tone);
}
.programs .program-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
  padding-right: 54px;
}
.programs .program-card > p {
  font-size: 15px;
  line-height: 1.55;
  color: #30343a;
}
.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 20px;
}
.focus-tags li {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 12%, white);
  color: color-mix(in srgb, var(--tone) 70%, #1a1917);
}
.program-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed #eeede7;
}
.program-actions .text-button {
  margin: 0;
  color: #1a1917;
}
.program-tour {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ed1c24;
  color: white;
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.program-tour:hover {
  background: #c8141b;
  transform: translateY(-2px);
}
.programs .slider-controls {
  margin-top: 36px;
}
@media (max-width: 1050px) {
  .programs .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .programs .program-grid {
    grid-template-columns: 1fr;
  }
  .programs .program-pair {
    border-radius: 18px;
  }
  .programs .program-pair .program-picture {
    border-radius: 0;
  }
}

/* Photo follows the card's width (the fixed shape was stretching it wider). */
.programs .program-pair .program-picture {
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
}
.programs .program-pair .program-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.programs .program-pair .program-picture .program-age,
.programs .program-pair .program-picture .program-piece {
  z-index: 3;
}

/* Portrait photos: show the more interesting upper-middle part. */
.programs .program-pair .program-picture img {
  object-position: center 40%;
}

/* The photo zooms inside its own clipped frame, so nothing pokes out on
   hover; the round badge can still overlap the card below. */
.programs .program-pair .program-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.programs .program-pair .program-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, #00000059);
  pointer-events: none;
}
.programs .program-picture::after {
  display: none;
}

/* =========================================================================
   Footer visit card: grow with its content on small screens
   ========================================================================= */
.visit > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .visit {
    height: auto;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
  }
  .visit-copy {
    padding: 150px 22px 26px;
    width: 100%;
  }
  .visit h2 {
    font-size: 27px;
    line-height: 1.2;
    margin: 14px 0 22px;
  }
  .visit h2 br {
    display: none;
  }
  .visit-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .visit-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Header "Contact Us" button in the logo red */
.button.nav-contact {
  background: #ed1c24;
  border-color: #ed1c24;
  color: white;
}
.button.nav-contact:hover,
.button.nav-contact:focus-visible {
  background: #c8141b;
  border-color: #c8141b;
  color: white;
}

/* =========================================================================
   Client revision: light blue page, no yellow at the bottom
   ========================================================================= */
:root {
  --hsh-sky: #e8f3fd;
  --hsh-sky-deep: #cfe4f8;
}
body {
  background: var(--hsh-sky);
}
footer {
  background: var(--hsh-sky-deep) url("images/footer-shape.svg") center/cover;
  color: #1a1917;
}
footer .footer-about p,
footer .footer-links a,
footer .footer-links li,
footer .copyright,
footer .copyright a {
  color: #24323f;
}
footer .footer-links a:hover {
  color: #c8141b;
}
.routine-teaser,
.holiday-card {
  background: var(--hsh-sky-deep) url("images/footer-shape.svg") center/cover;
}
::selection {
  background: #bcdcf7;
}

/* =========================================================================
   The Discovery House page
   ========================================================================= */
:root {
  --dh-red: #ed1c24;
  --dh-green: #2ebb5e;
  --dh-blue: #3d8fe0;
  --dh-peach: #ff7a45;
  --dh-purple: #8a63d2;
}
.discovery-page section {
  scroll-margin-top: 110px;
}
.discovery-page h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  margin: 14px 0 16px;
}
.discovery-page p {
  color: #2b3440;
}

/* Legacy intro */
.dh-legacy {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 30px;
  margin-bottom: 90px;
}
.dh-legacy-copy p + p {
  margin-top: 14px;
}
.dh-kicker {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
  color: #c8141b !important;
}
.dh-signoff {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 19px;
  color: #1a1917 !important;
}
.dh-pillars {
  background: #17325c;
  color: white;
  border-radius: 26px;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.dh-pillars p {
  color: #d9e6f5;
}
.dh-pillars .dh-tagline {
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  line-height: 1.3;
  color: white;
}
.dh-pillars ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dh-pillars li {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff1f;
  border: 1px solid #ffffff38;
}

/* Philosophy */
.dh-philosophy {
  text-align: center;
  max-width: 900px;
  margin-bottom: 90px;
}
.dh-philosophy .badge {
  margin-inline: auto;
}
.dh-philosophy p {
  font-size: 19px;
  max-width: 720px;
  margin-inline: auto;
}

/* Five environments */
.dh-worlds {
  margin-bottom: 100px;
}
.dh-worlds-top {
  max-width: 720px;
  margin-bottom: 40px;
}
.dh-world-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.dh-world {
  --tone: var(--dh-red);
  grid-column: span 2;
  background: white;
  border-radius: 24px;
  padding: 30px 26px;
  border-top: 6px solid var(--tone);
  box-shadow: 0 18px 40px #17325c14;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.dh-world:nth-child(4) {
  grid-column: 2 / span 2;
}
.dh-world:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px #17325c24;
}
.dh-world.tone-green { --tone: var(--dh-green); }
.dh-world.tone-blue { --tone: var(--dh-blue); }
.dh-world.tone-peach { --tone: var(--dh-peach); }
.dh-world.tone-purple { --tone: var(--dh-purple); }
.dh-world-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dh-world-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, white);
}
.dh-world-icon svg {
  width: 28px;
  height: 28px;
}
.dh-world-num {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: color-mix(in srgb, var(--tone) 22%, white);
}
.dh-world h3 {
  font-size: 23px;
  margin-bottom: 4px;
}
.dh-motto {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  color: var(--tone) !important;
  margin-bottom: 12px;
}
.dh-world h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a3e45;
  margin: 18px 0 8px;
}
.dh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dh-tags li {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 11%, white);
  color: color-mix(in srgb, var(--tone) 72%, #1a1917);
}

/* Shared check list */
.dh-checks {
  display: grid;
  gap: 12px;
}
.dh-checks li {
  position: relative;
  padding: 16px 18px 16px 54px;
  border-radius: 16px;
  background: #ffffff1a;
  border: 1px solid #ffffff2e;
  color: white;
  font-weight: 600;
}
.dh-checks li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background-color: #2ebb5e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M6 12.5l4 4 8-9%22 fill=%22none%22 stroke=%22white%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  background-position: center;
  background-size: 14px;
  background-repeat: no-repeat;
}
.dh-checks-light li {
  background: white;
  border-color: #dbe8f5;
  color: #1a1917;
}

/* Two-tier band */
.dh-band {
  background: #17325c;
  padding: 90px 0;
  margin-bottom: 100px;
}
.dh-structures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.dh-band h2 {
  color: white;
}
.dh-band p {
  color: #d9e6f5;
}

/* Exploration day */
.dh-day {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 100px;
}
.dh-day-intro {
  position: sticky;
  top: 120px;
}
.dh-note {
  margin-top: 14px;
  font-size: 15px;
  padding: 14px 18px;
  border-left: 4px solid #3d8fe0;
  background: white;
  border-radius: 0 12px 12px 0;
}
.dh-timeline {
  counter-reset: dh;
  display: grid;
  gap: 14px;
}
.dh-timeline li {
  counter-increment: dh;
  position: relative;
  background: white;
  border-radius: 18px;
  padding: 20px 22px 20px 74px;
  box-shadow: 0 10px 26px #17325c10;
}
.dh-timeline li::before {
  content: counter(dh);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: white;
  background: #3d8fe0;
}
.dh-timeline li:nth-child(2)::before { background: var(--dh-red); }
.dh-timeline li:nth-child(3)::before { background: var(--dh-green); }
.dh-timeline li:nth-child(4)::before { background: var(--dh-blue); }
.dh-timeline li:nth-child(5)::before { background: var(--dh-peach); }
.dh-timeline li:nth-child(6)::before { background: var(--dh-purple); }
.dh-timeline li:last-child::before { background: #17325c; }
.dh-timeline h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

/* Parents */
.dh-parents {
  margin-bottom: 100px;
}
.dh-parents-top {
  max-width: 760px;
  margin-bottom: 36px;
}
.dh-pathways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.dh-pathway {
  --tone: var(--dh-red);
  background: white;
  border-radius: 24px;
  padding: 34px 30px;
  border: 2px solid color-mix(in srgb, var(--tone) 25%, white);
}
.dh-pathway.tone-blue { --tone: var(--dh-blue); }
.dh-pathway-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tone);
  color: white;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
}
.dh-pathway h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.dh-parents-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Commitment */
.dh-commit {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 100px;
}

/* Closing */
.dh-closing {
  text-align: center;
  max-width: 880px;
  margin-bottom: 90px;
}
.dh-closing p {
  font-size: 18px;
}
.dh-motto-line {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 22px !important;
  color: #c8141b !important;
}

/* Home page: five worlds teaser */
.home-worlds {
  margin-top: 90px;
  margin-bottom: 30px;
}
.home-worlds-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
.home-worlds-top h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
  margin-top: 14px;
}
.home-worlds-top p {
  max-width: 460px;
  color: #2b3440;
}
.home-worlds .dh-world-list {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.home-worlds .dh-world,
.home-worlds .dh-world:nth-child(4) {
  grid-column: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.home-worlds .dh-world h3 {
  font-size: 19px;
}
.home-worlds .dh-world p {
  font-size: 15px;
  color: #2b3440;
}
.home-worlds .dh-world .dh-motto {
  margin: 6px 0 0;
}
.home-worlds .dh-world-num {
  font-size: 34px;
}
.home-worlds .dh-world-icon {
  width: 48px;
  height: 48px;
}

@media (max-width: 1050px) {
  .dh-world-list {
    grid-template-columns: 1fr 1fr;
  }
  .dh-world,
  .dh-world:nth-child(4) {
    grid-column: auto;
  }
  .dh-world:last-child {
    grid-column: 1 / -1;
  }
  .home-worlds .dh-world-list {
    grid-template-columns: 1fr 1fr;
  }
  .home-worlds .dh-world:last-child {
    grid-column: 1 / -1;
  }
  .home-worlds-top {
    flex-direction: column;
    align-items: start;
  }
  .dh-legacy,
  .dh-structures,
  .dh-day,
  .dh-commit {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .dh-day-intro {
    position: static;
  }
}
@media (max-width: 700px) {
  .dh-world-list,
  .home-worlds .dh-world-list,
  .dh-pathways {
    grid-template-columns: 1fr;
  }
  .dh-world:last-child,
  .home-worlds .dh-world:last-child {
    grid-column: auto;
  }
  .dh-band {
    padding: 64px 0;
  }
  .dh-legacy,
  .dh-philosophy,
  .dh-worlds,
  .dh-band,
  .dh-day,
  .dh-parents,
  .dh-commit {
    margin-bottom: 64px;
  }
  .dh-pillars {
    padding: 30px 24px;
  }
  .home-worlds {
    margin-top: 64px;
  }
}

/* The photo cards no longer overlap the hero video: the five worlds sit between them. */
.home-worlds + .about .features {
  margin-top: 70px;
}
@media (max-width: 700px) {
  .home-worlds + .about .features {
    margin-top: 50px;
  }
}

/* Hero: photos stay in the side margins and the heading always fits between them. */
@media (min-width: 1051px) {
  .home-hero .hero-cutout {
    width: 150px;
    height: 150px;
  }
  .home-hero .hero-cutout.left {
    left: 0;
    top: 300px;
  }
  .home-hero .hero-cutout.right {
    right: 0;
    top: 60px;
  }
  .home-hero h1 {
    font-size: min(72px, calc((100vw - 540px) / 12));
  }
  .home-hero > p {
    max-width: min(640px, calc(100vw - 520px));
  }
}

/* =========================================================================
   Home: "Schedule your preschool play" booking card
   ========================================================================= */
.play-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border-radius: 30px;
  overflow: hidden;
  background: white;
  box-shadow: 0 30px 60px #17325c1f;
}
.play-intro {
  background: #17325c url("images/footer-shape.svg") center/cover;
  color: white;
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.play-intro h2 {
  color: white;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.1;
}
.play-intro p {
  color: #d9e6f5;
}
.play-worlds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.play-worlds li {
  --tone: var(--dh-red);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 8px;
  border-radius: 999px;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  font-weight: 700;
  font-size: 14px;
}
.play-worlds li.tone-green { --tone: var(--dh-green); }
.play-worlds li.tone-blue { --tone: var(--dh-blue); }
.play-worlds li.tone-peach { --tone: var(--dh-peach); }
.play-worlds li.tone-purple { --tone: var(--dh-purple); }
.play-worlds li > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tone);
  color: white;
}
.play-worlds svg {
  width: 15px;
  height: 15px;
}
.play-call {
  margin-top: auto;
  font-size: 15px;
}
.play-call a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.play-form {
  padding: 40px 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.play-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.play-step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #1a1917;
  margin-bottom: 12px;
}
.play-step legend span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ed1c24;
  color: white;
  font-size: 15px;
}
.play-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.play-option {
  position: relative;
  cursor: pointer;
}
.hsh-form .play-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
}
.play-option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 16px 16px 16px 48px;
  border-radius: 16px;
  border: 2px solid #dbe8f5;
  background: #f5f9fe;
  position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.play-option-body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #b6cbe0;
  background: white;
  transition: border 0.2s;
}
.play-option-body strong {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #1a1917;
}
.play-option-body small {
  font-size: 14px;
  color: #55606b;
  line-height: 1.4;
}
.play-option:hover .play-option-body {
  transform: translateY(-2px);
}
.play-option input:checked + .play-option-body {
  border-color: #ed1c24;
  background: #fff4f4;
}
.play-option input:checked + .play-option-body::before {
  border: 6px solid #ed1c24;
}
.play-option input:focus-visible + .play-option-body {
  box-shadow: 0 0 0 4px #ed1c2433;
}
.play-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.play-row + .play-row {
  margin-top: 12px;
}
.play-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2b3440;
}
.play-form input:not([type="radio"]),
.play-form select {
  border-color: #dbe8f5;
  background: #f5f9fe;
}
.play-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.play-small {
  font-size: 13px;
  color: #3a3e45;
  text-align: center;
}
.play-error {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff0f0;
  color: #b3141a;
  font-weight: 700;
}
.play-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.play-done {
  justify-content: center;
  align-items: flex-start;
}
.play-done-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2ebb5e;
  color: white;
  font-size: 30px;
  font-weight: 700;
}
.play-done h3 {
  font-size: 28px;
}

@media (max-width: 1050px) {
  .play-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .play-intro,
  .play-form {
    padding: 32px 22px;
  }
  .play-card {
    border-radius: 22px;
  }
  .play-options {
    grid-template-columns: 1fr;
  }
}
.play-intro .badge {
  align-self: flex-start;
}
.hsh-form .play-option > .play-option-body {
  display: flex;
  flex-direction: column;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
}

/* =========================================================================
   Client request: no faded text. Body copy is dark and slightly heavier.
   ========================================================================= */
body {
  color: #1f2328;
}
main p,
main li,
footer p,
footer li {
  font-weight: 500;
}
.hero > p,
.banner-paragraph,
.section-top p,
.muted {
  color: #2b2f36;
}
.hero-pillars {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: #c8141b;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
@media (min-width: 1051px) {
  .home-hero h1 {
    font-size: min(64px, calc((100vw - 540px) / 13));
  }
}

/* =========================================================================
   Discover Your Day (home page scheduler)
   ========================================================================= */
.dyd-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
.dyd-top h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.1;
  margin-top: 14px;
}
.dyd-top p {
  max-width: 480px;
  color: #2b2f36;
}
.dyd-form {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 26px;
  align-items: start;
}
.dyd-plan,
.dyd-panel {
  background: white;
  border-radius: 28px;
  padding: 34px 32px;
  box-shadow: 0 24px 50px #17325c17;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.dyd-panel {
  position: sticky;
  top: 110px;
}
.dyd-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.dyd-step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #1a1917;
  margin-bottom: 14px;
}
.dyd-step legend span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ed1c24;
  color: white;
  font-size: 15px;
}

/* Time slots */
.dyd-slots {
  display: grid;
  gap: 10px;
}
.dyd-slot {
  --tone: #17325c;
  position: relative;
  display: grid;
  grid-template-columns: 62px 44px 1fr 28px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid #e1ebf6;
  background: #f7fafe;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dyd-slot.tone-red { --tone: var(--dh-red); }
.dyd-slot.tone-green { --tone: var(--dh-green); }
.dyd-slot.tone-blue { --tone: var(--dh-blue); }
.dyd-slot.tone-peach { --tone: var(--dh-peach); }
.dyd-slot.tone-purple { --tone: var(--dh-purple); }
.dyd-slot.tone-rest { --tone: #5b6472; }
.hsh-form .dyd-slot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
}
.dyd-slot:hover {
  transform: translateX(4px);
}
.dyd-time {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #1a1917;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.dyd-time small {
  font-size: 13px;
  font-weight: 500;
  color: #3a3e45;
}
.dyd-time small::before {
  content: "to ";
}
.dyd-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, white);
}
.dyd-icon svg {
  width: 22px;
  height: 22px;
}
.dyd-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dyd-copy strong {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #1a1917;
}
.dyd-copy small {
  font-size: 14px;
  line-height: 1.4;
  color: #2b2f36;
  font-weight: 500;
}
.dyd-kids-tag {
  align-self: flex-start;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff0d6;
  color: #8a4b00;
}
.dyd-check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid #b6cbe0;
  background: white;
  transition: background 0.2s, border-color 0.2s;
}
.dyd-slot:has(input:checked) {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 7%, white);
}
.dyd-slot:has(input:checked) .dyd-check {
  background: var(--tone) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M6 12.5l4 4 8-9%22 fill=%22none%22 stroke=%22white%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") center/16px no-repeat;
  border-color: var(--tone);
}
.dyd-slot:has(input:focus-visible) {
  box-shadow: 0 0 0 4px #ed1c2433;
}
.dyd-slot.is-kids-only {
  background: repeating-linear-gradient(-45deg, #f4f6f9, #f4f6f9 10px, #eef1f5 10px, #eef1f5 20px);
}
.dyd-slot.is-locked {
  cursor: not-allowed;
  opacity: 0.85;
}
.dyd-slot.is-locked:hover {
  transform: none;
}
.dyd-slot.is-locked .dyd-check {
  background: #eef1f5 url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%225%22 y=%2211%22 width=%2214%22 height=%2210%22 rx=%222%22 fill=%22%235b6472%22/%3E%3Cpath d=%22M8 11V8a4 4 0 0 1 8 0v3%22 fill=%22none%22 stroke=%22%235b6472%22 stroke-width=%222.4%22/%3E%3C/svg%3E") center/16px no-repeat;
}
.dyd-note {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff7e8;
  color: #6b3d00;
  font-size: 14px;
  font-weight: 600;
}

/* Panel */
.dyd-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #eef4fb;
  margin-bottom: 14px;
}
.dyd-toggle label {
  position: relative;
  cursor: pointer;
}
.hsh-form .dyd-toggle input,
.hsh-form .dyd-days input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
}
.dyd-toggle span {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: #17325c;
  transition: background 0.2s, color 0.2s;
}
.dyd-toggle input:checked + span {
  background: #17325c;
  color: white;
}
.dyd-toggle input:focus-visible + span,
.dyd-days input:focus-visible + span {
  box-shadow: 0 0 0 4px #ed1c2433;
}
.dyd-days {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.dyd-days label {
  position: relative;
  flex: 1;
  cursor: pointer;
}
.dyd-days span {
  display: block;
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  border: 2px solid #dbe8f5;
  background: #f5f9fe;
  font-weight: 800;
  color: #17325c;
  transition: all 0.2s;
}
.dyd-days input:checked + span {
  background: #ed1c24;
  border-color: #ed1c24;
  color: white;
}
.dyd-days[hidden] {
  display: none;
}
.dyd-panel .play-row + .play-row {
  margin-top: 12px;
}
.dyd-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2b3440;
}
.dyd-panel .dyd-toggle label,
.dyd-panel .dyd-days label {
  display: block;
}
.dyd-panel input:not([type="radio"]):not([type="checkbox"]),
.dyd-panel select {
  border-color: #dbe8f5;
  background: #f5f9fe;
}
.dyd-summary {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #17325c;
  padding: 12px 16px;
  border-radius: 14px;
  background: #eef4fb;
}
.dyd-summary.is-error {
  background: #fff0f0;
  color: #b3141a;
}
.dyd-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.dyd-done {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: white;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 24px 50px #17325c17;
}
.dyd-done > div {
  flex: 1;
  min-width: 240px;
}
.dyd-done h3 {
  font-size: 28px;
  margin-bottom: 6px;
}
.dyd-done-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2ebb5e;
  color: white;
  font-size: 32px;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .dyd-form {
    grid-template-columns: 1fr;
  }
  .dyd-panel {
    position: static;
  }
  .dyd-top {
    flex-direction: column;
    align-items: start;
  }
}
@media (max-width: 700px) {
  .dyd-plan,
  .dyd-panel {
    padding: 26px 18px;
    border-radius: 22px;
  }
  .dyd-slot {
    grid-template-columns: 52px 1fr 26px;
    gap: 10px;
    padding: 12px;
  }
  .dyd-icon {
    display: none;
  }
  .dyd-time {
    font-size: 16px;
  }
  .play-options {
    grid-template-columns: 1fr;
  }
}
.hsh-form .dyd-slot > .dyd-time,
.hsh-form .dyd-slot > .dyd-copy {
  display: flex;
  flex-direction: column;
}
.hsh-form .dyd-slot > .dyd-icon {
  display: grid;
}
.hsh-form .dyd-slot > .dyd-check {
  display: block;
}
.hsh-form .dyd-slot > span,
.hsh-form .dyd-slot:focus-within > span {
  transform: none;
  color: inherit;
}
@media (max-width: 700px) {
  .hsh-form .dyd-slot > .dyd-icon {
    display: none;
  }
}

/* Accent text in the brand colours, deepened so it reads clearly on white. */
.feature-link,
.dh-motto,
.dh-world .dh-motto {
  color: color-mix(in srgb, var(--tone) 62%, #101418) !important;
}
.badge {
  color: #c8141b;
}
.badge.light {
  color: white;
}
.dyd-time small,
.dyd-copy small {
  color: #2b2f36;
}

/* =========================================================================
   Phones: tighter hero, swipeable card rows, compact scheduler
   ========================================================================= */
@media (max-width: 700px) {
  /* Hero */
  .home-hero {
    padding-top: 70px;
    padding-bottom: 40px;
  }
  .home-hero h1 {
    font-size: 31px;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 16px auto 14px;
    max-width: 330px;
  }
  .home-hero > p {
    font-size: 16px;
    line-height: 1.45;
    max-width: 320px;
  }
  .home-hero .hero-pillars {
    font-size: 15px;
  }
  .home-hero .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 320px;
    margin: 22px auto 0;
  }
  .home-hero .actions .button {
    justify-content: center;
    width: 100%;
  }
  .home-hero .hero-trust {
    margin-top: 16px !important;
    font-size: 13px !important;
  }
  .home-hero .badge {
    font-size: 10px;
    padding: 6px 12px;
  }

  /* Swipeable rows: one card plus a peek of the next */
  .home-worlds .dh-world-list,
  .approach-cards,
  .review-grid,
  .journal .blog-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin-inline: calc(50% - 50vw);
    padding: 6px 16px 22px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .home-worlds .dh-world-list::-webkit-scrollbar,
  .approach-cards::-webkit-scrollbar,
  .review-grid::-webkit-scrollbar,
  .journal .blog-grid::-webkit-scrollbar {
    display: none;
  }
  .home-worlds .dh-world-list > *,
  .approach-cards > *,
  .review-grid > *,
  .journal .blog-grid > * {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-width: 0;
    grid-column: auto !important;
  }
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -8px 0 6px;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #17325c;
  }
  .swipe-hint::after {
    content: "→";
    animation: hsh-nudge 1.4s ease-in-out infinite;
  }

  /* Five worlds: bold coloured cards on phones */
  .home-worlds .dh-world {
    min-height: 190px;
    padding: 22px 20px;
    border-top-width: 0;
    background: var(--tone);
    color: white;
    box-shadow: 0 18px 34px color-mix(in srgb, var(--tone) 35%, transparent);
  }
  .home-worlds .dh-world h3,
  .home-worlds .dh-world .dh-motto {
    color: white !important;
  }
  .home-worlds .dh-world .dh-motto {
    opacity: 0.92;
  }
  .home-worlds .dh-world-icon {
    background: #ffffff2e;
    color: white;
  }
  .home-worlds .dh-world-num {
    color: #ffffff59;
    font-size: 40px;
  }
  .home-worlds-top {
    margin-bottom: 18px;
    gap: 12px;
  }
  .home-worlds-top h2 {
    font-size: 32px;
  }

  /* Approach + reviews + blog cards keep a steady height in the row */
  .approach-cards > *,
  .review-grid > * {
    height: auto;
  }

  /* Section rhythm */
  .section-space {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* Discover Your Day: compact, thumb-friendly */
  .dyd-top h2 {
    font-size: 32px;
  }
  .dyd-top {
    margin-bottom: 20px;
  }
  .dyd-plan,
  .dyd-panel {
    padding: 22px 16px;
    gap: 22px;
  }
  .dyd-form {
    gap: 16px;
  }
  .dyd-step legend {
    font-size: 17px;
  }
  .dyd-slots {
    gap: 8px;
  }
  .dyd-slot {
    grid-template-columns: 50px 1fr 26px;
    padding: 12px 12px 12px 14px;
    border-radius: 16px;
    border-width: 2px;
    border-left: 6px solid var(--tone);
  }
  .dyd-slot:hover {
    transform: none;
  }
  .dyd-time {
    font-size: 15px;
  }
  .dyd-time small {
    font-size: 12px;
  }
  .dyd-copy strong {
    font-size: 16px;
    line-height: 1.2;
  }
  .dyd-copy small {
    font-size: 13px;
  }
  .play-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .play-option-body {
    padding: 44px 12px 14px;
    text-align: center;
    align-items: center;
  }
  .play-option-body::before {
    left: 50%;
    top: 14px;
    margin-left: -10px;
  }
  .play-option-body strong {
    font-size: 15px;
  }
  .play-option-body small {
    font-size: 12px;
  }
  .dyd-days {
    gap: 6px;
  }
  .dyd-days span {
    padding: 11px 0;
    font-size: 14px;
  }
  .dyd-panel .play-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dyd-panel input,
  .dyd-panel select {
    font-size: 16px; /* stops iPhone zooming into fields */
  }
  .dyd-summary {
    font-size: 15px;
    text-align: center;
  }
}
@keyframes hsh-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-hint::after {
    animation: none;
  }
}
@media (min-width: 701px) {
  .swipe-hint {
    display: none;
  }
}
@media (max-width: 700px) {
  .home-hero {
    padding-top: 100px;
  }
  .home-hero .hero-cutout {
    width: 76px;
    height: 76px;
    padding: 4px;
  }
  .home-hero .hero-cutout.left,
  .home-hero .hero-cutout.right {
    top: 6px;
  }
}
@media (max-width: 700px) {
  .home-worlds {
    margin-bottom: 0;
  }
  .home-worlds + .about {
    padding-top: 10px;
  }
  .home-worlds + .about .features {
    margin-top: 20px;
  }
}
@media (max-width: 700px) {
  .to-top {
    display: none !important;
  }
  /* Keep the tick boxes clear of the floating call button. */
  .dyd-slots {
    padding-right: 4px;
  }
}
@media (max-width: 700px) {
  .home-worlds .dh-world-list,
  .approach-cards,
  .review-grid,
  .journal .blog-grid {
    flex-direction: row !important;
    align-items: stretch;
  }
}
@media (max-width: 700px) {
  .parents .benefit-photo,
  .parents .benefit-photo img:not([class]) {
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 230px;
    width: 100%;
    object-fit: cover;
  }
  .review-grid .review blockquote {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 700px) {
  .parents .benefit-photo .benefit-star {
    width: 44px;
    height: auto;
  }
  .parents .benefit-photo .benefit-curve {
    display: none;
  }
}
@media (max-width: 700px) {
  .parents .benefit-photo img:not([class]) {
    object-position: center 30%;
  }
}

/* Date field placeholder */
.date-wrap {
  position: relative;
  display: block;
}
.date-wrap input[type="date"] {
  width: 100%;
}
.date-ph {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-weight: 600;
  font-size: 15px;
  color: #5b6472;
  background: inherit;
}
.date-wrap.has-value .date-ph,
.date-wrap.is-focus .date-ph {
  display: none;
}
/* Empty date fields: hide the browser's own blank/"mm/dd/yyyy" text under our label. */
.date-wrap:not(.has-value):not(.is-focus) input[type="date"] {
  color: transparent;
}
.date-wrap:not(.has-value):not(.is-focus) input[type="date"]::-webkit-datetime-edit {
  color: transparent;
}
.hsh-form label > .date-wrap,
.hsh-form label:focus-within > .date-wrap {
  display: block;
  transform: none;
  color: inherit;
}
@media (max-width: 700px) {
  .review-grid .review blockquote {
    padding-bottom: 0;
    margin-bottom: 22px;
    font-size: 15.5px;
    line-height: 1.55;
    -webkit-line-clamp: 7;
    max-height: calc(1.55em * 7);
  }
  .review-grid .review .review-source {
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 10px;
  }
  .review-grid .review {
    padding: 22px 20px 20px;
  }
}

/* =========================================================================
   Smooth motion pass: one easing everywhere, GPU-only properties,
   lighter entrances on phones, and swipe-linked card motion.
   ========================================================================= */
:root {
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}
.motion [data-reveal],
.motion [data-stagger] > * {
  transition:
    opacity 0.7s var(--ease-smooth),
    transform 0.9s var(--ease-smooth);
  transition-delay: var(--delay, 0s);
  backface-visibility: hidden;
}
.motion [data-reveal]:not(.done),
.motion [data-stagger]:not(.done) > * {
  will-change: opacity, transform;
}

@media (max-width: 700px) {
  /* Shorter travel and quicker, tighter staggering on phones. */
  .motion [data-reveal],
  .motion [data-stagger] > * {
    transform: translate3d(0, 22px, 0);
    transition:
      opacity 0.55s var(--ease-smooth),
      transform 0.7s var(--ease-smooth);
    transition-delay: calc(var(--delay, 0s) * 0.5);
  }
  .motion [data-reveal="left"],
  .motion [data-reveal="right"],
  .motion [data-reveal="zoom"] {
    transform: translate3d(0, 22px, 0);
  }
  .motion [data-reveal].in,
  .motion [data-stagger].in > * {
    opacity: 1;
    transform: none;
  }

  /* No 3D card flip or sweeping panel on phones: a clean fade-up instead. */
  .motion .reveal-cards[data-stagger] {
    perspective: none;
  }
  .motion .reveal-cards[data-stagger] > * {
    transform: translate3d(0, 22px, 0);
    transition-delay: calc(var(--delay, 0s) * 0.5);
  }
  .motion .reveal-cards[data-stagger] > *::before {
    display: none;
  }
  .motion .reveal-cards[data-stagger] .icon-circle,
  .motion .reveal-cards[data-stagger] .routine-icon {
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.5s var(--ease-smooth), opacity 0.4s ease;
    transition-delay: calc(var(--delay, 0s) * 0.5 + 0.25s);
  }
  .motion .reveal-cards[data-stagger].in .icon-circle,
  .motion .reveal-cards[data-stagger].in .routine-icon {
    transform: none;
    opacity: 1;
  }

  /* Swipe rows: the whole row rises in once... */
  .motion .home-worlds .dh-world-list[data-stagger],
  .motion .approach-cards[data-stagger],
  .motion .review-grid[data-stagger],
  .motion .journal .blog-grid[data-stagger] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.6s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  }
  .motion .home-worlds .dh-world-list[data-stagger].in,
  .motion .approach-cards[data-stagger].in,
  .motion .review-grid[data-stagger].in,
  .motion .journal .blog-grid[data-stagger].in {
    opacity: 1;
    transform: none;
  }
  /* ...and its cards don't run their own delayed entrance. */
  .motion .home-worlds .dh-world-list[data-stagger] > :nth-child(n),
  .motion .approach-cards[data-stagger] > :nth-child(n),
  .motion .review-grid[data-stagger] > :nth-child(n),
  .motion .journal .blog-grid[data-stagger] > :nth-child(n),
  .motion .home-worlds .dh-world-list[data-stagger].in > :nth-child(n),
  .motion .approach-cards[data-stagger].in > :nth-child(n),
  .motion .review-grid[data-stagger].in > :nth-child(n),
  .motion .journal .blog-grid[data-stagger].in > :nth-child(n) {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease;
    transition-delay: 0s;
    will-change: auto;
  }
  .motion .approach-cards[data-stagger] .approach-icon,
  .motion .approach-cards[data-stagger] .approach-card h3,
  .motion .approach-cards[data-stagger] .approach-card p,
  .motion .approach-cards[data-stagger] .card-line {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Cards grow and brighten as they're swiped into view, tied to the finger. */
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .home-worlds .dh-world-list > *,
    .approach-cards > *,
    .review-grid > *,
    .journal .blog-grid > * {
      animation: hsh-swipe-in linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 100%;
    }
    @keyframes hsh-swipe-in {
      from {
        opacity: 0.55;
        transform: scale(0.9);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }
  }
}

/* Programs page: Discovery House strip (replaces the old age finder) */
.programs-dh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #17325c;
  color: white;
  border-radius: 26px;
  padding: 34px 38px;
  margin-top: 10px;
  margin-bottom: 70px;
}
.programs-dh h2 {
  color: white;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  margin-top: 10px;
}
.programs-dh .badge {
  color: white;
  background: #ffffff1f;
}
.programs-dh .badge img {
  filter: brightness(0) invert(1);
}
.programs-dh-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.programs-dh .button.outline {
  color: white;
  border-color: #ffffff80;
}
@media (max-width: 700px) {
  .programs-dh {
    padding: 26px 20px;
    margin-bottom: 48px;
  }
  .programs-dh-actions,
  .programs-dh-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* Discovery House page: the five worlds swipe on phones too. */
@media (max-width: 700px) {
  .dh-worlds .dh-world-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin-inline: calc(50% - 50vw);
    padding: 6px 16px 22px;
    scrollbar-width: none;
  }
  .dh-worlds .dh-world-list::-webkit-scrollbar {
    display: none;
  }
  .dh-worlds .dh-world-list > * {
    flex: 0 0 84%;
    scroll-snap-align: start;
    min-width: 0;
    grid-column: auto !important;
  }
  .motion .dh-worlds .dh-world-list[data-stagger] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.6s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  }
  .motion .dh-worlds .dh-world-list[data-stagger].in {
    opacity: 1;
    transform: none;
  }
  .motion .dh-worlds .dh-world-list[data-stagger] > :nth-child(n),
  .motion .dh-worlds .dh-world-list[data-stagger].in > :nth-child(n) {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease;
    transition-delay: 0s;
  }
  .dh-checks li {
    padding: 13px 14px 13px 48px;
  }
  .dh-checks li::before {
    left: 14px;
  }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .dh-worlds .dh-world-list > * {
      animation: hsh-swipe-in linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 100%;
    }
  }
}

/* Hero: "Explore The Discovery House" in the Discovery House navy */
.home-hero .actions .button.outline {
  background: #17325c;
  border-color: #17325c;
  color: white;
}
.home-hero .actions .button.outline:hover,
.home-hero .actions .button.outline:focus-visible {
  background: #0f2442;
  border-color: #0f2442;
  color: white;
}

/* =========================================================================
   Discover Your Day: "How often?" panel, redesigned
   ========================================================================= */
/* Two-way switch with a sliding navy thumb */
.dyd-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 20px;
  background: #eef4fb;
  border: 1px solid #dbe8f5;
}
.dyd-seg-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 15px;
  background: #17325c;
  box-shadow: 0 8px 18px #17325c40;
  transition: transform 0.45s var(--ease-smooth, cubic-bezier(0.22, 1, 0.36, 1));
}
.dyd-seg.is-weekly .dyd-seg-thumb {
  transform: translateX(100%);
}
.dyd-seg-opt {
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.hsh-form .dyd-seg-opt input,
.hsh-form .dyd-day-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
}
.hsh-form .dyd-seg-opt > .dyd-seg-text,
.hsh-form .dyd-seg-opt:focus-within > .dyd-seg-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 11px 8px;
  border-radius: 15px;
  text-align: center;
  transform: none;
  color: #17325c;
  transition: color 0.3s ease;
}
.dyd-seg-text strong {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.dyd-seg-text small {
  font-size: 12px;
  font-weight: 600;
  color: #4a5a70;
  transition: color 0.3s ease;
}
.hsh-form .dyd-seg-opt input:checked + .dyd-seg-text {
  color: white;
}
.hsh-form .dyd-seg-opt input:checked + .dyd-seg-text small {
  color: #c9d8ec;
}
.hsh-form .dyd-seg-opt input:focus-visible + .dyd-seg-text {
  box-shadow: 0 0 0 3px #ed1c2466;
}

/* Days: open smoothly when Weekly is chosen */
.dyd-days-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--ease-smooth, cubic-bezier(0.22, 1, 0.36, 1)), opacity 0.35s ease, margin 0.45s ease;
  margin-top: 0;
}
.dyd-days-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
}
.dyd-days-inner {
  min-height: 0;
  overflow: hidden;
}
.dyd-mini-label {
  font-size: 14px;
  font-weight: 700;
  color: #2b3440;
  margin-bottom: 8px;
}
.dyd-panel .dyd-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0;
  padding: 2px;
}
.dyd-panel .dyd-day-opt {
  display: block;
  position: relative;
  cursor: pointer;
}
.hsh-form .dyd-day-opt > .dyd-day,
.hsh-form .dyd-day-opt:focus-within > .dyd-day {
  display: grid;
  place-items: center;
  height: 50px;
  border-radius: 14px;
  border: 2px solid #dbe8f5;
  background: #f5f9fe;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #17325c;
  transform: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease-smooth, ease);
}
.hsh-form .dyd-day-opt:hover > .dyd-day {
  border-color: #b6cbe0;
}
.hsh-form .dyd-day-opt input:checked + .dyd-day {
  background: #ed1c24;
  border-color: #ed1c24;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px #ed1c2440;
}
.hsh-form .dyd-day-opt input:focus-visible + .dyd-day {
  box-shadow: 0 0 0 3px #ed1c2466;
}

/* Date + age row */
.dyd-panel .dyd-when {
  margin-top: 18px;
}

/* Summary */
.dyd-summary {
  transition: background 0.3s ease, color 0.3s ease;
}
.dyd-summary.is-warn {
  background: #fff7e8;
  color: #6b3d00;
}

/* Old toggle/day styles are no longer used */
.dyd-toggle {
  display: none;
}

@media (max-width: 700px) {
  .dyd-seg-text strong {
    font-size: 15px;
  }
  .hsh-form .dyd-seg-opt > .dyd-seg-text {
    padding: 10px 4px;
  }
  .dyd-panel .dyd-days {
    gap: 6px;
  }
  .hsh-form .dyd-day-opt > .dyd-day {
    height: 48px;
    font-size: 14px;
    border-radius: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dyd-seg-thumb,
  .dyd-days-wrap {
    transition: none;
  }
}

/* =========================================================================
   Review cards: short highlight + tidy layout on phones
   ========================================================================= */
.review-short,
.review-mark {
  display: none;
}
@media (max-width: 700px) {
  .review-grid .review {
    padding: 0;
    border-radius: 22px;
    border-top: 5px solid var(--tone);
    box-shadow: 0 16px 34px #17325c14;
    overflow: hidden;
  }
  .review-grid .review .review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 20px 0;
  }
  .review-grid .review .stars {
    padding: 0;
    font-size: 17px;
    letter-spacing: 2px;
  }
  .review-grid .review .review-mark {
    display: block;
    height: 30px;
    padding: 14px 20px 0;
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 0.75;
    color: var(--tone);
    opacity: 0.35;
  }
  .review-grid .review blockquote.review-full {
    display: none;
  }
  .review-grid .review blockquote.review-short {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
    margin: 0 0 20px;
    padding: 6px 20px 0;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    color: #1f2328;
  }
  .review-grid .review .review-person {
    margin-top: auto;
    background-image: none !important;
    border-top: 1px solid #eef2f7;
    padding: 14px 20px 18px;
    gap: 12px;
  }
  .review-grid .review .review-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 18px;
  }
  .review-grid .review .review-person h4 {
    font-size: 16px;
  }
  .review-grid .review .review-person p {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 2px;
  }
}

/* Phones: section headers always start on the left, with even spacing. */
@media (max-width: 1050px) {
  .section-top,
  .educators .section-top,
  .gallery-teaser .section-top {
    align-items: flex-start;
  }
}
@media (max-width: 700px) {
  .section-top {
    gap: 14px;
  }
  .section-top h2 {
    margin-top: 14px;
  }
  .educators-note {
    max-width: none;
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  .educator-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    margin-top: 24px;
  }
  .educator-card {
    padding: 8px !important;
    border-radius: 18px;
  }
  .educator-card .educator-photo,
  .educator-card .educator-photo img {
    aspect-ratio: 4 / 5;
    height: auto;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  .educator-card h3 {
    font-size: 16px;
    line-height: 1.2;
  }
  .educator-card p {
    font-size: 13px;
    line-height: 1.35;
  }
}
@media (max-width: 700px) {
  .educator-card .educator-photo {
    padding: 6px !important;
  }
  .educator-card .educator-photo img {
    border-radius: 10px;
  }
  .educator-card > div:not(.educator-photo) {
    padding: 12px 6px 6px;
  }
}
@media (max-width: 700px) {
  .educator-card .educator-photo {
    aspect-ratio: auto;
    height: auto;
  }
}

/* =========================================================================
   Programs slider: smooth native track (replaces show/hide switching)
   ========================================================================= */
.programs .program-grid {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* room for the cards' shadows and hover lift */
  padding: 14px 6px 40px;
  margin: -14px -6px -40px;
  scroll-padding-inline: 6px;
}
.programs .program-grid::-webkit-scrollbar {
  display: none;
}
.programs .program-grid > .program-pair {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.programs .program-grid > .program-pair[hidden] {
  display: flex;
}
.motion .program-pair.slide-in,
.motion .program-pair.slide-in.from-left {
  animation: none;
}
@media (max-width: 1050px) {
  .programs .program-grid > .program-pair {
    flex-basis: calc((100% - 24px) / 2);
  }
}
@media (max-width: 700px) {
  .programs .program-grid {
    gap: 14px;
    margin-inline: calc(50% - 50vw);
    margin-top: -14px;
    margin-bottom: -40px;
    padding: 14px 16px 40px;
    scroll-padding-inline: 16px;
  }
  .programs .program-grid > .program-pair {
    flex-basis: 86%;
  }
  .programs .program-pair:hover {
    transform: none;
  }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .programs .program-grid > .program-pair {
      animation: hsh-swipe-in linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 100%;
    }
  }
}
.slider-dots button {
  transition: width 0.35s var(--ease-smooth, ease), background 0.3s ease;
}
/* Allow sideways swipes (and normal page scrolling) on every swipe row. */
.programs .program-grid,
.home-worlds .dh-world-list,
.dh-worlds .dh-world-list,
.approach-cards,
.review-grid,
.journal .blog-grid {
  touch-action: pan-x pan-y;
}
