/* ============================================================
   AVIANEDU â€” SITE STYLES
   All colours come from theme.css. Nothing here hardcodes a
   theme colour â€” only semantic constants (e.g. white-on-fill).
   ============================================================ */

/* ---------- reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background-color .35s ease, color .35s ease;
}

main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
    font-family: "Outfit", "Inter", sans-serif;
    color: var(--heading);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -.015em;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.45rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.14rem, 1.8vw, 1.32rem); }

::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 92px) 0; position: relative; }
.section--tint { background: var(--surface-2); }

/* lucide defaults (component rules later override sizes) */
svg.lucide { width: 20px; height: 20px; flex: none; }

/* ---------- text helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Outfit", sans-serif;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.section-head { max-width: 700px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; color: var(--muted); }
.lead { font-size: 1.08rem; }
.muted { color: var(--muted); }
.text-primary { color: var(--primary); }

.text-gradient {
    background: linear-gradient(120deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.marker {
    background-image: linear-gradient(var(--blob-2), var(--blob-2));
    background-repeat: no-repeat;
    background-position: 0 90%;
    background-size: 100% .32em;
    padding-inline: 2px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: .97rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease,
                color .25s ease, border-color .25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover svg.arr { transform: translateX(4px); }

.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px var(--ring); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 16px 30px -10px var(--ring); }

.btn-outline { background: var(--surface); border-color: var(--border); color: var(--heading); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--heading); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }

.btn-white { background: #ffffff; color: var(--primary-dark); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .4); }
.btn-white:hover { background: #f1f6fa; }

.btn-lg { padding: 16px 32px; font-size: 1.03rem; border-radius: 14px; }
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: .96rem;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-pop);
    border-color: var(--primary-light);
}
.card p { margin-top: 10px; font-size: .97rem; }
.card h3 { margin-top: 16px; }

.icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    transition: transform .3s ease, background .3s ease, color .3s ease;
}
.icon-badge svg { width: 24px; height: 24px; }
.card:hover .icon-badge {
    background: var(--primary);
    color: var(--on-primary);
    transform: rotate(-6deg) scale(1.06);
}
.icon-badge.lg { width: 60px; height: 60px; border-radius: 16px; }
.icon-badge.lg svg { width: 28px; height: 28px; }

.tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 4px 11px;
    border-radius: 999px;
}
.tag--ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 13px;
    font-size: .98rem;
}
.check-list .check {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
}
.check-list .check svg { width: 14px; height: 14px; }

/* ============================================================
   HEADER Â· NAVIGATION Â· THEME SWITCH Â· MOBILE MENU
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.site-header.scrolled {
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--header-border);
    box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .55);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 76px;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand .logo-mark { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    position: relative;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: .96rem;
    font-weight: 500;
    color: var(--text);
    transition: color .25s ease, background .25s ease;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

/* theme swatches */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
}
.theme-dot {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.theme-dot:hover { transform: scale(1.2); }
.theme-dot[aria-pressed="true"] {
    border-color: var(--heading);
    box-shadow: 0 0 0 2px var(--surface);
}
.theme-dot[data-swatch="blue"]  { background: #0a9bd8; }
.theme-dot[data-swatch="pink"]  { background: #ec4899; }
.theme-dot[data-swatch="dark"]  { background: #1e293b; }
.theme-dot[data-swatch="light"] {
    background: linear-gradient(135deg, #ffffff 50%, #cbd5e1 50%);
    border-color: #cbd5e1;
}

/* burger */
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    place-items: center;
    padding: 0;
}
.nav-toggle .bars { position: relative; width: 20px; height: 14px; }
.nav-toggle .bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.2px;
    border-radius: 2px;
    background: var(--heading);
    transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle.open .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.open .bars span:nth-child(2) { opacity: 0; }
.nav-toggle.open .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--header-border);
    transition: max-height .4s ease;
}
.mobile-menu.open { max-height: 640px; }
.mobile-menu-inner { padding: 18px 0 26px; }
.mobile-menu a.m-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    color: var(--heading);
    border-bottom: 1px dashed var(--border);
    transition: color .2s ease, padding-left .2s ease;
}
.mobile-menu a.m-link:hover,
.mobile-menu a.m-link.active { color: var(--primary); padding-left: 8px; }
.mobile-menu a.m-link svg { width: 16px; height: 16px; opacity: .6; }
.mobile-menu .m-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.mobile-menu .btn { flex: 1; min-width: 180px; }
/*__APPEND__*/
/* ============================================================
   HERO Â· FLOATING CARDS
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--hero-grad-1), var(--hero-grad-2));
    padding: clamp(44px, 6vw, 86px) 0 clamp(56px, 7vw, 100px);
    transition: background .35s ease;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.blob.b1 { width: 460px; height: 460px; background: var(--blob-1); top: -150px; left: -130px; animation: drift 15s ease-in-out infinite alternate; }
.blob.b2 { width: 380px; height: 380px; background: var(--blob-2); bottom: -130px; right: -90px; animation: drift 19s ease-in-out infinite alternate-reverse; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 .accent { color: var(--primary); }
.hero-sub { margin-top: 18px; font-size: 1.11rem; max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    font-size: .9rem;
    color: var(--muted);
}
.hero-note .dot-avatars { display: flex; }
.hero-note .dot-avatars span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Outfit", sans-serif;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--bg);
    margin-left: -8px;
}
.hero-note .dot-avatars span:first-child { margin-left: 0; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px dashed var(--border);
}
.hero-stat b {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: var(--heading);
    line-height: 1.1;
}
.hero-stat span { font-size: .83rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual .main-img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--shadow-pop);
    border: 8px solid var(--surface);
}

.float-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 11px 15px;
    box-shadow: var(--shadow-pop);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Outfit", sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: var(--heading);
    animation: float 5.5s ease-in-out infinite;
    white-space: nowrap;
}
.float-card .tick {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
}
.float-card .tick svg { width: 16px; height: 16px; }
.fc-1 { top: 7%;  left: -7%; }
.fc-2 { bottom: 12%; right: -5%; animation-delay: 1.6s; }
.fc-3 { top: 58%; left: -10%; animation-delay: 3s; }
/* subject ticker */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    border-block: 1px solid var(--border);
    background: var(--surface);
    padding: 15px 0;
}
.marquee-track { display: flex; width: max-content; animation: scroll-x 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-inline: 24px;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: .97rem;
    color: var(--heading);
    opacity: .88;
}
.marquee-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* split (image + text) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
}
.split.flip .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
}
.split-media .stamp {
    position: absolute;
    bottom: -22px;
    right: 18px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: var(--shadow-pop);
    font-family: "Outfit", sans-serif;
    text-align: center;
    line-height: 1.2;
    animation: float 6s ease-in-out infinite;
}
.split-media .stamp b { display: block; font-size: 1.5rem; font-weight: 800; }
.split-media .stamp span { font-size: .76rem; opacity: .9; }
.split-body .link-arrow { margin-top: 22px; }
.split-body .btn { margin-top: 24px; }

/* media card (image on top) */
.media-card { padding: 0; overflow: hidden; }
.media-card .card-img-wrap { position: relative; overflow: hidden; }
.media-card .card-img-wrap img {
    height: 190px;
    width: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.media-card:hover .card-img-wrap img { transform: scale(1.06); }
.media-card .card-img-wrap .tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-card);
}
.media-card .card-body { padding: 24px 26px 28px; }

/* stat band */
.stat-band {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--on-primary);
    border-radius: 26px;
    padding: clamp(30px, 4vw, 46px) clamp(24px, 4vw, 48px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    position: relative;
    overflow: hidden;
}
.stat-band::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    top: -140px;
    right: -80px;
}
.stat-item { position: relative; z-index: 1; text-align: center; }
.stat-item .num {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.05;
}
.stat-item p { font-size: .92rem; opacity: .88; margin-top: 6px; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 8%;
    right: 8%;
    border-top: 2px dashed var(--border);
    z-index: 0;
}
.step {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 22px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 16px;
}
.step:hover .step-num { background: var(--primary); color: var(--on-primary); }
.step p { margin-top: 8px; font-size: .94rem; }

/* ============================================================
   PRODUCTS Â· TESTIMONIALS
   ============================================================ */
.product-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--primary-light); }
.product-card h3 { font-size: 1.12rem; }
.product-card p { margin-top: 8px; font-size: .95rem; }
.product-card .tag { margin-top: 12px; }

/* testimonial slider */
.testi-viewport { overflow: hidden; border-radius: 22px; }
.testi-track { display: flex; transition: transform .6s cubic-bezier(.22, .9, .3, 1); }
.testi-slide { min-width: 100%; padding: 4px; }
.testi-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 46px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.testi-card::before {
    content: "\201C";
    position: absolute;
    top: -34px;
    right: 22px;
    font-family: "Outfit", sans-serif;
    font-size: 9rem;
    line-height: 1;
    color: var(--primary-soft);
    pointer-events: none;
}
.stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 16px; }
.stars svg { width: 17px; height: 17px; fill: currentColor; }
.testi-text { font-size: clamp(1.02rem, 1.6vw, 1.16rem); line-height: 1.75; color: var(--text); position: relative; z-index: 1; }
.testi-person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.avatar-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--on-primary);
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 1rem;
}
.testi-person b { display: block; color: var(--heading); font-family: "Outfit", sans-serif; font-size: .98rem; }
.testi-person span { font-size: .85rem; color: var(--muted); }

.testi-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.testi-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--heading);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.testi-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: translateY(-2px); }
.testi-dots { display: flex; gap: 7px; align-items: center; }
.testi-dots .dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: var(--border);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.testi-dots .dot.on { width: 26px; background: var(--primary); }
/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--on-primary);
    border-radius: 28px;
    padding: clamp(36px, 5vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-band::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    right: -110px;
    bottom: -170px;
}
.cta-band .cta-copy { position: relative; z-index: 1; max-width: 640px; }
.cta-band h2 { color: var(--on-primary); }
.cta-band p { margin-top: 12px; opacity: .88; }
.cta-band .cta-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-outline-white { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--on-primary); }
.cta-band .btn-outline-white:hover { background: rgba(255, 255, 255, .14); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: clamp(48px, 6vw, 74px); transition: background .35s ease; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1.3fr; gap: clamp(26px, 4vw, 48px); }

.site-footer h4 {
    color: var(--footer-heading);
    font-family: "Outfit", sans-serif;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.site-footer a { color: var(--footer-link); font-size: .95rem; transition: color .2s ease; }
.site-footer a:hover { color: var(--primary-light); }

.footer-about p { margin-top: 16px; font-size: .94rem; line-height: 1.7; max-width: 36ch; }
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: .82rem;
    color: var(--footer-heading);
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--footer-border);
    padding: 7px 13px;
    border-radius: 999px;
}
.footer-badge svg { width: 14px; height: 14px; color: var(--primary-light); }

.footer-links li { margin-bottom: 11px; }
.footer-links li a { display: inline-flex; align-items: center; gap: 9px; }
.footer-links li a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: .7;
    transition: transform .2s ease;
}
.footer-links li a:hover::before { transform: scale(1.6); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--footer-border);
    display: grid;
    place-items: center;
    color: var(--footer-link);
    transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: translateY(-3px); }
.socials a svg { width: 17px; height: 17px; }

.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; font-size: .93rem; }
.footer-contact .ib {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    display: grid;
    place-items: center;
    color: var(--primary-light);
}
.footer-contact .ib svg { width: 16px; height: 16px; }
.footer-contact b { display: block; color: var(--footer-heading); font-family: "Outfit", sans-serif; font-size: .88rem; font-weight: 600; }

.footer-bottom {
    margin-top: 46px;
    padding: 22px 0;
    border-top: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .87rem;
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-heritage a { color: var(--footer-heading); font-weight: 600; }

/* logo sits on the dark footer â€” keep the "EDU" part readable */
.site-footer .lg-ink { fill: #f8fafc; }


/* ============================================================
   INNER PAGES Â· BREADCRUMB Â· PROSE Â· FORMS
   ============================================================ */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--hero-grad-1), var(--hero-grad-2));
    border-bottom: 1px solid var(--border);
    padding: clamp(42px, 6vw, 70px) 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { margin-top: 14px; max-width: 64ch; font-size: 1.06rem; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { transition: color .2s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 13px; height: 13px; opacity: .6; }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

/* prose / legal content */
.prose { max-width: 820px; }
.prose h2 { margin: 36px 0 14px; font-size: 1.42rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--heading); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 15px;
    margin-bottom: 26px;
}
.legal-updated svg { width: 14px; height: 14px; color: var(--primary); }

.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.toc-card {
    position: sticky;
    top: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}
.toc-card h4 { font-family: "Outfit", sans-serif; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc-card ol { list-style: decimal; padding-left: 18px; font-size: .9rem; }
.toc-card li { margin-bottom: 9px; }
.toc-card a { color: var(--text); transition: color .2s ease; }
.toc-card a:hover { color: var(--primary); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: "Outfit", sans-serif; font-weight: 600; font-size: .92rem; color: var(--heading); }
.field label .req { color: var(--primary); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: .97rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: var(--danger); font-size: .83rem; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 14px; }

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 18px;
    border-radius: 14px;
    font-size: .96rem;
    margin-bottom: 26px;
}
.alert svg { width: 19px; height: 19px; margin-top: 2px; flex: none; }
.alert-success { background: rgba(16, 163, 74, .10); border: 1px solid rgba(16, 163, 74, .35); color: var(--success); }
.alert-danger { background: rgba(225, 29, 72, .09); border: 1px solid rgba(225, 29, 72, .35); color: var(--danger); }
/* accordion */
.accordion {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.accordion.open { border-color: var(--primary-light); box-shadow: var(--shadow-card); }
.acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 1.01rem;
    color: var(--heading);
    transition: color .2s ease;
}
.acc-head:hover { color: var(--primary); }
.acc-head .chev { color: var(--primary); transition: transform .3s ease; }
.accordion.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc-body-inner { padding: 0 22px 20px; color: var(--text); font-size: .96rem; line-height: 1.72; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 34px; align-items: start; }
.contact-info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.contact-info-card + .contact-info-card { margin-top: 14px; }
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--primary-light); }
.contact-info-card h4 { font-family: "Outfit", sans-serif; font-size: .98rem; color: var(--heading); }
.contact-info-card p, .contact-info-card a { font-size: .93rem; color: var(--text); margin-top: 3px; }
.contact-info-card a:hover { color: var(--primary); }

/* job cards */
.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.job-card + .job-card { margin-top: 14px; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--primary-light); }
.job-card h3 { font-size: 1.08rem; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }

/* 404 */
.not-found { text-align: center; padding: clamp(70px, 10vw, 130px) 0; }
.not-found .big {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: clamp(5rem, 16vw, 9rem);
    line-height: 1;
    background: linear-gradient(120deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.not-found p { max-width: 46ch; margin: 18px auto 30px; }

/* ============================================================
   ANIMATIONS Â· BACK-TO-TOP Â· RESPONSIVE Â· REDUCED MOTION
   ============================================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(34px, 26px) scale(1.08); }
}
@keyframes scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .9, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

/* back to top */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--on-primary);
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease, background .25s ease;
    z-index: 90;
    box-shadow: var(--shadow-pop);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .main-nav a { padding: 9px 10px; font-size: .92rem; }
    .header-actions .btn { display: none; }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .split { grid-template-columns: 1fr; }
    .split.flip .split-media { order: 0; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .stat-band { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .legal-wrap { grid-template-columns: 1fr; }
    .toc-card { position: static; }
    .contact-grid { grid-template-columns: 1fr; }

    .main-nav, .theme-switch { display: none; }
    .nav-toggle { display: grid; }
    .mobile-menu { display: block; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .hero-ctas .btn { width: 100%; }
    .float-card { display: none; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .split-media .stamp { right: 10px; }
}

/* ---------- accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   WEEKLY MATHS TEST — 7-DAY TRACK STRIP
   ============================================================ */
.week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 34px;
}
.day-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.day-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-light);
}
.day-card .day-no {
    display: inline-block;
    font-family: "Outfit", sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 10px;
    border-radius: 999px;
}
.day-card .day-icon { display: grid; place-items: center; margin-top: 12px; color: var(--primary); }
.day-card .day-icon svg { width: 26px; height: 26px; }
.day-card h4 { font-size: .92rem; margin-top: 10px; line-height: 1.3; }
.day-card p { font-size: .77rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.day-card.exam {
    background: linear-gradient(165deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    box-shadow: var(--shadow-pop);
    transform: translateY(-7px);
}
.day-card.exam:hover { transform: translateY(-10px); }
.day-card.exam .day-no { background: rgba(255, 255, 255, .22); color: var(--on-primary); }
.day-card.exam .day-icon { color: var(--on-primary); }
.day-card.exam h4 { color: var(--on-primary); }
.day-card.exam p { color: var(--on-primary); opacity: .85; }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-family: "Outfit", sans-serif;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--on-primary);
}
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc84;
    animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(.65); }
}

.weekly-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* parents' guide callout */
.parent-callout {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--surface);
    border: 2px dashed var(--primary-light);
    border-radius: 20px;
    padding: clamp(22px, 3vw, 32px);
    margin-top: 34px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.parent-callout:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.parent-callout .icon-badge { flex: none; width: 60px; height: 60px; }
.parent-callout .pc-copy { flex: 1; }
.parent-callout h3 { font-size: 1.14rem; }
.parent-callout p { margin-top: 6px; font-size: .95rem; }
.parent-callout .btn { flex: none; }

@media (max-width: 1080px) {
    .week-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
    .week-strip { grid-template-columns: repeat(3, 1fr); }
    .day-card.exam { transform: none; }
    .day-card.exam:hover { transform: translateY(-5px); }
    .parent-callout { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .week-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- train: couplers, wheels, engine, smoke ---------- */
/* coupler bars joining every coach to the previous one */
.day-card + .day-card::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 14px;
    background: var(--muted);
    opacity: .5;
    border-radius: 3px;
    pointer-events: none;
}
/* the elevated engine card needs its coupler pushed back down visually */
.day-card.exam::before { top: calc(50% + 7px); }

/* engine elevation via margin so the chug animation owns `transform` */
.day-card.exam { transform: none; margin-top: -7px; }

/* bogies: bigger spoked wheels that really spin */
.bogies {
    position: absolute;
    left: 50%;
    bottom: -13px;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    opacity: .65;
    pointer-events: none;
}
/* wheels spin explicitly clockwise; train moves right */
.bogies i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--muted);
    background:
        radial-gradient(circle, var(--muted) 0 3.5px, transparent 4px) 50% 50% / 100% 100% no-repeat,
        linear-gradient(var(--muted), var(--muted)) 50% 50% / 2.5px 100% no-repeat,
        linear-gradient(var(--muted), var(--muted)) 50% 50% / 100% 2.5px no-repeat;
    animation: spin-cw 1.1s linear infinite;
    transform-origin: center;
}
@keyframes spin-cw {
    to { transform: rotate(360deg); }
}

/* the chug: gentle up-down bob, staggered per car so the train feels alive */
.day-card { animation: chug .55s ease-in-out infinite alternate; }
.day-card:nth-child(2) { animation-delay: .07s; }
.day-card:nth-child(3) { animation-delay: .14s; }
.day-card:nth-child(4) { animation-delay: .21s; }
.day-card:nth-child(5) { animation-delay: .28s; }
.day-card:nth-child(6) { animation-delay: .35s; }
.day-card:nth-child(7) { animation-delay: .42s; }
@keyframes chug {
    from { transform: translateY(2px); }
    to   { transform: translateY(-3px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* the engine: rounded locomotive front + chimney */
.day-card.exam { border-radius: 16px 26px 26px 16px; }
.chimney {
    position: absolute;
    top: -16px;
    right: 26px;
    width: 16px;
    height: 16px;
    background: var(--primary-dark);
    border-radius: 4px 4px 2px 2px;
    z-index: 2;
    pointer-events: none;
}
.chimney i {
    position: absolute;
    bottom: calc(100% - 2px);
    left: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--muted);
    opacity: 0;
    animation: smoke 2.6s ease-out infinite;
}
.chimney i:nth-child(2) { animation-delay: .87s; }
.chimney i:nth-child(3) { animation-delay: 1.74s; }
/* classic circle plume: puff out, spread, trail left, vanish */
@keyframes smoke {
    0%   { transform: translate(-50%, 6px) scale(.4);  opacity: 0; }
    15%  { opacity: .5; }
    100% { transform: translate(calc(-50% - 26px), -56px) scale(3); opacity: 0; }
}

/* hide couplers that would dangle at the start of a wrapped row */
@media (max-width: 1080px) {
    .week-strip .day-card:nth-child(5)::before { display: none; }
}
@media (max-width: 960px) {
    .week-strip .day-card:nth-child(5)::before { display: block; }
    .week-strip .day-card:nth-child(4)::before,
    .week-strip .day-card:nth-child(7)::before { display: none; }
    .day-card.exam::before { top: calc(50% + 7px); }
}
@media (max-width: 640px) {
    .week-strip .day-card:nth-child(4)::before { display: block; }
    .week-strip .day-card:nth-child(3)::before,
    .week-strip .day-card:nth-child(5)::before,
    .week-strip .day-card:nth-child(7)::before { display: none; }
}

/* ---------- maths drift backdrop + train track ---------- */
#weekly-test { position: relative; overflow: hidden; }
#weekly-test > .container { position: relative; z-index: 1; }
.maths-drift {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    color: var(--primary);
    overflow: hidden;
}
.drift-row { position: absolute; left: 0; right: 0; overflow: hidden; white-space: nowrap; }
.drift-row.row-a { top: 26px; opacity: .1; }
.drift-row.row-b { bottom: 30px; opacity: .07; }
.drift-track {
    display: inline-flex;
    width: max-content;
    animation: drift-ltr 38s linear infinite;
}
.drift-track.slow { animation-duration: 55s; }
.drift-set { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; }
.row-b .drift-set { gap: 44px; padding-right: 44px; }
.m-glyph {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
}
.row-b .m-glyph { font-size: 1.5rem; }
.drift-set svg { width: 30px; height: 30px; flex: none; }
.row-b .drift-set svg { width: 23px; height: 23px; }
@keyframes drift-ltr {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
/* reversed: scenery rushes right-to-left past the static train,
   so the train reads as pushing ahead to the right */
@keyframes drift-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.drift-track.rev { animation-name: drift-rtl; }
.drift-track.line-fast { animation-duration: 18s; }

/* steel rails + sleeper ties that the bogies roll on.
   Positive top margin puts the near rail just under the wheel
   bottoms (wheels reach 13px below the card); strip stays above.
   Sleepers stream right-to-left (ground rushes under the wheels),
   matching the trees + maths scenery. */
.train-track {
    position: relative;
    z-index: 0;
    height: 20px;
    margin: 12px 4px 30px;
    background:
        linear-gradient(var(--muted), var(--muted)) 0 3px / 100% 4px no-repeat,
        linear-gradient(var(--muted), var(--muted)) 0 calc(100% - 3px) / 100% 2px no-repeat,
        repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 26px) 0 8px / 52px 8px repeat-x;
    opacity: .5;
    pointer-events: none;
    animation: track-scroll .9s linear infinite;
}
@keyframes track-scroll {
    from { background-position-x: 0, 0, 0; }
    to   { background-position-x: 0, 0, -52px; }
}
.train-stage .week-strip { z-index: 1; }
@media (max-width: 1080px) {
    .train-track { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .drift-track { animation: none; }
    .train-track { animation: none; }
}

/* ---------- train stage: scenery + in-card maths watermarks ---------- */
.train-stage { position: relative; margin-bottom: 34px; }
.train-stage .week-strip { margin-bottom: 0; }
.train-scenery {
    position: absolute;
    inset: -70px 0 10px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    color: var(--primary);
}
.scenery-row { position: absolute; left: 0; right: 0; overflow: hidden; white-space: nowrap; }
.scenery-row.trees-back { top: 0; opacity: .13; }
.scenery-row.sky-a { top: 44px; opacity: .11; }
.scenery-row.sky-b { top: 108px; opacity: .09; }
.scenery-row.sky-c { bottom: 4px; opacity: .08; }
/* tree line rooted on the track: bottoms at rail level, tops rise
   past the coaches — every tree taller than a day-card and far
   bigger than the 20px bogies */
.scenery-row.tree-line { bottom: 14px; top: auto; opacity: .3; }
.drift-track.fast { animation-duration: 22s; }
.drift-track.med { animation-duration: 44s; }
.drift-track.mid-fast { animation-duration: 28s; }
.drift-track.slow-back { animation-duration: 55s; animation-name: drift-ltr; display: inline-flex; width: max-content; }
.scenery-row.trees-back .drift-set { gap: 70px; padding-right: 70px; }
.scenery-row.trees-back .drift-set svg { width: 52px; height: 52px; }
/* one tree series in line with the track — every tree far bigger than
   the 20px bogies, cycling 120 / 150 / 180px tall so trunks rise
   from the rails past the coach tops */
.scenery-row.tree-line .drift-set.trees-mixed { gap: 60px; padding-right: 60px; align-items: flex-end; }
.scenery-row.tree-line .drift-set.trees-mixed svg { color: var(--primary); }
.scenery-row.tree-line .drift-set.trees-mixed > :nth-child(3n+1) svg { width: 120px; height: 120px; }
.scenery-row.tree-line .drift-set.trees-mixed > :nth-child(3n+2) svg { width: 150px; height: 150px; }
.scenery-row.tree-line .drift-set.trees-mixed > :nth-child(3n) svg { width: 180px; height: 180px; }
.scenery-row .drift-set.scatter { gap: 56px; padding-right: 56px; }
.scenery-row .drift-set.scatter .m-glyph { font-size: 1.8rem; }
.scenery-row .drift-set.scatter svg { width: 26px; height: 26px; }
/* wilder scatter: no two neighbours share size, height, tilt or fade */
.scenery-row .drift-set.scatter > :nth-child(2n) { transform: translateY(-14px) rotate(-12deg) scale(1.45); opacity: .95; }
.scenery-row .drift-set.scatter > :nth-child(3n) { transform: translateY(10px) rotate(9deg) scale(.7); opacity: .55; }
.scenery-row .drift-set.scatter > :nth-child(4n) { transform: translateY(-6px) rotate(16deg) scale(1.1); }
.scenery-row .drift-set.scatter > :nth-child(5n) { transform: translateY(14px) rotate(-16deg) scale(.85); opacity: .7; }
.scenery-row .drift-set.scatter > :nth-child(7n) { transform: translateY(-9px) rotate(5deg) scale(1.6); opacity: 1; }
.scenery-row .drift-set.scatter.faint .m-glyph { font-size: 1.4rem; }
.scenery-row .drift-set.scatter.faint svg { width: 20px; height: 20px; }
.train-stage .week-strip,
.train-stage .train-track { position: relative; z-index: 1; }

/* faint maths watermark inside each coach — no overflow hidden so
   chimney / wheels / couplers are never clipped */
.card-glyph {
    position: absolute;
    right: 8px;
    bottom: 14px;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--primary);
    opacity: .08;
    pointer-events: none;
    user-select: none;
}
.day-card.exam .card-glyph { color: var(--on-primary); opacity: .16; }
.day-card .day-no, .day-card .day-icon, .day-card h4, .day-card p, .day-card .live-badge { position: relative; z-index: 1; }
@media (max-width: 1080px) {
    .train-scenery { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .train-scenery .drift-track { animation: none; }
}

/* ============================================================
   CREATORS & GUIDES — placeholder photos + cards
   ============================================================ */
.creator-photo {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px 16px 0 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 45%),
        linear-gradient(140deg, var(--primary-soft), var(--primary-soft) 55%, var(--blob-2));
    color: var(--primary);
    position: relative;
    overflow: hidden;
}
img.creator-photo { object-fit: cover; }
.creator-photo svg { width: 54px; height: 54px; opacity: .8; }
.creator-photo .photo-soon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-family: "Outfit", sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--surface);
    border: 1px dashed var(--primary);
    padding: 4px 9px;
    border-radius: 999px;
}
.creator-card { padding: 0; overflow: hidden; }
.creator-card .cc-body { padding: 20px 22px 24px; }
.creator-card h3 { font-size: 1.05rem; }
.creator-card .cc-role { margin-top: 3px; font-size: .86rem; color: var(--muted); }
.creator-card blockquote {
    margin-top: 13px;
    font-size: .92rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}
.creator-card .job-meta { margin-top: 12px; }
.creator-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: .93rem;
    color: var(--muted);
    margin-bottom: 30px;
}
.creator-note svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 3px; }
