:root {
    --page-bg: #ebe6df;
    --page-bg-soft: #f8f3ec;
    --header-bg: #26231f;
    --header-border: #38312a;
    --text-light: #ffffff;
    --muted-light: #ddd6ca;
    --accent: #e48a32;
    --accent-deep: #b8661f;
    --accent-soft: rgba(228, 138, 50, 0.14);
    --search-bg: #f8f5f0;
    --search-text: #928978;
    --surface: rgba(255, 251, 246, 0.94);
    --surface-strong: #fffaf4;
    --surface-border: rgba(74, 54, 31, 0.12);
    --card-border: rgba(92, 70, 46, 0.13);
    --text-main: #221912;
    --text-body: #564b40;
    --text-muted: #7a6d60;
    --shadow-soft: 0 18px 40px rgba(38, 28, 20, 0.09);
    --shadow-strong: 0 26px 70px rgba(31, 22, 16, 0.12);
}

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

html,
body {
    overflow-x: hidden;
    overflow-y: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100svh;
    padding: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 30%),
        radial-gradient(circle at top right, rgba(228, 138, 50, 0.12), transparent 28%),
        linear-gradient(180deg, #f8f3ec 0%, #efe9e0 45%, #e8e1d8 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

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

a {
    overflow-wrap: anywhere;
}

.page-shell {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.page-shell.has-team-particles > :not(.team-particles) {
    position: relative;
    z-index: 1;
}

.page-shell.has-team-particles > .site-header {
    z-index: 1000;
}

.team-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.team-particles canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}

.team-particles * {
    pointer-events: none !important;
}

main {
    flex: 1;
    display: block;
}

.section-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px clamp(16px, 3vw, 22px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    color: var(--text-light);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-title,
.brand-tagline {
    margin: 0;
}

.brand-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.brand-accent {
    color: var(--accent);
}

.brand-tagline {
    margin-top: 3px;
    max-width: 240px;
    color: var(--muted-light);
    font-size: 0.64rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(14px, 2vw, 22px);
    flex-wrap: wrap;
    min-width: 0;
}

.site-nav a {
    color: var(--text-light);
    font-size: clamp(0.92rem, 1.3vw, 0.98rem);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

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

.site-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 12px;
    min-width: 0;
    overflow: visible;
    z-index: 100;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(240px, 100%);
    width: 100%;
    max-width: 280px;
    padding: 8px 14px;
    background: var(--search-bg);
    border-radius: 999px;
    flex: 1 1 220px;
}

.search-icon {
    width: 12px;
    height: 12px;
    border: 2px solid #b6ad9f;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: #b6ad9f;
    border-radius: 999px;
    transform: rotate(45deg);
    transform-origin: center;
}

.search-form input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--search-text);
    font: inherit;
    outline: none;
}

.search-form input::placeholder {
    color: var(--search-text);
}

.menu-button {
    display: grid;
    align-content: space-between;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 40px;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--text-light);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: min(220px, calc(100vw - 32px));
    max-height: min(320px, calc(100vh - 110px));
    overflow-y: auto;
    background-color: #1a1a1a;
    border: 1px solid rgba(228, 138, 50, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dropdown-content.active {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(228, 138, 50, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(228, 138, 50, 0.2);
    color: var(--accent);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(34px, 6vw, 82px) 0 clamp(54px, 8vw, 92px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 3vw, 30px);
}

.container > * {
    position: relative;
}

.section-kicker {
    margin: 0;
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.header,
.team-gallery,
.meet-team,
.team-member,
.staff-intro {
    border: 1px solid var(--surface-border);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.header {
    overflow: hidden;
    padding: clamp(28px, 4.8vw, 52px);
    background:
        radial-gradient(circle at top right, rgba(228, 138, 50, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(247, 239, 229, 0.96));
}

.header::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: clamp(180px, 30vw, 300px);
    height: clamp(180px, 30vw, 300px);
    background: radial-gradient(circle, rgba(228, 138, 50, 0.16), transparent 70%);
    transform: translate(-35%, 35%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
    margin-top: 16px;
}

.hero-copy,
.hero-highlights {
    min-width: 0;
}

.hero-copy h1,
.gallery-copy h2,
.meet-copy h2,
.team-member-heading h2,
.staff-intro h2,
.member-info h3,
.card-content h3 {
    font-family: Georgia, "Times New Roman", serif;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.35rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 10.5ch;
    overflow-wrap: anywhere;
}

.hero-lead {
    margin: 18px 0 0;
    max-width: 58ch;
    color: var(--text-body);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.8;
    overflow-wrap: break-word;
}

.hero-highlights {
    display: grid;
    align-content: center;
    gap: 14px;
}

.mascot-video-stage {
    width: 100%;
    aspect-ratio: 1 / 0.92;
    justify-self: center;
    display: grid;
    place-items: center;
    margin: -12px auto 4px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(178, 236, 239, 0.18);
    box-shadow: 0 18px 34px rgba(5, 22, 28, 0.18);
}

.mascot-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    filter: drop-shadow(0 16px 24px rgba(38, 28, 20, 0.12));
}

.hero-stat {
    padding: 18px 20px;
    border: 1px solid rgba(228, 138, 50, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.hero-stat strong {
    display: block;
    color: var(--text-main);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.1;
}

.hero-stat span {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.team-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: center;
    padding: clamp(22px, 3.6vw, 36px);
}

.gallery-copy {
    display: grid;
    gap: 14px;
}

.gallery-copy h2,
.meet-copy h2,
.team-member-heading h2,
.staff-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.gallery-copy p,
.meet-copy p,
.staff-intro p,
.member-info p {
    margin: 0;
    color: var(--text-body);
    font-size: clamp(0.98rem, 1.4vw, 1.02rem);
    line-height: 1.8;
}

.value-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.value-pill-row span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(228, 138, 50, 0.18);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(38, 28, 20, 0.06);
}

.gallery-container {
    position: relative;
    min-height: 100%;
}

.gallery-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(34, 25, 18, 0.84);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 16px 28px rgba(24, 17, 12, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    min-height: clamp(280px, 34vw, 420px);
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

.meet-team {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(20px, 3vw, 32px);
    padding: clamp(24px, 4vw, 38px);
    background:
        linear-gradient(135deg, rgba(255, 250, 244, 0.98), rgba(243, 233, 221, 0.94));
}

.meet-copy {
    display: grid;
    gap: 14px;
    align-content: start;
}

.team-principles {
    display: grid;
    gap: 14px;
}

.principle-card {
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(67, 49, 28, 0.1);
}

.principle-card h3 {
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 1.06rem;
}

.principle-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.team-member {
    padding: clamp(26px, 4vw, 38px);
    background:
        radial-gradient(circle at top left, rgba(228, 138, 50, 0.12), transparent 26%),
        linear-gradient(145deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 230, 0.95));
}

.team-member-heading {
    display: grid;
    gap: 12px;
    margin-bottom: clamp(18px, 3vw, 26px);
}

.member-header {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}

.member-photo {
    position: relative;
}

.member-photo::after {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border-radius: 26px;
    border: 1px solid rgba(228, 138, 50, 0.22);
    z-index: -1;
}

.member-photo img {
    width: 100%;
    aspect-ratio: 11 / 13;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

.member-info {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.member-info h3 {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    line-height: 1.02;
}

.member-info .title {
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.leader-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.leader-point {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(67, 49, 28, 0.09);
}

.leader-point span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.leader-point strong {
    display: block;
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.45;
}

.staff-intro {
    display: grid;
    gap: 14px;
    padding: clamp(24px, 4vw, 34px);
    background:
        linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(249, 243, 235, 0.96));
}

.staff-grid {
    counter-reset: team-card;
    display: grid;
    gap: clamp(16px, 2.6vw, 24px);
}

.staff-card {
    counter-increment: team-card;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(150px, 18vw, 190px);
    grid-template-areas: "content photo";
    align-items: stretch;
    border-radius: 28px;
    background: rgba(255, 251, 246, 0.9);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.staff-card::before {
    content: counter(team-card, decimal-leading-zero);
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 25, 18, 0.9);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(22, 16, 11, 0.14);
}

.staff-card:hover {
    transform: translateY(-6px);
    border-color: rgba(228, 138, 50, 0.24);
    box-shadow: 0 26px 54px rgba(31, 22, 16, 0.12);
}

.staff-card:nth-child(even) {
    grid-template-columns: clamp(150px, 18vw, 190px) minmax(0, 1fr);
    grid-template-areas: "photo content";
}

.card-content {
    grid-area: content;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: clamp(24px, 3vw, 30px) clamp(24px, 3vw, 30px) clamp(24px, 3vw, 30px) clamp(72px, 7vw, 86px);
    min-height: clamp(210px, 24vw, 260px);
}

.staff-card:nth-child(even) .card-content {
    padding: clamp(24px, 3vw, 30px) clamp(24px, 3vw, 30px) clamp(24px, 3vw, 30px) clamp(30px, 3vw, 34px);
}

.card-content h3 {
    font-size: clamp(1.26rem, 2vw, 1.65rem);
    line-height: 1.1;
}

.staff-role-label {
    margin: 0;
    color: var(--accent-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.role-desc {
    margin: 0;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.72;
    max-width: 62ch;
}

.card-image-container {
    grid-area: photo;
    position: relative;
    isolation: isolate;
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(180deg, #d6893f, #b56625);
}

.card-image-container::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    z-index: 1;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.staff-card:hover .card-image-container img {
    transform: scale(1.04);
    filter: saturate(1.06);
}

.site-footer {
    background: #26211d;
    color: #f4ede4;
}

.footer-shell {
    padding: 34px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 32px;
    align-items: start;
}

.footer-brand-block {
    max-width: 430px;
}

.footer-brand,
.footer-intro,
.footer-description,
.footer-bottom p,
.footer-links,
.footer-contact-list {
    margin: 0;
}

.footer-brand {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.footer-intro {
    margin-top: 8px;
    max-width: 300px;
    color: #d4c8bd;
    font-size: 0.98rem;
    line-height: 1.45;
}

.footer-description {
    margin-top: 14px;
    max-width: 360px;
    color: #bcae9f;
    font-size: 0.96rem;
    line-height: 1.6;
}

.footer-contact-list,
.footer-links {
    padding: 0;
    list-style: none;
}

.footer-contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e5dbd1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: #f0e7de;
    flex: 0 0 18px;
    margin-top: 2px;
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
}

.footer-contact-list a,
.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact-list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-contact-list a:hover,
.footer-links a:hover {
    color: var(--accent);
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #d0c2b5;
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    color: #bcae9f;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    flex-wrap: wrap;
}

.footer-legal-item {
    position: relative;
}

.footer-legal-label {
    display: inline-flex;
    align-items: center;
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d4c8bd;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-legal-label:focus {
    outline: 2px solid rgba(228, 138, 50, 0.7);
    outline-offset: 4px;
    border-radius: 6px;
}

.footer-legal-item:hover .footer-legal-label,
.footer-legal-item:focus-within .footer-legal-label {
    color: var(--accent);
}

.footer-legal-card {
    position: absolute;
    left: 0;
    bottom: calc(100% + 14px);
    width: min(320px, calc(100vw - 40px));
    padding: 14px 16px;
    background: #fff9f2;
    border: 1px solid rgba(72, 53, 31, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(12, 8, 5, 0.26);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.footer-legal-card::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 100%;
    width: 12px;
    height: 12px;
    background: #fff9f2;
    border-right: 1px solid rgba(72, 53, 31, 0.16);
    border-bottom: 1px solid rgba(72, 53, 31, 0.16);
    transform: rotate(45deg) translateY(-6px);
}

.footer-legal-item:hover .footer-legal-card,
.footer-legal-item:focus-within .footer-legal-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-legal-card strong {
    display: block;
    margin-bottom: 6px;
    color: #2b2018;
    font-size: 0.95rem;
}

.footer-legal-card p {
    margin: 0;
    color: #4f4135;
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

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

    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: center;
        gap: 14px 20px;
        padding-top: 2px;
    }

    .hero-grid,
    .team-gallery,
    .meet-team,
    .member-header {
        grid-template-columns: 1fr;
    }

    .hero-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .mascot-video-stage {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: -6px;
    }

    .gallery-container {
        order: -1;
    }

    .leader-points {
        grid-template-columns: 1fr;
    }

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

    .footer-brand-block {
        max-width: none;
        grid-column: 1 / -1;
    }

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

    .footer-legal {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 16px;
    }

    .brand,
    .site-nav,
    .header-actions {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 12px 18px;
    }

    .header-actions {
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-form {
        flex: 1 1 240px;
        min-width: 0;
        max-width: none;
    }

    .dropdown-content {
        min-width: min(220px, calc(100vw - 32px));
    }
}

@media (max-width: 768px) {
    .container {
        gap: 16px;
    }

    .header,
    .team-gallery,
    .meet-team,
    .team-member,
    .staff-intro {
        border-radius: 24px;
    }

    .staff-card,
    .staff-card:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "content";
    }

    .card-image-container {
        min-height: 260px;
    }

    .card-content,
    .staff-card:nth-child(even) .card-content {
        min-height: auto;
        padding: 74px 20px 22px;
    }

    .staff-card::before {
        top: 214px;
        left: 20px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .section-shell,
    .container {
        width: min(1180px, calc(100% - 24px));
    }

    .site-header {
        gap: 12px;
        padding: 14px 12px;
    }

    .brand {
        align-items: flex-start;
        gap: 10px;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    .brand-tagline {
        max-width: 170px;
        font-size: 0.54rem;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 10px 14px;
    }

    .site-nav a {
        font-size: 0.92rem;
    }

    .header-actions {
        align-items: stretch;
    }

    .search-form {
        order: 1;
        width: 100%;
    }

    .menu-button {
        order: 2;
        align-self: center;
        margin-left: auto;
    }

    .dropdown-content {
        top: calc(100% + 6px);
        width: min(260px, calc(100vw - 24px));
    }

    .container {
        padding-top: 26px;
        padding-bottom: 56px;
    }

    .header,
    .team-gallery,
    .meet-team,
    .team-member,
    .staff-intro {
        padding: 20px 16px;
        border-radius: 20px;
    }

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

    .mascot-video-stage {
        width: 100%;
        margin: -2px auto 0;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: clamp(1.72rem, 7.3vw, 2.05rem);
        line-height: 1.04;
        max-width: 11.5ch;
        overflow-wrap: anywhere;
    }

    .hero-lead {
        max-width: 31ch;
    }

    .gallery-copy h2,
    .meet-copy h2,
    .team-member-heading h2,
    .staff-intro h2 {
        font-size: clamp(1.56rem, 7vw, 2rem);
    }

    .gallery-image,
    .member-photo img {
        border-radius: 18px;
    }

    .member-photo::after {
        inset: 10px -10px -10px 10px;
        border-radius: 20px;
    }

    .card-image-container {
        min-height: 220px;
    }

    .staff-card::before {
        top: 176px;
    }

    .footer-shell {
        padding: 30px 0 20px;
    }

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

    .footer-brand {
        font-size: 1.7rem;
    }

    .footer-legal {
        gap: 16px;
    }

    .footer-legal-card {
        left: 50%;
        bottom: calc(100% + 12px);
        width: min(320px, calc(100vw - 32px));
        transform: translateX(-50%) translateY(10px);
    }

    .footer-legal-card::after {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }

    .footer-legal-item:hover .footer-legal-card,
    .footer-legal-item:focus-within .footer-legal-card {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 420px) {
    .brand-tagline {
        max-width: 170px;
        font-size: 0.54rem;
    }

    .container {
        gap: 14px;
    }

    .hero-stat,
    .principle-card,
    .leader-point {
        padding: 14px;
    }

    .staff-card::before {
        width: 38px;
        height: 38px;
        top: 168px;
        left: 16px;
        font-size: 0.76rem;
    }

    .card-content,
    .staff-card:nth-child(even) .card-content {
        padding: 66px 16px 18px;
    }

    .card-content h3 {
        font-size: 1.12rem;
    }

    .role-desc {
        font-size: 0.89rem;
        line-height: 1.62;
    }
}

/* Footer legal popovers must stay inside the viewport. */
.footer-legal,
.footer-legal-item {
    max-width: 100%;
    overflow: visible;
}

.footer-legal-card {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
}

.footer-legal-item:last-child .footer-legal-card {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.footer-legal-item:last-child .footer-legal-card::after {
    left: auto;
    right: 28px;
}

.footer-legal-item:last-child:hover .footer-legal-card,
.footer-legal-item:last-child:focus-within .footer-legal-card {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .footer-bottom {
        align-items: stretch;
    }

    .footer-legal {
        position: relative;
        width: 100%;
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .footer-legal-item {
        position: static;
    }

    .footer-legal-label {
        white-space: normal;
    }

    .footer-legal-card {
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 32px));
        transform: translateY(10px);
    }

    .footer-legal-card::after {
        left: 24px;
        right: auto;
        transform: rotate(45deg) translateY(-6px);
    }

    .footer-legal-item:hover .footer-legal-card,
    .footer-legal-item:focus-within .footer-legal-card {
        transform: translateY(0);
    }

    .footer-legal-item:last-child .footer-legal-card {
        left: auto;
        right: 0;
        transform: translateY(10px);
    }

    .footer-legal-item:last-child .footer-legal-card::after {
        left: auto;
        right: 28px;
        transform: rotate(45deg) translateY(-6px);
    }

    .footer-legal-item:last-child:hover .footer-legal-card,
    .footer-legal-item:last-child:focus-within .footer-legal-card {
        transform: translateY(0);
    }
}
