:root {
    --ink: #102235;
    --navy: #16233c;
    --slate: #37516d;
    --sky: #8dd8d7;
    --gold: #f1cf65;
    --amber: #d98a3d;
    --cream: #f7f0e4;
    --sand: #e7d3b1;
    --white: #fffdf8;
    --shadow: 0 30px 90px rgba(16, 34, 53, 0.14);
}

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

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(141, 216, 215, 0.38), transparent 26%),
        radial-gradient(circle at 85% 10%, rgba(241, 207, 101, 0.34), transparent 22%),
        linear-gradient(180deg, #fcf8f0 0%, #f4ebde 100%);
}

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

.team-page {
    overflow: hidden;
}

.team-hero,
.principles-section,
.leadership-section,
.staff-section,
.closing-banner {
    width: min(1180px, calc(100% - 2.4rem));
    margin: 0 auto;
}

.team-hero {
    padding: 1.5rem 0 4rem;
}

.topbar,
.topbar-links,
.hero-actions,
.principles-grid,
.closing-banner {
    display: flex;
}

.topbar {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
}

.topbar-links,
.hero-actions {
    flex-wrap: wrap;
    gap: 0.9rem;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(16, 34, 53, 0.12);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(22, 35, 60, 0.12);
    box-shadow: 0 15px 35px rgba(22, 35, 60, 0.18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand span,
.brand strong,
.eyebrow,
.cta-link,
.leader-accent,
.principle-card span {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand span,
.cta-link,
.principle-card span {
    font-size: 0.74rem;
}

.brand strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1rem;
}

.brand-iead {
    width: min(15rem, 45vw);
    max-width: 100%;
    margin-top: 0.45rem;
}

.cta-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 800;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 2.8rem;
    align-items: center;
}

.eyebrow,
.leader-accent {
    margin: 0 0 1rem;
    color: var(--amber);
    font-size: 0.76rem;
    font-weight: 800;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.95;
    color: var(--navy);
}

h1 {
    font-size: clamp(3.4rem, 7vw, 6.4rem);
    max-width: 10.5ch;
}

h2 {
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    max-width: 14ch;
}

h3 {
    font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.lead,
.section-note,
.principle-card p {
    font-size: 1rem;
    line-height: 1.8;
}

.lead {
    max-width: 58ch;
    margin: 1.5rem 0 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.button-primary {
    color: white;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.button-secondary {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(22, 35, 60, 0.12);
}

.hero-panel {
    position: relative;
    min-height: 38rem;
}

.hero-photo,
.hero-note,
.principle-card,
.leader-card,
.staff-card,
.closing-banner {
    box-shadow: var(--shadow);
}

.hero-photo {
    position: absolute;
    overflow: hidden;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(22, 35, 60, 0.08);
}

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

.hero-photo-large {
    inset: 0 3rem 6rem 0;
    transform: rotate(-3deg);
}

.hero-photo-small {
    right: 0;
    bottom: 0;
    width: 15rem;
    height: 14rem;
    transform: rotate(6deg);
}

.hero-note {
    position: absolute;
    left: 1rem;
    bottom: 1.4rem;
    width: min(20rem, calc(100% - 6rem));
    padding: 1.4rem;
    border-radius: 1.6rem;
    background: linear-gradient(145deg, rgba(22, 35, 60, 0.96), rgba(55, 81, 109, 0.92));
    color: white;
}

.hero-note span,
.staff-copy strong {
    display: block;
}

.hero-note span {
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-note p,
.closing-copy p {
    margin: 0;
    line-height: 1.7;
}

.principles-section,
.leadership-section,
.staff-section {
    padding: 1rem 0 4rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 2rem;
    align-items: end;
}

.section-note {
    margin: 0;
    color: var(--slate);
}

.principles-grid,
.leadership-grid,
.staff-grid {
    gap: 1.2rem;
}

.leadership-grid,
.staff-grid {
    display: grid;
    align-items: stretch;
}

.leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.support-grid {
    grid-template-columns: minmax(240px, 340px);
}

.principle-card,
.leader-card,
.staff-card {
    border-radius: 1.7rem;
}

.principle-card {
    flex: 1 1 240px;
    min-height: 220px;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 240, 228, 0.98));
    border: 1px solid rgba(22, 35, 60, 0.08);
}

.principle-card span {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--amber);
    font-weight: 800;
}

.principle-card p,
.staff-copy p {
    margin: 0;
}

.leader-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(22, 35, 60, 0.97), rgba(49, 76, 102, 0.95));
    color: white;
}

.leader-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

.leader-copy {
    flex: 1;
    padding: 1.5rem 1.6rem 1.7rem;
}

.leader-card h3,
.leader-card strong,
.leader-accent {
    color: white;
}

.leader-card strong,
.staff-copy strong {
    margin: 0.5rem 0 1rem;
    font-size: 0.96rem;
    letter-spacing: 0.04em;
}

.leader-copy strong {
    margin-bottom: 0;
}

.staff-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.9);
    border: 1px solid rgba(22, 35, 60, 0.08);
}

.staff-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(241, 207, 101, 0.34), rgba(141, 216, 215, 0.2));
}

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

.staff-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.25rem 1.35rem;
    text-align: center;
}

.staff-copy h3 {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
}

.staff-copy strong {
    margin: 0.4rem 0 0;
    color: var(--slate);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.closing-banner {
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(22, 35, 60, 0.96), rgba(217, 138, 61, 0.92));
    color: white;
}

.closing-banner .eyebrow,
.closing-banner h2 {
    color: white;
}

.closing-banner h2 {
    max-width: 12ch;
}

.site-footer {
    position: relative;
    margin-top: 2rem;
    padding: 0 0 2.4rem;
}

.footer-shell {
    width: min(1180px, calc(100% - 2.4rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.1fr) minmax(220px, 0.8fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 2rem;
    color: white;
    background:
        radial-gradient(circle at top left, rgba(241, 207, 101, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(141, 216, 215, 0.2), transparent 35%),
        linear-gradient(145deg, #0f1735, #0c6070);
    box-shadow: var(--shadow);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.footer-brand-mark {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand span,
.footer-brand strong,
.footer-meta {
    display: block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand span,
.footer-meta {
    font-size: 0.72rem;
}

.footer-brand strong {
    margin-top: 0.2rem;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.footer-brand-iead {
    width: min(15rem, 48vw);
    max-width: 100%;
    margin-top: 0.5rem;
}

.footer-copy {
    max-width: 34rem;
}

.footer-title,
.footer-meta {
    margin: 0;
}

.footer-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.footer-meta {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.74);
}

.footer-links {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.cta-link:hover,
.cta-link:focus-visible {
    color: var(--gold);
}

@media (max-width: 1024px) {
    .hero-grid,
    .section-heading.split,
    .closing-banner,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .closing-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, max-content));
        column-gap: 1.2rem;
    }
}

@media (max-width: 720px) {
    .team-hero,
    .principles-section,
    .leadership-section,
    .staff-section,
    .closing-banner,
    .footer-shell {
        width: min(1180px, calc(100% - 1.4rem));
    }

    .topbar {
        position: relative;
        align-items: center;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        flex-shrink: 0;
    }

    .topbar-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        z-index: 5;
        display: none;
        min-width: 220px;
        padding: 0.9rem;
        border-radius: 1.2rem;
        background: rgba(255, 252, 247, 0.96);
        box-shadow: 0 18px 40px rgba(16, 34, 53, 0.14);
        border: 1px solid rgba(16, 34, 53, 0.08);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    body.menu-open .topbar-links {
        display: flex;
    }

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

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

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

    .topbar-links .cta-link {
        font-size: 0.74rem;
    }

    .principles-grid {
        flex-direction: column;
    }

    .principle-card {
        flex: none;
        width: 100%;
        min-height: auto;
    }

    h1 {
        font-size: clamp(2.8rem, 14vw, 4.6rem);
    }

    h2 {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .hero-panel {
        min-height: 31rem;
    }

    .hero-photo-large {
        inset: 0 1rem 5rem 0;
    }

    .hero-photo-small {
        width: 10rem;
        height: 9rem;
    }

    .hero-note {
        width: min(16rem, calc(100% - 2rem));
        left: -0.5rem;
        bottom: -7rem;
    }

    .staff-copy {
        padding: 1rem 1rem 1.15rem;
    }

    .footer-shell {
        padding: 1.6rem;
    }

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