/* Brand colours and shared corner radius. Edit these values to update the theme. */
:root {
    --red: #f33225;
    --yellow: #ffc400;
    --blue: #3c82c9;
    --mint: #52b5a0;
    --ink: #17191c;
    --paper: #f5f5f2;
    --muted: #62656a;
    --radius: 24px;
}

/* Base styles and typography. */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans',sans-serif;
}

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

h1,
h2,
h3,
.brand,
.stat {
    font-family: 'Space Grotesk',sans-serif;
}

h1 {
    font-size: clamp(3rem,6.2vw,6.6rem);
    line-height: 1.02;
    letter-spacing: -.075em;
    font-weight: 600;
}

h2 {
    font-size: clamp(2.2rem,4.5vw,4.7rem);
    line-height: 1.06;
    letter-spacing: -.065em;
    font-weight: 500;
}

h3 {
    font-size: 1.35rem;
    letter-spacing: -.035em;
}

p {
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Page width, header, navigation and reusable buttons. */
.wrap {
    width: min(1250px,calc(100% - 48px));
    margin: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -.05em;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand small {
    display: block;
    font-family: 'DM Sans',sans-serif;
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 29px;
    align-items: center;
    font-size: .91rem;
}

.nav a:hover {
    color: var(--red);
}

.btn {
    border: 1px solid var(--ink);
    background: transparent;
    border-radius: 100px;
    padding: 12px 20px;
    font-size: .86rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .2s;
}

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

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

.btn.white {
    background: #fff;
    border-color: #fff;
    color: #151515;
}

.btn.red {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.menu {
    display: none;
}

/* Hero section. The coloured circles and puzzle image sit behind the introduction. */
.hero {
    position: relative;
    min-height: 660px;
    border-radius: 30px;
    overflow: hidden;
    background: #17191c;
    color: white;
    padding: 80px 6%;
    display: flex;
    align-items: center;
}

.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 44%,rgba(60,130,201,.26),transparent 32%),radial-gradient(circle at 65% 82%,rgba(82,181,160,.2),transparent 35%),linear-gradient(100deg,#111416 22%,rgba(17,20,22,.76) 58%,rgba(17,20,22,.1));
    z-index: 1;
}

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

.hero h1 {
    max-width: 720px;
    margin: 18px 0 25px;
}

.hero p {
    max-width: 540px;
    color: #e1e3e4;
    font-size: 1.07rem;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.eyebrow {
    font-size: .73rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 700;
}

.eyebrow.light {
    color: #e8e8e8;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    z-index: 0;
}

.orb.one {
    width: 480px;
    height: 480px;
    right: -90px;
    top: 75px;
    background: var(--red);
}

.orb.two {
    width: 350px;
    height: 350px;
    right: 175px;
    bottom: -160px;
    background: var(--yellow);
}

.orb.three {
    width: 220px;
    height: 220px;
    right: 250px;
    top: 40px;
    background: var(--blue);
}

.hero-puzzle {
    position: absolute;
    z-index: 2;
    width: 340px;
    height: 340px;
    object-fit: contain;
    right: 6%;
    top: 23%;
    transform: rotate(-12deg);
    filter: drop-shadow(0 30px 20px #0005);
    background: #ffffffed;
    border-radius: 50%;
    padding: 25px;
}

/* Shared section spacing and the two-column About layout. */
.section {
    padding: 125px 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
}

.section-copy {
    max-width: 510px;
}

.section-copy p {
    color: var(--muted);
    max-width: 440px;
}

.visual {
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual.mint {
    background: var(--mint);
}

.visual.blue {
    background: var(--blue);
}

.visual.yellow {
    background: var(--yellow);
}

.visual .giant {
    font-size: clamp(8rem,18vw,16rem);
    line-height: 1;
    filter: drop-shadow(0 12px 3px #0002);
}

.visual .corner {
    position: absolute;
    bottom: 22px;
    left: 24px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
}

.offset {
    margin-top: 75px;
}

/* Four focus cards below the About section. */
.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.statbox {
    border-radius: 18px;
    padding: 32px;
    min-height: 195px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.statbox.dark {
    background: #202123;
    color: #fff;
}

.statbox.grey {
    background: #e4e4e1;
}

.statbox.red {
    background: var(--red);
    color: #fff;
}

.statbox.yellow {
    background: var(--yellow);
}

.stat {
    font-size: clamp(2rem,3vw,3.3rem);
    letter-spacing: -.07em;
}

.statbox p {
    margin: 0;
    font-size: .88rem;
}

/* Shared section headings and learning approach cards. */
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.section-head h2 {
    max-width: 740px;
    margin: 0;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.pillar {
    border-radius: 22px;
    min-height: 375px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pillar:nth-child(1) {
    background: var(--yellow);
}

.pillar:nth-child(2) {
    background: var(--blue);
    color: white;
}

.pillar:nth-child(3) {
    background: var(--mint);
}

.pillar .num {
    font-family: 'Space Grotesk';
    font-size: 6.5rem;
    line-height: 1;
    letter-spacing: -.1em;
    font-weight: 400;
    opacity: .65;
}

.pillar p {
    max-width: 290px;
    font-size: .91rem;
}

.pillar h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* School partnership banner. */
.banner {
    background: var(--ink);
    color: white;
    border-radius: 24px;
    padding: 65px 6%;
    position: relative;
    overflow: hidden;
}

.banner:after {
    content: '✳';
    position: absolute;
    right: 5%;
    top: -65px;
    color: var(--red);
    font-size: 360px;
    opacity: .5;
}

.banner h2 {
    max-width: 780px;
    position: relative;
    z-index: 1;
}

.banner p {
    position: relative;
    z-index: 1;
    max-width: 580px;
    color: #c9cbce;
}

/* Programme grid and cards. The nth-child rules assign colours by card position. */
.programmes {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.programme {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.programme-art {
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5.7rem;
}

.programme:nth-child(1) .programme-art {
    background: #ffe38c;
}

.programme:nth-child(2) .programme-art {
    background: #a7e2d4;
}

.programme:nth-child(3) .programme-art {
    background: #a7c8ee;
}

.programme:nth-child(4) .programme-art {
    background: #ffaaa1;
}

.programme-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.programme-body p {
    color: var(--muted);
    font-size: .85rem;
}

.programme-body .age {
    font-size: .68rem;
    letter-spacing: .12em;
    font-weight: 700;
    text-transform: uppercase;
}

.programme-body a {
    font-weight: 700;
    font-size: .85rem;
    margin-top: auto;
}

/* Learning steps. */
.steps {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.step {
    padding: 28px;
    background: #e8e8e5;
    border-radius: 18px;
    min-height: 200px;
}

.step b {
    font-family: 'Space Grotesk';
    font-size: 3rem;
    font-weight: 400;
    display: block;
    margin-bottom: 25px;
}

.step p {
    font-size: .87rem;
    color: var(--muted);
}

/* Contact panel and enquiry form. */
.cta {
    background: var(--red);
    color: white;
    padding: 80px 6%;
    border-radius: 25px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta h2 {
    margin: 0;
}

.cta p {
    color: #fff;
    opacity: .9;
}

.form {
    background: white;
    color: var(--ink);
    padding: 28px;
    border-radius: 20px;
}

.form h3 {
    margin-bottom: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.field label {
    font-size: .78rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d6d6d6;
    border-radius: 9px;
    padding: 12px;
    background: #fafafa;
}

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

.form .btn {
    width: 100%;
}

.form small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: .72rem;
}

/* Footer layout and links. */
.footer {
    background: #151618;
    color: white;
    margin-top: 70px;
    padding: 70px 0 35px;
}

.footergrid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 60px;
}

.footer p,
.footer a {
    color: #c3c5c8;
    font-size: .9rem;
}

.footer a:hover {
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footline {
    border-top: 1px solid #383a3c;
    margin-top: 65px;
    padding-top: 22px;
    font-size: .8rem;
    color: #a4a5a8;
    display: flex;
    justify-content: space-between;
}

/* Entrance animation. */
.reveal {
    animation: rise .8s ease both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* Tablet layout. */
@media(max-width:950px) {
    .nav {
        gap: 12px;
    }

    .nav a {
        font-size: .8rem;
    }

    .hero-puzzle {
        width: 250px;
        height: 250px;
        right: 1%;
        opacity: .65;
    }

    /* Programme grid and cards. The nth-child rules assign colours by card position. */
    .programmes {
        grid-template-columns: repeat(2,1fr);
    }

    /* Four focus cards below the About section. */
    .stats {
        grid-template-columns: repeat(2,1fr);
    }

}

/* Mobile layout and collapsible navigation. */
@media(max-width:700px) {
    /* Page width, header, navigation and reusable buttons. */
    .wrap {
        width: min(100% - 28px,1250px);
    }

    .topbar {
        padding: 14px 0;
    }

    .menu {
        display: block;
        border: 0;
        background: none;
        font-size: 1.5rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 14px;
        right: 14px;
        z-index: 20;
        background: white;
        border-radius: 16px;
        padding: 22px;
        box-shadow: 0 15px 40px #0002;
        flex-direction: column;
        align-items: stretch;
    }

    .nav.open {
        display: flex;
    }

    .topbar>.btn {
        display: none;
    }

    /* Hero section. The coloured circles and puzzle image sit behind the introduction. */
    .hero {
        padding: 65px 26px;
        min-height: 660px;
    }

    .hero h1 {
        font-size: 3.35rem;
    }

    .hero-puzzle {
        width: 190px;
        height: 190px;
        right: -55px;
        top: auto;
        bottom: 0;
        opacity: .5;
    }

    /* Shared section spacing and the two-column About layout. */
    .section {
        padding: 75px 0;
    }

    .split,
    .cta,
    .footergrid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .offset {
        margin-top: 0;
    }

    .visual {
        min-height: 300px;
    }

    .pillars,
    .steps {
        grid-template-columns: 1fr;
    }

    .pillar {
        min-height: 300px;
    }

    .stats,
    .programmes {
        grid-template-columns: 1fr 1fr;
    }

    .statbox {
        padding: 22px;
        min-height: 160px;
    }

    /* Shared section headings and learning approach cards. */
    .section-head {
        align-items: start;
        flex-direction: column;
    }

    /* Contact panel and enquiry form. */
    .cta {
        padding: 40px 22px;
    }

    .footergrid {
        gap: 25px;
    }

    .footline {
        flex-direction: column;
        gap: 12px;
    }

}

/* Small mobile screens. */
@media(max-width:420px) {
    /* Programme grid and cards. The nth-child rules assign colours by card position. */
    .programmes {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.85rem;
    }

    /* Four focus cards below the About section. */
    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        font-size: 2rem;
    }

}


/* =============================================================
   GLOBE EFFECT — homepage hero. No external libraries required.
   Edit --globe-speed (seconds) to control the rotation speed.
   The map is a repeating SVG texture, wrapped around a sphere.
   ============================================================= */
:root { --globe-speed: 30s; }
.hero { isolation: isolate; min-height: 690px; }
.hero:before { background: linear-gradient(90deg,#111416 0%,rgba(17,20,22,.98) 36%,rgba(17,20,22,.55) 69%,rgba(17,20,22,.10) 100%); z-index: 2; pointer-events: none; }
.hero-content { max-width: 700px; z-index: 4; }
.hero h1 { font-size: clamp(3.3rem, 6.5vw, 7.1rem); line-height: 1.03; letter-spacing: -.072em; }
.hero-content > p { max-width: 495px; }
.globe-scene { position: absolute; width: min(680px, 62%); aspect-ratio: 1; right: -7%; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.globe-halo { position: absolute; inset: 1%; border-radius: 50%; background: radial-gradient(circle,rgba(60,130,201,.17),rgba(82,181,160,.10) 43%,transparent 70%); filter: blur(25px); transform: scale(1.16); }
.globe-sphere { position: absolute; inset: 10%; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 30% 26%,#2b98c4 1%,#155a97 41%,#092543 80%,#050f27 100%); box-shadow: inset -45px -24px 70px 8px rgba(0,0,0,.72), inset 23px 12px 50px rgba(113,224,248,.24), 0 35px 110px rgba(8,60,105,.52),0 0 0 2px rgba(161,236,248,.16); }
.globe-map { position:absolute; inset:0; background-image:url('globe-map.svg'); background-repeat:repeat-x; background-size: 200% 100%; animation: globe-rotation var(--globe-speed) linear infinite; opacity:.93; filter:drop-shadow(0 0 4px rgba(63,222,177,.12)); }
.globe-shine { position:absolute; inset:0; border-radius:50%; background:radial-gradient(ellipse at 29% 22%,rgba(255,255,255,.33),transparent 37%),linear-gradient(90deg,rgba(3,18,41,.38),transparent 28%,rgba(4,11,31,.10) 52%,rgba(0,7,29,.84) 100%); }
.globe-orbit { position:absolute; border:1px solid rgba(139,227,239,.27); border-radius:50%; inset:3%; transform:rotate(-25deg) scaleY(.37); box-shadow:0 0 16px rgba(75,183,220,.10); }
.globe-orbit-b { inset:-3%; border-color:rgba(255,196,0,.25); transform:rotate(31deg) scaleY(.57); }
.globe-spark { position:absolute; color:var(--yellow); font-size:2.6rem; text-shadow:0 0 28px rgba(255,196,0,.45); }
.spark-a { top:10%; right:19%; } .spark-b { bottom:17%; left:8%; font-size:1.4rem; color:var(--mint); }
.globe-caption {position:absolute;bottom:3%;left:50%;transform:translateX(-50%);color:#b6dbe7;font-size:.62rem;white-space:nowrap;letter-spacing:.34em;font-weight:700;}
@keyframes globe-rotation { from { background-position:0 0; } to { background-position:-200% 0; } }
@media(max-width:950px) { .globe-scene { right:-16%; width:78%; opacity:.76; } .hero:before {background:linear-gradient(90deg,#111416 0%,rgba(17,20,22,.93) 42%,rgba(17,20,22,.45) 100%);} }
@media(max-width:700px) { .hero {min-height:740px;align-items:flex-start;padding-top:80px;} .hero h1 {font-size:clamp(3.15rem,10vw,4.6rem);} .hero-content {z-index:5;} .hero-content > p {max-width:95%;} .globe-scene {width:92%;right:-15%;top:auto;bottom:-23%;transform:none;opacity:.52;} .hero:before {background:linear-gradient(180deg,rgba(17,20,22,.98) 4%,rgba(17,20,22,.90) 50%,rgba(17,20,22,.20) 100%);} .globe-caption {display:none;} }
@media(prefers-reduced-motion:reduce) { .globe-map {animation:none;} }


/* VISION TEXT ORBIT — change the wording in index.html inside <textPath>.
   One revolution every 24 seconds, independently of the globe map. */
.vision-orbit {
    position: absolute;
    inset: -3%;
    width: 106%;
    height: 106%;
    overflow: visible;
    transform-origin: center;
    animation: vision-spin 24s linear infinite;
    z-index: 4;
    filter: drop-shadow(0 2px 7px rgba(0,0,0,.85));
}
.vision-orbit-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 5px;
    fill: #ffc400;
}
@keyframes vision-spin { to { transform: rotate(360deg); } }
@media (max-width:700px) {
    .vision-orbit { inset: -5%; width:110%;height:110%; }
    .vision-orbit-text { font-size: 18px;letter-spacing:3px; }
}
@media (prefers-reduced-motion: reduce) {
    .vision-orbit { animation: none; }
}
