:root {
    --ink: #16213a;
    --muted: #647084;
    --paper: #ffffff;
    --soft: #f4f7fb;
    --teal: #0f9f9a;
    --blue: #246bfe;
    --coral: #f26b5b;
    --gold: #f4c95d;
    --line: rgba(22, 33, 58, 0.12);
    --shadow: 0 24px 70px rgba(22, 33, 58, 0.16);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: var(--paper);
}

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

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 32px, var(--max));
    margin: 18px auto 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 60px rgba(22, 33, 58, 0.12);
    backdrop-filter: blur(18px);
    transition: transform 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-6px);
}

.brand,
.main-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: 230px;
    height: 98px;
    object-fit: contain;
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.main-nav {
    gap: 6px;
}

.main-nav a {
    padding: 10px 11px;
    border-radius: var(--radius);
    color: rgba(22, 33, 58, 0.78);
    font-size: 0.94rem;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(36, 107, 254, 0.1);
    color: var(--blue);
}

.main-nav .nav-cta {
    color: white;
    background: var(--ink);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: var(--radius);
    background: var(--soft);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 220px max(24px, calc((100vw - var(--max)) / 2)) 70px;
    overflow: hidden;
    background: #ecfbfc;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    background:
        linear-gradient(90deg, transparent 0 22%, rgba(34, 199, 210, 0.96) 22% 100%),
        radial-gradient(circle at 77% 50%, rgba(255, 255, 255, 0.94) 0 9%, transparent 9.4%),
        radial-gradient(circle at 77% 50%, rgba(36, 107, 254, 0.95) 0 12%, transparent 12.4%),
        repeating-radial-gradient(ellipse at 18% 8%, transparent 0 10px, rgba(34, 199, 210, 0.24) 11px 13px, transparent 14px 18px),
        repeating-radial-gradient(ellipse at 85% 94%, transparent 0 10px, rgba(34, 199, 210, 0.24) 11px 13px, transparent 14px 18px),
        linear-gradient(180deg, #eefcff 0%, #f7feff 100%);
    background-size: auto, auto, auto, 900px 280px, 900px 280px, auto;
    background-position: center, center, center, -120px -35px, right -60px bottom -60px, center;
    background-repeat: no-repeat;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 18, 35, 0.82) 0%, rgba(10, 18, 35, 0.56) 46%, rgba(10, 18, 35, 0.12) 100%),
        linear-gradient(0deg, rgba(10, 18, 35, 0.52) 0%, rgba(10, 18, 35, 0.04) 48%, rgba(10, 18, 35, 0) 72%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    color: white;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 0.79rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

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

h1 {
    margin-bottom: 20px;
    max-width: 720px;
    font-size: clamp(2.65rem, 7vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.2;
}

.hero-copy {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.15rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.button.primary {
    color: white;
    background: var(--coral);
}

.button.secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
    position: absolute;
    right: max(24px, calc((100vw - var(--max)) / 2));
    bottom: 54px;
    z-index: 2;
    width: min(360px, calc(100% - 48px));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    color: white;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.hero-profile {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 18%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel strong {
    display: block;
    margin: 8px 24px;
    font-size: 1.35rem;
    line-height: 1.18;
}

.hero-panel p {
    margin: 0 24px 24px;
    color: rgba(255, 255, 255, 0.82);
}

.panel-label {
    display: block;
    margin: 22px 24px 0;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-card {
    min-height: 190px;
    padding: 40px max(24px, calc((100vw - var(--max)) / 2));
    background: white;
}

.stat-card + .stat-card {
    padding-left: 36px;
    padding-right: 36px;
}

.stat-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.stat-card span {
    color: var(--muted);
}

.section {
    padding: 100px max(24px, calc((100vw - var(--max)) / 2));
}

.split,
.families,
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.section-copy p,
.section-heading p,
.contact-copy p {
    color: var(--muted);
    font-size: 1.04rem;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.check-grid span {
    padding: 14px;
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    background: var(--soft);
    font-weight: 800;
}

.image-stack {
    position: relative;
}

.image-stack img,
.families-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.floating-note {
    position: absolute;
    right: -24px;
    bottom: 34px;
    width: 220px;
    padding: 18px;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.floating-note strong,
.floating-note span {
    display: block;
}

.floating-note strong {
    color: var(--coral);
}

.floating-note span {
    color: var(--muted);
}

.band {
    background:
        linear-gradient(135deg, rgba(15, 159, 154, 0.08), rgba(244, 201, 93, 0.16)),
        var(--soft);
}

.section-heading {
    max-width: 740px;
    margin-bottom: 42px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 12px 34px rgba(22, 33, 58, 0.07);
}

.service-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 26px;
    border-radius: var(--radius);
    color: white;
    background: var(--ink);
    font-weight: 900;
}

.service-card:nth-child(2) .service-icon {
    background: var(--teal);
}

.service-card:nth-child(3) .service-icon {
    background: var(--coral);
}

.service-card:nth-child(4) .service-icon {
    color: var(--ink);
    background: var(--gold);
}

.service-card p {
    color: var(--muted);
}

.families {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.accordion {
    display: grid;
    gap: 12px;
}

.accordion-item {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-align: left;
    background: white;
    cursor: pointer;
}

.accordion-item span,
.accordion-item small {
    display: block;
}

.accordion-item span {
    font-size: 1rem;
    font-weight: 900;
}

.accordion-item small {
    max-height: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.96rem;
    transition: max-height 220ms ease, margin-top 220ms ease;
}

.accordion-item.is-open {
    border-color: rgba(15, 159, 154, 0.36);
    box-shadow: 0 12px 34px rgba(15, 159, 154, 0.1);
}

.accordion-item.is-open small {
    max-height: 160px;
    margin-top: 10px;
}

.resources {
    background: var(--ink);
    color: white;
}

.resources .eyebrow {
    color: var(--gold);
}

.resources .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.resource-list a {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    transition: transform 180ms ease, background 180ms ease;
}

.resource-list a:hover,
.resource-list a:focus-visible {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.resource-list span {
    display: block;
    margin-bottom: 24px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
}

.resource-list strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.22;
}

.dynamic-section {
    background: linear-gradient(180deg, white, #f7fbfe);
}

.video-grid,
.blog-grid {
    display: grid;
    gap: 18px;
}

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

.video-card,
.blog-card,
.gallery-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 12px 34px rgba(22, 33, 58, 0.07);
    overflow: hidden;
}

.video-frame {
    position: relative;
    display: grid;
    min-height: 410px;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(36, 107, 254, 0.18), rgba(15, 159, 154, 0.16)),
        var(--soft);
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    height: 410px;
    border: 0;
}

.video-frame a,
.video-meta a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: var(--radius);
    color: white;
    background: var(--ink);
    font-weight: 850;
}

.video-link-card {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    max-width: 280px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    color: white;
    text-align: center;
    background: rgba(10, 18, 35, 0.72);
    backdrop-filter: blur(14px);
}

.video-link-card span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.video-link-card strong {
    font-size: 1.15rem;
    line-height: 1.25;
}

.video-link-card small {
    color: rgba(255, 255, 255, 0.74);
    font-weight: 700;
}

.video-preview-link {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.34), transparent 0 76px, transparent 77px),
        linear-gradient(135deg, rgba(36, 107, 254, 0.82), rgba(15, 159, 154, 0.86)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 20px);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 50px rgba(10, 18, 35, 0.24);
}

.play-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 22px solid var(--blue);
    transform: translate(-50%, -50%);
}

.video-meta,
.blog-card div {
    padding: 20px;
}

.video-meta span,
.blog-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.video-meta h3,
.blog-card h3 {
    margin-bottom: 0;
}

.video-meta a {
    width: max-content;
    min-height: 38px;
    margin-top: 16px;
    padding: 0 14px;
    color: var(--blue);
    background: rgba(36, 107, 254, 0.1);
}

.blog-section {
    background:
        linear-gradient(135deg, rgba(244, 201, 93, 0.13), rgba(242, 107, 91, 0.08)),
        #fffdf9;
}

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

.blog-card img,
.gallery-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--soft);
}

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

.read-more {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 0 14px;
    border-radius: var(--radius);
    color: var(--blue);
    background: rgba(36, 107, 254, 0.1);
    font-weight: 850;
}

.gallery-section {
    background: white;
}

.gallery-card {
    margin: 0;
    position: relative;
    scroll-snap-align: start;
}

.gallery-carousel {
    position: relative;
}

.gallery-track {
    display: grid;
    grid-auto-columns: minmax(280px, 42%);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-card img {
    aspect-ratio: 16 / 11;
    border-radius: var(--radius);
}

.gallery-card figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px;
    border-radius: var(--radius);
    color: white;
    background: rgba(10, 18, 35, 0.72);
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(16, 23, 41, 0.82);
    box-shadow: 0 14px 34px rgba(22, 33, 58, 0.18);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.carousel-control.prev {
    left: -14px;
}

.carousel-control.next {
    right: -14px;
}

.empty-state {
    display: grid;
    gap: 6px;
    padding: 26px;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state span {
    color: var(--muted);
}

.contact {
    align-items: start;
    background: linear-gradient(180deg, white, var(--soft));
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    color: var(--muted);
}

.contact-details a {
    color: var(--blue);
    font-weight: 850;
}

.contact-icon-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.contact-icon-line svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.contact-icon-line .whatsapp-icon {
    fill: #25d366;
    stroke: white;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--ink);
    font: inherit;
    background: var(--soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(36, 107, 254, 0.16);
    border-color: var(--blue);
}

.form-alert {
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 800;
}

.form-alert.success {
    color: #0f5f4f;
    background: rgba(15, 159, 154, 0.14);
}

.form-alert.error {
    color: #982f24;
    background: rgba(242, 107, 91, 0.15);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 34px max(24px, calc((100vw - var(--max)) / 2));
    color: white;
    background: #101729;
}

.footer-brand {
    display: grid;
    justify-items: start;
}

.footer-copy {
    display: grid;
    justify-items: center;
    text-align: center;
}

.footer-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
}

.footer-logo {
    display: block;
    width: min(169px, 72vw);
    height: auto;
    margin-bottom: 12px;
}

.blog-section .section-heading h2,
.gallery-section .section-heading h2 {
    max-width: none;
    white-space: nowrap;
}

.footer-copy small {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.58);
}

.site-footer a,
.footer-links a {
    font-weight: 900;
}

.post-page {
    min-height: 100vh;
    padding: 42px max(24px, calc((100vw - 880px) / 2)) 80px;
    background:
        linear-gradient(180deg, rgba(15, 159, 154, 0.08), rgba(36, 107, 254, 0.06)),
        var(--soft);
}

.back-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 0 14px;
    border-radius: var(--radius);
    color: var(--blue);
    background: white;
    font-weight: 850;
    box-shadow: 0 10px 30px rgba(22, 33, 58, 0.08);
}

.post-article {
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.post-article h1 {
    max-width: 820px;
    color: var(--ink);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.post-summary {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.18rem;
}

.post-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    margin: 28px 0;
    border-radius: var(--radius);
}

.post-body {
    max-width: 760px;
    color: var(--ink);
    font-size: 1.08rem;
}

.post-body h2 {
    margin-top: 34px;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.post-body p,
.post-body ul {
    color: var(--muted);
}

.post-body a {
    color: var(--blue);
    font-weight: 850;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: flex-end;
}

.footer-social {
    display: grid;
    gap: 16px;
    justify-items: center;
    grid-column: 2;
}

.footer-brand {
    grid-column: 1;
}

.footer-copy {
    grid-column: 2;
}

.footer-social {
    grid-column: 3;
}

.footer-social-heading {
    display: grid;
    gap: 4px;
    text-align: right;
}

.footer-social-heading span {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-social-heading strong {
    color: white;
    font-size: clamp(1.15rem, 3vw, 1.7rem);
    line-height: 1.08;
}

.social-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.social-icon-link:nth-child(1) {
    color: white;
    background: radial-gradient(circle at 30% 110%, #fdf497 0 20%, #fd5949 42%, #d6249f 62%, #285aeb 100%);
}

.social-icon-link:nth-child(2) {
    color: white;
    background:
        linear-gradient(135deg, rgba(37, 244, 238, 0.95), rgba(254, 44, 85, 0.86)),
        #050505;
}

.social-icon-link:nth-child(3) {
    color: white;
    background: #1877f2;
}

.social-icon-link::before {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    border-radius: 999px;
    background: rgba(108, 218, 255, 0.18);
    opacity: 0;
    transform: scale(0.82);
    animation: softPulse 2.4s ease-in-out infinite;
}

.social-icon-link svg {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.social-icon-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.social-icon-link:nth-child(3) svg {
    fill: currentColor;
    stroke: none;
}

.social-icon-link:nth-child(2)::before {
    animation-delay: 0.25s;
}

.social-icon-link:nth-child(3)::before {
    animation-delay: 0.5s;
}

.privacy-link {
    justify-self: end;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 850;
}

@keyframes softPulse {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.82);
        box-shadow: 0 0 0 0 rgba(108, 218, 255, 0);
    }

    45% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(108, 218, 255, 0.08);
    }
}

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

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

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

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

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: var(--radius);
        background: white;
        box-shadow: var(--shadow);
    }

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

    .hero {
        min-height: 880px;
        background-position: center top;
    }

    .hero-panel {
        left: 24px;
        right: auto;
    }

    .stats,
    .service-grid,
    .resource-list,
    .video-grid,
    .blog-grid,
    .split,
    .families,
    .contact {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .stat-card + .stat-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .families-media {
        order: 2;
    }

    .floating-note {
        right: 18px;
    }
}

@media (max-width: 640px) {
    .site-header {
        width: calc(100% - 24px);
        margin-top: 12px;
    }

    .brand-logo {
        width: 150px;
        height: 64px;
    }

    .brand-text {
        display: none;
    }

    .hero {
        min-height: 820px;
        padding-top: 148px;
        padding-bottom: 280px;
    }

    .hero-media {
        background:
            linear-gradient(180deg, rgba(10, 18, 35, 0.35), rgba(10, 18, 35, 0.74)),
            linear-gradient(180deg, #ecfbfc 0 22%, #22c7d2 22% 58%, #ecfbfc 58% 100%);
    }

    h1 {
        font-size: 2.72rem;
    }

    h2 {
        font-size: 2.05rem;
    }

    .hero-actions,
    .site-footer,
    .footer-links,
    .footer-social {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-social {
        justify-items: start;
    }

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

    .footer-brand,
    .footer-copy,
    .footer-social {
        grid-column: 1;
        justify-items: start;
        text-align: left;
    }

    .gallery-track {
        grid-auto-columns: 88%;
    }

    .blog-section .section-heading h2,
    .gallery-section .section-heading h2 {
        white-space: normal;
    }

    .carousel-control.prev {
        left: 6px;
    }

    .carousel-control.next {
        right: 6px;
    }

    .footer-social-heading {
        text-align: left;
    }

    .privacy-link {
        justify-self: start;
    }

    .button {
        width: 100%;
    }

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

    .section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .contact-form {
        padding: 20px;
    }
}
