/* Hop N Bop — hero banner (Figma node 801:3, designed at 1600 × 840) */

@font-face {
    font-family: 'Frogie';
    src: url('../fonts/Frogie-Regular.ttf?v=2') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --hnb-navy: #1d365d;
    --hnb-blue: 9, 97, 152;
    --hnb-purple: #943993;
    --hnb-yellow: #ffdc3e;
    --hnb-cyan: #1ce1eb;
    --hnb-ink: #080808;
    --hnb-charcoal: #242323;
    --hnb-teal: #01969e;
    --hnb-orange: #e47601;

    --hnb-font-display: 'Fredoka', ui-rounded, system-ui, sans-serif;
    --hnb-font-hero: 'Frogie', 'Fredoka', ui-rounded, system-ui, sans-serif;
    --hnb-font-body: 'Urbanist', ui-sans-serif, system-ui, sans-serif;
    --hnb-font-script: 'Molle', cursive;

    /* Fluid values that land exactly on the design at a 1600px viewport */
    --hnb-hero-h: clamp(600px, 52.5vw, 840px);
    --hnb-hero-px: clamp(24px, 7.5vw, 120px);
    --hnb-header-px: clamp(16px, 3.125vw, 50px);
    --hnb-heading: clamp(42px, 5vw, 80px);
    --hnb-intro-px: clamp(24px, 12.5vw, 200px);
    --hnb-intro-caption-px: clamp(0px, 5.625vw, 90px);
    --hnb-intro-text: clamp(24px, 2.75vw, 44px);
    --hnb-about-px: clamp(24px, 7.5vw, 120px);
    --hnb-about-radius: clamp(40px, 6.25vw, 100px);
}

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

html {
    scroll-padding-top: 110px; /* menu links stop below the fixed header */
}

body {
    margin: 0;
    background: #fff;
    font-family: var(--hnb-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: none;
}

/* ---------- Banner ---------- */

.hnb-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    height: var(--hnb-hero-h);
    padding: 20px var(--hnb-hero-px) 0;
    background: var(--hnb-navy);
    overflow: hidden;
}

/* Photo layer keeps the 1600 × 1067 artboard ratio so the sun stays glued to the wall */
.hnb-banner__scene {
    position: absolute;
    top: 0;
    left: 50%;
    width: max(100%, calc(var(--hnb-hero-h) * 1600 / 1067));
    aspect-ratio: 1600 / 1067;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Home hero slider: only the photo layer slides, the caption stays put */
.hnb-hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hnb-hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.hnb-hero-slide.is-active {
    transform: translateX(0);
}

.hnb-hero-slide.is-instant {
    transition: none;
}

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

.hnb-hero-nav {
    position: absolute;
    z-index: 2;
    right: var(--hnb-hero-px);
    bottom: 140px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hnb-hero-nav__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 100px;
    background: var(--hnb-purple);
    cursor: pointer;
    transition: background-color 0.2s ease, translate 0.2s ease;
}

.hnb-hero-nav__arrow img {
    width: 18px;
    height: auto;
}

.hnb-hero-nav__arrow--prev img {
    rotate: 180deg;
}

.hnb-hero-nav__arrow:hover {
    background: #a444a3;
    translate: 0 -2px;
}

.hnb-hero-nav__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.hnb-hero-dots {
    display: flex;
    gap: 10px;
}

.hnb-hero-dots__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.hnb-hero-dots__dot.is-active {
    width: 32px;
    background: #fff;
}

.hnb-hero-dots__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    /* Phone hero: full-colour photo on top, centred caption on a navy panel with rounded top corners below it.
       At least 80% of the screen tall; it grows if the caption needs more room. */
    .hnb-banner--slider {
        display: grid;
        grid-template-rows: minmax(370px, 1fr) auto;
        align-items: stretch;
        gap: 0;
        height: auto;
        min-height: 80vh;
        min-height: 80svh;
        padding: 0;
    }

    .hnb-banner--slider .hnb-hero-slides {
        position: relative;
        inset: auto;
        grid-row: 1;
        grid-column: 1;
        margin-bottom: -30px; /* runs under the panel's rounded corners */
    }

    /* Keep the first photo's 1600 × 1067 ratio so the sun stays on the wall */
    .hnb-banner--slider .hnb-banner__scene {
        width: auto;
        height: 100%;
        min-width: 100%;
    }

    .hnb-banner--slider .hnb-banner__overlay {
        display: none;
    }

    .hnb-banner--slider .hnb-caption {
        z-index: 1;
        grid-row: 2;
        grid-column: 1;
        align-items: center;
        gap: 26px;
        padding: 34px 24px 110px; /* bottom room for the intro clouds that rise over the hero */
        border-radius: 30px 30px 0 0;
        background: #106192;
        text-align: center;
    }

    .hnb-banner--slider .hnb-caption__heading,
    .hnb-banner--slider .hnb-title {
        align-items: center;
    }

    .hnb-banner--slider .hnb-title__sparks,
    .hnb-banner--slider .hnb-title__planet {
        display: none;
    }

    .hnb-hero-nav {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 2;
        grid-row: 1;
        grid-column: 1;
        align-self: end;
        justify-self: center;
        gap: 12px;
        margin-bottom: 46px;
    }

    .hnb-hero-nav__arrow {
        width: 36px;
        height: 36px;
    }

    .hnb-hero-nav__arrow img {
        width: 15px;
    }
}

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

.hnb-banner__weather,
.hnb-banner__sun {
    position: absolute;
    height: auto;
}

.hnb-banner__weather {
    left: 90.9375%; /* 1455 / 1600 */
    top: 20.3374%; /* 217 / 1067 */
    width: 5%; /* 80 / 1600 */
    aspect-ratio: 1;
}

.hnb-banner__sun {
    left: 91.5%; /* 1464 / 1600 */
    top: 21.4621%; /* 229 / 1067 */
    width: 3.75%; /* 60 / 1600 */
    aspect-ratio: 60.0035 / 59.9947;
}

.hnb-banner__overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        -90deg,
        rgba(var(--hnb-blue), 0) 30.812%,
        rgba(var(--hnb-blue), 0.8) 63.186%,
        rgb(var(--hnb-blue)) 100%
    );
    pointer-events: none;
}

/* ---------- Caption ---------- */

.hnb-caption {
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
}

.hnb-caption__heading {
    display: flex;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hnb-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin: 0;
    font-family: var(--hnb-font-hero);
    font-size: var(--hnb-heading);
    font-weight: 400;
    line-height: 0.9375; /* 75px at 80px */
    color: #fff;
    white-space: nowrap;
}

.hnb-title__line {
    display: block;
}

.hnb-title__line--yellow {
    color: var(--hnb-yellow);
}

.hnb-title__accent {
    color: var(--hnb-cyan);
}

/* Decorations are sized in em so they track the heading (px notes are at the design's 80px) */
.hnb-title__sparks,
.hnb-title__planet {
    position: absolute;
    pointer-events: none;
}

.hnb-title__sparks {
    left: -0.5125em; /* -41px */
    top: -0.34375em; /* -27.5px */
    width: 9.3875em; /* 751px */
    aspect-ratio: 751 / 66.1767;
}

.hnb-title__planet {
    left: 8.625em; /* 690px */
    top: 1.73125em; /* 138.5px */
    width: 0.875em; /* 70px */
    aspect-ratio: 1;
}

.hnb-caption__text {
    position: relative;
    width: 561px;
    max-width: 100%;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

/* 60px star rotated -26deg inside an 80.23px box, hanging off the end of the copy */
.hnb-caption__star {
    position: absolute;
    left: 559.89px;
    top: 38.39px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80.23px;
    height: 80.23px;
    pointer-events: none;
}

.hnb-caption__star img {
    width: 60.0001px;
    height: 57.7464px;
    flex: none;
    transform: rotate(-26deg);
}

/* ---------- CTA ---------- */

.hnb-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 8px 8px 8px 30px;
    border-radius: 100px;
    background: var(--hnb-purple);
    box-shadow: inset 0 0 0 2px #fff; /* Figma's inside stroke: drawn over the padding, not added to it */
    overflow: hidden;
    color: #fffdfd;
    font-family: var(--hnb-font-display);
    font-size: 16px;
    font-weight: 600;
    font-variation-settings: 'wdth' 100;
    letter-spacing: 3.2px;
    line-height: normal;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hnb-cta__circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.hnb-cta:hover {
    background: #a444a3;
}

.hnb-cta--hero {
    gap: 11px; /* 15px minus the trailing letter-spacing Figma leaves off */
    font-family: var(--hnb-font-hero);
    font-weight: 400;
    letter-spacing: 4px;
}

.hnb-cta:hover .hnb-cta__circle {
    transform: translateX(3px);
}

/* ---------- Floating header ---------- */

.hnb-header {
    position: fixed; /* stays at the top of the window while the page scrolls */
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px var(--hnb-header-px);
    transition: padding-top 0.3s ease;
}

/* Once the page has scrolled, the bar docks flush against the top of the window */
.hnb-header.is-stuck {
    padding-top: 0;
}

.hnb-header__wrapper {
    position: relative;
    display: flex;
    flex: 1 0 0;
    align-items: center;
    justify-content: space-between;
    min-width: 1px;
    padding: 0 30px;
    border-radius: 100px;
    background: #fff;
    transition: box-shadow 0.3s ease, border-radius 0.3s ease;
}

/* Docked: square top corners, and a shadow to lift the white bar off the white sections beneath it */
.hnb-header.is-stuck .hnb-header__wrapper {
    border-radius: 0 0 20px 20px;
    box-shadow: 0 6px 24px rgba(8, 8, 8, 0.2);
}

.hnb-logo {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    padding-right: 5px;
    overflow: hidden;
}

.hnb-logo img {
    width: 160px;
    height: 42px;
    object-fit: cover;
}

.hnb-menu {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-menu__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    color: var(--hnb-ink);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.hnb-menu__link:hover {
    color: var(--hnb-purple);
}

.hnb-header__right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 15px;
}

.hnb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 100px;
    background: var(--hnb-charcoal);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.hnb-btn:hover {
    background: #000;
}

.hnb-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 100px;
    background: var(--hnb-purple);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hnb-more:hover {
    background: #a444a3;
}

.hnb-more span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
}

.hnb-cta:focus-visible,
.hnb-btn:focus-visible,
.hnb-more:focus-visible,
.hnb-menu__link:focus-visible,
.hnb-logo:focus-visible {
    outline: 2px solid var(--hnb-yellow);
    outline-offset: 2px;
}

/* ---------- Side menu (slides in from the right behind the "more" button) ---------- */

.hnb-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    transition: visibility 0s 0.5s; /* stay rendered until the panel has slid away */
}

.hnb-drawer.is-open {
    visibility: visible;
    transition-delay: 0s;
}

.hnb-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 54, 93, 0.6);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.hnb-drawer.is-open .hnb-drawer__backdrop {
    opacity: 1;
}

.hnb-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: min(100%, 440px);
    height: 100%;
    padding: 20px 40px 40px;
    border-radius: 40px 0 0 40px;
    background: #fcfae9;
    box-shadow: -20px 0 50px rgba(8, 8, 8, 0.2);
    overflow: hidden auto;
    translate: 100% 0;
    transition: translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hnb-drawer.is-open .hnb-drawer__panel {
    translate: 0 0;
}

.hnb-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 57, 147, 0.2);
}

/* Same purple disc as the "more" button, with its bars crossed */
.hnb-drawer__close {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 100px;
    background: var(--hnb-purple);
    cursor: pointer;
    transition: background-color 0.2s ease, rotate 0.3s ease;
}

.hnb-drawer__close:hover {
    background: #a444a3;
    rotate: 90deg;
}

.hnb-drawer__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 25px;
    height: 2px;
    margin: -1px 0 0 -12.5px;
    background: #fff;
    rotate: 45deg;
}

.hnb-drawer__close span:last-child {
    rotate: -45deg;
}

.hnb-drawer__nav {
    position: relative;
    z-index: 1;
}

.hnb-drawer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The header's own links: only needed here once the inline menu is hidden, where they read as one list with the rest */
.hnb-drawer__list--primary {
    display: none;
}

.hnb-drawer__list .hnb-drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-hero);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.6px;
    line-height: 44px;
    text-decoration: none;
    transition: color 0.2s ease, translate 0.2s ease;
}

.hnb-drawer__list .hnb-drawer__link::before {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 100px;
    background: var(--hnb-orange);
    content: '';
    transition: scale 0.2s ease;
}

.hnb-drawer__list .hnb-drawer__link:hover {
    color: var(--hnb-teal);
    translate: 6px 0;
}

.hnb-drawer__list .hnb-drawer__link:hover::before {
    scale: 1.4;
}

/* Links drift in one after another once the panel is open */
.hnb-drawer__list li {
    opacity: 0;
    translate: 30px 0;
    transition: opacity 0.4s ease, translate 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hnb-drawer.is-open .hnb-drawer__list li {
    opacity: 1;
    translate: 0 0;
    transition-delay: calc(0.15s + (var(--i, 0) + var(--offset, 0)) * 0.06s);
}

.hnb-drawer__list li:nth-child(2) { --i: 1; }
.hnb-drawer__list li:nth-child(3) { --i: 2; }
.hnb-drawer__list li:nth-child(4) { --i: 3; }
.hnb-drawer__list li:nth-child(5) { --i: 4; }
.hnb-drawer__list li:nth-child(6) { --i: 5; }

.hnb-drawer__deco {
    position: absolute;
    pointer-events: none;
}

.hnb-drawer__deco--star-1 {
    right: 50px;
    bottom: 130px;
    width: 38px;
    height: 38px;
    rotate: -26deg;
    animation: hnb-twinkle 2.8s ease-in-out infinite;
}

.hnb-drawer__deco--star-2 {
    right: 150px;
    bottom: 60px;
    width: 22px;
    height: 22px;
    animation: hnb-twinkle 2.8s -1.2s ease-in-out infinite;
}

.hnb-drawer__deco--balloons {
    right: 70px;
    bottom: 40px;
    width: 66px;
    height: 66px;
    rotate: 10deg;
    animation: hnb-float 4.5s ease-in-out infinite;
}

.hnb-drawer__close:focus-visible,
.hnb-drawer__link:focus-visible {
    outline: 2px solid var(--hnb-teal);
    outline-offset: 2px;
}

/* The page behind the open menu stays put */
.hnb-drawer-open {
    overflow: hidden;
}

/* ---------- Intro (Figma node 801:121) ---------- */

.hnb-intro {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 80px var(--hnb-intro-px) 100px;
    background: #fff;
}

/* Clouds rise 120px over the hero; this layer trims them at the sides and bottom */
.hnb-intro__clouds {
    position: absolute;
    top: -120px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.hnb-intro__cloud {
    position: absolute;
    left: 50%;
    width: max(100%, 1600px);
    height: 828px;
    transform: translateX(-50%);
}

.hnb-intro__cloud--back {
    top: 0;
}

.hnb-intro__cloud--front {
    top: 20px;
}

.hnb-intro__shape {
    position: absolute;
    pointer-events: none;
}

.hnb-intro__shape--dots-blue {
    top: 64px;
    left: 92px;
    width: 93.016px;
    height: 91px;
}

.hnb-intro__shape--dots-orange {
    top: 299px;
    right: 70.807px; /* 1600 - 1428 - 101.193 */
    width: 101.193px;
    height: 99px;
}

.hnb-intro__shape--triangle {
    top: 318px; /* 310 + 5.8% of the 138px frame */
    left: 97.083px; /* 82 + 10.93% of the 138px frame */
    width: 107.823px;
    height: 95.5px;
}

.hnb-intro__shape--circle {
    top: 54px;
    right: 142px;
    width: 81px;
    height: 81px;
}

.hnb-intro__caption {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 40px var(--hnb-intro-caption-px);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hnb-intro__text {
    min-width: 100%;
    margin: 0;
    color: #30475e;
    font-size: var(--hnb-intro-text);
    font-weight: 400;
    letter-spacing: 0.01em; /* 0.44px at 44px */
    line-height: 1.36364; /* 60px at 44px */
    text-align: center;
    overflow-wrap: break-word;
}

.hnb-intro__text p {
    margin: 0;
}

.hnb-intro__text strong {
    font-weight: 600;
}

.hnb-intro__brand {
    color: var(--hnb-purple);
}

.hnb-intro__highlight {
    color: var(--hnb-teal);
}

.hnb-cta--orange {
    padding: 18px 25px;
    background: var(--hnb-orange);
}

.hnb-cta--orange:hover {
    background: #f08410;
}

.hnb-cta__arrow {
    width: 21px;
    height: 14.7279px;
    margin: -7.364px -1px -7.364px 0; /* the arrow overhangs its 20 × 0 slot in the design */
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.hnb-cta:hover .hnb-cta__arrow {
    transform: translateX(3px);
}

/* ---------- About (Figma node 812:2, 1600 × 750) ---------- */

.hnb-about-wrap {
    background: #fff;
}

.hnb-about {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 80px var(--hnb-about-px) 50px;
    border-radius: var(--hnb-about-radius);
    background: #fcfae9;
    overflow: hidden;
}

/* Left column: the photo and its glow scale with the column (1 design px = 100cqw / 670) */
.hnb-about__visual {
    --u: calc(100cqw / 670);

    position: relative;
    flex: 1 0 0;
    min-width: 1px;
    aspect-ratio: 670 / 620;
    container-type: inline-size;
}

.hnb-about__visual img {
    position: absolute;
    pointer-events: none;
}

.hnb-about__glow {
    left: calc(-68 * var(--u)); /* 556 × 533 ellipse at 32, 50 plus its 100px blur margin */
    top: calc(-50 * var(--u));
    width: calc(756 * var(--u));
    height: calc(733 * var(--u));
}

/* Figma 903:603: a 646px clipping frame at -34, -34 holding the white cloud outline and the masked photo */
.hnb-about__photo {
    position: absolute;
    left: calc(-34 * var(--u));
    top: calc(-34 * var(--u));
    width: calc(646 * var(--u));
    height: calc(646 * var(--u));
    overflow: hidden;
    pointer-events: none;
}

.hnb-about__visual .hnb-about__cloud-outline {
    left: calc(-4.235 * var(--u)); /* 647 × 584 cloud at -1, 32 plus its stroke overhang */
    top: calc(28.788 * var(--u));
    width: calc(653.46 * var(--u));
    height: calc(590.462 * var(--u));
}

/* 1536 × 1024 photo, 988.96 wide at -154.975, -5, shown through the 646 × 583.155 cloud mask at 155, 37.3 */
.hnb-about__cloud-photo {
    position: absolute;
    left: calc(-154.975 * var(--u));
    top: calc(-5 * var(--u));
    width: calc(988.96 * var(--u));
    aspect-ratio: 1536 / 1024;
    -webkit-mask-image: var(--hnb-about-cloud-mask);
    mask-image: var(--hnb-about-cloud-mask);
    -webkit-mask-position: calc(155 * var(--u)) calc(37.3 * var(--u));
    mask-position: calc(155 * var(--u)) calc(37.3 * var(--u));
    -webkit-mask-size: calc(646 * var(--u)) calc(583.155 * var(--u));
    mask-size: calc(646 * var(--u)) calc(583.155 * var(--u));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hnb-about__visual .hnb-about__cloud-photo img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 45.417 × 50.532 sparks rotated -155.08deg inside a 62.478 × 64.962 box */
.hnb-about__image-sparks {
    position: absolute;
    left: calc(127.65 * var(--u));
    top: calc(-0.55 * var(--u));
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(62.478 * var(--u));
    height: calc(64.962 * var(--u));
    pointer-events: none;
}

.hnb-about__visual .hnb-about__image-sparks img {
    position: static;
    width: calc(45.4172 * var(--u));
    height: calc(50.5315 * var(--u));
    flex: none;
    transform: rotate(-155.08deg);
}

/* Right column: copy, with its doodles positioned from the column's top-left corner */
.hnb-about__content {
    position: relative;
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 1px;
    padding-top: 70px; /* sits the copy just above the tagline now the Explore More button is hidden */
}

.hnb-about__deco {
    position: absolute;
    pointer-events: none;
}

.hnb-about__deco--heading-sparks {
    left: -32px;
    top: 132px; /* 62px + the content's 70px top padding */
    width: 487px;
    height: 109px;
}

.hnb-about__deco--star-1 {
    left: 617.5px;
    top: 368px;
    width: 35px;
    height: 35px;
}

.hnb-about__deco--star-2 {
    left: -156.5px;
    top: 521px;
    width: 25px;
    height: 25px;
}

/* 66px balloons rotated 10deg inside a 76.467px box */
.hnb-about__deco--balloons {
    left: 574.09px;
    top: -15.34px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76.467px;
    height: 76.467px;
}

.hnb-about__deco--balloons img {
    width: 66.0074px;
    height: 66.0075px;
    flex: none;
    transform: rotate(10deg);
}

.hnb-about__deco--tagline-sparks {
    left: 349px;
    top: 433px;
    width: 38.2276px;
    height: 35.2832px;
}

/* 210.967 × 69.314 path rotated -19.18deg inside a 222.029 × 134.78 box */
.hnb-about__deco--path {
    left: 415.89px;
    top: 389.08px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 222.029px;
    height: 134.78px;
}

.hnb-about__deco--path span {
    position: relative;
    width: 210.967px;
    height: 69.314px;
    flex: none;
    transform: rotate(-19.18deg);
}

.hnb-about__deco--path img {
    position: absolute;
    left: -0.844px;
    top: -0.839px;
    width: 212.642px;
    height: 70.8859px;
}

.hnb-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid var(--hnb-orange);
    border-radius: 100px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    white-space: nowrap;
}

.hnb-badge img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hnb-about__heading {
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 0;
}

.hnb-about__title {
    margin: 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-hero);
    font-size: 50px;
    font-weight: 400;
    line-height: 60px;
    white-space: nowrap;
}

.hnb-about__title span {
    display: block;
}

.hnb-about__title-accent {
    color: var(--hnb-teal);
}

.hnb-about__text {
    width: 651px;
    max-width: 100%;
    margin: 0;
    color: #191919;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 36px;
}

.hnb-about__brand {
    color: var(--hnb-purple);
}

.hnb-cta--frogie {
    gap: 10.84px; /* 15px minus the trailing letter-spacing Figma leaves off */
    font-family: var(--hnb-font-hero);
    font-weight: 400;
    letter-spacing: 4.16px;
    line-height: 19px;
}

.hnb-about__tagline {
    position: absolute;
    left: 41px;
    top: 444px;
    width: 432px;
    height: 100px;
}

.hnb-about__tagline-blob {
    position: absolute;
    left: 272px;
    top: -55px;
    width: 210px;
    height: 210px;
    pointer-events: none;
}

.hnb-about__tagline-text {
    position: relative;
    width: 484px;
    margin: 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-script);
    font-size: 34px;
    font-style: italic;
    font-weight: 400;
    line-height: 50px;
    white-space: pre-wrap;
}

.hnb-about__tagline-text > span {
    display: block;
    height: 50px;
}

.hnb-about__tagline-text .is-small {
    font-size: 32px;
}

.hnb-about__tagline-text .is-big {
    font-size: 52px;
}

.hnb-about__tagline-text .is-teal {
    color: var(--hnb-teal);
}

/* ---------- Activities (Figma node 866:232, 1600 × 1013) ---------- */

.hnb-activities {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 80px var(--hnb-about-px);
    background: #fff;
    overflow: clip;
}

.hnb-activities__deco {
    position: absolute;
    pointer-events: none;
}

/* Soft glows: each SVG carries a 150px blur margin around its ellipse */
.hnb-activities__deco--glow-1 {
    right: -75px; /* ellipse 421 × 342 at x 1104, y 595 */
    top: 445px;
    width: 721px;
    height: 642px;
}

.hnb-activities__deco--glow-2 {
    left: -140px; /* ellipse 432 × 351 at x 10, y 205 */
    top: 55px;
    width: 732px;
    height: 651px;
}

.hnb-activities__deco--glow-3 {
    left: -106px; /* ellipse 358 × 291 at x 44, y 645 */
    top: 495px;
    width: 658px;
    height: 591px;
}

.hnb-activities__deco--glow-4 {
    left: calc(50% - 356px); /* ellipse 358 × 291 at x 594, y 635 */
    top: 485px;
    width: 658px;
    height: 591px;
}

.hnb-activities__deco--sparks {
    left: calc(50% - 231px); /* x 569 on the 1600 frame */
    top: 132px;
    width: 560px;
    height: 97px;
}

.hnb-activities__inner {
    position: relative;
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 1px;
}

.hnb-activities__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.hnb-activities__title {
    margin: 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-hero);
    font-size: 50px;
    font-weight: 400;
    line-height: 60px;
    text-align: center;
    white-space: nowrap;
}

.hnb-activities__title-accent {
    color: var(--hnb-teal);
}

.hnb-activities__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding: 30px 0;
}

.hnb-activity {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-width: 1px;
    padding: 20px;
    border-radius: 30px;
}

.hnb-activity--cream {
    background: #fef5e2;
}

.hnb-activity--sky {
    background: #e6f9ff;
}

.hnb-activity--lilac {
    background: #edeeff;
}

.hnb-activity__thumb {
    width: 100%;
    aspect-ratio: 1600 / 1067;
    border-radius: 30px;
    overflow: hidden;
}

.hnb-activity__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hnb-activity__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 190px;
    text-align: center;
    overflow-wrap: break-word;
}

.hnb-activity__title {
    width: 100%;
    margin: 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-hero);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.3;
}

.hnb-activity__text {
    width: 100%;
    margin: 0;
    color: #454545;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 36px;
}

/* Slider arrows: only shown once the cards become a slider (tablet and phone) */
.hnb-activities__nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-bottom: 30px;
}

.hnb-activities__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 100px;
    background: var(--hnb-purple);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease, translate 0.2s ease;
}

.hnb-activities__arrow img {
    width: 21px;
    height: 14.7279px;
}

.hnb-activities__arrow--prev img {
    rotate: 180deg;
}

.hnb-activities__arrow:hover:not(:disabled) {
    background: #a444a3;
    translate: 0 -2px;
}

.hnb-activities__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.hnb-activities__arrow:focus-visible {
    outline: 2px solid var(--hnb-teal);
    outline-offset: 2px;
}

/* ---------- Playschool (Figma node 901:237, 1600 × 750) ---------- */

.hnb-playschool-wrap {
    background: #fff;
}

.hnb-playschool {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 0 var(--hnb-about-px);
    border-radius: var(--hnb-about-radius);
    overflow: hidden;
}

/* Left column: the photo and its backdrop scale with the column (1 design px = 100cqw / 670) */
.hnb-playschool__visual {
    --u: calc(100cqw / 670);
    --ox: 0; /* design px the artwork is nudged right / pulled up once the columns stack */
    --oy: 0;

    position: relative;
    flex: 1 0 0;
    min-width: 1px;
    aspect-ratio: 670 / 750;
    container-type: inline-size;
}

.hnb-playschool__visual img {
    position: absolute;
    pointer-events: none;
}

.hnb-playschool__backdrop {
    left: calc((-36 + var(--ox)) * var(--u));
    top: calc((151.7 - var(--oy)) * var(--u));
    width: calc(647 * var(--u));
    height: calc(481 * var(--u));
}

.hnb-playschool__photo {
    left: calc((-60 + var(--ox)) * var(--u));
    top: calc((156.7 - var(--oy)) * var(--u));
    width: calc(700 * var(--u));
    height: calc(476 * var(--u));
    object-fit: cover;
}

.hnb-playschool__sparks {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hnb-playschool__visual .hnb-playschool__sparks img {
    position: static;
    flex: none;
}

/* 45.417 × 50.532 sparks rotated -155.08deg inside a 62.478 × 64.962 box */
.hnb-playschool__sparks--top {
    left: calc((8.65 + var(--ox)) * var(--u));
    top: calc((134.45 - var(--oy)) * var(--u));
    width: calc(62.478 * var(--u));
    height: calc(64.962 * var(--u));
}

.hnb-playschool__visual .hnb-playschool__sparks--top img {
    width: calc(45.4172 * var(--u));
    height: calc(50.5315 * var(--u));
    transform: rotate(-155.08deg);
}

/* 38.228 × 35.283 sparks rotated 68deg inside a 47.034 × 48.661 box */
.hnb-playschool__sparks--bottom {
    left: calc((547.6 + var(--ox)) * var(--u));
    top: calc((575.31 - var(--oy)) * var(--u));
    width: calc(47.034 * var(--u));
    height: calc(48.661 * var(--u));
}

.hnb-playschool__visual .hnb-playschool__sparks--bottom img {
    width: calc(38.2276 * var(--u));
    height: calc(35.2832 * var(--u));
    transform: rotate(68deg);
}

/* Right column: the copy sits centred, with its doodles positioned from the copy's top-left corner */
.hnb-playschool__content {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 1px;
}

.hnb-playschool__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
}

.hnb-playschool__deco {
    position: absolute;
    pointer-events: none;
}

.hnb-playschool__deco--heading-sparks {
    left: -35px;
    top: 65.5px;
    width: 469px;
    height: 112px;
}

/* 210.967 × 69.314 path rotated 17deg inside a 222.015 × 127.966 box */
.hnb-playschool__deco--path {
    left: 318.9px;
    top: 332.99px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 222.015px;
    height: 127.966px;
}

.hnb-playschool__deco--path span {
    position: relative;
    width: 210.967px;
    height: 69.314px;
    flex: none;
    transform: rotate(17deg);
}

.hnb-playschool__deco--path img {
    position: absolute;
    left: -0.844px;
    top: -0.839px;
    width: 212.642px;
    height: 70.8859px;
}

/* 35px star rotated 12deg inside a 41.512px box */
.hnb-playschool__deco--star-1 {
    left: 526.15px;
    top: 389.74px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 41.512px;
    height: 41.512px;
}

.hnb-playschool__deco--star-1 img {
    width: 35px;
    height: 35px;
    flex: none;
    transform: rotate(12deg);
}

.hnb-playschool__deco--star-2 {
    left: 425.4px;
    top: -91px;
    width: 25px;
    height: 25px;
}

/* 33px star whose soft edge overhangs its slot by 5px */
.hnb-playschool__deco--star-3 {
    left: -144.6px;
    top: -89.97px;
    width: 43px;
    height: 42.9509px;
}

/* ---------- Events (Figma node 901:284, 1600 × 750) ---------- */

.hnb-events-wrap {
    background: #fff;
}

.hnb-events {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 0 var(--hnb-about-px);
    border-radius: var(--hnb-about-radius);
    background: #eefbff;
    overflow: hidden;
}

/* Left column: the copy sits centred, with its doodles positioned from the copy's top-left corner */
.hnb-events__content {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 1px;
}

.hnb-events__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: calc(100% - 30px);
    margin-left: 30px; /* the column's 30px inset, kept off the flex item so both columns stay 670px */
}

.hnb-events__deco {
    position: absolute;
    pointer-events: none;
}

.hnb-events__deco--heading-sparks {
    left: -33px;
    top: 65.5px;
    width: 452px;
    height: 109px;
}

/* 214.972 × 113.897 path flipped vertically; its stroke overhangs the slot by 1px */
.hnb-events__deco--path {
    left: 380px;
    top: 365.05px;
    width: 214.972px;
    height: 113.897px;
    transform: scaleY(-1);
}

.hnb-events__deco--path img {
    position: absolute;
    left: -1px;
    top: -1px;
    width: 216.972px;
    height: 115.897px;
}

/* 35px star rotated 13deg inside a 41.976px box */
.hnb-events__deco--star-1 {
    left: 591.91px;
    top: 373.51px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 41.976px;
    height: 41.976px;
}

.hnb-events__deco--star-1 img {
    width: 35px;
    height: 35px;
    flex: none;
    transform: rotate(13deg);
}

.hnb-events__deco--star-2 {
    left: 605.4px;
    top: -119px;
    width: 25px;
    height: 25px;
}

/* 33px star whose soft edge overhangs its slot by 5px */
.hnb-events__deco--star-3 {
    left: -34.6px;
    top: -117.97px;
    width: 43px;
    height: 42.9509px;
}

/* Right column: the photo and its backdrop scale with the column (1 design px = 100cqw / 670) */
.hnb-events__visual {
    --u: calc(100cqw / 670);
    --ox: 0; /* design px the artwork is nudged right / pulled up once the columns stack */
    --oy: 0;

    position: relative;
    flex: 1 0 0;
    min-width: 1px;
    aspect-ratio: 670 / 750;
    container-type: inline-size;
}

.hnb-events__visual img {
    position: absolute;
    pointer-events: none;
}

.hnb-events__backdrop {
    left: calc((135 + var(--ox)) * var(--u));
    top: calc((119.7 - var(--oy)) * var(--u));
    width: calc(590 * var(--u));
    height: calc(502 * var(--u));
}

/* 654.841 × 421.895 photo inside the 668 × 446 frame at 20, 148.03 */
.hnb-events__photo {
    left: calc((27.27 + var(--ox)) * var(--u));
    top: calc((162.87 - var(--oy)) * var(--u));
    width: calc(654.841 * var(--u));
    height: calc(421.895 * var(--u));
}

.hnb-events__sparks {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hnb-events__visual .hnb-events__sparks img {
    position: static;
    flex: none;
}

/* 45.417 × 50.532 sparks rotated -155.08deg inside a 62.478 × 64.962 box */
.hnb-events__sparks--top {
    left: calc((76.65 + var(--ox)) * var(--u));
    top: calc((122.45 - var(--oy)) * var(--u));
    width: calc(62.478 * var(--u));
    height: calc(64.962 * var(--u));
}

.hnb-events__visual .hnb-events__sparks--top img {
    width: calc(45.4172 * var(--u));
    height: calc(50.5315 * var(--u));
    transform: rotate(-155.08deg);
}

/* 38.228 × 35.283 sparks rotated 68deg inside a 47.034 × 48.661 box */
.hnb-events__sparks--bottom {
    left: calc((632.6 + var(--ox)) * var(--u));
    top: calc((563.31 - var(--oy)) * var(--u));
    width: calc(47.034 * var(--u));
    height: calc(48.661 * var(--u));
}

.hnb-events__visual .hnb-events__sparks--bottom img {
    width: calc(38.2276 * var(--u));
    height: calc(35.2832 * var(--u));
    transform: rotate(68deg);
}

.hnb-badge--numbered {
    padding: 4px 20px 4px 5px;
    font-weight: 700;
    line-height: 24px;
}

.hnb-badge__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 100px;
    background: var(--hnb-purple);
    color: #fff;
    font-size: 20px;
}

/* ---------- Memberships (Figma node 901:320, 1600 × 750) ---------- */

.hnb-membership-wrap {
    background: #fff;
}

.hnb-membership {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 0 var(--hnb-about-px);
    border-radius: var(--hnb-about-radius);
    background: linear-gradient(to bottom, #fff, #fcfae9);
    overflow: hidden;
}

/* Left column: the photo and its backdrop scale with the column (1 design px = 100cqw / 670) */
.hnb-membership__visual {
    --u: calc(100cqw / 670);
    --ox: 0; /* design px the artwork is nudged right / pulled up once the columns stack */
    --oy: 0;

    position: relative;
    flex: 1 0 0;
    min-width: 1px;
    aspect-ratio: 670 / 750;
    container-type: inline-size;
}

.hnb-membership__visual img {
    position: absolute;
    pointer-events: none;
}

.hnb-membership__backdrop {
    left: calc((-36 + var(--ox)) * var(--u));
    top: calc((132.7 - var(--oy)) * var(--u));
    width: calc(607 * var(--u));
    height: calc(475 * var(--u));
}

/* 669 × 446 frame that trims the photo's soft edge */
.hnb-membership__photo {
    position: absolute;
    left: calc((-70 + var(--ox)) * var(--u));
    top: calc((164 - var(--oy)) * var(--u));
    width: calc(669 * var(--u));
    height: calc(446 * var(--u));
    overflow: hidden;
    pointer-events: none;
}

.hnb-membership__photo img {
    left: calc(0.841 * var(--u));
    top: calc(2.031 * var(--u));
    width: calc(669.852 * var(--u));
    height: calc(442.978 * var(--u));
}

.hnb-membership__sparks {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hnb-membership__visual .hnb-membership__sparks img {
    position: static;
    flex: none;
}

/* 45.417 × 50.532 sparks rotated -155.08deg inside a 62.478 × 64.962 box */
.hnb-membership__sparks--top {
    left: calc((5.65 + var(--ox)) * var(--u));
    top: calc((124.45 - var(--oy)) * var(--u));
    width: calc(62.478 * var(--u));
    height: calc(64.962 * var(--u));
}

.hnb-membership__visual .hnb-membership__sparks--top img {
    width: calc(45.4172 * var(--u));
    height: calc(50.5315 * var(--u));
    transform: rotate(-155.08deg);
}

/* 38.228 × 35.283 sparks rotated 68deg inside a 47.034 × 48.661 box */
.hnb-membership__sparks--bottom {
    left: calc((499.6 + var(--ox)) * var(--u));
    top: calc((579.31 - var(--oy)) * var(--u));
    width: calc(47.034 * var(--u));
    height: calc(48.661 * var(--u));
}

.hnb-membership__visual .hnb-membership__sparks--bottom img {
    width: calc(38.2276 * var(--u));
    height: calc(35.2832 * var(--u));
    transform: rotate(68deg);
}

/* Right column: the copy sits centred, with its doodles positioned from the copy's top-left corner */
.hnb-membership__content {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 1px;
}

.hnb-membership__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
}

.hnb-membership__deco {
    position: absolute;
    pointer-events: none;
}

.hnb-membership__deco--heading-sparks {
    left: -34px;
    top: 64.5px;
    width: 574px;
    height: 112px;
}

/* 108.84 × 109.938 path flipped vertically; its stroke overhangs the slot by 1px */
.hnb-membership__deco--path {
    left: 460px;
    top: 409.03px;
    width: 108.84px;
    height: 109.938px;
    transform: scaleY(-1);
}

.hnb-membership__deco--path img {
    position: absolute;
    left: -1px;
    top: -1px;
    width: 110.84px;
    height: 111.938px;
}

/* 35px star rotated 15deg inside a 42.866px box */
.hnb-membership__deco--star-1 {
    left: 541.47px;
    top: 506.07px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42.866px;
    height: 42.866px;
}

.hnb-membership__deco--star-1 img {
    width: 35px;
    height: 35px;
    flex: none;
    transform: rotate(15deg);
}

/* 33px star whose soft edge overhangs its slot by 5px */
.hnb-membership__deco--star-3 {
    left: 345.4px;
    top: -16.97px;
    width: 43px;
    height: 42.9509px;
}

.hnb-perks {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin: 0;
    padding: 20px 0;
    list-style: none;
}

.hnb-perk {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #191919;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 36px;
    white-space: nowrap;
}

.hnb-perk__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 100px;
    overflow: hidden;
}

.hnb-perk__icon--play {
    background: var(--hnb-purple);
}

.hnb-perk__icon--events {
    background: #ff9f39;
}

.hnb-perk__icon--activities {
    background: var(--hnb-teal);
}

.hnb-perk__glyph {
    position: relative;
    flex: none;
    overflow: hidden;
}

.hnb-perk__glyph img {
    position: absolute;
}

.hnb-perk__icon--play .hnb-perk__glyph {
    width: 40px;
    height: 40px;
}

.hnb-perk__icon--play img {
    left: 0;
    top: 7.06px;
    width: 40px;
    height: 25.8827px;
}

/* 38px balloon rotated 12deg inside a 45.07px box */
.hnb-perk__tilt {
    position: absolute;
    left: 7.47px;
    top: 7.46px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45.07px;
    height: 45.07px;
}

.hnb-perk__icon--events .hnb-perk__glyph {
    width: 38px;
    height: 38px;
    transform: rotate(12deg);
}

.hnb-perk__balloon {
    left: 6.053px;
    top: 0;
    width: 25.8901px;
    height: 38px;
}

.hnb-perk__balloon-shine {
    left: 11.066px;
    top: 5.012px;
    width: 7.93406px;
    height: 7.93413px;
}

.hnb-perk__icon--activities .hnb-perk__glyph {
    width: 38px;
    height: 38px;
}

.hnb-perk__icon--activities img {
    left: 3.169px;
    top: 3.2px;
    width: 31.6642px;
    height: 31.6429px;
}

/* ---------- Contact (Figma node 1032:1612, 1600 × 1068) ---------- */

.hnb-contact {
    position: relative;
    padding: 80px var(--hnb-about-px) 120px;
    background: #fff;
    overflow-x: clip; /* the form slides in from the right; the photo must still run on below */
}

/*
 * Photo under a slanted top edge (1 design px = 100cqw / 1600). The SVG keeps the slant and its rounded
 * corner in proportion; the gradient layer fills everything below it. The photo runs on past the
 * section so it shows through the footer's rounded corners.
 */
.hnb-contact__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 257.59px;
    bottom: calc(-36.7px - var(--hnb-about-radius));
    container-type: inline-size;
    pointer-events: none;
}

.hnb-contact__bg-mask {
    --u: calc(100cqw / 1600);

    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask:
        url('../images/hopnbop/contact-bg-mask.svg') top / 100% auto no-repeat,
        linear-gradient(#000, #000) bottom / 100% calc(100% - 40cqw) no-repeat;
    mask:
        url('../images/hopnbop/contact-bg-mask.svg') top / 100% auto no-repeat,
        linear-gradient(#000, #000) bottom / 100% calc(100% - 40cqw) no-repeat;
}

.hnb-contact__bg img {
    position: absolute;
    left: calc(-15 * var(--u));
    top: calc(-115.891 * var(--u));
    width: calc(1652 * var(--u));
    height: max(calc(1101 * var(--u)), calc(100% + 115.891 * var(--u)));
    object-fit: cover;
}

.hnb-contact__deco {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hnb-contact__deco img {
    flex: none;
}

/* 37.774px star rotated -26deg inside a 50.51px box */
.hnb-contact__deco--star-1 {
    left: calc(var(--hnb-about-px) + 32.66px);
    top: 90.81px;
    width: 50.51px;
    height: 50.51px;
}

.hnb-contact__deco--star-1 img {
    width: 37.7738px;
    height: 37.7738px;
    transform: rotate(-26deg);
}

/* 22px star rotated -23deg inside a 28.847px box */
.hnb-contact__deco--star-2 {
    right: calc(var(--hnb-about-px) - 14.617px);
    top: 151.77px;
    width: 28.847px;
    height: 28.847px;
}

.hnb-contact__deco--star-2 img {
    width: 22px;
    height: 22px;
    transform: rotate(-23deg);
}

/* 157.472 × 98.557 path mirrored and rotated -151deg inside a 185.509 × 162.544 box */
.hnb-contact__deco--path {
    left: calc(50% - 140.17px);
    top: 192.45px;
    width: 185.509px;
    height: 162.544px;
}

.hnb-contact__deco--path img {
    width: 157.472px;
    height: 98.5568px;
    transform: rotate(-151deg) scaleX(-1);
}

.hnb-contact__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hnb-contact__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 10px 0;
}

.hnb-contact__title {
    position: relative;
}

.hnb-contact__title-sparks {
    position: absolute;
    left: -34px;
    top: -17px;
    width: 821px;
    height: 49.9914px;
    pointer-events: none;
}

.hnb-contact__text {
    width: 651px;
    max-width: 100%;
    margin: 0;
    color: #191919;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 36px;
    text-align: center;
}

.hnb-contact__text strong {
    color: var(--hnb-purple);
    font-weight: 700;
}

.hnb-contact__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 40px 0 60px;
}

/* Two equal columns either side of a 100px gutter (flex: 1 would let the form's padding widen it) */
.hnb-contact__address,
.hnb-form {
    flex: none;
    width: calc(50% - 50px);
}

/* Column titles: the 3px rule sits on the 14px gap's lower edge without adding height */
.hnb-contact__label,
.hnb-form__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding-bottom: 20px;
    white-space: nowrap;
}

.hnb-contact__label img,
.hnb-form__title img {
    width: 60px;
    height: 3px;
    margin-top: -3px;
}

.hnb-contact__label {
    color: var(--hnb-purple);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.44px;
    line-height: 22px;
    text-transform: uppercase;
}

.hnb-contact__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
    padding: 30px;
    border-radius: 30px;
    background: #e8f8ff;
    list-style: none;
}

.hnb-contact__item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hnb-contact__item--top {
    align-items: flex-start;
    width: 100%;
}

.hnb-contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 100px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hnb-contact__icon span {
    position: relative;
    flex: none;
    overflow: hidden;
}

.hnb-contact__icon span img {
    position: absolute;
}

.hnb-contact__icon--location span {
    width: 22px;
    height: 22px;
}

.hnb-contact__icon--location img:first-child {
    left: 3.91px;
    top: 0;
    width: 14.1797px;
    height: 19.6578px;
}

.hnb-contact__icon--location img:last-child {
    left: 1.331px;
    top: 14.81px;
    width: 19.3359px;
    height: 7.18889px;
}

.hnb-contact__icon--phone img {
    width: 22px;
    height: 23px;
    flex: none;
}

.hnb-contact__icon--mail span {
    width: 21px;
    height: 21px;
}

.hnb-contact__icon--mail img {
    left: 0.525px;
    top: 3.425px;
    width: 19.95px;
    height: 14.1504px;
}

.hnb-contact__lines,
.hnb-contact__link {
    margin: 0;
    color: #000;
    font-size: 20px;
    letter-spacing: 0.4px;
    line-height: 30px;
}

.hnb-contact__lines {
    flex: 1 0 0;
    min-width: 1px;
    font-weight: 400;
}

.hnb-contact__lines strong,
.hnb-contact__link {
    font-weight: 700;
}

.hnb-contact__link {
    text-decoration: none;
    white-space: nowrap;
}

.hnb-contact__link:hover {
    color: var(--hnb-purple);
}

.hnb-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 30px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hnb-form__title {
    color: #000;
    font-family: var(--hnb-font-hero);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.56px;
    line-height: 40px;
    text-transform: uppercase;
}

.hnb-form__fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Figma's inside stroke: the 2px rule is drawn over the padding, so each row stays 60px */
.hnb-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    box-shadow: inset 0 -2px 0 #b4b4b4;
    cursor: text;
    transition: box-shadow 0.2s ease;
}

.hnb-field--select,
.hnb-field:focus-within {
    box-shadow: inset 0 -2px 0 var(--hnb-purple);
}

.hnb-field__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.hnb-field__icon img {
    width: 24px;
    height: 24px;
}

.hnb-field__icon--school span {
    position: absolute;
    left: 2px;
    top: 1px;
    width: 20px;
    height: 22px;
    overflow: hidden;
}

.hnb-field__icon--school img {
    position: absolute;
    top: 11.579px;
    width: 2.35293px;
    height: 2.31579px;
}

.hnb-field__icon--school img:nth-child(1) {
    left: 11.764px;
}

.hnb-field__icon--school img:nth-child(2) {
    left: 7.058px;
}

.hnb-field__icon--school img:nth-child(3) {
    left: 0.9px;
    top: 0.216px;
    width: 19.0994px;
    height: 20.9777px;
}

.hnb-field__icon--phone img {
    position: absolute;
    left: 3.061px;
    top: 0.355px;
    width: 17.875px;
    height: 23.2917px;
}

.hnb-field__icon--message img {
    position: absolute;
    left: 1.25px;
    top: 1.219px;
    width: 21.501px;
    height: 21.5601px;
}

.hnb-field__control {
    display: block;
    flex: 1 0 0;
    min-width: 1px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #000;
    font-family: var(--hnb-font-body);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.36px;
    line-height: 40px;
}

.hnb-field__control::placeholder {
    color: #000;
    opacity: 1;
}

select.hnb-field__control {
    appearance: none;
    background: url('../images/hopnbop/contact-form-chevron.svg') right center / 18px 18px no-repeat;
    cursor: pointer;
}

.hnb-field--message {
    align-items: flex-start;
}

.hnb-field--message .hnb-field__icon {
    margin-top: 8px;
}

/* One 40px line plus the 51px of writing room the design leaves under it */
textarea.hnb-field__control {
    height: 91px;
    resize: none;
}

.hnb-form__actions {
    padding-top: 28px;
}

button.hnb-cta {
    border: 0;
    cursor: pointer;
}

.hnb-cta--block {
    justify-content: center;
    width: 100%;
}

/* ---------- Footer (Figma node 901:544, 1600 × 470) ---------- */

.hnb-footer {
    position: relative; /* paints over the contact photo that runs on beneath its rounded corners */
    margin: -100px 0 0;
    border-radius: var(--hnb-about-radius) var(--hnb-about-radius) 0 0;
    background: #106192;
    color: #fff;
    overflow: hidden;
}

.hnb-footer__main {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 60px var(--hnb-about-px) 40px;
    box-shadow: inset 0 -1px 0 #458dba;
}

.hnb-footer__col {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hnb-footer__col--about {
    flex: 0 1 620px;
    min-width: 0;
}

.hnb-footer__col--links {
    width: 200px;
}

.hnb-footer__col--contact {
    width: 230px;
}

.hnb-footer__hours {
    width: 100%;
}

.hnb-footer__hours p {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 30px;
}

.hnb-footer__hours strong {
    font-weight: 600;
}

.hnb-footer__hours b {
    font-weight: 700;
}

.hnb-footer__hours .hnb-footer__note {
    margin-top: 30px;
}

.hnb-footer__title {
    margin: 0;
    font-family: var(--hnb-font-hero);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.44px;
    line-height: 40px;
    white-space: nowrap;
}

.hnb-footer__list,
.hnb-footer__contact,
.hnb-footer__social {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-footer__list {
    width: 100%;
}

.hnb-footer__list a {
    display: block;
    color: #e0e0e0;
    font-size: 20px;
    line-height: 40px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hnb-footer__list a:hover {
    color: #fff;
}

.hnb-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hnb-footer__contact li {
    display: flex;
    align-items: center;
    gap: 13px;
}

.hnb-footer__contact a {
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

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

.hnb-footer__icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    overflow: hidden;
}

.hnb-footer__icon img {
    position: absolute;
}

.hnb-footer__icon--mail img {
    left: 0.55px;
    top: 3.588px;
    width: 20.9px;
    height: 14.8242px;
}

.hnb-footer__icon--phone img {
    left: 0;
    top: -0.5px;
    width: 22px;
    height: 23px;
}

.hnb-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hnb-footer__social a {
    display: block;
    border-radius: 100px;
    transition: translate 0.2s ease;
}

.hnb-footer__social a:hover {
    translate: 0 -2px;
}

.hnb-footer__social img {
    width: 35px;
    height: 35px;
}

.hnb-footer__bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px var(--hnb-about-px);
}

.hnb-footer__bottom p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    white-space: nowrap;
}

.hnb-footer__copy {
    color: #e1e1e1;
}

.hnb-footer__copy strong {
    color: #fff;
    font-weight: 600;
}

.hnb-footer__credit {
    color: #8bb3cc;
}

.hnb-footer a:focus-visible,
.hnb-contact__link:focus-visible {
    outline: 2px solid var(--hnb-yellow);
    outline-offset: 2px;
}

/* ---------- Motion ---------- */

@keyframes hnb-rise {
    from {
        opacity: 0;
        translate: 0 28px;
    }
}

@keyframes hnb-drop {
    from {
        opacity: 0;
        translate: 0 -24px;
    }
}

@keyframes hnb-settle {
    from {
        scale: 1.08;
    }
}

@keyframes hnb-float {
    50% {
        translate: 0 -12px;
    }
}

@keyframes hnb-bob {
    50% {
        translate: 0 8px;
    }
}

@keyframes hnb-sway {
    0%,
    100% {
        rotate: -6deg;
    }

    50% {
        rotate: 6deg;
    }
}

@keyframes hnb-spin {
    to {
        rotate: 360deg;
    }
}

@keyframes hnb-twinkle {
    0%,
    100% {
        opacity: 1;
        scale: 1;
    }

    50% {
        opacity: 0.55;
        scale: 0.8;
    }
}

@keyframes hnb-pulse {
    50% {
        scale: 1.06;
    }
}

@keyframes hnb-drift {
    50% {
        translate: 24px -16px;
    }
}

@keyframes hnb-nudge {
    50% {
        translate: 4px 0;
    }
}

/* Hero entrance */
.hnb-banner__scene {
    animation: hnb-settle 2.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hnb-header__wrapper {
    animation: hnb-drop 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hnb-title__line,
.hnb-caption__text {
    animation: hnb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hnb-title__line:nth-of-type(1) {
    animation-delay: 0.25s;
}

.hnb-title__line:nth-of-type(2) {
    animation-delay: 0.4s;
}

.hnb-title__line:nth-of-type(3) {
    animation-delay: 0.55s;
}

.hnb-caption__text {
    animation-delay: 0.7s;
}

.hnb-caption > .hnb-cta {
    animation: hnb-rise 0.9s 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hnb-title__sparks {
    animation: hnb-rise 0.9s 0.25s backwards;
}

.hnb-cta--hero .hnb-cta__circle {
    animation: hnb-nudge 1.6s 1.8s ease-in-out infinite;
}

/* Floating doodles */
.hnb-title__planet {
    animation: hnb-float 5s ease-in-out infinite, hnb-sway 7s ease-in-out infinite;
}

.hnb-caption__star {
    animation: hnb-bob 3.6s ease-in-out infinite;
}

.hnb-caption__star img {
    animation: hnb-spin 14s linear infinite;
}

.hnb-banner__weather {
    animation: hnb-spin 24s linear infinite;
}

.hnb-banner__sun {
    animation: hnb-sway 4s ease-in-out infinite;
}

.hnb-intro__shape--dots-blue,
.hnb-intro__shape--dots-orange {
    animation: hnb-float 6s ease-in-out infinite;
}

.hnb-intro__shape--dots-orange {
    animation-delay: -3s;
}

.hnb-intro__shape--triangle {
    animation: hnb-float 5s ease-in-out infinite, hnb-sway 9s ease-in-out infinite;
}

.hnb-intro__shape--circle {
    animation: hnb-pulse 4s ease-in-out infinite;
}

.hnb-about__deco--balloons {
    animation: hnb-float 4.5s ease-in-out infinite, hnb-sway 6s ease-in-out infinite;
}

.hnb-about__deco--star-1,
.hnb-about__deco--star-2 {
    animation: hnb-twinkle 2.8s ease-in-out infinite;
}

.hnb-about__deco--star-2 {
    animation-delay: -0.9s;
}

.hnb-about__deco--tagline-sparks {
    animation: hnb-twinkle 3s ease-in-out infinite;
}

.hnb-about__tagline-blob {
    animation: hnb-pulse 5s ease-in-out infinite;
}

.hnb-about__photo {
    animation: hnb-bob 6s ease-in-out infinite;
}

.hnb-playschool__photo,
.hnb-events__photo,
.hnb-membership__photo {
    animation: hnb-bob 6s ease-in-out infinite;
}

.hnb-playschool__deco--star-1,
.hnb-playschool__deco--star-2,
.hnb-playschool__deco--star-3,
.hnb-events__deco--star-1,
.hnb-events__deco--star-2,
.hnb-events__deco--star-3,
.hnb-membership__deco--star-1,
.hnb-membership__deco--star-3,
.hnb-contact__deco--star-1,
.hnb-contact__deco--star-2 {
    animation: hnb-twinkle 2.8s ease-in-out infinite;
}

.hnb-playschool__deco--star-2,
.hnb-events__deco--star-2,
.hnb-contact__deco--star-2 {
    animation-delay: -0.9s;
}

.hnb-playschool__deco--star-3,
.hnb-events__deco--star-3,
.hnb-membership__deco--star-3 {
    animation-delay: -1.8s;
}

.hnb-activities__deco--glow-1,
.hnb-activities__deco--glow-2,
.hnb-activities__deco--glow-3,
.hnb-activities__deco--glow-4 {
    animation: hnb-drift 14s ease-in-out infinite;
}

.hnb-activities__deco--glow-2 {
    animation-delay: -4s;
}

.hnb-activities__deco--glow-3 {
    animation-delay: -8s;
}

.hnb-activities__deco--glow-4 {
    animation-delay: -11s;
}

/* Scroll reveal (only once the script has run, so content never stays hidden) */
.hnb-js [data-reveal] {
    opacity: 0;
    translate: 0 40px;
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        translate 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hnb-js [data-reveal='left'] {
    translate: -60px 0;
}

.hnb-js [data-reveal='right'] {
    translate: 60px 0;
}

.hnb-js [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
}

/* Activity cards */
.hnb-js .hnb-activity {
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        translate 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.hnb-js .hnb-activity.is-visible {
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        translate 0.35s ease,
        box-shadow 0.35s ease;
}

.hnb-activity:hover {
    translate: 0 -10px;
    box-shadow: 0 24px 40px -20px rgba(48, 71, 94, 0.35);
}

.hnb-js .hnb-activity.is-visible:hover {
    translate: 0 -10px;
}

.hnb-activity__thumb img {
    transition: scale 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hnb-activity:hover .hnb-activity__thumb img {
    scale: 1.08;
}

/* Menu underline */
.hnb-menu__link {
    position: relative;
}

.hnb-menu__link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--hnb-purple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.hnb-menu__link:hover::after,
.hnb-menu__link:focus-visible::after {
    transform: scaleX(1);
}

/* Buttons lift a touch */
.hnb-cta:hover,
.hnb-btn:hover {
    translate: 0 -2px;
}

.hnb-cta,
.hnb-btn {
    transition: background-color 0.2s ease, translate 0.2s ease;
}

/* ---------- Below the design width ---------- */

@media (max-width: 1400px) {
    /* Events: the long nowrap heading would run into the photo as the column narrows */
    .hnb-events .hnb-about__title {
        font-size: clamp(36px, 3.4vw, 50px);
        line-height: 1.2;
    }

    .hnb-events__deco--heading-sparks {
        display: none;
    }
}

@media (max-width: 1279px) {
    /* The inline menu no longer fits: collapse it behind the "more" button */
    .hnb-header__wrapper {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .hnb-menu {
        display: none;
    }

    /* ...and its links join the side menu instead, as one continuous list */
    .hnb-drawer__list--primary {
        display: block;
    }

    .hnb-drawer__list--primary + .hnb-drawer__list {
        --offset: 6; /* carries the one-by-one entrance on from the six links above */
    }

    .hnb-drawer__list .hnb-drawer__link {
        padding: 6px 0;
        font-size: 26px;
        line-height: 38px;
    }
}

@media (max-width: 1100px) {
    /* The side shapes would sit under the copy once the gutters shrink */
    .hnb-intro__shape {
        display: none;
    }

    /* Activities: one card per row */
    .hnb-activities {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hnb-activities__grid {
        flex-direction: column;
        align-items: center;
    }

    .hnb-activity {
        flex: none;
        width: min(100%, 520px);
    }

    .hnb-activity__info {
        height: auto;
    }

    /* Playschool: stack the photo above the copy, trimming the empty space around it */
    .hnb-playschool {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-top: 20px;
        padding-bottom: 60px;
    }

    .hnb-playschool__visual {
        --ox: 15;
        --oy: 125;

        flex: none;
        width: min(100%, 670px);
        aspect-ratio: 670 / 520;
    }

    .hnb-playschool__content {
        flex: none;
        width: min(100%, 670px);
    }

    .hnb-playschool__deco {
        display: none;
    }

    /* Memberships: stack the photo above the copy, trimming the empty space around it */
    .hnb-membership {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .hnb-membership__visual {
        --ox: 35;
        --oy: 110;

        flex: none;
        width: min(100%, 670px);
        aspect-ratio: 670 / 530;
    }

    .hnb-membership__content {
        flex: none;
        width: min(100%, 670px);
    }

    .hnb-membership__deco {
        display: none;
    }

    /* Contact: address above the form, heading free to wrap */
    .hnb-contact {
        padding-top: 60px;
    }

    .hnb-contact__row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .hnb-contact__address,
    .hnb-form {
        width: min(100%, 670px);
    }

    .hnb-contact__title {
        white-space: normal;
    }

    .hnb-contact__title-sparks,
    .hnb-contact__deco {
        display: none;
    }

    /* Footer: opening hours on their own row, link columns sharing the next */
    .hnb-footer__main {
        flex-wrap: wrap;
        row-gap: 40px;
    }

    .hnb-footer__col--about {
        flex: 0 0 100%;
    }

    .hnb-footer__col--links {
        flex: 1 0 120px;
        width: auto;
    }

    /* Events: stack the photo above the copy, trimming the empty space around it */
    .hnb-events {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .hnb-events__visual {
        --ox: -41;
        --oy: 100;

        order: -1;
        flex: none;
        width: min(100%, 670px);
        aspect-ratio: 670 / 540;
    }

    .hnb-events__content {
        flex: none;
        width: min(100%, 670px);
    }

    .hnb-events__body {
        max-width: 100%;
        margin-left: 0;
    }

    .hnb-events__deco {
        display: none;
    }

    /* About: stack the collage above the copy */
    .hnb-about {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hnb-about__visual {
        flex: none;
        width: min(100%, 670px);
    }

    .hnb-about__content {
        flex: none;
        width: min(100%, 670px);
        padding-top: 0;
    }

    .hnb-about__deco {
        display: none;
    }

    .hnb-about__tagline {
        position: relative;
        left: auto;
        top: auto;
        margin-top: 40px;
    }
}

@media (max-width: 640px) {
    .hnb-drawer__panel {
        gap: 20px;
        padding: 14px 24px 30px;
        border-radius: 28px 0 0 28px;
    }

    .hnb-drawer__close {
        width: 44px;
        height: 44px;
    }

    .hnb-drawer__list .hnb-drawer__link {
        padding: 5px 0;
        font-size: 24px;
        line-height: 34px;
    }

    .hnb-activities__title {
        font-size: 36px;
        line-height: 44px;
        white-space: normal;
    }

    .hnb-activities__deco--sparks {
        display: none;
    }

    .hnb-activity__text {
        font-size: 17px;
        line-height: 30px;
    }

    .hnb-about__title {
        font-size: 36px;
        line-height: 44px;
        white-space: normal;
    }

    .hnb-about__text {
        font-size: 17px;
        line-height: 30px;
    }

    .hnb-badge {
        font-size: 16px;
    }

    .hnb-perks {
        gap: 30px;
    }

    .hnb-perk,
    .hnb-contact__text,
    .hnb-contact__lines,
    .hnb-contact__link,
    .hnb-footer__hours p {
        font-size: 17px;
    }

    .hnb-contact__text br {
        display: none;
    }

    .hnb-contact__card,
    .hnb-form {
        padding: 22px;
        border-radius: 24px;
    }

    .hnb-footer__main {
        padding-top: 44px;
    }

    .hnb-footer__col--contact {
        width: 100%;
    }

    .hnb-footer__bottom {
        flex-direction: column;
        gap: 0;
    }

    .hnb-footer__bottom p {
        white-space: normal;
    }

    .hnb-about__tagline {
        width: 100%;
        max-width: 340px;
        transform-origin: left top;
        transform: scale(0.75);
    }

    .hnb-intro {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .hnb-header__wrapper {
        padding: 10px 10px 10px 20px;
    }

    .hnb-logo img {
        width: 122px;
        height: 32px;
    }

    .hnb-header__right {
        gap: 8px;
    }

    .hnb-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .hnb-more {
        width: 44px;
        height: 44px;
    }

    .hnb-caption {
        gap: 26px;
    }

    .hnb-caption__text {
        font-size: 16px;
    }

    .hnb-caption__text br,
    .hnb-caption__star {
        display: none;
    }

    .hnb-cta {
        padding-left: 22px;
        font-size: 14px;
        letter-spacing: 2.4px;
    }

    /* Keep the text legible over the photo on narrow screens */
    .hnb-banner__overlay {
        background-image: linear-gradient(
            -90deg,
            rgba(var(--hnb-blue), 0.35) 0%,
            rgba(var(--hnb-blue), 0.8) 55%,
            rgb(var(--hnb-blue)) 100%
        );
    }
}

/* ---------- Tablet and phone polish ---------- */

@media (max-width: 1100px) {
    /* The copy now runs across the photo: deepen the wash behind it so it stays readable */
    .hnb-banner__overlay {
        background-image: linear-gradient(
            -90deg,
            rgba(var(--hnb-blue), 0.2) 0%,
            rgba(var(--hnb-blue), 0.8) 50%,
            rgb(var(--hnb-blue)) 100%
        );
    }

    .hnb-caption__star {
        display: none;
    }
}

/* Tablets: activity cards two to a row, the third centred beneath */
@media (min-width: 641px) and (max-width: 1100px) {
    .hnb-activities__grid {
        flex-flow: row wrap;
        align-items: stretch;
        justify-content: center;
    }

    .hnb-activity {
        flex: 0 1 calc(50% - 15px);
        width: auto;
    }

    .hnb-activity__text {
        font-size: 18px;
        line-height: 30px;
    }

    .hnb-intro {
        padding-left: var(--hnb-about-px);
        padding-right: var(--hnb-about-px);
    }

    .hnb-intro__caption {
        padding-left: 0;
        padding-right: 0;
    }

    .hnb-intro__text {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    :root {
        --hnb-heading: clamp(30px, 9.6vw, 42px); /* keeps the longest hero line inside the gutters */
    }

    .hnb-caption__text {
        width: auto;
    }

    .hnb-intro {
        padding: 50px 24px 60px;
    }

    .hnb-intro__caption {
        gap: 30px;
        padding: 20px 0;
    }

    .hnb-intro__text {
        font-size: 22px;
    }

    .hnb-about {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hnb-activities {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hnb-activity {
        gap: 20px;
        padding: 16px;
        border-radius: 24px;
    }

    .hnb-activity__thumb {
        border-radius: 20px;
    }

    .hnb-activity__title {
        font-size: 24px;
    }

    .hnb-playschool,
    .hnb-events,
    .hnb-membership {
        gap: 30px;
        padding-bottom: 50px;
    }

    .hnb-contact {
        padding-top: 50px;
    }

    .hnb-contact__row {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .hnb-contact__item {
        gap: 12px;
    }

    .hnb-field__control {
        font-size: 17px;
    }
}

/* Narrow phones: the script tagline is a fixed 484px drawing, so shrink it a little further */
@media (max-width: 420px) {
    .hnb-about__tagline {
        height: 84px;
        transform: scale(0.66);
    }

    .hnb-about__title,
    .hnb-activities__title {
        font-size: 32px;
        line-height: 40px;
    }

    .hnb-events .hnb-about__title {
        font-size: 32px;
    }

    .hnb-perks {
        gap: 22px;
    }

    .hnb-footer__bottom p {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .hnb-about__tagline {
        height: 72px;
        transform: scale(0.56);
    }
}

/* Tablet and phone: tighter intro, and the stacked sections' copy centred under their photos */
@media (max-width: 1100px) {
    .hnb-intro {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .hnb-about__content,
    .hnb-about__heading,
    .hnb-playschool__body,
    .hnb-events__body,
    .hnb-membership__body {
        align-items: center;
        text-align: center;
    }

    .hnb-playschool__content,
    .hnb-events__content,
    .hnb-membership__content {
        align-items: center;
    }

    /* Give the tagline its drawing's true 484px width so it centres (and shrinks) about its middle */
    .hnb-about__tagline {
        width: 484px;
        max-width: none;
        flex-shrink: 0;
        transform-origin: center top;
    }

    .hnb-about__tagline-text {
        text-align: left;
    }
}

/* Tablet only: more room around the About tagline */
@media (min-width: 641px) and (max-width: 1100px) {
    .hnb-about {
        padding-bottom: 130px;
    }

    .hnb-about__tagline {
        margin-top: 100px;
    }
}

/* Tablet and phone: the activity cards become a left-right slider (swipe, or use the arrows) */
@media (max-width: 1100px) {
    .hnb-activities__grid {
        flex-flow: row nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .hnb-activities__grid::-webkit-scrollbar {
        display: none;
    }

    /* Two cards in view on tablets */
    .hnb-activity {
        flex: 0 0 calc((100% - 20px) / 2);
        width: auto;
        scroll-snap-align: start;
    }

    /* Cards waiting off to the side must not also wait for the scroll reveal */
    .hnb-js .hnb-activity[data-reveal] {
        opacity: 1;
        translate: none;
    }

    .hnb-activities__nav {
        display: flex;
    }
}

/* One card in view on phones */
@media (max-width: 640px) {
    .hnb-activity {
        flex-basis: 100%;
    }

    .hnb-activities__arrow {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

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

/* ---------- Inner pages ---------- */

/* Shorter hero: the photo layer and overlay follow the height variable */
.hnb-banner--page {
    --hnb-hero-h: clamp(340px, 30vw, 480px);
    padding-top: 90px; /* clears the floating header */
}

.hnb-banner--page .hnb-caption {
    gap: 16px;
}

.hnb-banner--page .hnb-title {
    max-width: 100%;
    white-space: normal;
}

.hnb-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    animation: hnb-rise 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hnb-crumbs a {
    color: var(--hnb-yellow);
    text-decoration: none;
}

.hnb-crumbs a:hover {
    text-decoration: underline;
}

.hnb-page {
    display: flex;
    justify-content: center;
    padding: 80px var(--hnb-about-px);
    background: #fff;
}

.hnb-page__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 900px;
    max-width: 100%;
}

.hnb-page__title {
    white-space: normal;
}

.hnb-page__text {
    width: auto;
    text-align: center;
}

/* Current page in the header menu and the side menu */
.hnb-menu__link.is-active {
    color: var(--hnb-purple);
}

.hnb-menu__link.is-active::after {
    transform: scaleX(1);
}

.hnb-drawer__list .hnb-drawer__link.is-active {
    color: var(--hnb-teal);
}

@media (max-width: 640px) {
    .hnb-banner--page {
        --hnb-hero-h: 400px;
    }

    .hnb-page {
        padding: 50px 24px;
    }
}

/* ---------- About Us banner (Figma node 913:478, 1600 × 610) ---------- */

.hnb-banner--inner {
    --hnb-hero-h: clamp(420px, 38.125vw, 610px);
    --hnb-heading: clamp(34px, 3.75vw, 60px);

    gap: 0;
    padding: 0 var(--hnb-hero-px) 40px;
    background: rgb(var(--hnb-blue));
}

/* The photo's Figma box, set per page: it scales with the banner height and hangs off the right edge.
   About Us: 1292 × 861 at 328, -119 (overhangs the right edge by 20px, sits 6.5px below centre) */
.hnb-banner__inner-photo {
    --photo-w: 1292;
    --photo-h: 861;
    --photo-right: -20;
    --photo-shift: 6.5;

    position: absolute;
    top: calc(50% + var(--hnb-hero-h) * var(--photo-shift) / 610);
    right: calc(var(--hnb-hero-h) * var(--photo-right) / 610);
    height: calc(var(--hnb-hero-h) * var(--photo-h) / 610);
    aspect-ratio: var(--photo-w) / var(--photo-h);
    translate: 0 -50%;
    pointer-events: none;
    animation: hnb-settle 2.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

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

.hnb-banner--inner .hnb-caption {
    gap: 7px;
}

.hnb-banner--inner .hnb-title {
    line-height: 1.16667; /* 70px at 60px */
}

.hnb-banner--inner .hnb-caption__text {
    font-size: 22px;
}

/* Doodles are sized in em so they track the heading (px notes are at the design's 60px) */
.hnb-title__rays,
.hnb-title__burst {
    position: absolute;
    pointer-events: none;
}

.hnb-title__rays {
    left: -0.46667em; /* -28px */
    top: -0.19167em; /* -11.5px */
    width: 0.56667em; /* 34px */
    height: 0.86667em; /* 52px */
    animation: hnb-rise 0.9s 0.25s backwards;
}

.hnb-title__burst {
    left: 7.71667em; /* 463px */
    top: 1.09167em; /* 65.5px */
    width: 0.73333em; /* 44px */
    height: 0.67687em; /* 40.612px */
    animation: hnb-rise 0.9s 0.55s backwards;
}

/* Cloud edge: 1600 × 828 artwork whose top 126px shows above the banner's bottom edge */
.hnb-banner__clouds {
    position: absolute;
    top: calc(100% - 126px);
    left: 50%;
    width: max(100%, 1600px);
    height: 828px;
    translate: -50% 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .hnb-banner--inner .hnb-caption__text {
        font-size: 16px;
    }
}

/* Blue photo wash (node 913:480): solid from 63.184% leftwards; narrower screens keep the shared, deeper wash */
@media (min-width: 1101px) {
    .hnb-banner--inner .hnb-banner__overlay {
        background-image: linear-gradient(
            -90deg,
            rgba(var(--hnb-blue), 0) 30.81%,
            rgb(var(--hnb-blue)) 63.184%,
            rgb(var(--hnb-blue)) 100%
        );
    }
}

/* ---------- About Us: Since 2013 (Figma node 913:515, 1600 × 172) ---------- */

.hnb-since {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px clamp(24px, 18.125vw, 290px);
    background: #fff;
}

.hnb-since__text {
    margin: 0;
    color: #30475e;
    font-size: 35px;
    font-weight: 400;
    line-height: 1.4; /* 49px at 35px */
    text-align: center;
    overflow-wrap: break-word;
}

.hnb-since__text strong {
    font-weight: 600;
}

.hnb-since .is-teal,
.hnb-family .is-teal,
.hnb-happening .is-teal {
    color: var(--hnb-teal);
}

.hnb-since .is-purple,
.hnb-family .is-purple,
.hnb-happening .is-purple {
    color: var(--hnb-purple);
}

.hnb-since__deco {
    position: absolute;
    pointer-events: none;
}

.hnb-since__deco--star {
    top: 75px;
    left: 9.375%; /* 150 / 1600 */
}

.hnb-since__deco--circle {
    top: 32px;
    left: 87.125%; /* 1394 / 1600 */
}

/* ---------- About Us: a space for the whole family (Figma node 914:630, 1600 × 630) ---------- */

.hnb-family {
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 80px);
    padding: 70px var(--hnb-about-px) 90px;
    background: #fff;
    overflow: clip; /* the copy slides in from 60px to the right: keep that from widening the page on phones */
}

.hnb-family__portrait {
    position: relative;
    flex-shrink: 0;
    width: min(580px, 36.25vw);
    aspect-ratio: 580 / 470;
    border-radius: 60px;
}

.hnb-family__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 60px;
    object-fit: cover;
}

.hnb-family__caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 60px);
    margin: 0;
    padding: 12px 20px;
    border-radius: 100px;
    background: #fff;
    overflow: clip;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-display);
    font-size: 20px;
    font-weight: 500;
    font-variation-settings: 'wdth' 100;
    line-height: normal;
    white-space: nowrap;
}

.hnb-family__caption img,
.hnb-family__moment img,
.hnb-way__emblem img {
    flex-shrink: 0;
}

.hnb-family__circle {
    position: absolute;
    top: -28px;
    left: -26px;
    pointer-events: none;
}

/* 62px star rotated 12deg inside a 73.536px box */
.hnb-family__star {
    position: absolute;
    top: -28px;
    left: 88.1224%; /* 511.11 / 580 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 73.536px;
    height: 73.536px;
    pointer-events: none;
}

.hnb-family__star img {
    flex: none;
    rotate: 12deg;
}

.hnb-family__content {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    min-width: 1px;
}

.hnb-family__eyebrow {
    margin: 0;
    color: var(--hnb-teal);
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
}

.hnb-family__title {
    position: relative;
    margin: 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-hero);
    font-size: clamp(32px, 3.125vw, 50px);
    font-weight: 400;
    line-height: 1.12; /* 56px at 50px */
}

.hnb-family__title span {
    display: block;
}

/* Sparks are sized in em so they track the heading (px notes are at the design's 50px) */
.hnb-family__title-sparks {
    position: absolute;
    top: -0.3em; /* -15px */
    left: -0.66em; /* -33px */
    width: 9.52em; /* 476px */
    height: 2.08em; /* 104px */
    pointer-events: none;
}

.hnb-family__text {
    margin: 0;
    color: #191919;
    font-size: 22px;
    font-weight: 500;
    line-height: 38px;
    overflow-wrap: break-word;
}

.hnb-family__text strong {
    font-weight: 700;
}

.hnb-family__moments {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-family__moment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
}

.hnb-family__moment--children {
    background: #fbf1fc;
    color: var(--hnb-purple);
}

.hnb-family__moment--parents {
    background: #e9fafa;
    color: var(--hnb-teal);
}

/* ---------- About Us: always something happening (Figma node 913:534, 1600 × 520) ---------- */

.hnb-happening {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 82px clamp(24px, 14.6875vw, 235px) 80px;
    background: #fcfae9;
}

.hnb-happening__title {
    position: relative;
    width: 100%;
    margin: 0;
    color: var(--hnb-teal);
    font-family: var(--hnb-font-hero);
    font-size: clamp(30px, 3.125vw, 50px);
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

.hnb-happening__title span {
    color: var(--hnb-purple);
}

/* 804 × 49.991 sparks at 404, 67: 6px right of the heading's centre and 15px above it */
.hnb-happening__title-sparks {
    position: absolute;
    top: -0.3em; /* -15px */
    left: calc(50% - 7.92em); /* 396px left of centre */
    width: 16.08em; /* 804px */
    height: 0.99983em; /* 49.991px */
    pointer-events: none;
}

.hnb-happening__text {
    width: 100%;
    margin: 0;
    color: #191919;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    overflow-wrap: break-word;
}

.hnb-happening__text strong {
    font-weight: 600;
}

.hnb-happening__ways {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.hnb-happening__ways > li {
    flex: 1 0 0;
    min-width: 1px;
}

.hnb-way {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 138px;
    padding: 20px;
    border-radius: 30px;
    background: #fff;
    overflow: clip;
    font-family: var(--hnb-font-display);
    font-size: 20px;
    font-weight: 500;
    font-variation-settings: 'wdth' 100;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.hnb-way:hover,
.hnb-way:focus-visible {
    translate: 0 -4px;
    box-shadow: 0 10px 22px rgba(8, 8, 8, 0.08);
}

.hnb-way:focus-visible {
    outline: 2px solid var(--hnb-purple);
    outline-offset: 2px;
}

.hnb-way__emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 100px;
    overflow: clip;
}

.hnb-way--teal {
    color: var(--hnb-teal);
}

.hnb-way--teal .hnb-way__emblem {
    background: #e9fafa;
}

.hnb-way--purple {
    color: var(--hnb-purple);
}

.hnb-way--purple .hnb-way__emblem {
    background: #fbf1fc;
}

.hnb-way--orange {
    color: var(--hnb-orange);
}

.hnb-way--orange .hnb-way__emblem {
    background: #fff9dc;
}

.hnb-happening__star {
    position: absolute;
    top: 195px;
    left: 90.625%; /* 1450 / 1600 */
    pointer-events: none;
}

@media (max-width: 1100px) {
    .hnb-since__deco,
    .hnb-happening__star {
        display: none;
    }

    .hnb-family {
        flex-direction: column;
        gap: 50px;
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .hnb-family__portrait {
        width: min(100%, 580px);
    }

    .hnb-family__content {
        flex: none;
        width: min(100%, 580px);
    }

    .hnb-happening {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hnb-happening__ways {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hnb-happening__ways > li {
        flex: 0 0 calc((100% - 36px) / 3);
    }
}

@media (max-width: 640px) {
    .hnb-since,
    .hnb-happening {
        padding-right: 24px;
        padding-left: 24px;
    }

    .hnb-family__portrait,
    .hnb-family__photo {
        border-radius: 40px;
    }

    .hnb-family__caption {
        bottom: 16px;
        left: 16px;
        max-width: calc(100% - 32px);
        padding: 10px 16px;
        font-size: 15px;
    }

    .hnb-family__circle {
        top: -18px;
        left: -12px;
        width: 50px;
        height: 50px;
    }

    .hnb-family__star {
        top: -18px;
        right: -12px;
        left: auto;
        width: 48px;
        height: 48px;
    }

    .hnb-family__star img {
        width: 40px;
        height: 40px;
    }

    .hnb-family__text,
    .hnb-happening__text {
        font-size: 18px;
        line-height: 32px;
    }

    .hnb-family__moment {
        font-size: 17px;
    }

    .hnb-happening__title-sparks {
        display: none;
    }

    .hnb-happening__ways > li {
        flex-basis: calc((100% - 18px) / 2);
    }

    .hnb-way {
        font-size: 17px;
    }
}

/* ---------- About Us: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1279px) {
    /* Six cards no longer fit their labels on one row: three to a row */
    .hnb-happening {
        padding-right: var(--hnb-about-px);
        padding-left: var(--hnb-about-px);
    }

    .hnb-happening__ways {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hnb-happening__ways > li {
        flex: 0 0 calc((100% - 36px) / 3);
    }

    .hnb-since__text,
    .hnb-happening__text {
        text-wrap: balance;
    }
}

@media (max-width: 1100px) {
    /* The caption sits clear of the floating header */
    .hnb-banner--inner {
        --hnb-hero-h: 440px;

        padding-top: 20px;
    }

    .hnb-since {
        padding: 0 var(--hnb-about-px) 10px;
    }

    .hnb-since__text {
        font-size: 26px;
        line-height: 1.45;
    }

    .hnb-family__portrait,
    .hnb-family__content {
        width: min(100%, 670px);
    }

    .hnb-family__eyebrow {
        font-size: 16px;
    }

    .hnb-family__title,
    .hnb-happening__title {
        font-size: 36px;
        line-height: 44px;
    }

    .hnb-family__text {
        font-size: 18px;
        line-height: 30px;
    }

    .hnb-family__moment {
        font-size: 18px;
    }

    .hnb-happening {
        gap: 24px;
    }

    .hnb-happening__text {
        font-size: 20px;
        line-height: 32px;
    }
}

@media (max-width: 640px) {
    .hnb-banner--inner {
        --hnb-hero-h: 400px;
    }

    .hnb-since {
        padding: 0 16px;
    }

    .hnb-since__text {
        font-size: 22px;
        text-wrap: pretty; /* balanced lines leave wide gaps either side on a phone */
    }

    .hnb-since__text .is-purple {
        white-space: nowrap; /* keep "Hop N Bop" on one line */
    }

    .hnb-family {
        gap: 40px;
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .hnb-family__content {
        gap: 20px;
    }

    .hnb-family__text,
    .hnb-happening__text {
        font-size: 17px;
        line-height: 30px;
    }

    .hnb-family__moments {
        gap: 12px;
    }

    .hnb-family__moment {
        padding: 12px 18px;
        font-size: 17px;
    }

    .hnb-happening {
        padding: 60px 24px;
    }

    .hnb-happening__ways {
        gap: 14px;
    }

    .hnb-happening__ways > li {
        flex-basis: calc((100% - 14px) / 2);
    }

    .hnb-way {
        height: 130px;
        padding: 16px 10px;
        font-size: 17px;
    }
}

/* Narrow phones */
@media (max-width: 420px) {
    .hnb-family__title,
    .hnb-happening__title {
        font-size: 32px;
        line-height: 40px;
    }

    .hnb-family__caption {
        gap: 8px;
        padding: 9px 14px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .hnb-family__caption {
        bottom: 12px;
        left: 12px;
        gap: 6px;
        max-width: calc(100% - 24px);
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Tablets and phones: the stacked copy is centred under the photo */
@media (max-width: 1100px) {
    .hnb-family__content {
        align-items: center;
        text-align: center;
    }

    .hnb-family__moments {
        justify-content: center;
    }
}

/* ---------- Play & Explore banner (Figma node 943:3, 1600 × 610) ---------- */

/* 2016 × 968 photo at 44, -369: it overhangs the right edge by 460px and sits 190px above centre */
.hnb-banner--play .hnb-banner__inner-photo {
    --photo-w: 2016;
    --photo-h: 968;
    --photo-right: -460;
    --photo-shift: -190;
}

.hnb-banner--play .hnb-title__rays {
    left: -0.55em; /* -33px */
    top: -0.275em; /* -16.5px */
}

.hnb-banner--play .hnb-title__burst {
    left: 9.06667em; /* 544px */
}

/* ---------- Play & Explore: little adventures (Figma node 943:47, 1600 × 590) ---------- */

.hnb-family--play {
    position: relative;
}

.hnb-family--play .hnb-family__portrait {
    aspect-ratio: 650 / 430;
}

@media (min-width: 1101px) {
    .hnb-family--play .hnb-family__portrait {
        width: min(650px, 40.625vw);
    }
}

/* 62px star rotated -18deg inside a 78.125px box */
@media (min-width: 641px) {
    .hnb-family--play .hnb-family__star {
        top: -30.29px;
        left: 90.5877%; /* 588.82 / 650 */
        width: 78.125px;
        height: 78.125px;
    }
}

.hnb-family--play .hnb-family__star img {
    rotate: -18deg;
}

.hnb-family--play .hnb-family__title-sparks {
    top: -0.28em; /* -14px */
    left: -0.76em; /* -38px */
    width: 8.8em; /* 440px */
    height: 2.24em; /* 112px */
}

.hnb-family--play .hnb-family__text {
    width: 100%;
}

.hnb-family__playful-star {
    position: absolute;
    top: 425px;
    right: 11.875%; /* 190 / 1600 */
    pointer-events: none;
}

/* ---------- Play & Explore: perfect for (Figma node 943:69, 1600 × 487.5) ---------- */

.hnb-perfect {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34.5px;
    padding: 80px clamp(24px, 6.01875vw, 96.3px) 80px clamp(24px, 5.77875vw, 92.46px);
    background: #fcfae9;
}

.hnb-perfect__title {
    position: relative;
    width: 100%;
    margin: 0;
    color: var(--hnb-teal);
    font-family: var(--hnb-font-hero);
    font-size: clamp(36px, 3.75vw, 60px);
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

.hnb-perfect__title span {
    color: var(--hnb-purple);
}

/* 414 × 68.393 sparks at 592, 57.61: 0.92px right of the heading's centre and 22.39px above it */
.hnb-perfect__title-sparks {
    position: absolute;
    top: -0.37317em; /* -22.39px */
    left: calc(50% - 3.43467em); /* 206.08px left of centre */
    width: 6.9em; /* 414px */
    height: 1.13989em; /* 68.393px */
    pointer-events: none;
}

.hnb-perfect__cards {
    display: flex;
    align-items: center;
    gap: 27.4px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-perfect__card {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: center;
    gap: 9.36px;
    min-width: 1px;
    height: 221px;
    padding: 21.94px 0 20.42px;
    border-radius: 36.043px;
    background: #fff;
    overflow: clip;
}

.hnb-perfect__emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 100px;
    overflow: clip;
}

.hnb-perfect__label {
    width: 100%;
    height: 43.88px;
    font-family: var(--hnb-font-display);
    font-size: 22px;
    font-weight: 500;
    font-variation-settings: 'wdth' 100;
    line-height: normal;
    text-align: center;
    overflow-wrap: break-word;
}

.hnb-perfect__card--cyan .hnb-perfect__emblem {
    background: #def8fa;
}

.hnb-perfect__card--cyan-soft .hnb-perfect__emblem {
    background: #d8f8f9;
}

.hnb-perfect__card--cyan .hnb-perfect__label,
.hnb-perfect__card--cyan-soft .hnb-perfect__label {
    color: #008ea8;
}

.hnb-perfect__card--magenta .hnb-perfect__emblem {
    background: #fee1ff;
}

.hnb-perfect__card--magenta-soft .hnb-perfect__emblem {
    background: #f7e4f7;
}

.hnb-perfect__card--magenta .hnb-perfect__label,
.hnb-perfect__card--magenta-soft .hnb-perfect__label {
    color: #a015a5;
}

.hnb-perfect__card--orange .hnb-perfect__emblem {
    background: #ffebd8;
}

.hnb-perfect__card--orange .hnb-perfect__label {
    color: #ff8000;
}

/* Each icon is one or two drawings placed inside a square frame, as in Figma */
.hnb-perfect__icon {
    position: relative;
    flex-shrink: 0;
    overflow: clip;
}

.hnb-perfect__icon img {
    position: absolute;
    width: auto;
    height: auto;
}

.hnb-perfect__icon--slide {
    width: 80px;
    height: 80px;
}

.hnb-perfect__icon--slide img {
    inset: 17.65% 0;
}

.hnb-perfect__icon--playdates {
    width: 67px;
    height: 67px;
}

.hnb-perfect__icon--playdates img {
    inset: 2.95% 0;
}

.hnb-perfect__icon--family {
    width: 64px;
    height: 64px;
}

.hnb-perfect__icon--family img:nth-child(1) {
    inset: 0 32.34% 68.94% 32.34%;
}

.hnb-perfect__icon--family img:nth-child(2) {
    inset: 9.95% 0 0 0;
}

.hnb-perfect__icon--school {
    width: 70px;
    height: 70px;
}

.hnb-perfect__icon--school img:nth-child(1) {
    inset: 37.88% 37.66% 37.43% 37.66%;
}

.hnb-perfect__icon--school img:nth-child(2) {
    inset: 0;
}

.hnb-perfect__icon--confetti {
    width: 60px;
    height: 60px;
}

.hnb-perfect__icon--confetti img {
    inset: 0 0 0 0.01%;
}

.hnb-perfect__star {
    position: absolute;
    pointer-events: none;
}

.hnb-perfect__star--1 {
    top: 50px;
    left: 9%; /* 144 / 1600 */
}

.hnb-perfect__star--2 {
    top: 85px;
    left: 77.5%; /* 1240 / 1600 */
}

/* ---------- Play & Explore: regular playtime slot (Figma node 943:105, 1600 × 518) ---------- */

.hnb-slot-wrap {
    --u: min(1px, calc(100vw / 1600)); /* one design pixel: the whole panel scales down with the window */

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(110 * var(--u)) var(--hnb-header-px);
    background: linear-gradient(180deg, #fff 24.038%, #f1feff 100%);
    overflow: clip;
}

.hnb-slot {
    display: flex;
    align-items: center;
    width: 100%;
    padding: calc(57 * var(--u)); /* 60px including Figma's inside stroke */
    border: 3px solid #fff;
    border-radius: calc(50 * var(--u));
    background: #dffbfe;
}

.hnb-slot__main {
    display: flex;
    align-items: center;
    flex: 0 0 calc(1067 * var(--u));
    min-width: 0;
}

.hnb-slot__title {
    flex-shrink: 0;
    margin: 0;
    padding-right: calc(50 * var(--u));
    color: #9d2195;
    font-family: var(--hnb-font-hero);
    font-size: calc(50 * var(--u));
    font-weight: 400;
    line-height: calc(56.749 * var(--u));
    white-space: nowrap;
}

.hnb-slot__title span {
    display: block;
}

.hnb-slot__time {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: calc(19 * var(--u));
    padding: calc(30 * var(--u)) calc(60 * var(--u)) calc(30 * var(--u)) calc(50 * var(--u));
    border-left: 1px solid #008aa6;
}

.hnb-slot__time img,
.hnb-slot__phone img {
    flex-shrink: 0;
}

.hnb-slot__time p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    line-height: normal;
    white-space: nowrap;
}

.hnb-slot__time strong {
    color: #008aa6;
    font-family: var(--hnb-font-hero);
    font-size: calc(40 * var(--u));
    font-weight: 400;
    line-height: calc(48 * var(--u));
}

.hnb-slot__time span {
    color: #252525;
    font-size: calc(25.222 * var(--u));
    font-weight: 400;
    line-height: calc(30 * var(--u));
}

.hnb-slot__actions {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: calc(20 * var(--u));
    min-width: calc(1 * var(--u));
}

.hnb-slot__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(12 * var(--u));
    padding: calc(16 * var(--u)) calc(30 * var(--u));
    border-radius: calc(37.83 * var(--u));
    background: linear-gradient(90deg, #ff9200, #f57400);
    color: #fff;
    font-size: calc(24 * var(--u));
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.hnb-slot__cta:hover,
.hnb-slot__cta:focus-visible {
    translate: 0 -2px;
    box-shadow: 0 8px 18px rgba(245, 116, 0, 0.3);
}

.hnb-slot__cta:focus-visible,
.hnb-slot__phone:focus-visible {
    outline: 2px solid var(--hnb-purple);
    outline-offset: 3px;
}

/* 23.65 × 15.76 slot; the arrow's stroke overhangs it by 1.5px all round */
.hnb-slot__cta-arrow {
    position: relative;
    flex-shrink: 0;
    width: calc(23.65 * var(--u));
    height: calc(15.76 * var(--u));
}

.hnb-slot__cta-arrow img {
    position: absolute;
    top: calc(-1.5 * var(--u));
    left: calc(-1.5 * var(--u));
    transition: translate 0.2s ease;
}

.hnb-slot__cta:hover .hnb-slot__cta-arrow img {
    translate: 3px 0;
}

.hnb-slot__phone {
    display: flex;
    align-items: center;
    gap: calc(12 * var(--u));
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
}

.hnb-slot__phone span {
    color: #262626;
    font-size: calc(23.645 * var(--u));
}

.hnb-slot__phone strong {
    color: #008aa6;
    font-size: calc(26.798 * var(--u));
    font-weight: 700;
}

/* The girl's photo pokes out of the panel: 308.522 × 304.76, 29.52px past the column's right edge */
.hnb-slot__visual {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 0 0;
    min-width: calc(1 * var(--u));
    height: calc(89.9 * var(--u));
}

.hnb-slot__visual img {
    position: absolute;
    top: calc(50% - 0.12px);
    right: calc(-29.52 * var(--u));
    width: calc(308.522 * var(--u));
    height: calc(304.76 * var(--u));
    max-width: none;
    translate: 0 -50%;
}

.hnb-slot__deco {
    position: absolute;
    pointer-events: none;
}

.hnb-slot__deco--rays {
    top: calc(159.5 * var(--u));
    left: calc(71 * var(--u));
}

.hnb-slot__deco--rays-2,
.hnb-slot__deco--star,
.hnb-slot__deco--path {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnb-slot__deco img {
    flex: none;
}

/* 47.385 × 72.471 rays, mirrored and rotated 152deg inside a 75.862 × 86.234 box */
.hnb-slot__deco--rays-2 {
    top: calc(51.34 * var(--u));
    right: calc(81.65 * var(--u));
    width: calc(75.862 * var(--u));
    height: calc(86.234 * var(--u));
}

.hnb-slot__deco--rays-2 img {
    rotate: 152deg;
    scale: 1 -1;
}

/* 25.53px star rotated 13deg inside a 30.618px box */
.hnb-slot__deco--star {
    top: calc(127.14 * var(--u));
    left: 71.795%; /* 1148.72 / 1600 */
    width: calc(30.618 * var(--u));
    height: calc(30.618 * var(--u));
}

.hnb-slot__deco--star img {
    rotate: 13deg;
}

/* 126.55 × 67.049 dashed path rotated 138deg inside a 138.91 × 134.506 box */
.hnb-slot__deco--path {
    top: calc(35.99 * var(--u));
    right: calc(299.13 * var(--u));
    width: calc(138.91 * var(--u));
    height: calc(134.506 * var(--u));
}

.hnb-slot__deco--path img {
    rotate: 138deg;
}

.hnb-slot__time img {
    width: calc(55 * var(--u));
    height: calc(55 * var(--u));
}

.hnb-slot__phone img {
    width: calc(35.53 * var(--u));
    height: calc(36.5 * var(--u));
}

.hnb-slot__cta-arrow img {
    width: calc(26.65 * var(--u));
    height: calc(18.76 * var(--u));
}

.hnb-slot__deco--rays {
    width: calc(40 * var(--u));
    height: calc(61.1765 * var(--u));
}

.hnb-slot__deco--rays-2 img {
    width: calc(47.3851 * var(--u));
    height: calc(72.4714 * var(--u));
}

.hnb-slot__deco--star img {
    width: calc(25.5296 * var(--u));
    height: calc(25.5296 * var(--u));
}

.hnb-slot__deco--path img {
    width: calc(127.813 * var(--u));
    height: calc(68.3122 * var(--u));
}

/* ---------- Play & Explore: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1279px) {
    /* Five cards no longer fit their labels on one row: three to a row, the rest centred beneath */
    .hnb-perfect {
        padding-right: var(--hnb-about-px);
        padding-left: var(--hnb-about-px);
    }

    .hnb-perfect__cards {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .hnb-perfect__card {
        flex: 0 0 calc((100% - 48px) / 3);
    }

    /* Playtime panel: the photo pops out of the top, the details sit centred beneath it */
    .hnb-slot-wrap {
        --u: 0.8px;

        padding-top: 150px;
        padding-bottom: 80px;
    }

    .hnb-slot__deco {
        display: none;
    }

    .hnb-slot {
        flex-direction: column-reverse;
        gap: 28px;
        padding: 0 32px 44px;
    }

    .hnb-slot__main {
        flex: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 28px 0;
        width: 100%;
    }

    .hnb-slot__actions {
        flex: none;
        align-items: center;
    }

    .hnb-slot__visual {
        flex: none;
        width: 220px;
        height: auto;
        margin-top: -100px;
    }

    .hnb-slot__visual img {
        position: static;
        width: 100%;
        height: auto;
        translate: none;
    }
}

@media (max-width: 1100px) {
    .hnb-family__playful-star,
    .hnb-perfect__star {
        display: none;
    }

    /* The heading block is centred, but its lines stay left-aligned so the sparks keep hugging them */
    .hnb-family--play .hnb-family__title {
        text-align: left;
    }

    .hnb-perfect {
        gap: 28px;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hnb-perfect__title {
        font-size: 36px;
        line-height: 44px;
    }

    .hnb-perfect__label {
        height: auto;
        font-size: 22px;
    }

    .hnb-perfect__card {
        height: auto;
        padding: 24px 12px;
    }
}

@media (max-width: 640px) {
    .hnb-perfect {
        padding: 60px 24px;
    }

    .hnb-perfect__cards {
        gap: 14px;
    }

    .hnb-perfect__card {
        flex-basis: calc((100% - 14px) / 2);
        padding: 18px 8px;
    }

    .hnb-perfect__emblem {
        width: 90px;
        height: 90px;
    }

    .hnb-perfect__icon {
        scale: 0.75;
    }

    .hnb-perfect__label {
        font-size: 18px;
    }

    .hnb-slot-wrap {
        --u: 0.72px;

        padding: 130px 16px 60px;
    }

    .hnb-slot {
        gap: 22px;
        padding: 0 20px 36px;
        border-radius: 36px;
    }

    .hnb-slot__main {
        flex-direction: column;
        gap: 22px;
    }

    .hnb-slot__title {
        padding-right: 0;
        text-align: center;
    }

    .hnb-slot__time {
        padding: 22px 0 0;
        border-top: 1px solid #008aa6;
        border-left: 0;
    }

    .hnb-slot__visual {
        width: 190px;
        margin-top: -90px;
    }
}

/* Narrow phones: keep the longer banner line inside the gutters */
@media (max-width: 420px) {
    .hnb-banner--play {
        --hnb-heading: 8.2vw;
    }

    .hnb-perfect__title {
        font-size: 32px;
        line-height: 40px;
    }
}

/* ---------- Birthdays banner (Figma node 975:3, 1600 × 610) ---------- */

/* 1709 × 1058 photo at -81, -208: it overhangs the right edge by 28px and sits 16px below centre */
.hnb-banner--birthday .hnb-banner__inner-photo {
    --photo-w: 1709;
    --photo-h: 1058;
    --photo-right: -28;
    --photo-shift: 16;
}

.hnb-banner--birthday .hnb-title__rays {
    left: -0.55em; /* -33px */
    top: -0.25em; /* -15px */
}

.hnb-banner--birthday .hnb-title__line {
    position: relative;
}

/* 44 × 40.612 sparks touching the end of the second line, 5px above its top */
.hnb-banner--birthday .hnb-title__burst {
    left: 100%;
    top: -0.08333em;
}

/* ---------- Birthdays: intro copy (Figma node 975:43, 1600 × 290) ---------- */

.hnb-since--birthday,
.hnb-since--playschool,
.hnb-since--daycare {
    padding: 30px clamp(24px, 15.625vw, 250px) 60px;
}

/* ---------- Birthdays: you bring the birthday star (Figma node 975:47, 1600 × 700) ---------- */

.hnb-magic {
    --ellipse-w: min(1030px, calc(100% - 48px));
    --ellipse-h: 420px;

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: clamp(520px, 43.75vw, 700px);
    padding: 50px 24px;
    border-radius: clamp(40px, 5vw, 80px);
    background: rgb(var(--hnb-blue));
    overflow: clip;
    isolation: isolate;
}

/* 1600 × 800 collage: 50px of slack above and below lets it drift as the panel scrolls */
.hnb-magic__photo {
    position: absolute;
    inset: -50px 0;
    z-index: -1;
}

.hnb-magic__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: translate;
}

.hnb-magic__wash {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(7, 77, 120, 0.5);
}

/* Both ellipse drawings stretch (preserveAspectRatio none), so they can grow around the copy on narrow screens */
.hnb-magic__ellipse {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    translate: -50% -50%;
    pointer-events: none;
}

.hnb-magic__ellipse--fill {
    width: var(--ellipse-w);
    height: var(--ellipse-h);
}

.hnb-magic__ellipse--ring {
    width: calc(var(--ellipse-w) - 18px);
    height: calc(var(--ellipse-h) - 14px);
}

.hnb-magic__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 920px;
}

.hnb-magic__title {
    position: relative;
    margin: 0;
    font-family: var(--hnb-font-display);
    font-size: clamp(36px, 3.75vw, 60px);
    font-weight: 600;
    font-variation-settings: 'wdth' 100;
    line-height: 1.1; /* 66px at 60px */
    text-align: center;
}

.hnb-magic__title span {
    display: block;
    color: #faaff9;
}

.hnb-magic__title span:first-of-type {
    color: var(--hnb-yellow);
}

/* 723 × 127 sparks 17px above the heading, their centre 38.5px left of the heading's */
.hnb-magic__sparks {
    position: absolute;
    top: -0.28333em; /* -17px */
    left: calc(50% - 6.66667em); /* 400px left of centre */
    width: 12.05em; /* 723px */
    height: 2.11667em; /* 127px */
    max-width: none;
    pointer-events: none;
}

.hnb-magic__points {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-magic__points li {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9bfaff;
    font-size: 22px;
    font-weight: 600;
    line-height: 36px;
    white-space: nowrap;
}

/* ---------- Birthdays: packages, details and contact (Figma node 982:5, 1600 × 1691) ---------- */

.hnb-packages {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 80px var(--hnb-about-px);
    background: #fffdf7;
    overflow: clip; /* the side cards slide in from 60px outside */
}

.hnb-packages__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hnb-packages__title {
    position: relative;
    margin: 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-hero);
    font-size: clamp(34px, 3.125vw, 50px);
    font-weight: 400;
    line-height: 1.2; /* 60px at 50px */
    text-align: center;
}

.hnb-packages__title span {
    color: var(--hnb-teal);
}

.hnb-packages__sparks,
.hnb-details__sparks {
    position: absolute;
    max-width: none;
    pointer-events: none;
}

/* 662 × 49.991 sparks, 13px above the heading and 2px right of its centre */
.hnb-packages__sparks {
    top: -0.26em;
    left: calc(50% - 6.58em);
    width: 13.24em;
    height: 0.99982em;
}

.hnb-packages__intro {
    width: 760px;
    max-width: 100%;
    margin: 0;
    color: #30475e;
    font-size: 22px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

.hnb-packages__row {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.hnb-package {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    min-width: 1px;
    border: 2px solid #ecdfdd;
    border-radius: 36px;
    background: #fff;
    box-shadow: 0 8px 0 rgba(10, 28, 42, 0.05);
    overflow: clip;
}

.hnb-package__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 30px 40px;
}

.hnb-package--pink .hnb-package__header {
    background: #fce3fc;
}

.hnb-package--blue .hnb-package__header {
    background: #ebf7ff;
}

.hnb-package__header img {
    flex-shrink: 0;
    width: 63px;
    height: 63px;
}

.hnb-package__name {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.hnb-package__name h3 {
    margin: 0;
    color: #1e395e;
    font-family: var(--hnb-font-hero);
    font-size: 36px;
    font-weight: 400;
    line-height: 42px;
}

.hnb-package__name p {
    margin: 0;
    color: #30475e;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
}

.hnb-package__body {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 14px;
    padding: 25px 40px 30px;
}

.hnb-package__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 60px;
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #cfcfcf;
    white-space: nowrap;
}

.hnb-package__facts dt {
    color: #1e395e;
    font-family: var(--hnb-font-hero);
    font-size: 30px;
    line-height: 30px;
}

.hnb-package__facts dd {
    margin: 0;
    color: #505050;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
}

.hnb-package__label {
    margin: 0;
    color: #30475e;
    font-size: 15px;
    font-weight: 700;
    line-height: 28px;
}

.hnb-package__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-package__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #30475e;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

/* check-10: 24px tick ahead of every included item */
.hnb-package__list li::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url('../images/hopnbop/birthday-package-check.svg') center / 24px 24px no-repeat;
}

.hnb-package__list strong {
    font-weight: 600;
}

.hnb-package__cta,
.hnb-details__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: auto;
    border: 2px solid #fff;
    border-radius: 100px;
    color: #fffdfd;
    font-family: var(--hnb-font-hero);
    line-height: normal;
    text-align: center;
    text-decoration: none;
    transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.hnb-package__cta {
    padding: 16px 23px; /* 18px × 25px including Figma's inside stroke */
    font-size: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hnb-package--pink .hnb-package__cta {
    background: #9e519d;
}

.hnb-package--blue .hnb-package__cta {
    background: #3f7ca5;
}

/* bannerArrow: 21 × 14.728, overhanging its 20px slot by 1px */
.hnb-package__cta img,
.hnb-details__cta img {
    flex-shrink: 0;
    width: 21px;
    height: 14.7279px;
    margin-right: -1px;
    transition: translate 0.2s ease;
}

.hnb-package__cta:hover,
.hnb-package__cta:focus-visible,
.hnb-details__cta:hover,
.hnb-details__cta:focus-visible,
.hnb-enquire__cta:hover,
.hnb-enquire__cta:focus-visible,
.hnb-enquire__phone:hover,
.hnb-enquire__phone:focus-visible {
    translate: 0 -2px;
    box-shadow: 0 8px 18px rgba(30, 57, 94, 0.2);
}

.hnb-package__cta:hover img,
.hnb-details__cta:hover img,
.hnb-enquire__cta:hover img {
    translate: 3px 0;
}

.hnb-package__cta:focus-visible,
.hnb-details__cta:focus-visible,
.hnb-details__links a:focus-visible,
.hnb-enquire__cta:focus-visible,
.hnb-enquire__phone:focus-visible {
    outline: 2px solid var(--hnb-purple);
    outline-offset: 3px;
}

/* Little details. Big celebrations. */
.hnb-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

/* 817 × 49.991 sparks, 11px above the heading and 0.5px left of its centre */
.hnb-details__sparks {
    top: -0.22em;
    left: calc(50% - 8.18em);
    width: 16.34em;
    height: 0.99982em;
}

.hnb-details__pills {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 30px 0;
    list-style: none;
}

.hnb-details__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 100px;
    color: #1e395e;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
}

.hnb-details__pill img {
    flex-shrink: 0;
}

.hnb-details__pill--age {
    background: #d8f4fb;
}

.hnb-details__pill--slots {
    background: #f8eccb;
}

.hnb-details__row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

/* 860px card; the contact card takes the rest (490px at the design width) and stops shrinking at 380px */
.hnb-details__card {
    flex: 0 1 860px;
    min-width: 0;
    border: 2px solid #ecdfdd;
    border-radius: 36px;
    background: #fff;
    box-shadow: 0 8px 0 rgba(10, 28, 42, 0.05);
    overflow: clip;
}

.hnb-details__contact {
    flex: 1 0 0;
    min-width: 380px;
    border-radius: 36px;
    background: #d6f2f9;
    box-shadow: 0 8px 0 rgba(10, 28, 42, 0.05);
    overflow: clip;
}

.hnb-details__card-title {
    margin: 0;
    color: #1e395e;
    font-family: var(--hnb-font-hero);
    font-size: 36px;
    font-weight: 400;
    line-height: 42px;
}

.hnb-details__card .hnb-details__card-title {
    padding: 30px 40px;
    background: #ffecf3;
}

.hnb-details__contact .hnb-details__card-title {
    padding: 30px 40px 16px;
}

.hnb-details__list {
    margin: 0;
    padding: 10px 40px 30px;
    list-style: none;
}

.hnb-details__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #30475e;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

.hnb-details__item + .hnb-details__item {
    border-top: 1px solid #ecdfdd;
}

.hnb-details__item--pair {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 40px;
    padding: 0;
}

.hnb-details__tax {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    white-space: nowrap;
}

.hnb-details__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 100px;
    overflow: clip;
}

.hnb-details__icon--sand {
    background: #f8eccb;
}

.hnb-details__icon--sky {
    background: #d8f4fb;
}

.hnb-details__icon--rose {
    background: #ffe9f1;
}

/* Each glyph is one or two drawings placed inside a 20px frame, as in Figma */
.hnb-details__glyph {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    overflow: clip;
}

.hnb-details__glyph img {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
}

.hnb-details__glyph--clock img:nth-child(1) {
    inset: 23.2% 30.63% 34.2% 46.13%;
}

.hnb-details__glyph--restaurant img {
    inset: -0.01% 11.21% 0 11.21%;
}

.hnb-details__glyph--tray img {
    inset: 10.45% 0;
}

.hnb-details__glyph--percent {
    width: 18px;
    height: 18px;
}

.hnb-details__glyph--percent img {
    inset: 2.63% 0;
}

.hnb-details__links {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 40px 25px;
    list-style: none;
}

.hnb-details__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #30475e;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.hnb-details__links a:hover {
    color: var(--hnb-purple);
}

.hnb-details__link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    padding: 4px;
}

.hnb-details__contact .hnb-details__cta {
    width: auto;
    margin: 0 40px 30px;
    padding: 20px 23px; /* 22px × 25px including Figma's inside stroke */
    background: var(--hnb-purple);
    font-size: 20px;
    letter-spacing: 5px;
}

/* 100 × 154 balloons poking out of the contact card's top-right corner */
.hnb-details__balloons {
    position: absolute;
    top: -41px;
    right: 24px; /* 1236 + 100 of 1360 */
    pointer-events: none;
}

/* ---------- Birthdays: make it extra special (Figma node 987:112, 1600 × 588) ---------- */

.hnb-perfect--extra .hnb-perfect__title {
    font-size: clamp(34px, 3.125vw, 50px);
    line-height: 1.2; /* 60px at 50px */
}

/* 563 × 49.991 sparks, 14px above the heading and 2.58px left of its centre */
.hnb-perfect--extra .hnb-perfect__title-sparks {
    top: -0.28em;
    left: calc(50% - 5.6816em);
    width: 11.26em;
    height: 0.99982em;
}

.hnb-perfect__intro {
    width: 760px;
    max-width: 100%;
    margin: 0;
    color: #30475e;
    font-size: 22px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

.hnb-perfect--extra .hnb-perfect__label {
    font-size: 24px;
}

.hnb-perfect__icon--paint,
.hnb-perfect__icon--mask {
    width: 62px;
    height: 62px;
}

.hnb-perfect__icon--paint img {
    inset: 5.9% 6.25% 6.25% 6.2%;
}

.hnb-perfect__icon--mask img {
    inset: 6.94% 0;
}

.hnb-perfect__icon--magic-wand {
    width: 50px;
    height: 50px;
}

.hnb-perfect__icon--magic-wand img,
.hnb-perfect__icon--tattoo img {
    inset: 0;
}

.hnb-perfect__icon--bubbles {
    width: 55px;
    height: 55px;
}

.hnb-perfect__icon--bubbles img {
    inset: 0 3.13%;
}

.hnb-perfect__icon--tattoo {
    width: 60px;
    height: 60px;
}

/* ---------- Birthdays: enquire for birthday packages (Figma node 1030:689, 1600 × 484) ---------- */

.hnb-enquire-wrap {
    --u: min(1px, calc(100vw / 1600)); /* one design pixel: the whole panel scales down with the window */

    position: relative;
    display: flex;
    flex-direction: column;
    padding: calc(80 * var(--u)) calc(120 * var(--u)) 0;
    overflow: clip;
}

.hnb-enquire {
    display: flex;
    align-items: center;
    width: 100%;
    padding: calc(57 * var(--u)) calc(77 * var(--u)); /* 60px × 80px including Figma's inside stroke */
    border: 3px solid #fff;
    border-radius: calc(50 * var(--u));
    background: #dffbfe;
}

.hnb-enquire__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    gap: calc(12 * var(--u));
    padding-right: calc(50 * var(--u));
}

.hnb-enquire__title {
    margin: 0;
    color: #9d2195;
    font-family: var(--hnb-font-hero);
    font-size: calc(50 * var(--u));
    font-weight: 400;
    line-height: calc(56.749 * var(--u));
    white-space: nowrap;
}

.hnb-enquire__title span {
    display: block;
}

.hnb-enquire__title span:last-child {
    color: var(--hnb-teal);
}

/* As wide as the title or the buttons, whichever is wider */
.hnb-enquire__text {
    width: 0;
    min-width: 100%;
    margin: 0;
    color: #191919;
    font-size: calc(22 * var(--u));
    font-weight: 500;
    line-height: calc(36 * var(--u));
}

.hnb-enquire__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(12 * var(--u));
    padding-top: calc(10 * var(--u));
}

.hnb-enquire__cta,
.hnb-enquire__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    color: #fffdfd;
    font-family: var(--hnb-font-hero);
    font-size: calc(22 * var(--u));
    line-height: normal;
    letter-spacing: calc(2.2 * var(--u));
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.hnb-enquire__cta {
    gap: calc(12 * var(--u));
    padding: calc(16 * var(--u)) calc(30 * var(--u));
    background: var(--hnb-purple);
}

/* 20 × 16 arrow whose stroke overhangs its slot by 1.5px all round */
.hnb-enquire__cta img {
    flex-shrink: 0;
    width: calc(23 * var(--u));
    height: calc(19 * var(--u));
    margin: calc(-1.5 * var(--u));
    transition: translate 0.2s ease;
}

.hnb-enquire__phone {
    gap: calc(15 * var(--u));
    padding: calc(14 * var(--u)) calc(28 * var(--u)); /* 16px × 30px including Figma's inside stroke */
    border: 2px solid #fff;
    background: var(--hnb-teal);
}

.hnb-enquire__phone img {
    flex-shrink: 0;
    width: calc(25 * var(--u));
    height: calc(26 * var(--u));
}

/* The girl's 344 × 340 photo hugs the column's right edge and overflows the panel's padding */
.hnb-enquire__visual {
    position: relative;
    flex: 1 0 0;
    min-width: calc(1 * var(--u));
    height: calc(117.5 * var(--u));
}

.hnb-enquire__visual img {
    position: absolute;
    top: calc(50% - 1 * var(--u));
    right: 0;
    width: calc(344 * var(--u));
    height: calc(340 * var(--u));
    translate: 0 -50%;
}

.hnb-enquire__deco {
    position: absolute;
    pointer-events: none;
}

.hnb-enquire__deco--rays {
    top: calc(116.5 * var(--u));
    left: calc(162 * var(--u));
    width: calc(40 * var(--u));
    height: calc(61.1765 * var(--u));
}

.hnb-enquire__deco--rays-2,
.hnb-enquire__deco--star,
.hnb-enquire__deco--path {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnb-enquire__deco img {
    flex: none;
}

/* 47.385 × 72.471 rays, mirrored and rotated 152deg inside a 75.862 × 86.234 box */
.hnb-enquire__deco--rays-2 {
    top: calc(101.34 * var(--u));
    right: calc(181.65 * var(--u));
    width: calc(75.862 * var(--u));
    height: calc(86.234 * var(--u));
}

.hnb-enquire__deco--rays-2 img {
    width: calc(47.3851 * var(--u));
    height: calc(72.4714 * var(--u));
    rotate: 152deg;
    scale: 1 -1;
}

/* 25.53px stars rotated 13deg inside 30.618px boxes */
.hnb-enquire__deco--star {
    width: calc(30.618 * var(--u));
    height: calc(30.618 * var(--u));
}

.hnb-enquire__deco--star img {
    width: calc(25.5296 * var(--u));
    height: calc(25.5296 * var(--u));
    rotate: 13deg;
}

.hnb-enquire__deco--star-1 {
    top: calc(177.14 * var(--u));
    left: 63.045%; /* 1008.72 / 1600 */
}

.hnb-enquire__deco--star-2 {
    top: calc(127.14 * var(--u));
    left: 50.545%; /* 808.72 / 1600 */
}

.hnb-enquire__deco--star-3 {
    top: calc(387.14 * var(--u));
    left: 57.42%; /* 918.72 / 1600 */
}

/* 126.55 × 67.049 dashed path rotated 138deg inside a 138.91 × 134.506 box */
.hnb-enquire__deco--path {
    top: calc(85.99 * var(--u));
    right: calc(439.13 * var(--u));
    width: calc(138.91 * var(--u));
    height: calc(134.506 * var(--u));
}

.hnb-enquire__deco--path img {
    width: calc(127.813 * var(--u));
    height: calc(68.3122 * var(--u));
    rotate: 138deg;
}

/* ---------- Birthdays: tablet and phone (same steps as the homepage) ---------- */

/* Below ~400px the contact card is too narrow for full-size balloons beside the phone number:
   smaller balloons tucked into its corner instead */
@media (max-width: 1499px) {
    .hnb-details__balloons {
        top: -30px;
        right: 10px;
        width: 70px;
        height: auto;
    }
}

@media (max-width: 1279px) {
    .hnb-package__cta {
        letter-spacing: 2px;
    }

    .hnb-details__contact .hnb-details__cta {
        letter-spacing: 3px;
    }

    .hnb-details__links a {
        font-size: 22px;
    }

    /* Enquiry panel: the photo pops out of the top, the details sit centred beneath it */
    .hnb-enquire-wrap {
        --u: 0.8px;

        padding: 150px var(--hnb-about-px) 0;
    }

    .hnb-enquire__deco {
        display: none;
    }

    .hnb-enquire {
        flex-direction: column-reverse;
        gap: 28px;
        padding: 0 32px 44px;
    }

    .hnb-enquire__main {
        align-items: center;
        padding-right: 0;
        text-align: center;
    }

    .hnb-enquire__text {
        max-width: 560px;
    }

    .hnb-enquire__actions {
        justify-content: center;
    }

    .hnb-enquire__visual {
        flex: none;
        width: 240px;
        height: auto;
        margin-top: -110px;
    }

    .hnb-enquire__visual img {
        position: static;
        width: 100%;
        height: auto;
        translate: none;
    }
}

@media (max-width: 1100px) {
    .hnb-since--birthday,
    .hnb-since--playschool,
    .hnb-since--daycare {
        padding-bottom: 50px;
    }

    .hnb-magic {
        --ellipse-w: calc(100% - 48px);
        --ellipse-h: calc(100% - 120px);

        height: auto;
        min-height: 480px;
        padding: 110px 64px;
        border-radius: 48px;
    }

    .hnb-magic__content {
        max-width: 560px;
    }

    .hnb-magic__title {
        font-size: 36px;
    }

    .hnb-magic__points {
        gap: 4px 28px;
    }

    .hnb-magic__points li {
        font-size: 20px;
    }

    .hnb-packages {
        gap: 32px;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hnb-packages__row {
        flex-direction: column;
        align-items: center;
    }

    .hnb-package {
        flex: none;
        width: 100%;
        max-width: 680px;
    }

    .hnb-package__cta {
        letter-spacing: 4px;
    }

    .hnb-details {
        padding-top: 30px;
    }

    .hnb-details__row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .hnb-details__card,
    .hnb-details__contact {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 680px;
    }

    .hnb-details__balloons {
        display: none;
    }
}

@media (max-width: 640px) {
    .hnb-since--birthday,
    .hnb-since--playschool,
    .hnb-since--daycare {
        padding-right: 16px;
        padding-bottom: 40px;
        padding-left: 16px;
    }

    .hnb-magic {
        --ellipse-w: calc(100% - 20px);
        --ellipse-h: calc(100% - 100px);

        min-height: 440px;
        padding: 100px 28px;
        border-radius: 36px;
    }

    .hnb-magic__title {
        font-size: 25px;
        line-height: 32px;
    }

    .hnb-magic__sparks {
        display: none;
    }

    .hnb-magic__points li {
        font-size: 16px;
        line-height: 28px;
    }

    .hnb-packages {
        padding: 50px 16px 60px;
    }

    .hnb-packages__intro,
    .hnb-perfect__intro {
        font-size: 18px;
        line-height: 30px;
    }

    .hnb-packages__sparks,
    .hnb-details__sparks,
    .hnb-perfect--extra .hnb-perfect__title-sparks {
        display: none;
    }

    .hnb-package,
    .hnb-details__card,
    .hnb-details__contact {
        border-radius: 28px;
    }

    .hnb-package__header {
        padding: 22px 22px;
    }

    .hnb-package__header img {
        width: 52px;
        height: 52px;
    }

    .hnb-package__name h3,
    .hnb-details__card-title {
        font-size: 28px;
        line-height: 34px;
    }

    .hnb-package__name p {
        font-size: 14px;
    }

    .hnb-package__body {
        padding: 20px 22px 24px;
    }

    .hnb-package__facts {
        gap: 12px 32px;
    }

    .hnb-package__facts dt {
        font-size: 24px;
        line-height: 26px;
    }

    .hnb-package__facts dd {
        font-size: 16px;
        line-height: 24px;
    }

    .hnb-package__list li,
    .hnb-details__item {
        align-items: flex-start;
        font-size: 16px;
        line-height: 24px;
    }

    .hnb-package__cta {
        padding: 14px 16px;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hnb-details__pills {
        gap: 12px;
        padding: 24px 0;
    }

    .hnb-details__pill {
        padding: 8px 16px;
        font-size: 17px;
        line-height: 24px;
    }

    .hnb-details__pill img {
        width: 30px;
        height: auto;
    }

    .hnb-details__card .hnb-details__card-title {
        padding: 22px;
    }

    .hnb-details__contact .hnb-details__card-title {
        padding: 22px 22px 12px;
    }

    .hnb-details__list {
        padding: 6px 22px 22px;
    }

    .hnb-details__item {
        align-items: center;
    }

    .hnb-details__links {
        padding: 0 22px 20px;
    }

    .hnb-details__links a {
        font-size: 20px;
    }

    .hnb-details__contact .hnb-details__cta {
        margin: 0 22px 24px;
        padding: 16px 20px;
        font-size: 18px;
        letter-spacing: 4px;
    }

    .hnb-enquire-wrap {
        --u: 0.72px;

        padding: 130px 16px 0;
    }

    .hnb-enquire {
        gap: 22px;
        padding: 0 20px 36px;
        border-radius: 36px;
    }

    .hnb-enquire__title {
        white-space: normal;
    }

    .hnb-enquire__text {
        font-size: 16px;
        line-height: 26px;
    }

    .hnb-enquire__visual {
        width: 200px;
        margin-top: -100px;
    }
}

/* Phones: "The Best Kind of Birthday." is about 12.2em wide, so the heading shrinks to keep it on one line */
@media (max-width: 640px) {
    .hnb-banner--birthday {
        --hnb-heading: min(34px, 6.9vw);
    }
}

/* ---------- Memberships banner (Figma node 992:14, 1600 × 610) ---------- */

/* Two 770 × 1155 copies of the photo side by side (the left one mirrored) at 120, -333:
   together they overhang the right edge by 60px and sit 60.5px above centre */
.hnb-banner--membership .hnb-banner__inner-photo {
    --photo-w: 1540;
    --photo-h: 1155;
    --photo-right: -60;
    --photo-shift: -60.5;

    display: flex;
}

.hnb-banner--membership .hnb-banner__inner-photo img {
    width: 50%;
}

.hnb-banner--membership .hnb-banner__inner-photo img:first-child {
    scale: -1 1;
}

.hnb-banner--membership .hnb-title__rays {
    left: -0.55em; /* -33px */
    top: -0.21667em; /* -13px */
}

.hnb-banner--membership .hnb-title__line {
    position: relative;
}

/* The first two lines stack with no gap; the smaller third line sits 5px below */
.hnb-banner--membership .hnb-title__line:nth-of-type(2) {
    margin-top: -5px;
}

.hnb-banner--membership .hnb-title__line--small {
    font-size: 0.66667em; /* 40px at 60px */
    line-height: 1.2; /* 48px */
}

/* 44 × 40.612 sparks touching the end of "More Adventures.", level with its top */
.hnb-banner--membership .hnb-title__burst {
    left: 100%;
    top: 0;
}

/* ---------- Memberships: intro copy (Figma node 992:54, 1600 × 230) ---------- */

.hnb-since--membership {
    padding-bottom: 60px;
}

/* ---------- Memberships: membership options (Figma node 992:82, 1600 × 1009) ---------- */

.hnb-packages--membership .hnb-packages__heading {
    gap: 36px;
}

/* 868 × 49.991 sparks, 13px above the heading and 2px left of its centre */
.hnb-packages--membership .hnb-packages__sparks {
    top: -0.26em;
    left: calc(50% - 8.72em);
    width: 17.36em;
    height: 0.99982em;
}

.hnb-packages__pill {
    margin: 0;
    padding: 18px 50px;
    border-radius: 100px;
    background: #f9dea6;
    color: #1c3650;
    font-family: var(--hnb-font-hero);
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 1.5px;
    text-align: center;
    white-space: nowrap;
}

.hnb-packages--membership .hnb-package__name p {
    letter-spacing: 3.2px;
}

.hnb-package__term {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #1e395e;
    font-family: var(--hnb-font-hero);
    font-weight: 400;
    white-space: nowrap;
}

.hnb-package__months {
    font-size: 72px;
    line-height: 42px;
}

.hnb-package__term-label {
    font-size: 30px;
    line-height: 30px;
}

/* Friends' passes: a dashed coupon above the benefits */
.hnb-package__passes {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 10px;
    padding: 13px 19px; /* 14px × 20px including the 1px dashed border */
    border: 1px dashed;
    border-radius: 10px;
}

.hnb-package__passes strong {
    color: #1e395e;
    font-family: var(--hnb-font-hero);
    font-size: 50px;
    font-weight: 400;
    line-height: 30px;
    white-space: nowrap;
}

.hnb-package__passes span {
    flex: 1 0 0;
    min-width: 1px;
    color: #505050;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
}

/* In Figma the label and arrow (312px) are wider than the button's padded box and spill into its padding:
   keep them on one line, and tighten the tracking as the cards narrow below 1600px */
.hnb-packages--membership .hnb-package__cta {
    padding-right: 8px;
    padding-left: 8px;
    letter-spacing: clamp(0.5px, calc((100vw - 1260px) * 0.0118), 4px);
    white-space: nowrap;
}

/* The last benefit keeps 20px clear above the button; shorter lists push the button down to line up */
.hnb-packages--membership .hnb-package__list {
    margin-bottom: 20px;
}

.hnb-package--peach .hnb-package__header {
    background: #fde8e2;
}

.hnb-package--peach .hnb-package__passes {
    border-color: #cfa89e;
    background: #fff5f2;
}

.hnb-package--peach .hnb-package__cta {
    background: #c25637;
}

.hnb-package--sky .hnb-package__header {
    background: #ddf0fc;
}

.hnb-package--sky .hnb-package__passes {
    border-color: #789aaf;
    background: #eaf6fe;
}

.hnb-package--sky .hnb-package__cta {
    background: #345f7a;
}

.hnb-package--orchid .hnb-package__header {
    background: #fde2f9;
}

.hnb-package--orchid .hnb-package__passes {
    border-color: #c692be;
    background: #ffeffd;
}

.hnb-package--orchid .hnb-package__cta {
    background: var(--hnb-purple);
}

/* ---------- Memberships: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1279px) {
    /* Three cards no longer fit their titles and buttons side by side: they stack */
    .hnb-packages--membership .hnb-packages__row {
        flex-direction: column;
        align-items: center;
    }

    .hnb-packages--membership .hnb-package {
        flex: none;
        width: 100%;
        max-width: 680px;
    }

    .hnb-packages--membership .hnb-package__cta {
        letter-spacing: 4px;
    }
}

@media (max-width: 1100px) {
    .hnb-since--membership {
        padding-bottom: 50px;
    }

    .hnb-packages--membership .hnb-packages__heading {
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .hnb-since--membership {
        padding-bottom: 40px;
    }

    .hnb-packages--membership .hnb-packages__heading {
        gap: 22px;
    }

    .hnb-packages--membership .hnb-packages__sparks {
        display: none;
    }

    .hnb-packages__pill {
        padding: 12px 28px;
        font-size: 22px;
        line-height: 28px;
    }

    .hnb-packages--membership .hnb-package__name p {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hnb-package__months {
        font-size: 56px;
        line-height: 36px;
    }

    .hnb-package__term-label {
        font-size: 24px;
        line-height: 24px;
    }

    .hnb-package__passes {
        padding: 11px 15px;
    }

    .hnb-package__passes strong {
        font-size: 40px;
    }

    .hnb-package__passes span {
        font-size: 16px;
    }

    .hnb-packages--membership .hnb-package__cta {
        padding: 14px 16px;
        letter-spacing: 2px;
        white-space: normal;
    }
}

/* Narrow phones: keep "More Reasons to Come Back!" and "12 Month Membership" inside the gutters */
@media (max-width: 420px) {
    .hnb-banner--membership {
        --hnb-heading: min(34px, 9.5vw);
    }

    .hnb-package__months {
        font-size: 48px;
    }

    .hnb-package__term-label {
        font-size: 21px;
        line-height: 22px;
    }
}

/* ---------- Playschool banner (Figma node 998:534, 1600 × 610) ---------- */

/* 1589 × 706 photo flush with the right edge, 15px above centre */
.hnb-banner--playschool .hnb-banner__inner-photo {
    --photo-w: 1589;
    --photo-h: 706;
    --photo-right: 0;
    --photo-shift: -15;
}

/* 34 × 56 rays, 33px left of and 12.5px above the heading */
.hnb-banner--playschool .hnb-title__rays {
    left: -0.55em;
    top: -0.20833em;
    height: 0.93333em;
}

.hnb-banner--playschool .hnb-title__line {
    position: relative;
}

/* Both lines share one 140px text block in Figma: no gap between them */
.hnb-banner--playschool .hnb-title__line:nth-of-type(2) {
    margin-top: -5px;
}

/* 44 × 44.612 sparks touching the end of "Begins With Play.", 0.5px below its top */
.hnb-banner--playschool .hnb-title__burst {
    left: 100%;
    top: 0.00833em;
    height: 0.74353em;
}

/* ---------- Playschool: every child is different (Figma node 1002:8, 1600 × 590) ---------- */

.hnb-family--playschool .hnb-family__title span {
    display: inline;
    color: var(--hnb-teal);
}

/* 308 × 162 sparks, 38px left of and 17px above the heading */
.hnb-family--playschool .hnb-family__title-sparks {
    top: -0.34em;
    left: -0.76em;
    width: 6.16em;
    height: 3.24em;
}

.hnb-family--playschool .hnb-family__playful-star {
    top: 465px;
    right: 9.375%; /* 150 / 1600 */
}

/* ---------- Playschool: what we encourage (Figma node 1005:28, 1600 × 618) ---------- */

.hnb-perfect--encourage {
    gap: 30px;
    padding: 80px clamp(24px, 3.75vw, 60px);
}

.hnb-perfect--encourage .hnb-perfect__cards {
    padding-bottom: 30px;
}

/* 543 × 49.991 sparks, 14px above the heading and 0.5px right of its centre */
.hnb-perfect--encourage .hnb-perfect__title-sparks {
    top: -0.28em;
    left: calc(50% - 5.43em + 0.5px);
    width: 10.86em;
    height: 0.99982em;
}

/* Communication's icon is a complete 120px drawing with its own circle */
.hnb-perfect__card--cyan-plain .hnb-perfect__emblem {
    background: none;
}

.hnb-perfect__card--cyan-plain .hnb-perfect__label {
    color: #008ea8;
}

.hnb-perfect__icon--curiosity {
    width: 65px;
    height: 65px;
}

.hnb-perfect__icon--curiosity img {
    inset: 0.2% 17.82% 0.07% 17.85%;
}

/* idea-9: a bulb with three little rays either side */
.hnb-perfect__icon--idea {
    width: 57px;
    height: 57px;
}

.hnb-perfect__icon--idea img:nth-child(1) {
    inset: 0.01% 14.84% 0.01% 14.85%;
}

.hnb-perfect__icon--idea img:nth-child(2) {
    inset: 35.34% 88.28% 58.8% 0;
}

.hnb-perfect__icon--idea img:nth-child(3) {
    inset: 15.69% 89.14% 74.3% 0.86%;
}

.hnb-perfect__icon--idea img:nth-child(4) {
    inset: 50.85% 89.14% 39.15% 0.86%;
}

.hnb-perfect__icon--idea img:nth-child(5) {
    inset: 35.34% 0 58.8% 88.28%;
}

.hnb-perfect__icon--idea img:nth-child(6) {
    inset: 15.69% 0.86% 74.3% 89.14%;
}

.hnb-perfect__icon--idea img:nth-child(7) {
    inset: 50.85% 0.86% 39.15% 89.14%;
}

.hnb-perfect__icon--confidence {
    width: 57px;
    height: 57px;
}

.hnb-perfect__icon--confidence img {
    inset: 2.93% 0;
}

.hnb-perfect__icon--communication {
    width: 120px;
    height: 120px;
}

.hnb-perfect__icon--communication img,
.hnb-perfect__icon--social img {
    inset: 0;
}

.hnb-perfect__icon--reward {
    width: 62px;
    height: 62px;
}

.hnb-perfect__icon--reward img {
    inset: 3.44%;
}

.hnb-perfect__icon--social {
    width: 52px;
    height: 52px;
}

/* ---------- Playschool: learning through (Figma node 998:578, 1600 × 889) ---------- */

.hnb-learning .hnb-packages__heading {
    gap: 20px;
}

/* 503 × 49.991 sparks, 13px above the heading and 1.5px right of its centre */
.hnb-learning .hnb-packages__sparks {
    top: -0.26em;
    left: calc(50% - 5em);
    width: 10.06em;
    height: 0.99982em;
}

.hnb-learning__photos {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 433.33 × 520 frames; each photo is a little larger than its frame and centred, as in Figma */
.hnb-learning__photo {
    position: relative;
    flex: 1 0 0;
    min-width: 1px;
    aspect-ratio: 433.333 / 520;
    border-radius: 30px;
    background: #fee7f1;
    overflow: clip;
}

.hnb-learning__photo img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 103.385%; /* 448 */
    height: 114.808%; /* 597 */
    object-fit: cover;
    translate: calc(-50% + 0.33px) calc(-50% + 5.5px);
}

.hnb-learning__photo--2 img {
    width: 105.923%; /* 459 */
    height: 117.692%; /* 612 */
    translate: calc(-50% + 0.5px) -50%;
}

.hnb-learning__photo--3 img {
    width: 102.692%; /* 445 */
    height: 114.231%; /* 594 */
    translate: calc(-50% + 0.17px) -50%;
}

/* ---------- Playschool: a place where little minds grow (Figma node 1033:1760, 1600 × 504) ---------- */

.hnb-enquire-wrap--playschool .hnb-enquire__deco--rays {
    top: calc(114.5 * var(--u));
    left: calc(165 * var(--u));
}

.hnb-enquire-wrap--playschool .hnb-enquire__deco--rays-2 {
    right: calc(203.65 * var(--u));
}

.hnb-enquire-wrap--playschool .hnb-enquire__deco--star-2 {
    top: calc(117.14 * var(--u));
    left: 56.17%; /* 898.72 / 1600 */
}

.hnb-enquire-wrap--playschool .hnb-enquire__deco--star-3 {
    left: 59.295%; /* 948.72 / 1600 */
}

/* ---------- Playschool: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1100px) {
    .hnb-learning__photos {
        gap: 20px;
    }

    .hnb-learning__photo {
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .hnb-family--playschool .hnb-family__title-sparks,
    .hnb-perfect--encourage .hnb-perfect__title-sparks,
    .hnb-learning .hnb-packages__sparks {
        display: none;
    }

    .hnb-since.hnb-since--playschool {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hnb-family--playschool .hnb-family__content,
    .hnb-family--play.hnb-family--playschool .hnb-family__title {
        align-items: center;
        text-align: center;
    }

    .hnb-perfect.hnb-perfect--encourage {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* Photos stack, each keeping its frame's proportions */
    .hnb-learning__photos {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hnb-learning__photo {
        flex: none;
        width: 100%;
        max-width: 460px;
    }
}

/* Narrow phones: keep "Begins With Play." and its sparks inside the gutters */
@media (max-width: 420px) {
    .hnb-banner--playschool {
        --hnb-heading: min(34px, 9.5vw);
    }
}

/* The 24px card labels (Birthdays' extras, Playschool's encourage cards) step down with the shared ones */
@media (max-width: 1100px) {
    .hnb-perfect--extra .hnb-perfect__label {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .hnb-perfect--extra .hnb-perfect__label {
        font-size: 18px;
    }
}

/* Narrow phones: "Communication" stays on one line in its half-width card */
@media (max-width: 420px) {
    .hnb-perfect--encourage .hnb-perfect__label {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .hnb-perfect--encourage .hnb-perfect__card {
        padding-right: 4px;
        padding-left: 4px;
    }

    .hnb-perfect--encourage .hnb-perfect__label {
        font-size: 15px;
    }
}

/* ---------- Playspaces banner (Figma node 1007:512, 1600 × 610) ---------- */

.hnb-banner--playspaces {
    background: #cee6f6;
}

/* 1271 × 847 photo at 439, -107: it overhangs the right edge by 110px and sits 11.5px below centre */
.hnb-banner--playspaces .hnb-banner__inner-photo {
    --photo-w: 1271;
    --photo-h: 847;
    --photo-right: -110;
    --photo-shift: 11.5;
}

/* Two 1223 × 985 blue ellipses curve in from the left; their centres sit 139.5px below the banner's */
.hnb-banner__curve {
    position: absolute;
    top: calc(50% + var(--hnb-hero-h) * 139.5 / 610);
    left: calc(var(--hnb-hero-h) * -428 / 610);
    height: calc(var(--hnb-hero-h) * 985 / 610);
    aspect-ratio: 1223 / 985;
    translate: 0 -50%;
    pointer-events: none;
}

.hnb-banner__curve--outer {
    left: calc(var(--hnb-hero-h) * -418 / 610);
}

.hnb-banner--playspaces .hnb-caption {
    gap: 17px;
}

/* The two white lines share one 140px text block in Figma: no gap between them */
.hnb-banner--playspaces .hnb-title__line:nth-of-type(2) {
    margin-top: -5px;
}

.hnb-banner--playspaces .hnb-title__line--small {
    font-size: 0.8em; /* 48px at 60px */
    line-height: 1; /* 48px */
}

/* 651px at the design height; narrows with the banner so the copy stays on the blue curve */
.hnb-banner--playspaces .hnb-caption__text {
    width: min(651px, calc(var(--hnb-hero-h) * 651 / 610));
    font-weight: 600;
}

/* 1600 × 79 scalloped edge hanging 54px below the banner (its top 25px show) */
.hnb-banner__scallops {
    position: absolute;
    bottom: -54px;
    left: 50%;
    width: max(100%, 1600px);
    height: 79px;
    translate: -50% 0;
    pointer-events: none;
}

/* Desktop: the curves carry the caption, so there is no photo wash; narrower screens keep the shared wash */
@media (min-width: 1101px) {
    .hnb-banner--playspaces {
        padding-top: 40px;
        padding-bottom: 0;
    }

    .hnb-banner--playspaces .hnb-banner__overlay {
        display: none;
    }
}

/* ---------- Playspaces: intro copy (Figma node 1007:552, 1600 × 232) ---------- */

.hnb-since--playspaces {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ---------- Playspaces: spaces we build for (Figma node 1007:655, 1600 × 430) ---------- */

.hnb-spaces {
    padding: 0 clamp(24px, 5vw, 80px) 80px;
    background: #fff;
}

.hnb-spaces__row {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 272 × 350 cards; each photo is larger than its card and placed as in Figma */
.hnb-space {
    position: relative;
    flex: 1 0 0;
    min-width: 1px;
    aspect-ratio: 272 / 350;
    border-radius: 30px;
    background: #a015a5;
    overflow: clip;
}

.hnb-space--malls {
    background: var(--hnb-teal);
}

.hnb-space img {
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: cover;
    translate: -50% -50%;
}

.hnb-space--malls img {
    width: 204.044%; /* 555 */
    height: 105.714%; /* 370 */
}

.hnb-space--hotels img {
    top: 70.857%; /* centre 73px low */
    left: calc(50% - 3.309%); /* 9px left */
    width: 153.676%; /* 418 */
    height: 212%; /* 742 */
}

.hnb-space--schools img {
    top: 35.857%; /* centre 49.5px high */
    width: 263.235%; /* 716 */
    height: 135.714%; /* 475 */
}

.hnb-space--residential img {
    top: 45.714%; /* bottom-aligned 380px photo */
    width: 249.265%; /* 678 */
    height: 108.571%; /* 380 */
}

.hnb-space--commercial img {
    top: 60.143%; /* top-aligned 421px photo */
    width: 103.309%; /* 281 */
    height: 120.286%; /* 421 */
}

/* 244px fade from clear to slate behind the label, rounded at the top */
.hnb-space__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 69.714%;
    padding: 26px 10px;
    border-radius: 50px 50px 0 0;
    background: linear-gradient(180deg, rgba(48, 83, 107, 0), #30536b);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
}

/* ---------- Playspaces: our approach (Figma node 1007:575, 1600 × 778) ---------- */

.hnb-approach {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 80px clamp(24px, 3.75vw, 60px);
    background: #fcfae9;
}

.hnb-approach__heading,
.hnb-gallery__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.hnb-approach__title,
.hnb-gallery__title {
    margin: 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-hero);
    font-weight: 400;
    text-align: center;
}

.hnb-approach__title {
    font-size: clamp(34px, 3.125vw, 50px);
    line-height: 1.2; /* 60px at 50px */
}

.hnb-approach__title span,
.hnb-gallery__title span {
    display: block;
}

.hnb-approach__title span:last-child,
.hnb-gallery__title span:last-child {
    color: var(--hnb-teal);
}

.hnb-approach__intro {
    width: 760px;
    max-width: 100%;
    margin: 0;
    color: #30475e;
    font-size: 22px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

.hnb-approach__steps {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0 0 30px;
    list-style: none;
}

.hnb-step {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 9.36px;
    min-width: 1px;
    padding: 30px;
    border-radius: 36.043px;
    background: #fff;
}

.hnb-step__top {
    position: relative;
    display: flex;
    width: 100%;
    height: 100px;
}

.hnb-step__emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 100px;
    overflow: clip;
}

.hnb-step--cyan .hnb-step__emblem {
    background: #def8fa;
}

.hnb-step--magenta .hnb-step__emblem {
    background: #fce6fb;
}

.hnb-step--orange .hnb-step__emblem {
    background: #ffeedc;
}

.hnb-step--blue .hnb-step__emblem {
    background: #e6eeff;
}

.hnb-step__icon {
    position: relative;
    flex-shrink: 0;
    overflow: clip;
}

.hnb-step__icon img {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
}

.hnb-step__icon--idea {
    width: 45px;
    height: 45px;
}

.hnb-step__icon--idea img:nth-child(1) {
    inset: 0.01% 14.84% 0.01% 14.85%;
}

.hnb-step__icon--idea img:nth-child(2) {
    inset: 35.34% 88.28% 58.8% 0;
}

.hnb-step__icon--idea img:nth-child(3) {
    inset: 15.69% 89.14% 74.3% 0.86%;
}

.hnb-step__icon--idea img:nth-child(4) {
    inset: 50.85% 89.14% 39.15% 0.86%;
}

.hnb-step__icon--idea img:nth-child(5) {
    inset: 35.34% 0 58.8% 88.28%;
}

.hnb-step__icon--idea img:nth-child(6) {
    inset: 15.69% 0.86% 74.3% 89.14%;
}

.hnb-step__icon--idea img:nth-child(7) {
    inset: 50.85% 0.86% 39.15% 89.14%;
}

.hnb-step__icon--design {
    width: 38px;
    height: 38px;
}

.hnb-step__icon--hammer {
    width: 48px;
    height: 48px;
}

.hnb-step__icon--play {
    width: 46px;
    height: 46px;
}

/* 30px arrow 40px down the right edge; its stroke overhangs the line by 1px and 7.36px either side */
.hnb-step__arrow {
    position: absolute;
    top: 40px;
    right: 1px;
    width: 30px;
    height: 0;
}

.hnb-step__arrow img {
    position: absolute;
    top: -7.36px;
    left: 0;
    width: 31px;
    height: 14.7279px;
}

/* The last step points up and away: the arrow turned -45deg inside a 21.213px box */
.hnb-step--blue .hnb-step__arrow {
    top: 29.39px;
    right: 5.39px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21.213px;
    height: 21.213px;
}

.hnb-step--blue .hnb-step__arrow img {
    position: static;
    flex: none;
    rotate: -45deg;
}

.hnb-step__number {
    color: #898989;
    font-family: var(--hnb-font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
}

.hnb-step__name {
    margin: 0;
    font-family: var(--hnb-font-display);
    font-size: 30px;
    font-weight: 600;
    font-variation-settings: 'wdth' 100;
    line-height: normal;
}

.hnb-step--cyan .hnb-step__name {
    color: #008ea8;
}

.hnb-step--magenta .hnb-step__name {
    color: var(--hnb-purple);
}

.hnb-step--orange .hnb-step__name {
    color: #ff8b10;
}

.hnb-step--blue .hnb-step__name {
    color: #3463c3;
}

.hnb-step__text {
    margin: 0;
    color: #30475e;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

/* ---------- Playspaces: gallery (Figma node 1011:890, 1600 × 1063) ---------- */

.hnb-gallery__title {
    font-size: clamp(30px, 2.625vw, 42px);
    line-height: 1.42857; /* 60px at 42px */
}

.hnb-gallery__intro {
    width: 760px;
    max-width: 100%;
    margin: 0;
    color: #30475e;
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

.hnb-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 433.33 × 300 frames; each photo is a little larger than its frame and placed as in Figma */
.hnb-gallery__item {
    position: relative;
    aspect-ratio: 433.333 / 300;
    border-radius: 30px;
    background: #fee7f1;
    overflow: clip;
}

.hnb-gallery__link {
    position: absolute;
    inset: 0;
    display: block;
}

.hnb-gallery__link > img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108.462%; /* 470 */
    height: 104.667%; /* 314 */
    object-fit: cover;
    translate: -50% -50%;
}

.hnb-gallery__item--2 .hnb-gallery__link > img {
    width: 108.923%; /* 472 */
}

.hnb-gallery__item--3 .hnb-gallery__link > img {
    width: 112.154%; /* 486 */
    height: 108%; /* 324 */
}

.hnb-gallery__item--4 .hnb-gallery__link > img {
    top: 42.14%; /* centre 23.58px high */
    width: 138.231%; /* 599 */
    height: 133%; /* 399 */
}

.hnb-gallery__item--5 .hnb-gallery__link > img {
    width: 132.923%; /* 576 */
    height: 128%; /* 384 */
}

.hnb-gallery__item--6 .hnb-gallery__link > img {
    top: 13.307%; /* centre 110.08px high */
    width: 185.538%; /* 804 */
    height: 178.667%; /* 536 */
}

/* Hover / focus: a grey veil with a magnifier (Figma's "Popup" state) */
.hnb-gallery__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 59, 59, 0.6);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hnb-gallery__link:hover .hnb-gallery__zoom,
.hnb-gallery__link:focus-visible .hnb-gallery__zoom {
    opacity: 1;
}

.hnb-gallery__link:focus-visible {
    outline: 3px solid var(--hnb-purple);
    outline-offset: -3px;
}

.hnb-gallery__zoom-icon {
    position: relative;
    width: 30px;
    height: 30px;
    overflow: clip;
    mask: url('../images/hopnbop/playspaces-gallery-zoom-mask.svg') center / 30px 30px no-repeat;
}

.hnb-gallery__zoom-icon img {
    position: absolute;
    inset: 0;
}

.hnb-lightbox {
    width: min(1100px, 92vw);
    max-width: none;
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #000;
    overflow: hidden;
}

.hnb-lightbox::backdrop {
    background: rgba(10, 28, 42, 0.78);
}

.hnb-lightbox__img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.hnb-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1e395e;
    font-size: 30px;
    line-height: 44px;
    cursor: pointer;
}

.hnb-lightbox__close:focus-visible {
    outline: 3px solid var(--hnb-purple);
    outline-offset: 2px;
}

/* ---------- Playspaces: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1279px) {
    .hnb-space__caption {
        font-size: 24px;
    }

    /* Four steps no longer fit their copy side by side: two by two */
    .hnb-approach__steps {
        flex-wrap: wrap;
    }

    .hnb-step {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 1100px) {
    .hnb-since--playspaces {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .hnb-spaces {
        padding-bottom: 70px;
    }

    /* Three cards to a row, the rest centred beneath */
    .hnb-spaces__row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hnb-space {
        flex: 0 0 calc((100% - 40px) / 3);
    }

    .hnb-approach {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hnb-approach__title {
        font-size: 36px;
        line-height: 44px;
    }

    .hnb-gallery__grid {
        gap: 24px 20px;
    }

    .hnb-gallery__item {
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .hnb-since--playspaces {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .hnb-spaces {
        padding: 0 16px 60px;
    }

    .hnb-spaces__row {
        gap: 12px;
    }

    .hnb-space {
        flex-basis: calc((100% - 12px) / 2);
        border-radius: 24px;
    }

    .hnb-space__caption {
        padding: 18px 8px;
        font-size: 20px;
        line-height: 24px;
    }

    .hnb-approach {
        gap: 24px;
        padding: 60px 16px;
    }

    .hnb-approach__intro,
    .hnb-gallery__intro {
        font-size: 18px;
        line-height: 30px;
    }

    .hnb-approach__steps {
        flex-direction: column;
        gap: 14px;
        padding-bottom: 0;
    }

    .hnb-step {
        flex: none;
        padding: 24px;
        border-radius: 28px;
    }

    .hnb-step__top {
        height: 88px;
    }

    .hnb-step__name {
        font-size: 26px;
    }

    .hnb-step__text {
        font-size: 16px;
        line-height: 24px;
    }

    .hnb-gallery__intro {
        font-size: 22px;
    }

    .hnb-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hnb-gallery__item {
        border-radius: 20px;
    }

    .hnb-lightbox {
        border-radius: 16px;
    }
}

@media (max-width: 420px) {
    .hnb-banner--playspaces {
        --hnb-heading: min(34px, 9vw);
    }

    .hnb-approach__title {
        font-size: 30px;
        line-height: 38px;
    }
}

/* ---------- Playspaces: phone banner spacing and swipeable rows ---------- */

@media (max-width: 640px) {
    .hnb-banner--playspaces {
        padding-top: 80px;
    }

    /* Space types and approach steps become sideways sliders that snap card by card;
       the next card peeks in at the edge, and the row runs edge to edge */
    .hnb-spaces__row,
    .hnb-approach__steps {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: auto;
        margin: 0 -16px;
        padding: 0 16px 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding: 0 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hnb-spaces__row::-webkit-scrollbar,
    .hnb-approach__steps::-webkit-scrollbar {
        display: none;
    }

    .hnb-space {
        flex: 0 0 68%;
        scroll-snap-align: start;
    }

    .hnb-approach__steps {
        align-self: stretch; /* the section centres its children: stretch so the row is as wide as the screen, not its cards */
        align-items: stretch;
        gap: 14px;
    }

    .hnb-step {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}

/* ---------- Daycare banner (Figma node 1013:3, 1600 × 610) ---------- */

/* 1138 × 759 photo flush with the right edge, 34.5px below centre */
.hnb-banner--daycare .hnb-banner__inner-photo {
    --photo-w: 1138;
    --photo-h: 759;
    --photo-right: 0;
    --photo-shift: 34.5;
}

/* 34 × 56 rays, 33px left of and 12.5px above the heading */
.hnb-banner--daycare .hnb-title__rays {
    left: -0.55em;
    top: -0.20833em;
    height: 0.93333em;
}

.hnb-banner--daycare .hnb-title__line {
    position: relative;
}

/* Both lines share one 140px text block in Figma: no gap between them */
.hnb-banner--daycare .hnb-title__line:nth-of-type(2) {
    margin-top: -5px;
}

/* 44 × 44.612 sparks 6px past "Away From Home", 3.5px below its top */
.hnb-banner--daycare .hnb-title__burst {
    left: calc(100% + 0.1em);
    top: 0.05833em;
    height: 0.74353em;
}

/* ---------- Daycare: a happy place (Figma node 1013:47, 1600 × 590) ---------- */

/* 517 × 108 sparks, 34px left of and 19px above the heading */
.hnb-family--daycare .hnb-family__title-sparks {
    top: -0.38em;
    left: -0.68em;
    width: 10.34em;
    height: 2.16em;
}

.hnb-family--daycare .hnb-family__playful-star {
    top: 465px;
    right: 9.375%; /* 150 / 1600 */
}

.hnb-family__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 38px; /* 18px × 40px including Figma's inside stroke */
    border: 2px solid #fff;
    border-radius: 100px;
    background: var(--hnb-purple);
    color: #fffdfd;
    font-family: var(--hnb-font-hero);
    font-size: 22px;
    line-height: normal;
    letter-spacing: 2.2px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.hnb-family__cta:hover,
.hnb-family__cta:focus-visible {
    translate: 0 -2px;
    box-shadow: 0 8px 18px rgba(148, 57, 147, 0.3);
}

.hnb-family__cta:focus-visible {
    outline: 2px solid var(--hnb-purple);
    outline-offset: 3px;
}

/* ---------- Daycare: what we offer (Figma node 1013:66, 1600 × 868) ---------- */

.hnb-offer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 80px clamp(24px, 3.75vw, 60px);
    background: #fcfae9;
}

.hnb-offer__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: center;
}

.hnb-offer__title {
    position: relative;
    margin: 0;
    color: var(--hnb-purple);
    font-family: var(--hnb-font-hero);
    font-size: clamp(34px, 3.125vw, 50px);
    font-weight: 400;
    line-height: 1.2; /* 60px at 50px */
}

.hnb-offer__title span {
    color: var(--hnb-teal);
}

/* 414 × 49.991 sparks, 14px above the heading and 1px right of its centre */
.hnb-offer__sparks {
    position: absolute;
    top: -0.28em;
    left: calc(50% - 4.14em + 1px);
    width: 8.28em;
    height: 0.99982em;
    max-width: none;
    pointer-events: none;
}

.hnb-offer__intro {
    width: 760px;
    max-width: 100%;
    margin: 0;
    color: #30475e;
    font-size: 22px;
    font-weight: 600;
    line-height: 36px;
}

.hnb-offer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 40px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-offer__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    border-radius: 36.043px;
    background: #fff;
}

.hnb-offer__emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    overflow: clip;
}

.hnb-offer__card--heart .hnb-offer__emblem,
.hnb-offer__card--sleep .hnb-offer__emblem {
    background: #def8fa;
}

.hnb-offer__card--indoor .hnb-offer__emblem,
.hnb-offer__card--smile .hnb-offer__emblem {
    background: #dbefff;
}

.hnb-offer__card--apple .hnb-offer__emblem {
    background: #ffebd8;
}

.hnb-offer__card--flower .hnb-offer__emblem {
    background: #fee1ff;
}

/* Each icon is one or more drawings placed inside a square frame, as in Figma */
.hnb-offer__icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    overflow: clip;
}

.hnb-offer__icon img {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
}

.hnb-offer__icon--heart img {
    inset: 6.29% -0.01% 6.41% 0.01%;
}

/* Activities and Playtime are complete 100px drawings with their own circle */
.hnb-offer__icon--activities,
.hnb-offer__icon--playtime {
    width: 100px;
    height: 100px;
}

.hnb-offer__icon--indoor {
    width: 47px;
    height: 47px;
}

.hnb-offer__icon--indoor img {
    inset: 3.13% 0;
}

.hnb-offer__icon--smile {
    width: 43px;
    height: 43px;
}

.hnb-offer__icon--apple {
    width: 46px;
    height: 46px;
}

.hnb-offer__icon--sleep img:nth-child(1) {
    inset: 10.94% 8.55% 0 1.95%;
}

.hnb-offer__icon--sleep img:nth-child(2) {
    inset: 0 1.95% 75.78% 75.52%;
}

.hnb-offer__icon--sleep img:nth-child(3) {
    inset: 22.32% 30.91% 57.66% 50.34%;
}

.hnb-offer__icon--sleep img:nth-child(4) {
    inset: 46.65% 14.45% 38.52% 69.68%;
}

.hnb-offer__icon--flower img {
    inset: 0.01% 0;
}

.hnb-offer__label {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    font-family: var(--hnb-font-display);
    font-size: 24px;
    font-weight: 500;
    font-variation-settings: 'wdth' 100;
    line-height: normal;
    overflow-wrap: break-word;
}

.hnb-offer__card--cyan .hnb-offer__label {
    color: #008ea8;
}

.hnb-offer__card--purple .hnb-offer__label {
    color: var(--hnb-purple);
}

.hnb-offer__card--amber .hnb-offer__label {
    color: #df7f18;
}

.hnb-offer__card--blue .hnb-offer__label {
    color: #0d62bd;
}

/* ---------- Daycare: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1279px) {
    .hnb-offer__grid {
        gap: 24px;
    }

    .hnb-offer__card {
        padding: 32px;
    }

    .hnb-offer__label {
        font-size: 22px;
    }
}

@media (max-width: 1100px) {
    .hnb-offer {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hnb-offer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hnb-family__cta {
        padding: 14px 26px;
        font-size: 18px;
    }

    .hnb-offer {
        gap: 24px;
        padding: 60px 16px;
    }

    .hnb-offer__sparks {
        display: none;
    }

    .hnb-offer__intro {
        font-size: 18px;
        line-height: 30px;
    }

    .hnb-offer__grid {
        gap: 12px;
    }

    .hnb-offer__card {
        gap: 14px;
        padding: 20px 16px;
        border-radius: 24px;
    }

    .hnb-offer__emblem {
        width: 72px;
        height: 72px;
    }

    .hnb-offer__icon {
        scale: 0.72;
    }

    .hnb-offer__label {
        min-height: 44px;
        font-size: 17px;
    }
}

/* Narrow phones: keep "Their Little Home" and the sparks inside the gutters */
@media (max-width: 420px) {
    .hnb-banner--daycare {
        --hnb-heading: min(34px, 9.5vw);
    }
}

/* ---------- Daycare: intro without vertical padding; centred copy on phones ---------- */

.hnb-since.hnb-since--daycare {
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 640px) {
    .hnb-family--daycare .hnb-family__content {
        align-items: center;
        text-align: center;
    }

    /* The heading box hugs its lines so the sparks stay on its corners when it is centred */
    .hnb-family--daycare .hnb-family__title {
        width: fit-content;
        max-width: 100%;
        text-align: center;
    }
}

/* ---------- Cafe banner (Figma node 1023:461, 1600 × 610) ---------- */

/* 1132 × 1698 photo overhanging the right edge by 60px, 19px above centre */
.hnb-banner--cafe .hnb-banner__inner-photo {
    --photo-w: 1132;
    --photo-h: 1698;
    --photo-right: -60;
    --photo-shift: -19;
}

/* 326 × 96 soft ellipse under the header's right end; the SVG carries a 30px blur margin all round */
.hnb-banner__glow {
    position: absolute;
    top: -61px;
    right: -8px;
    width: 386px;
    height: 156px;
    pointer-events: none;
}

.hnb-banner--cafe .hnb-caption__heading {
    gap: 12px;
}

.hnb-caption__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 4px 20px;
    border: 1px solid var(--hnb-yellow);
    border-radius: 100px;
    color: var(--hnb-yellow);
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
    white-space: nowrap;
    animation: hnb-rise 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* 20.342 × 21.5 cup centred in a 24px slot */
.hnb-caption__badge-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.hnb-caption__badge-icon img {
    flex: none;
}

/* 34 × 56 rays, 33px left of and 11px above the heading */
.hnb-banner--cafe .hnb-title__rays {
    left: -0.55em;
    top: -0.18333em;
    height: 0.93333em;
}

.hnb-banner--cafe .hnb-title__line {
    position: relative;
}

/* Both lines share one 140px text block in Figma: no gap between them */
.hnb-banner--cafe .hnb-title__line:nth-of-type(2) {
    margin-top: -5px;
}

/* 44 × 44.612 sparks tucked against the full stop of "You Unwind.", 5px below its top */
.hnb-banner--cafe .hnb-title__burst {
    left: calc(100% - 0.01667em);
    top: 0.08333em;
    height: 0.74353em;
}

.hnb-banner--cafe .hnb-caption__text {
    width: 529px;
}

/* The caption block sits 20px above the banner's centre, as in Figma; the badge row needs
   at least 560px of banner to stay clear of the floating header and the clouds on small laptops */
@media (min-width: 1101px) {
    .hnb-banner--cafe {
        --hnb-hero-h: clamp(560px, 38.125vw, 610px);

        padding-bottom: 20px;
    }
}

/* ---------- Cafe: little adventures, lovely moments (Figma node 1023:505, 1600 × 590) ---------- */

/* 391 × 163 sparks, 38px left of and 16px above the heading */
.hnb-family--cafe .hnb-family__title-sparks {
    top: -0.32em;
    left: -0.76em;
    width: 7.82em;
    height: 3.26em;
}

.hnb-family--cafe .hnb-family__playful-star {
    top: 465px;
    right: 9.375%; /* 150 / 1600 */
}

.hnb-family--cafe .hnb-family__moments {
    gap: 20px;
}

.hnb-family__moment--cafe {
    padding: 8px 30px;
    background: #fcf6e9;
    color: #191919;
    font-weight: 500;
    line-height: 38px;
}

/* ---------- Cafe: your next little break awaits (Figma node 1023:654, 1600 × 362) ---------- */

/* The panel follows straight on from the section above: no top padding */
@media (min-width: 1280px) {
    .hnb-enquire-wrap--cafe {
        padding-top: 0;
    }
}

.hnb-enquire-wrap--cafe .hnb-enquire__deco--rays {
    top: calc(34.5 * var(--u));
}

.hnb-enquire-wrap--cafe .hnb-enquire__deco--rays-2 {
    top: calc(-8.66 * var(--u));
    right: calc(191.65 * var(--u));
}

/* The rays poke 9px above the panel */
.hnb-enquire-wrap--cafe {
    overflow-clip-margin: 20px;
}

/* ---------- Cafe: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1100px) {
    /* The badge adds a row to the caption: a taller banner keeps it clear of the floating header and the clouds */
    .hnb-banner--cafe {
        --hnb-hero-h: 520px;

        padding-top: 100px;
        padding-bottom: 100px;
    }

    .hnb-banner__glow {
        display: none;
    }

    .hnb-banner--cafe .hnb-caption__heading {
        gap: 10px;
    }

    .hnb-caption__badge {
        font-size: 16px;
        line-height: 26px;
    }
}

@media (max-width: 640px) {
    .hnb-banner--cafe {
        --hnb-hero-h: 450px;

        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hnb-family.hnb-family--cafe {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    /* "Sip. Sit back. Smile." sits centred along the photo's bottom edge */
    .hnb-family--cafe .hnb-family__caption {
        left: 50%;
        translate: -50% 0;
    }

    .hnb-caption__badge {
        gap: 8px;
        padding: 3px 16px;
        font-size: 15px;
        line-height: 24px;
    }

    .hnb-caption__badge-icon {
        width: 20px;
        height: 20px;
    }

    .hnb-caption__badge-icon img {
        width: 17px;
        height: auto;
    }

    .hnb-banner--cafe .hnb-caption__text {
        width: auto;
    }

    .hnb-family--cafe .hnb-family__content {
        align-items: center;
        text-align: center;
    }

    /* The heading box hugs its lines so the sparks stay on its corners when it is centred */
    .hnb-family--cafe .hnb-family__title {
        width: fit-content;
        max-width: 100%;
        text-align: center;
    }

    .hnb-family--cafe .hnb-family__moments {
        gap: 12px;
    }

    .hnb-family__moment--cafe {
        padding: 6px 22px;
        line-height: 32px;
    }
}

/* Narrow phones: keep "While They Play," and the sparks inside the gutters */
@media (max-width: 420px) {
    .hnb-banner--cafe {
        --hnb-heading: min(34px, 9.5vw);
    }
}

/* ---------- Events banner (Figma node 1031:724, 1600 × 610) ---------- */

/* 1200 × 801 photo flush with the right edge, 24.5px above centre */
.hnb-banner--events {
    --hnb-heading: clamp(30px, 3.125vw, 50px);
}

.hnb-banner--events .hnb-banner__inner-photo {
    --photo-w: 1200;
    --photo-h: 801;
    --photo-right: 0;
    --photo-shift: -24.5;
}

.hnb-banner--events .hnb-title {
    line-height: 1.2; /* 60px at 50px */
}

.hnb-banner--events .hnb-title__line {
    position: relative;
}

/* Both lines share one 120px text block in Figma: no gap between them */
.hnb-banner--events .hnb-title__line:nth-of-type(2) {
    margin-top: -5px;
}

/* 34 × 56 rays, 33px left of and 5.5px above the heading (em notes are at the design's 50px) */
.hnb-banner--events .hnb-title__rays {
    left: -0.66em;
    top: -0.11em;
    width: 0.68em;
    height: 1.12em;
}

/* 44 × 44.612 sparks tucked against the full stop of "We create the celebration." */
.hnb-banner--events .hnb-title__burst {
    left: calc(100% - 0.06em);
    top: 0.01em;
    width: 0.88em;
    height: 0.89224em;
}

.hnb-banner--events .hnb-caption__text {
    width: 625px;
    font-size: 20px;
    font-weight: 600;
}

/* ---------- Events: every reason to celebrate (Figma node 1031:764, 1600 × 326.69) ---------- */

.hnb-since.hnb-since--events {
    padding: 30px clamp(24px, 15.625vw, 250px) 40px;
}

/* The heading block carries the title's size so the sparks, sized in em, track it */
.hnb-since__heading {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-bottom: 20px;
    font-size: clamp(30px, 3.125vw, 50px);
}

.hnb-since__title {
    margin: 0;
    color: #1e395e;
    font-family: var(--hnb-font-hero);
    font-size: 1em;
    font-weight: 400;
    line-height: 1.2; /* 60px at 50px */
    text-align: center;
}

/* 297 × 16.691 swoosh; the SVG's stroke overhangs that box slightly on every side */
.hnb-since__underline {
    display: block;
    max-width: 100%;
    margin: -1.5px 0 -1.46px;
}

/* 697 × 50.283 sparks, 14px above the heading and 1.5px left of its centre */
.hnb-since__sparks {
    position: absolute;
    top: -0.28em;
    left: calc(50% - 1.5px);
    width: 13.94em;
    height: 1.00566em;
    translate: -50% 0;
    pointer-events: none;
}

/* 35px at every screen size (the shared intro steps down to 26px and 22px on smaller screens) */
.hnb-since--events .hnb-since__text {
    font-size: 35px;
    line-height: 1.42857; /* 50px at 35px */
}

/* ---------- Events: occasions (Figma node 1032:1146, 1600 × 94) ---------- */

.hnb-occasions {
    padding: 0 clamp(16px, 5vw, 80px) 40px;
    background: #fff;
}

.hnb-occasions__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-occasion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 30px;
    color: #1e395e;
    font-size: 20px; /* at every screen size */
    font-weight: 600;
    line-height: 30px;
    white-space: nowrap;
}

/* Every icon centres in its Figma slot: 24px for the six-point star, 22px for the four-point one,
   16 × 14 for the heart and 25 × 20 for the rings */
.hnb-occasion__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.hnb-occasion__icon--star-6 {
    width: 24px;
    height: 24px;
}

.hnb-occasion__icon--star-4 {
    width: 22px;
    height: 22px;
}

.hnb-occasion__icon img {
    flex: none;
}

.hnb-occasion--pink {
    background: #ffe4eb;
}

.hnb-occasion--yellow {
    background: #fff0c6;
}

.hnb-occasion--blue {
    background: #dcf2f8;
}

.hnb-occasion--lilac {
    background: #efe4f9;
}

.hnb-occasion--peach {
    background: #fee5d9;
}

.hnb-occasion--green {
    background: #e6efdd;
}

/* ---------- Events: your celebration, your location (Figma node 1031:768, 1600 × 590) ---------- */

/* 398 × 163 sparks, 34px left of and 16px above the heading */
.hnb-family--events .hnb-family__title-sparks {
    top: -0.32em;
    left: -0.68em;
    width: 7.96em;
    height: 3.26em;
}

.hnb-family--events .hnb-family__playful-star {
    top: 465px;
    right: 9.375%; /* 150 / 1600 */
}

.hnb-family__cta--arrow {
    gap: 15px;
}

/* 20 × 16 arrow whose stroke overhangs its slot by 1.5px all round */
.hnb-family__cta--arrow img {
    flex-shrink: 0;
    width: 23px;
    height: 19px;
    margin: -1.5px;
}

/* ---------- Events: what we can take care of (Figma node 1031:790, 1600 × 890)
              and from idea to perfect (Figma node 1032:1502, 1600 × 630.72) ---------- */

.hnb-approach--events .hnb-approach__title {
    position: relative;
}

.hnb-approach__sparks {
    position: absolute;
    pointer-events: none;
}

.hnb-approach__title--inline span {
    display: inline;
}

/* 684 × 49.991 sparks, 14px above the heading and 3px right of its centre */
.hnb-care .hnb-approach__sparks {
    top: -0.28em;
    left: calc(50% - 6.84em + 3px);
    width: 13.68em;
    height: 0.99983em;
}

.hnb-care__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-care__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    min-width: 1px;
    padding: 30px;
    border-radius: 36.043px;
    background: #fff;
    overflow: clip;
}

.hnb-care__emblem {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 100px;
}

.hnb-care__emblem img {
    flex: none;
}

.hnb-care__card--cyan .hnb-care__emblem {
    background: #def8fa;
}

.hnb-care__card--magenta .hnb-care__emblem {
    background: #fee1ff;
}

.hnb-care__card--orange .hnb-care__emblem {
    background: #ffebd8;
}

.hnb-care__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.hnb-care__name {
    margin: 0;
    font-family: var(--hnb-font-display);
    font-size: 24px;
    font-weight: 500;
    font-variation-settings: 'wdth' 100;
    line-height: normal;
}

.hnb-care__card--cyan .hnb-care__name {
    color: #008ea8;
}

.hnb-care__card--magenta .hnb-care__name {
    color: var(--hnb-purple);
}

.hnb-care__card--orange .hnb-care__name {
    color: #df7f18;
}

.hnb-care__text {
    margin: 0;
    color: #4c5864;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
}

/* The number's left edge sits 49.33px in from the card's right edge, level with the emblem's middle */
.hnb-care__number {
    position: absolute;
    top: 49.31px;
    left: calc(100% - 49.33px);
    color: #a4a4a4;
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
    white-space: nowrap;
}

.hnb-approach--plan {
    background: #fbeff2;
}

/* 568 × 106.309 sparks, 14px above the heading and 15px right of its centre */
.hnb-approach--plan .hnb-approach__sparks {
    top: -0.28em;
    left: calc(50% - 5.68em + 15px);
    width: 11.36em;
    height: 2.12618em;
}

.hnb-approach--plan .hnb-approach__intro {
    width: 810px;
}

.hnb-approach--plan .hnb-approach__steps {
    padding-bottom: 0;
}

.hnb-approach--plan .hnb-step__emblem img {
    flex: none;
}

.hnb-approach--plan .hnb-step--orange .hnb-step__name {
    color: #df7f18;
}

/* ---------- Events: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1279px) {
    .hnb-care__card {
        padding: 26px;
    }

    .hnb-care__text {
        font-size: 18px;
        line-height: 28px;
    }

    /* Three short steps still fit side by side */
    .hnb-approach--plan .hnb-step {
        flex: 1 0 0;
    }
}

@media (max-width: 1100px) {
    .hnb-banner--events {
        --hnb-heading: 40px;
    }

    .hnb-since.hnb-since--events {
        padding: 10px var(--hnb-about-px) 30px;
    }

    .hnb-since--events .hnb-since__text {
        line-height: 1.45;
    }

    .hnb-occasion {
        padding: 10px 18px;
    }

    .hnb-care__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hnb-care__name {
        font-size: 22px;
    }

    .hnb-approach--plan .hnb-step__name {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    /* Each line is 12.5em wide plus the sparks: scale it to the phone's width so it never wraps or overflows */
    .hnb-banner--events {
        --hnb-heading: min(40px, 6.4vw);

        padding-top: 40px;
    }

    .hnb-since--events .hnb-since__text {
        font-size: 24px;
    }

    .hnb-banner--events .hnb-caption__text {
        width: auto;
        font-size: 16px;
    }

    .hnb-since.hnb-since--events {
        padding: 10px 16px 24px;
    }

    .hnb-since__heading {
        padding-bottom: 16px;
    }

    .hnb-since__sparks,
    .hnb-approach--events .hnb-approach__sparks {
        display: none;
    }

    .hnb-since__underline {
        width: 220px;
        height: auto;
    }

    .hnb-occasions {
        padding-bottom: 30px;
    }

    .hnb-occasions__list {
        gap: 8px;
    }

    .hnb-occasion {
        gap: 8px;
        padding: 8px 14px;
        line-height: 26px;
    }

    .hnb-occasion__icon img {
        max-width: 18px;
        height: auto;
    }

    .hnb-family--events .hnb-family__content {
        align-items: center;
        text-align: center;
    }

    /* The heading box hugs its lines so the sparks stay on its corners when it is centred */
    .hnb-family--events .hnb-family__title {
        width: fit-content;
        max-width: 100%;
        text-align: center;
    }

    .hnb-family__cta--arrow {
        white-space: normal;
    }

    /* The six cards become a sideways slider, like the Playspaces steps: the next card peeks in at the edge */
    .hnb-care__grid {
        display: flex;
        align-self: stretch;
        gap: 14px;
        width: auto;
        margin: 0 -16px;
        padding: 0 16px 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding: 0 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hnb-care__grid::-webkit-scrollbar {
        display: none;
    }

    .hnb-care__card {
        flex: 0 0 82%;
        gap: 22px;
        padding: 24px;
        border-radius: 28px;
        scroll-snap-align: start;
    }

    .hnb-care__number {
        top: 43px;
        left: auto;
        right: 24px;
    }

    .hnb-care__name {
        font-size: 21px;
    }

    .hnb-care__text {
        font-size: 16px;
        line-height: 24px;
    }

    .hnb-approach--plan .hnb-step {
        flex: 0 0 82%;
    }

    .hnb-approach--plan .hnb-step__name {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .hnb-approach--events .hnb-approach__title {
        font-size: 28px;
        line-height: 36px;
    }
}

/* ---------- Centred banners: Contact (Figma node 1034:1795) and Gallery (Figma node 1036:2110), 1600 × 480 ---------- */

/* A shorter banner with the caption centred over a flat 70% blue wash */
.hnb-banner--centred {
    --hnb-hero-h: clamp(380px, 30vw, 480px);

    align-items: center;
    padding-bottom: 10px;
}

/* The photo spans the full browser width at every size, cropped top and bottom to the banner
   (41.5% down keeps Figma's crop: the ~1060px-tall photo starts 241px above the 480px banner) */
.hnb-banner--centred .hnb-banner__inner-photo {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    translate: none;
}

.hnb-banner--centred .hnb-banner__inner-photo img {
    object-position: 50% 41.5%;
}

.hnb-banner--centred .hnb-banner__overlay,
.hnb-banner--inner.hnb-banner--centred .hnb-banner__overlay {
    background-color: rgba(var(--hnb-blue), 0.7);
    background-image: none;
}

.hnb-banner--centred .hnb-caption {
    align-items: center;
    text-align: center;
}

.hnb-banner--centred .hnb-title {
    align-items: center;
}

.hnb-banner--centred .hnb-title__line {
    position: relative;
}

/* 34 × 56 rays 32px left of the heading; 44 × 44.612 sparks 7px past it */
.hnb-banner--centred .hnb-title__rays {
    left: -0.53333em;
    height: 0.93333em;
}

.hnb-banner--centred .hnb-title__burst {
    left: calc(100% + 0.11667em);
    height: 0.74353em;
}

/* Contact: rays 4.5px above "Contact Us", sparks 11.5px below its top */
.hnb-banner--contact .hnb-title__rays {
    top: -0.075em;
}

.hnb-banner--contact .hnb-title__burst {
    top: 0.19167em;
}

.hnb-banner--contact .hnb-caption__text {
    width: 960px;
}

/* Gallery: rays 5.5px above "Gallery", sparks 10.5px below its top */
.hnb-banner--gallery .hnb-title__rays {
    top: -0.09167em;
}

.hnb-banner--gallery .hnb-title__burst {
    top: 0.175em;
}

.hnb-banner--gallery .hnb-caption__text {
    width: 760px;
}

/* Contact page only: the shared contact section sits 50px below the banner on every screen */
main:has(.hnb-banner--contact) + .hnb-contact {
    padding-top: 50px;
}

@media (max-width: 640px) {
    main:has(.hnb-banner--contact) + .hnb-contact {
        padding-top: 30px;
    }
}

/* ---------- Centred banners: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1100px) {
    .hnb-banner--centred {
        --hnb-hero-h: 400px;

        padding-top: 60px;
        padding-bottom: 40px;
    }

    .hnb-banner--centred .hnb-caption__text br {
        display: none;
    }
}

@media (max-width: 640px) {
    .hnb-banner--centred {
        --hnb-hero-h: 380px;

        padding-top: 70px;
        padding-bottom: 50px;
    }

    .hnb-banner--centred .hnb-caption__text {
        width: auto;
        font-size: 16px;
    }
}

/* ---------- Gallery: photos and videos (Figma node 1036:2178, 1600 × 1112) ---------- */

.hnb-albums {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 80px var(--hnb-about-px);
    background: linear-gradient(to bottom, #fff, #fcfae9);
}

.hnb-albums__tabs {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 10px;
}

/* 444 × 49.991 sparks, 18px above the tabs and 3px right of their centre */
.hnb-albums__sparks {
    position: absolute;
    top: -18px;
    left: calc(50% - 222px + 3px);
    width: 444px;
    height: 49.991px;
    max-width: none;
    pointer-events: none;
}

/* 14px × 36px padding; the outlined tab adds its 1px border outside that (165 × 58 against the
   selected tab's 162 × 56, as in Figma) */
.hnb-albums__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    border: 1px solid var(--hnb-purple);
    border-radius: 100px;
    background: transparent;
    color: #000;
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hnb-albums__tab[aria-selected='true'] {
    border-width: 0;
    background: var(--hnb-purple);
    color: #fff;
}

.hnb-albums__tab:hover {
    background: #fbf1fc;
}

.hnb-albums__tab[aria-selected='true']:hover {
    background: var(--hnb-purple);
}

.hnb-albums__tab:focus-visible {
    outline: 2px solid var(--hnb-purple);
    outline-offset: 3px;
}

/* 20px icon slots drawn as masks so each icon takes the tab's state: white on the selected (purple) tab,
   purple on the outlined one, as in Figma. The play icon is 18.75px, centred in its slot */
.hnb-albums__tab-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: var(--hnb-purple);
    mask: var(--icon) center / auto no-repeat;
}

.hnb-albums__tab[aria-selected='true'] .hnb-albums__tab-icon {
    background-color: #fff;
}

.hnb-albums__panel {
    width: 100%;
}

.hnb-albums__panel[hidden] {
    display: none;
}

.hnb-albums__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-album {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 1px;
    padding: 20px;
    border-radius: 30px;
    background: #f1eed8;
    overflow: clip;
}

/* A 393.33 × 314 frame; the 470 × 314 photo is centred in it and cropped at the sides */
.hnb-album__photo {
    position: relative;
    aspect-ratio: 393.333 / 314;
    border-radius: 20px;
    overflow: clip;
}

.hnb-album__photo img {
    position: absolute;
    top: 50%;
    left: calc(50% + 0.33px);
    width: 119.49%; /* 470 / 393.33 */
    max-width: none;
    height: 100%;
    object-fit: cover;
    translate: -50% -50%;
    transition: scale 0.4s ease;
}

/* Real album thumbnails fill the frame, cropped evenly, instead of Figma's wider placeholder crop */
.hnb-album__photo--fill img {
    left: 50%;
    width: 100%;
    object-position: 50% 30%;
}

.hnb-album__name {
    margin: 0;
    padding: 10px;
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    transition: color 0.2s ease;
}

/* Hovering a card turns its name purple and underlined (Figma shows this on the first card) */
.hnb-album:hover .hnb-album__name {
    color: var(--hnb-purple);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.hnb-album:hover .hnb-album__photo img {
    scale: 1.04;
}

.hnb-albums__deco {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hnb-albums__deco img {
    flex: none;
}

/* 52.861px star rotated -26deg inside a 70.684px box */
.hnb-albums__deco--star-large {
    top: 27.42px;
    left: 8.71%; /* 139.36 / 1600 */
    width: 70.684px;
    height: 70.684px;
}

.hnb-albums__deco--star-large img {
    rotate: -26deg;
}

/* 22px star rotated -23deg inside a 28.847px box */
.hnb-albums__deco--star-small {
    top: 51.74px;
    left: 74.736%; /* 1195.77 / 1600 */
    width: 28.847px;
    height: 28.847px;
}

.hnb-albums__deco--star-small img {
    rotate: -23deg;
}

.hnb-albums__deco--circle {
    top: 32px;
    left: 85.25%; /* 1364 / 1600 */
}

/* ---------- Gallery: tablet and phone (same steps as the homepage) ---------- */

@media (max-width: 1279px) {
    .hnb-albums__grid {
        gap: 24px;
    }

    .hnb-album__name {
        font-size: 21px;
    }
}

@media (max-width: 1100px) {
    .hnb-albums {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hnb-albums__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hnb-albums__deco--circle {
        left: auto;
        right: 24px;
    }

    /* The small star would sit on the tabs' sparks once the page narrows */
    .hnb-albums__deco--star-small {
        display: none;
    }
}

@media (max-width: 640px) {
    .hnb-albums {
        gap: 24px;
        padding: 60px 16px;
    }

    .hnb-albums__sparks,
    .hnb-albums__deco {
        display: none;
    }

    .hnb-albums__tabs {
        gap: 12px;
        padding-bottom: 0;
    }

    .hnb-albums__tab {
        gap: 8px;
        padding: 10px 24px;
        font-size: 18px;
        line-height: 26px;
    }

    .hnb-albums__grid {
        gap: 12px;
    }

    .hnb-album {
        gap: 6px;
        padding: 10px;
        border-radius: 20px;
    }

    .hnb-album__photo {
        border-radius: 14px;
    }

    .hnb-album__name {
        padding: 6px 2px;
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 380px) {
    .hnb-album__name {
        font-size: 14px;
        line-height: 20px;
    }
}

/* ---------- Gallery: album cards open their album page ---------- */

.hnb-album__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: inherit;
    color: inherit;
    text-decoration: none;
}

.hnb-album:has(.hnb-album__link) {
    padding: 0;
}

.hnb-album__link {
    padding: 20px;
    border-radius: inherit;
}

.hnb-album__link:focus-visible {
    outline: 3px solid var(--hnb-purple);
    outline-offset: -3px;
}

.hnb-album__link:focus-visible .hnb-album__name {
    color: var(--hnb-purple);
    text-decoration: underline;
    text-underline-position: from-font;
}

@media (max-width: 640px) {
    .hnb-album__link {
        padding: 10px;
    }
}

/* ---------- Gallery album page: every photo in one album, zoomable ---------- */

/* Long album names stay on one line on a phone, sparks and all */
@media (max-width: 640px) {
    .hnb-banner--album {
        --hnb-heading: min(36px, 7.4vw);
    }
}

.hnb-photos__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    width: 100%;
}

.hnb-photos__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border: 1px solid var(--hnb-purple);
    border-radius: 100px;
    color: var(--hnb-purple);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hnb-photos__back:hover,
.hnb-photos__back:focus-visible {
    background: var(--hnb-purple);
    color: #fff;
}

.hnb-photos__back:focus-visible {
    outline: 2px solid var(--hnb-purple);
    outline-offset: 3px;
}

.hnb-photos__count {
    margin: 0;
    color: #4c5864;
    font-size: 18px;
    font-weight: 600;
}

.hnb-photos__empty {
    margin: 20px 0 40px;
    color: #30475e;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

/* Four square thumbnails to a row; each photo fills its square, cropped evenly */
.hnb-photos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hnb-gallery__item.hnb-photos__item {
    aspect-ratio: 1;
    border-radius: 24px;
    background: #f1eed8;
}

.hnb-photos__item .hnb-gallery__link > img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    translate: none;
    transition: scale 0.4s ease;
}

.hnb-photos__item .hnb-gallery__link:hover > img {
    scale: 1.05;
}

/* Previous / next arrows and a counter, for stepping through an album */
.hnb-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1e395e;
    font-size: 34px;
    line-height: 44px;
    cursor: pointer;
    translate: 0 -50%;
}

.hnb-lightbox__nav--prev {
    left: 12px;
}

.hnb-lightbox__nav--next {
    right: 12px;
}

.hnb-lightbox__nav:hover {
    background: #fff;
}

.hnb-lightbox__nav:focus-visible {
    outline: 3px solid var(--hnb-purple);
    outline-offset: 2px;
}

.hnb-lightbox--album .hnb-lightbox__close {
    z-index: 1;
}

/* Album photos are a mix of portrait and landscape: the dialog hugs each photo instead of letterboxing it */
.hnb-lightbox.hnb-lightbox--album {
    width: fit-content;
}

.hnb-lightbox--album .hnb-lightbox__img {
    width: auto;
    max-width: min(1100px, 92vw);
    max-height: 90vh;
}

.hnb-lightbox__counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    margin: 0;
    padding: 4px 14px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    translate: -50% 0;
}

@media (max-width: 1100px) {
    .hnb-photos__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .hnb-gallery__item.hnb-photos__item {
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .hnb-photos__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hnb-gallery__item.hnb-photos__item {
        border-radius: 16px;
    }

    .hnb-photos__back {
        padding: 9px 20px;
        font-size: 16px;
    }

    .hnb-photos__count {
        font-size: 16px;
    }

    .hnb-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 28px;
        line-height: 36px;
    }

    .hnb-lightbox__nav--prev {
        left: 8px;
    }

    .hnb-lightbox__nav--next {
        right: 8px;
    }
}

/* ---------- Gallery album page: photos / videos tabs and the videos grid ---------- */

/* On an album page the tabs are links to its photos and videos pages: the current one is filled */
a.hnb-albums__tab {
    text-decoration: none;
}

.hnb-albums__tab[aria-current='page'] {
    border-width: 0;
    background: var(--hnb-purple);
    color: #fff;
}

.hnb-albums__tab[aria-current='page']:hover {
    background: var(--hnb-purple);
}

.hnb-albums__tab[aria-current='page'] .hnb-albums__tab-icon {
    background-color: #fff;
}

.hnb-albums__tab-count {
    min-width: 28px;
    padding: 0 8px;
    border-radius: 100px;
    background: #fbf1fc;
    color: var(--hnb-purple);
    font-size: 15px;
    line-height: 24px;
    text-align: center;
}

.hnb-albums__tab[aria-current='page'] .hnb-albums__tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Videos are portrait phone clips: taller tiles show more of each poster frame */
.hnb-photos__grid--videos .hnb-gallery__item.hnb-photos__item {
    aspect-ratio: 3 / 4;
    background: #1e395e;
}

/* A round play button over each poster */
.hnb-photos__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    translate: -50% -50%;
    transition: scale 0.25s ease, background-color 0.25s ease;
}

/* Triangle drawn with borders, nudged right so it looks centred */
.hnb-photos__play::after {
    position: absolute;
    top: 50%;
    left: 50%;
    border-style: solid;
    border-width: 13px 0 13px 21px;
    border-color: transparent transparent transparent var(--hnb-purple);
    content: '';
    translate: -38% -50%;
}

.hnb-gallery__link:hover .hnb-photos__play,
.hnb-gallery__link:focus-visible .hnb-photos__play {
    background: #fff;
    scale: 1.08;
}

/* As big as fits the screen at the video's own shape: --ratio (width / height) is set from the video
   once it loads, 9:16 (a phone clip) until then */
.hnb-lightbox--album .hnb-lightbox__video {
    display: block;
    width: auto;
    height: min(90vh, calc(min(1100px, 92vw) / var(--ratio, 0.5625)));
    aspect-ratio: var(--ratio, 0.5625);
    background: #000;
}

@media (max-width: 640px) {
    .hnb-albums__tab-count {
        min-width: 24px;
        padding: 0 6px;
        font-size: 13px;
        line-height: 20px;
    }

    .hnb-photos__play {
        width: 52px;
        height: 52px;
    }

    .hnb-photos__play::after {
        border-width: 10px 0 10px 16px;
    }
}

/* ---------- Homepage: each activity card opens its page (Playspaces, Cafe, Birthdays) ---------- */

/* The title link stretches over the whole card, so a click anywhere on it follows the link */
.hnb-activity {
    position: relative;
}

.hnb-activity__link {
    color: inherit;
    text-decoration: none;
}

.hnb-activity__link::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    content: '';
}

.hnb-activity:has(.hnb-activity__link) {
    cursor: pointer;
}

.hnb-activity__link:focus-visible {
    outline: none;
}

.hnb-activity__link:focus-visible::after {
    outline: 3px solid var(--hnb-purple);
    outline-offset: 3px;
    border-radius: 30px;
}

/* ---------- Homepage: our activities, updated design (Figma node 901:189, 1600 × 1038) ---------- */

/* 30px above the cards and 60px below them, before the button */
.hnb-activities__grid {
    padding: 30px 0 60px;
}

/* Cards: a 2px white edge drawn inside Figma's 15px padding, so 13px of padding sits within it */
.hnb-activity {
    padding: 13px;
    border: 2px solid #fff;
}

/* Title and copy sit 20px in from the photo's edges (363.33px wide), as in Figma */
.hnb-activity__info {
    padding: 0 20px;
}

/* A 403.33 × 268.97 frame; each photo is placed and cropped exactly as in Figma (percentages of the frame) */
.hnb-activity__thumb {
    position: relative;
    aspect-ratio: 403.333 / 268.973;
}

.hnb-activity__thumb--play-zones img,
.hnb-activity__thumb--cafe img,
.hnb-activity__thumb--birthdays img {
    position: absolute;
    max-width: none;
}

/* 481 × 721 photo at -69, -371 */
.hnb-activity__thumb--play-zones img {
    top: -137.932%;
    left: -17.107%;
    width: 119.256%;
    height: 268.057%;
}

/* 415 × 622 photo, centred (0.5px left, 0.51px down) */
.hnb-activity__thumb--cafe img {
    top: calc(50% + 0.51px);
    left: calc(50% - 0.5px);
    width: 102.893%;
    height: 231.25%;
    translate: -50% -50%;
}

/* 531 × 651 photo, centred */
.hnb-activity__thumb--birthdays img {
    top: calc(50% + 0.01px);
    left: calc(50% + 0.17px);
    width: 131.653%;
    height: 242.031%;
    translate: -50% -50%;
}

/* 205.149 × 178.668 dashed arrow from below the first card towards the button */
.hnb-activities__deco--sign-arrow {
    top: 820.21px;
    left: 28.419%; /* 454.7 / 1600 */
    width: 205.149px;
    height: 178.668px;
}

.hnb-activities__deco--star-large,
.hnb-activities__deco--star-small {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnb-activities__deco--star-large img,
.hnb-activities__deco--star-small img {
    flex: none;
}

/* 46px star rotated 13deg inside a 55.169px box */
.hnb-activities__deco--star-large {
    top: 113.42px;
    left: 9.589%; /* 153.42 / 1600 */
    width: 55.169px;
    height: 55.169px;
}

.hnb-activities__deco--star-large img {
    rotate: 13deg;
}

/* 22px star rotated -23deg inside a 28.847px box */
.hnb-activities__deco--star-small {
    top: 191.77px;
    left: 90.361%; /* 1445.77 / 1600 */
    width: 28.847px;
    height: 28.847px;
}

.hnb-activities__deco--star-small img {
    rotate: -23deg;
}

/* Tablet and phone: the cards become a slider with arrows beneath, so the arrow and stars step aside
   and the space under the cards goes back to the slider's */
@media (max-width: 1100px) {
    .hnb-activities__grid {
        padding-bottom: 30px;
    }

    .hnb-activities__deco--sign-arrow,
    .hnb-activities__deco--star-large,
    .hnb-activities__deco--star-small {
        display: none;
    }
}

@media (max-width: 640px) {
    .hnb-activity {
        padding: 14px;
    }

    .hnb-activity__info {
        padding: 0 6px;
    }
}

/* ---------- Gallery, album photos and album videos pages: albums section with 20px top and bottom on phones ---------- */

@media (max-width: 640px) {
    .hnb-albums.hnb-albums {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* ---------- Homepage, about-more on phones: every line centred, including the tagline ---------- */

@media (max-width: 640px) {
    .hnb-about__content,
    .hnb-about__heading {
        align-items: center;
        text-align: center;
    }

    /* The tagline's second line is indented with spaces on desktop: collapse them so both lines centre */
    .hnb-about__tagline-text {
        white-space: normal;
        text-align: center;
    }
}

/* ---------- Homepage, our activities on phones: the heading stays at 36px, even on narrow phones ---------- */

/* Scoped to the homepage section: the contact heading on every page shares .hnb-activities__title */
@media (max-width: 640px) {
    .hnb-activities .hnb-activities__title {
        font-size: 36px;
        line-height: 44px;
    }
}

/* ---------- Homepage, about-more photo on phones: centred above the copy ---------- */

/* On desktop the 646px cloud sits 34px left of its 670px frame, beside the copy. Stacked on a phone that reads
   as off-centre, so the cloud, its glow and its sparks all move 46 design px right: cloud at (670 - 646) / 2 */
@media (max-width: 640px) {
    .hnb-about__photo {
        left: calc(12 * var(--u));
    }

    .hnb-about__glow {
        left: calc(-22 * var(--u));
    }

    .hnb-about__image-sparks {
        left: calc(173.65 * var(--u));
    }
}

/* ---------- Homepage, Playschool and Membership photos on phones: centred above the copy ---------- */

/* --ox moves each photo with its backdrop and sparks. These values put the photo's middle on the frame's middle:
   Playschool's 700-wide photo starts at -60 (-60 + 45 + 350 = 335), Membership's 669.85-wide picture at -69.16 */
@media (max-width: 640px) {
    .hnb-playschool__visual {
        --ox: 45;
    }

    .hnb-membership__visual {
        --ox: 69.2;
    }
}

/* Events photo on phones: centred too. Its 654.84-wide photo starts at 27.27 (27.27 - 19.69 + 327.42 = 335) */
@media (max-width: 640px) {
    .hnb-events__visual {
        --ox: -19.69;
    }
}
