::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F8F4EE; }
::-webkit-scrollbar-thumb { background: #7A1F2B; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #56141D; }

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: #7A1F2B #F8F4EE; }
:root {
    --maroon: #6D1F2C;
    --maroon-dark: #45131b;
    --cream: #F7F2E8;
    --ink: #121212;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
}

/* Navigation */
.navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 0;
    box-shadow: none;
}

.nav-shell {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
    color: #fff;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(109, 31, 44, .18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.02rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.brand-copy small {
    font-size: .82rem;
    color: rgba(255, 255, 255, .82);
}

.nav-links-wrap {
    flex: 1;
    justify-content: center;
}

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

/* Navigation Links */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
    padding: 12px 18px;
    border-radius: 999px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .45);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
}

.nav-cta {
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--maroon);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .10);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    background: var(--maroon-dark);
    box-shadow: 0 18px 28px rgba(0, 0, 0, .14);
}

.menu-btn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-btn span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
}

.mobile-menu {
    display: block;
    padding: 0 1rem 1rem;
}

.mobile-menu-inner {
    background: rgba(247, 242, 232, .96);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .10);
    border: 0;
}

.mobile-link {
    color: var(--maroon);
    padding: 14px 16px;
    border-radius: 14px;
    transition: .25s;
    font-weight: 600;
    text-decoration: none;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.hero {
    position: relative;
    min-height: clamp(520px, 78vh, 760px);
    display: grid;
    align-items: end;
    padding: 7rem 1rem 3rem;
    margin: 0;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 320px;
    background: linear-gradient(180deg, rgba(53, 12, 18, 0), rgba(53, 12, 18, .86) 70%, rgba(53, 12, 18, 1));
    z-index: 0;
    pointer-events: none;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity .7s ease;
    will-change: opacity;
}

.hero-image.is-fading {
    opacity: 0;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 8, .24), rgba(8, 8, 8, .62)),
        linear-gradient(90deg, rgba(61, 18, 25, .38), rgba(61, 18, 25, .10));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 1.5rem;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 28px;
}

.hero-kicker {
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .78rem;
    font-weight: 700;
    opacity: .9;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: .95;
    letter-spacing: -.04em;
}

.hero-text {
    margin: 1rem 0 0;
    max-width: 58ch;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.hero-button:hover {
    transform: translateY(-1px);
}

.hero-button-primary {
    background: #fff;
    color: var(--maroon-dark);
    box-shadow: 0 16px 26px rgba(0, 0, 0, .18);
}

.hero-button-secondary {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .26);
}

.headmaster-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-top: 0;
    padding: 220px 1rem 6rem;
    background: #350c12;
    color: #fff;
}

.headmaster-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -220px;
    height: 220px;
    background: linear-gradient(180deg, rgba(53, 12, 18, 0), rgba(53, 12, 18, 1));
    pointer-events: none;
}

.headmaster-section-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, .75fr);
    gap: 2.5rem;
    align-items: center;
    align-items: stretch;
}

.headmaster-image-wrap {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .24);
    min-height: 100%;
    max-width: 420px;
    justify-self: end;
}

.headmaster-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.headmaster-content {
    max-width: 68ch;
    align-self: stretch;
}

.headmaster-kicker {
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .78rem;
    font-weight: 700;
    opacity: .88;
}

.headmaster-content h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.headmaster-content p {
    max-width: 62ch;
    margin: 1rem 0 0;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .9);
}

.headmaster-more {
    margin-top: 1rem;
}

.headmaster-more summary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    list-style: none;
    padding: .85rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 700;
    transition: background-color .25s ease, transform .25s ease;
    margin-top: .25rem;
}

.headmaster-more summary::-webkit-details-marker {
    display: none;
}

.headmaster-more summary:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.headmaster-more[open] summary {
    display: none;
}

.headmaster-more-content p:first-child {
    margin-top: 0;
}

.who-section {
    position: relative;
    padding: 5rem 1rem 6rem;
    background:
        radial-gradient(circle at top left, rgba(109, 31, 44, .10), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f7f1ea 100%);
}

.who-section-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
}

.who-copy {
    color: var(--maroon-dark);
}

.who-kicker {
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--maroon);
}

.who-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.who-copy p {
    max-width: 50ch;
    margin: 1rem 0 0;
    font-size: 1.04rem;
    line-height: 1.8;
    color: rgba(69, 19, 27, .84);
}

.hanging-carousel {
    position: relative;
    padding-top: 2rem;
}

.hanging-carousel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
    color: var(--maroon-dark);
    font-weight: 700;
}

.carousel-controls {
    display: inline-flex;
    gap: .5rem;
}

.carousel-control {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(109, 31, 44, .18);
    transition: transform .2s ease, background-color .2s ease;
}

.carousel-control:hover {
    transform: translateY(-1px);
    background: var(--maroon-dark);
}

.hanging-line {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 3.55rem;
    height: 3px;
    background: linear-gradient(90deg, rgba(69, 19, 27, .15), rgba(69, 19, 27, .75) 20%, rgba(69, 19, 27, .75) 80%, rgba(69, 19, 27, .15));
    border-radius: 999px;
}

.hanging-carousel-viewport {
    overflow: hidden;
    padding-top: 1rem;
}

.hanging-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform .55s ease;
    will-change: transform;
}

.hanging-card {
    flex: 0 0 100%;
    position: relative;
    padding-top: 1.35rem;
    transform-origin: top center;
}

.hanging-card::before,
.hanging-card::after {
    content: "";
    position: absolute;
    top: .2rem;
    width: 2px;
    height: 1.4rem;
    background: rgba(69, 19, 27, .55);
}

.hanging-card::before {
    left: 28%;
}

.hanging-card::after {
    right: 28%;
}

.hanging-clip {
    position: absolute;
    top: 0;
    left: 50%;
    width: 26px;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 7px 7px 8px 8px;
    background: linear-gradient(180deg, #f5e9d8, #d6b98f);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
}

.hanging-clip::before,
.hanging-clip::after {
    content: "";
    position: absolute;
    top: -10px;
    width: 2px;
    height: 12px;
    background: rgba(69, 19, 27, .8);
}

.hanging-clip::before {
    left: 5px;
    transform: rotate(-16deg);
}

.hanging-clip::after {
    right: 5px;
    transform: rotate(16deg);
}

.hanging-image-wrap {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 26px 45px rgba(69, 19, 27, .20);
    background: #fff;
}

.hanging-image {
    display: block;
    width: 100%;
    height: clamp(240px, 32vw, 360px);
    object-fit: cover;
}

.hanging-card-body {
    margin: 1rem auto 0;
    max-width: 90%;
    padding: 1rem 1.2rem 1.15rem;
    border-radius: 22px;
    background: #fff;
    color: var(--maroon-dark);
    box-shadow: 0 18px 35px rgba(69, 19, 27, .12);
    text-align: center;
}

.hanging-card-body h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -.02em;
}

.hanging-card-body p {
    margin: .45rem 0 0;
    font-size: .96rem;
    line-height: 1.6;
    color: rgba(69, 19, 27, .78);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(109, 31, 44, .28);
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, width .2s ease;
}

.carousel-dot.is-active {
    width: 30px;
    background: var(--maroon);
}

.carousel-dot:hover {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .hero {
        min-height: 560px;
        padding-top: 6.5rem;
    }

    .hero-content {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .headmaster-section {
        padding: 190px 1rem 5rem;
    }

    .headmaster-section::before {
        top: -190px;
        height: 190px;
    }

    .headmaster-section-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .headmaster-image-wrap {
        max-width: 100%;
        justify-self: stretch;
    }

    .headmaster-image {
        min-height: 300px;
        height: 100%;
    }

    .who-section {
        padding: 4rem 1rem 5rem;
    }

    .who-section-inner {
        grid-template-columns: 1fr;
    }

    .hanging-carousel-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .hanging-line {
        left: 1rem;
        right: 1rem;
    }

    .hanging-image {
        height: 280px;
    }
}


