/* MAS Math & Computing Academy — full redesign (studio / editorial) */

:root {
    --bg: #f0eeeb;
    --bg-elevated: #f7f5f2;
    --surface: #ffffff;
    --ink: #141312;
    --ink-muted: #5c5956;
    --line: rgba(20, 19, 18, 0.09);
    --line-strong: rgba(20, 19, 18, 0.14);

    --teal: #0d6b63;
    --teal-hover: #095c55;
    --rust: #c2410c;
    --rust-soft: rgba(194, 65, 12, 0.12);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(20, 19, 18, 0.04),
        0 12px 40px rgba(20, 19, 18, 0.06);
    --shadow-hover: 0 18px 50px rgba(20, 19, 18, 0.1);

    --font-heading: "Syne", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

    --nav-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --max: 1120px;
}

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

html {
    scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-up {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .fade-in {
        animation: none !important;
    }
    .marquee-inner {
        animation: none !important;
    }
    .hl-line {
        overflow: visible !important;
    }
    .hl-line__inner {
        transform: none !important;
    }

    .team-row:hover .team-row-figure,
    .team-row:hover .team-row-img {
        transform: none !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10002;
    pointer-events: none;
}

.scroll-progress__fill {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 35%, #0a3d37));
    box-shadow: 0 0 20px color-mix(in srgb, var(--teal) 45%, transparent);
}

.magnetic-btn {
    will-change: transform;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: var(--ink);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    color: var(--ink-muted);
    margin: 0 0 1rem;
}

a {
    color: inherit;
}

abbr[title] {
    text-decoration: none;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 0.65rem 1rem;
    background: var(--surface);
    color: var(--ink);
    border-radius: 8px;
    z-index: 3000;
    font-weight: 600;
    font-size: 0.95rem;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* ---------- Nav ---------- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.navbar.nav-over-hero:not(.is-scrolled) {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.navbar.nav-over-hero:not(.is-scrolled) .logo {
    color: rgba(255, 255, 255, 0.85);
}
.navbar.nav-over-hero:not(.is-scrolled) .logo-text {
    color: #fff;
}

.navbar.nav-over-hero:not(.is-scrolled) .logo-img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.navbar.nav-over-hero:not(.is-scrolled) .hamburger {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.navbar.nav-over-hero:not(.is-scrolled) .hamburger span {
    background: #fff;
}

.navbar.is-scrolled,
body.nav-open .navbar {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
}

.navbar.is-scrolled {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 12px 40px rgba(20, 19, 18, 0.07);
}

body.nav-open .navbar .logo,
body.nav-open .navbar .nav-link,
body.nav-open .navbar .logo-text {
    color: var(--ink-muted) !important;
}

body.nav-open .navbar .nav-link:hover,
body.nav-open .navbar .nav-link:focus-visible,
body.nav-open .navbar .logo:hover {
    color: var(--ink) !important;
}

body.nav-open .navbar .hamburger span {
    background: var(--ink);
}

.navbar.is-scrolled .logo,
.navbar.is-scrolled .nav-link {
    color: var(--ink-muted);
}

.navbar.is-scrolled .nav-link:hover,
.navbar.is-scrolled .logo {
    color: var(--ink);
}

.navbar.is-scrolled .logo-text {
    color: var(--ink);
}

.navbar.is-scrolled .logo-img {
    box-shadow: 0 2px 10px rgba(20, 19, 18, 0.1);
}

.navbar-container {
    max-width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0.75rem;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--ink);
    justify-self: start;
    z-index: 2;
}

.logo-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: auto;
    height: clamp(32px, 3.2vw, 40px);
    object-fit: contain;
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.navbar.is-scrolled .logo-img,
body.nav-open .navbar .logo-img {
    box-shadow: 0 0 0 1px rgba(20, 19, 18, 0.08), 0 2px 8px rgba(20, 19, 18, 0.06);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.92rem, 1.6vw, 1.05rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.nav-center {
    justify-self: center;
    z-index: 1;
    padding: 0.28rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 12px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar.is-scrolled .nav-center {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 28px rgba(20, 19, 18, 0.06);
}

body.nav-open .nav-center {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.12rem;
}

.nav-link {
    display: block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    padding: 0.42rem 0.62rem;
    border-radius: 999px;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link-text {
    display: inline-block;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.navbar.is-scrolled .nav-link:hover,
.navbar.is-scrolled .nav-link:focus-visible {
    background: rgba(13, 107, 99, 0.08);
}

.navbar.nav-over-hero:not(.is-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.82);
}

.navbar.nav-over-hero:not(.is-scrolled) .nav-link:hover,
.navbar.nav-over-hero:not(.is-scrolled) .nav-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.navbar.is-scrolled .nav-link,
.navbar:not(.nav-over-hero) .nav-link {
    color: var(--ink-muted);
}

.navbar.is-scrolled .nav-link:hover,
.navbar.is-scrolled .nav-link:focus-visible,
.navbar:not(.nav-over-hero) .nav-link:hover,
.navbar:not(.nav-over-hero) .nav-link:focus-visible {
    color: var(--ink);
}

.navbar-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.navbar-actions .nav-cta {
    text-decoration: none;
    white-space: nowrap;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    transition: transform 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease;
}

.navbar-actions .nav-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.65);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
}

.navbar.is-scrolled .navbar-actions .nav-cta {
    border-color: transparent;
    background: var(--teal);
    box-shadow: 0 4px 16px rgba(13, 107, 99, 0.28);
}

.navbar.is-scrolled .navbar-actions .nav-cta:hover {
    background: var(--teal-hover);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (cinema) ---------- */
.hero {
    position: relative;
    overflow: clip;
}

.hero--cinema {
    min-height: 100svh;
    padding: calc(var(--nav-h) + 2.5rem) 1.35rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #050506;
    color: #e8e6e3;
}

.hero-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    animation: orbFloat 14s ease-in-out infinite alternate;
}

.hero-orb--a {
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    top: -12%;
    left: -8%;
    background: radial-gradient(circle at 30% 30%, #14b8a6, transparent 70%);
}

.hero-orb--b {
    width: min(45vw, 420px);
    height: min(45vw, 420px);
    bottom: 5%;
    right: -5%;
    background: radial-gradient(circle at 50% 50%, #6366f1, transparent 65%);
    animation-delay: -4s;
}

.hero-orb--c {
    width: min(35vw, 320px);
    height: min(35vw, 320px);
    top: 40%;
    left: 35%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.45), transparent 70%);
    animation-delay: -7s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, 3%) scale(1.06); }
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.5;
}

#three-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.42;
    pointer-events: none;
}

.hero-split {
    position: relative;
    z-index: 2;
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
    padding-bottom: clamp(5rem, 12vh, 7rem);
}

.hero-col--copy {
    padding-bottom: 0.5rem;
}

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(20, 184, 166, 0.95);
}

.hero-headline {
    margin: 0 0 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.35rem, 5.8vw, 4.1rem);
    letter-spacing: -0.055em;
    line-height: 1.02;
    color: #fafaf9;
}

.hl-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.hl-line__inner {
    display: block;
    will-change: transform;
}
.hl-line--accent .hl-line__inner {
    background: linear-gradient(105deg, #5eead4, #a5b4fc 55%, #fdba74);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hl-line--muted .hl-line__inner {
    color: rgba(250, 250, 249, 0.55);
    font-weight: 600;
}

.hero--cinema .hero-subtitle {
    margin: 0 0 2rem;
    font-size: clamp(1.05rem, 1.9vw, 1.2rem);
    line-height: 1.75;
    max-width: 38ch;
    color: rgba(232, 230, 227, 0.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero--cinema .primary-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 12px 40px rgba(13, 148, 136, 0.35);
}

.cta-shine {
    position: absolute;
    inset: 0;
    translate: -100% 0;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: ctaShine 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaShine {
    0%, 70% { translate: -100% 0; }
    85% { translate: 100% 0; }
    100% { translate: 100% 0; }
}

.hero--cinema .ghost-button {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

.hero--cinema .ghost-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.65rem;
}

.bento-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.1rem;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(94, 234, 212, 0.35);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.bento-card--wide {
    grid-column: span 2;
}

.bento-card--accent {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.25), rgba(99, 102, 241, 0.15));
    border-color: rgba(94, 234, 212, 0.25);
}

.bento-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.35rem;
}

.bento-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1.1;
}

.bento-value--lg {
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.bento-suffix {
    font-size: 0.55em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.1em;
}

.bento-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.bento-accent-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.bento-accent-sub {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.hero-marquee {
    position: relative;
    z-index: 2;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    padding: 0.85rem 0;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
}

.marquee-track span[aria-hidden="true"] {
    opacity: 0.35;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.scroll-indicator {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.25rem 0 1.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.scroll-line {
    width: 1px;
    height: 48px;
    margin: 0 auto 0.65rem;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    position: relative;
}

.scroll-line span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.65);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(38px); opacity: 0; }
}

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-bento {
        max-width: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-inner {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .marquee-track:last-child {
        display: none;
    }

    .cta-shine {
        display: none;
    }

    .hero-orb {
        animation: none;
    }
}

/* Mobile: lighter paint, no WebGL layer (see script.js) */
.is-mobile #three-container {
    display: none;
}

.is-mobile .hero-orb {
    animation: none;
    filter: blur(48px);
    opacity: 0.45;
}

.is-mobile .marquee-inner {
    animation-duration: 48s;
}

.is-mobile .cta-shine {
    display: none;
}

.is-mobile .magnetic-btn {
    will-change: auto;
}

.is-mobile .navbar.is-scrolled,
.is-mobile body.nav-open .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
}

.is-mobile .nav-center {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.is-mobile .ghost-button {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.is-mobile .team-row:hover .team-row-figure,
.is-mobile .team-row:hover .team-row-img,
.is-mobile .subject-band:hover,
.is-mobile .benefit-card:hover,
.is-mobile .subject-card:hover {
    transform: none;
    box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #fff;
    background: var(--teal);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(13, 107, 99, 0.28);
}

.primary-button:hover {
    background: var(--teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 107, 99, 0.32);
}

.secondary-button {
    color: var(--teal);
    background: var(--surface);
    border-color: var(--line-strong);
}

.secondary-button:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.ghost-button {
    color: var(--ink);
    background: transparent;
    border-color: var(--line-strong);
}

.ghost-button:hover {
    background: var(--surface);
    border-color: var(--ink-muted);
}

.cta-button.full-width {
    width: 100%;
}

/* ---------- Sections ---------- */
.section-container {
    max-width: var(--max);
    margin: 5.5rem auto;
    padding: 0 1.35rem;
}

.section-rail::before {
    display: none;
}

.section-header {
    max-width: 38rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.section-eyebrow {
    margin: 0 0 0.65rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
}

.section-lead {
    margin: 0;
    font-size: 1.08rem;
    color: var(--ink-muted);
}

.section-muted {
    background: var(--bg-elevated);
}

/* ---------- About (editorial) ---------- */
.about--editorial {
    padding: clamp(4.5rem, 11vw, 7rem) 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 45%, var(--bg));
    border-top: 1px solid var(--line);
    position: relative;
    overflow: clip;
}

.about--editorial::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(55%, 520px);
    height: 100%;
    background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(13, 107, 99, 0.06), transparent 72%);
    pointer-events: none;
}

.about-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.about-watermark {
    position: absolute;
    left: -0.08em;
    top: -0.35em;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(5.5rem, 18vw, 11rem);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: rgba(20, 19, 18, 0.04);
    pointer-events: none;
    user-select: none;
}

.about-intro-main {
    position: relative;
    padding-top: 0.5rem;
    max-width: 38rem;
}

.about-kicker {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
}

.about-headline {
    margin: 0 0 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
    color: var(--ink);
}

.about-lead {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--ink-muted);
    max-width: 40ch;
}

.about-aside {
    position: relative;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, #fafaf9, var(--surface));
    box-shadow: var(--shadow);
}

.about-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.about-mark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.about-pullquote {
    margin: 0 0 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--ink);
}

.about-pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.about-pills li {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: var(--teal);
    background: color-mix(in srgb, var(--teal) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
}

.about-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid var(--line);
}

.about-body-copy .about-h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.about-body-copy .about-h3 + p {
    margin-bottom: 1.35rem;
}

.about-body-copy p:last-child {
    margin-bottom: 0;
}

.about-credentials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.5rem 0 1.75rem;
}

.credential-card {
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.credential-card:hover {
    border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
    box-shadow: var(--shadow-hover);
}

.credential-icon {
    display: inline-flex;
    color: var(--teal);
    margin-bottom: 0.45rem;
}

.credential-card h4 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
}

.credential-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ---------- Team (editorial roster) ---------- */
.tutors {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.tutors.tutors--roster {
    position: relative;
    overflow: clip;
    background: var(--bg-elevated);
}

.section-container--team {
    max-width: min(var(--max), calc(100% - 2rem));
}

.section-header--team {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin-inline: auto;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
}

.section-header--team .section-lead {
    margin-top: 0.35rem;
}

.team-roster-note {
    margin: 1rem 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.team-roster {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin-inline: auto;
}

.team-roster > li {
    margin: 0;
    padding: 0;
}

.team-row {
    display: grid;
    grid-template-columns: min(34%, 272px) minmax(0, 1fr);
    grid-template-areas: "photo copy";
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
    padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
    border-bottom: 1px solid var(--line);
}

.team-roster > li:first-child .team-row {
    border-top: 1px solid var(--line);
}

.team-row--flip {
    grid-template-areas: "copy photo";
    grid-template-columns: minmax(0, 1fr) min(34%, 272px);
}

.team-row-photo {
    grid-area: photo;
    position: relative;
    justify-self: stretch;
    width: 100%;
}

.team-row-figure {
    margin: 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, color-mix(in srgb, var(--teal) 10%, var(--bg)), var(--bg));
    box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(20, 19, 18, 0.08);
    transition: box-shadow 0.4s var(--ease);
}

.team-row:hover .team-row-figure {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--teal) 25%, var(--line)), 0 22px 48px rgba(20, 19, 18, 0.11);
}

.team-row-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    transform: scale(1.01);
    transition: transform 0.55s var(--ease);
}

.team-row:hover .team-row-img {
    transform: scale(1.04);
}

.team-row-copy {
    grid-area: copy;
    min-width: 0;
    padding: 0.15rem 0;
    justify-self: start;
}

.team-row--flip .team-row-copy {
    justify-self: end;
}

.team-row-copy-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 36rem;
}

.team-row--flip .team-row-copy-inner {
    flex-direction: row-reverse;
    margin-left: auto;
    text-align: right;
}

.team-row-ix {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 2.75rem;
    margin-right: 1.1rem;
    padding-top: 0.15rem;
    border-right: 1px solid var(--line);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: rgba(20, 19, 18, 0.28);
}

.team-row--flip .team-row-ix {
    margin-right: 0;
    margin-left: 1.1rem;
    padding-top: 0.15rem;
    border-right: none;
    border-left: 1px solid var(--line);
}

.team-row-text {
    flex: 1;
    min-width: 0;
}

.team-row-role {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
}

.team-row-name {
    margin: 0 0 0.65rem;
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--ink);
}

.team-row-bio {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-muted);
}

/* ---------- Process ---------- */
.how-it-works {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
    background: var(--surface);
}

.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 720px;
    margin-inline: auto;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.15rem;
    align-items: center;
    padding: 1.2rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg);
}

.step-index {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--teal);
    opacity: 0.85;
}

.step-body h3 {
    margin: 0 0 0.3rem;
}

.step-body p {
    margin: 0;
    font-size: 0.98rem;
}

.step-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--teal);
    background: color-mix(in srgb, var(--teal) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
}

/* ---------- Subjects ---------- */
.subjects {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.subject-bands {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.subject-band {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
    padding: clamp(1.15rem, 2.5vw, 1.5rem) clamp(1.2rem, 2.8vw, 1.65rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 92%, var(--bg-elevated)) 100%);
    box-shadow: var(--shadow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.subject-band:hover {
    border-color: color-mix(in srgb, var(--teal) 24%, var(--line));
    box-shadow: var(--shadow-hover);
}

.subject-band-head {
    padding: 0.2rem 0 0 1rem;
    border-left: 3px solid var(--teal);
}

.subject-band-title {
    margin: 0 0 0.55rem;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2.1vw, 1.22rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--ink);
}

.subject-band-pill {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--teal) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
}

.subject-band-list {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.subject-band-list li {
    position: relative;
    padding: 0.15rem 0 0.15rem 1.05rem;
    font-size: 0.93rem;
    font-weight: 550;
    line-height: 1.45;
    color: var(--ink-muted);
}

.subject-band-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: var(--teal);
    opacity: 0.75;
}

@media (max-width: 640px) {
    .subject-band {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .subject-band-head {
        border-left: none;
        border-bottom: 1px solid var(--line);
        padding: 0 0 0.85rem;
    }
}

/* ---------- Benefits ---------- */
.why-improve {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
    background: var(--surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.benefit-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg);
    transition: border-color 0.2s ease, transform 0.2s var(--ease);
}

.benefit-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.benefit-icon {
    display: inline-flex;
    color: var(--teal);
    margin-bottom: 0.65rem;
}

.benefit-card h3 {
    margin: 0 0 0.4rem;
}

.benefit-card p {
    margin: 0;
    font-size: 0.97rem;
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.testimonial-card {
    margin: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.stars {
    color: #b45309;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
}

.testimonial-text {
    flex: 1;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    font-size: 0.95rem;
    line-height: 1.62;
    color: var(--ink-muted);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    background: var(--teal);
}

.author-name {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
}

.author-role {
    margin: 0;
    font-size: 0.82rem;
    color: var(--ink-muted);
}

/* ---------- Pricing ---------- */
.pricing {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: stretch;
    max-width: 880px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    padding: clamp(1.75rem, 4vw, 2.25rem);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pricing-card.primary {
    border-color: color-mix(in srgb, var(--teal) 28%, var(--line));
    background: linear-gradient(165deg, #fafcfb 0%, var(--surface) 55%);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: var(--teal);
    background: color-mix(in srgb, var(--teal) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
}

.pricing-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.currency {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ink-muted);
}

.amount {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.period {
    font-weight: 600;
    color: var(--ink-muted);
}

.pricing-description {
    margin: 0 0 1.25rem;
    font-size: 0.98rem;
}

.pricing-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.pricing-features li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.2rem;
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--ink-muted);
}

.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--teal);
}

.pricing-cta {
    width: 100%;
}

.pricing-aside {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--bg-elevated);
}

.pricing-aside h3 {
    margin: 0 0 0.45rem;
}

.pricing-aside p {
    margin: 0 0 1rem;
}

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

.aside-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.15rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.aside-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--rust);
}

/* ---------- FAQ ---------- */
.faq {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.faq-container {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--ink);
}

.faq-question:hover {
    background: var(--bg);
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--line);
    position: relative;
    flex-shrink: 0;
    background: var(--bg);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    background: var(--ink);
    border-radius: 99px;
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 1.1rem 1rem;
    border-top: 1px solid transparent;
}

.faq-item.is-open .faq-answer {
    border-top-color: var(--line);
}

.faq-answer p {
    margin: 0;
    font-size: 0.98rem;
}

/* ---------- Booking ---------- */
.booking {
    padding: clamp(4rem, 10vw, 6.5rem) 0;
    background: var(--surface);
}

.form-honey {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.booking-shell {
    max-width: 560px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: var(--bg);
    padding: clamp(1.35rem, 3vw, 1.85rem);
    box-shadow: var(--shadow);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.label-hint {
    font-weight: 500;
    color: var(--ink-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-group.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--teal);
}

/* Alternative contact block in booking section */
.contact-alternative {
    margin-top: 0.85rem;
    padding: 0.9rem;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 94%, transparent));
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.95rem;
    box-shadow: 0 8px 28px rgba(20, 19, 18, 0.04);
}

.contact-alternative strong {
    font-weight: 700;
    color: var(--ink);
}

.contact-alternative a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.contact-alternative a:hover {
    color: var(--teal-hover);
    text-decoration: underline;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 500;
    color: var(--ink-muted);
}

.form-note {
    margin: 0;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-muted);
}

/* ---------- Footer ---------- */
.footer {
    padding: clamp(3rem, 8vw, 4rem) 0 1.75rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
}

.footer-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.35rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 2.25rem);
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo--footer {
    color: #fff;
}

.logo--footer .logo-img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.footer-brand p {
    margin: 0.65rem 0 0;
    max-width: 38ch;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.62);
}

.footer-col h4 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li + li {
    margin-top: 0.45rem;
}

.footer-col a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
    color: #fff;
}

.footer-note {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-cta {
    display: inline-flex;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--ink);
    background: #74a7cc;
}

.footer-cta:hover {
    background: var(--bg);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.35rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* ---------- Motion ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.85s var(--ease) both;
}

.reveal-up {
    opacity: 0;
    transform: translateY(36px);
}

.reveal-up.in-view {
    opacity: 1;
    transform: none;
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-intro {
        grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
        gap: 1.75rem;
    }

    .about-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-credentials {
        max-width: 520px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: inline-flex;
    }

    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.65rem;
    }

    .nav-center {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--nav-h);
        z-index: 999;
        justify-self: stretch;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0.65rem 0.85rem 0.85rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        border-width: 0 0 1px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.25s ease, background 0.3s ease;
    }

    body.nav-open .nav-center {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .nav-link {
        padding: 0.75rem 0.85rem;
        border-radius: 12px;
    }

    .nav-link:hover {
        background: var(--bg);
    }

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

    .process-step {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .step-icon {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .section-header--team {
        margin-bottom: 1.75rem;
    }

    .team-roster-note {
        padding: 0 0.25rem;
    }

    .team-row,
    .team-row--flip {
        grid-template-columns: 1fr;
        grid-template-areas: "photo" "copy";
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .team-row-photo,
    .team-row--flip .team-row-photo {
        max-width: min(260px, 78vw);
        margin-inline: auto;
    }

    .team-row-copy,
    .team-row--flip .team-row-copy {
        justify-self: stretch;
    }

    .team-row-copy-inner,
    .team-row--flip .team-row-copy-inner {
        flex-direction: row;
        margin-left: 0;
        text-align: left;
        max-width: none;
    }

    .team-row-ix,
    .team-row--flip .team-row-ix {
        margin-right: 1rem;
        margin-left: 0;
        border-right: 1px solid var(--line);
        border-left: none;
        min-width: 2.5rem;
        font-size: 0.68rem;
        padding-top: 0.1rem;
    }

    .benefits-grid,
    .testimonials-track {
        grid-template-columns: 1fr;
    }

    .credentials-grid,
    .about-credentials {
        grid-template-columns: 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-body {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
    }
}

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