:root {
    --tour-navy: #071c2f;
    --tour-navy-soft: #12314a;
    --tour-accent: #c9a45c;
    --tour-ivory: #f6f0e5;
    --tour-paper: #fffdf8;
    --tour-gold: #c7a45c;
    --tour-gold-light: #e3cb91;
    --tour-ink: #102333;
    --tour-muted: #60707b;
    --tour-line: rgba(16, 35, 51, .14);
}

.school-tour-page {
    background: var(--tour-paper);
    color: var(--tour-ink);
    overflow-x: hidden;
}

.school-tour-page .main-content {
    padding-top: 0;
}

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

.tour-eyebrow {
    margin: 0 0 16px;
    color: var(--tour-accent);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.tour-hero {
    position: relative;
    display: grid;
    min-height: 740px;
    min-height: min(880px, calc(100svh - 78px));
    isolation: isolate;
    overflow: hidden;
    background: var(--tour-navy);
}

.tour-hero__image,
.tour-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tour-hero__image {
    z-index: -3;
    object-fit: cover;
    object-position: center 52%;
    filter: saturate(.82) contrast(1.04);
    animation: tourOpening 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

.tour-hero__shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 16, 29, .96) 0%, rgba(3, 16, 29, .78) 43%, rgba(3, 16, 29, .32) 68%, rgba(3, 16, 29, .1) 84%),
        linear-gradient(0deg, rgba(3, 16, 29, .68), transparent 52%);
}

.tour-hero__portal {
    position: absolute;
    z-index: -1;
    top: 15%;
    right: 6vw;
    width: min(38vw, 540px);
    height: 70%;
    border: 1px solid rgba(227, 203, 145, .65);
    border-bottom: 0;
    border-radius: 48% 48% 0 0 / 23% 23% 0 0;
    box-shadow: inset 0 0 0 10px rgba(7, 28, 47, .08), 0 0 80px rgba(7, 28, 47, .2);
}

.tour-hero__content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    min-width: 0;
    max-width: calc(100% - 40px);
    align-self: center;
    padding-top: 120px;
    padding-bottom: 110px;
    color: #fff;
}

.tour-hero .tour-eyebrow {
    color: var(--tour-gold-light);
    text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

.tour-hero h1 {
    width: 100%;
    max-width: 760px;
    margin: 0;
    color: var(--tour-ivory);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(4rem, 9vw, 8.4rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .86;
    text-wrap: balance;
    text-shadow: 0 3px 22px rgba(0, 0, 0, .54);
}

.tour-hero h1 span,
.tour-hero h1 em {
    display: block;
}

.tour-hero h1 em {
    color: var(--tour-gold-light);
    font-weight: 400;
}

.tour-hero__lead {
    width: 100%;
    max-width: 590px;
    margin: 34px 0 0;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.75;
    overflow-wrap: break-word;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .64);
}

.tour-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.tour-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.tour-button:hover {
    transform: translateY(-2px);
}

.tour-button:focus-visible,
.tour-mosaic__item:focus-visible,
.tour-submit:focus-visible {
    outline: 3px solid var(--tour-gold-light);
    outline-offset: 4px;
}

.tour-button--gold {
    background: var(--tour-gold);
    color: var(--tour-navy);
}

.tour-button--quiet {
    border-color: rgba(255, 255, 255, .65);
    color: #fff;
}

.tour-button--quiet:hover {
    background: #fff;
    color: var(--tour-navy);
}

.tour-button--navy {
    background: var(--tour-navy);
    color: #fff;
}

.tour-trust {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    background: var(--tour-navy);
    color: #fff;
}

.tour-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-inline: 1px solid rgba(255, 255, 255, .12);
}

.tour-trust__grid > div {
    display: flex;
    min-height: 108px;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-inline-end: 1px solid rgba(255, 255, 255, .12);
}

.tour-trust__grid > div:last-child {
    border-inline-end: 0;
}

.tour-trust__grid i {
    color: var(--tour-gold-light);
    font-size: 1.3rem;
}

.tour-trust__grid span {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.45;
}

.tour-story {
    background:
        radial-gradient(circle at 10% 25%, rgba(199, 164, 92, .1), transparent 24rem),
        var(--tour-paper);
}

.tour-story__intro {
    max-width: 790px;
    padding-top: 120px;
    padding-bottom: 88px;
    text-align: center;
}

.tour-story__intro h2,
.tour-booking__intro h2 {
    margin: 0;
    color: var(--tour-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
}

.tour-story__intro > p:last-child {
    max-width: 650px;
    margin: 28px auto 0;
    color: var(--tour-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tour-chapter {
    position: relative;
    padding: 72px 0 120px;
}

.tour-chapter:nth-of-type(even) {
    background: var(--tour-ivory);
}

.tour-chapter__layout {
    display: grid;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.45fr);
    align-items: center;
    gap: clamp(50px, 8vw, 118px);
}

.tour-chapter--reverse .tour-chapter__copy {
    order: 2;
}

.tour-chapter--reverse .tour-mosaic,
.tour-chapter--reverse .tour-chapter__empty {
    order: 1;
}

.tour-chapter__copy {
    position: relative;
}

.tour-chapter__number {
    display: block;
    margin-bottom: -4px;
    color: rgba(199, 164, 92, .28);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 6rem;
    line-height: 1;
}

.tour-chapter__copy h2 {
    margin: 0;
    color: var(--tour-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.45rem, 4.5vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1;
}

.tour-chapter__copy > p:last-child {
    margin: 24px 0 0;
    color: var(--tour-muted);
    line-height: 1.8;
}

.tour-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(10, 44px);
    gap: 12px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.tour-mosaic.is-visible,
.no-js .tour-mosaic {
    opacity: 1;
    transform: none;
}

.tour-mosaic__item {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: var(--tour-navy);
    cursor: zoom-in;
}

.tour-mosaic__item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .32);
    pointer-events: none;
}

.tour-mosaic__item img {
    display: block;
    width: 100%;
    height: 100%;
    filter: saturate(.78) contrast(1.04);
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}

.tour-mosaic__item:hover img {
    opacity: .82;
    transform: scale(1.035);
}

.tour-mosaic__item span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: rgba(7, 28, 47, .86);
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.tour-mosaic__item:hover span,
.tour-mosaic__item:focus span {
    opacity: 1;
    transform: none;
}

.tour-mosaic__item--1 {
    grid-column: 1 / 8;
    grid-row: 1 / 8;
    border-radius: 46% 46% 2px 2px / 20% 20% 2px 2px;
}

.tour-mosaic__item--2 {
    grid-column: 8 / 13;
    grid-row: 1 / 5;
}

.tour-mosaic__item--3 {
    grid-column: 8 / 13;
    grid-row: 5 / 9;
}

.tour-mosaic__item--4 {
    grid-column: 2 / 7;
    grid-row: 8 / 11;
}

.tour-mosaic__item--5 {
    grid-column: 7 / 12;
    grid-row: 9 / 11;
}

.tour-chapter__empty,
.tour-notice {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border: 1px solid var(--tour-line);
    background: rgba(255, 255, 255, .52);
    color: var(--tour-muted);
    text-align: center;
}

.tour-chapter__empty {
    flex-direction: column;
}

.tour-chapter__empty i,
.tour-notice > i {
    color: var(--tour-gold);
    font-size: 2.4rem;
}

.tour-notice {
    max-width: 900px;
    margin-bottom: 100px;
    padding: 38px;
    text-align: start;
}

.tour-notice h2 {
    margin: 0 0 8px;
    color: var(--tour-navy);
    font-family: Georgia, 'Times New Roman', serif;
}

.tour-notice p {
    margin: 0;
}

.tour-notice__admin {
    margin-top: 14px !important;
    padding: 10px;
    background: #fff4db;
    color: #735214;
    font-family: monospace;
}

.tour-notice__call {
    margin-top: 18px;
}

.tour-booking {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: var(--tour-navy);
    color: #fff;
}

.tour-booking::before {
    content: '';
    position: absolute;
    top: -280px;
    left: -140px;
    width: 640px;
    height: 640px;
    border: 1px solid rgba(199, 164, 92, .28);
    border-radius: 50%;
}

.tour-booking__layout {
    position: relative;
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    align-items: start;
    gap: clamp(48px, 8vw, 110px);
}

.tour-booking__intro {
    position: sticky;
    top: 120px;
}

.tour-booking__intro .tour-eyebrow {
    color: var(--tour-gold-light);
}

.tour-booking__intro h2 {
    color: #fff;
}

.tour-booking__intro > p:not(.tour-eyebrow) {
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .74);
    line-height: 1.8;
}

.tour-booking__contact {
    display: grid;
    gap: 12px;
    margin-top: 38px;
}

.tour-booking__contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.tour-booking__contact i {
    width: 34px;
    color: var(--tour-gold-light);
}

.tour-form-card {
    padding: clamp(24px, 4vw, 54px);
    background: var(--tour-paper);
    color: var(--tour-ink);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .24);
}

.tour-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
}

.tour-form label {
    display: grid;
    gap: 8px;
}

.tour-form label > span {
    color: var(--tour-ink);
    font-size: .84rem;
    font-weight: 700;
}

.tour-form input,
.tour-form select,
.tour-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 13px;
    border: 1px solid #c7cfd4;
    border-radius: 0;
    background: #fff;
    color: var(--tour-ink);
    font: inherit;
    box-sizing: border-box;
}

.tour-form textarea {
    min-height: 112px;
    resize: vertical;
}

.tour-form input:focus,
.tour-form select:focus,
.tour-form textarea:focus {
    outline: 0;
    border-color: var(--tour-accent);
    box-shadow: 0 0 0 3px rgba(8, 120, 93, .14);
}

.tour-form__full {
    grid-column: 1 / -1;
}

.tour-consent {
    grid-template-columns: 22px 1fr !important;
    align-items: start;
    margin: 24px 0;
}

.tour-consent input {
    width: 20px;
    min-height: 20px;
    margin-top: 1px;
    accent-color: var(--tour-accent);
}

.tour-consent span {
    color: var(--tour-muted) !important;
    font-weight: 500 !important;
    line-height: 1.6;
}

.tour-submit {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: 0;
    background: var(--tour-navy);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.tour-submit:hover {
    background: var(--tour-navy-soft);
}

.tour-submit:disabled {
    cursor: wait;
    opacity: .7;
}

.tour-submit.is-loading i {
    animation: tourPulse .9s ease infinite alternate;
}

.tour-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.tour-errors {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-left: 4px solid #b42318;
    background: #fff1f0;
    color: #7a271a;
}

.tour-errors ul {
    margin: 8px 0 0;
    padding-inline-start: 20px;
}

.tour-success,
.tour-form-unavailable {
    padding: 25px 0;
    text-align: center;
}

.tour-form-unavailable .tour-button {
    margin-top: 18px;
}

.tour-success > i,
.tour-form-unavailable > i {
    display: grid;
    width: 74px;
    height: 74px;
    margin: 0 auto 25px;
    place-items: center;
    border: 1px solid var(--tour-gold);
    border-radius: 50%;
    color: var(--tour-accent);
    font-size: 1.7rem;
}

.tour-success h3,
.tour-form-unavailable h3 {
    margin: 0;
    color: var(--tour-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 400;
}

.tour-success > p:not(.tour-eyebrow),
.tour-form-unavailable p {
    color: var(--tour-muted);
}

.tour-reference {
    display: flex;
    max-width: 370px;
    align-items: center;
    justify-content: space-between;
    margin: 28px auto;
    padding: 14px 16px;
    border: 1px solid var(--tour-line);
    background: var(--tour-ivory);
}

.tour-reference span {
    color: var(--tour-muted);
    font-size: .8rem;
}

.tour-reference strong {
    color: var(--tour-navy);
    letter-spacing: .05em;
}

.tour-lightbox[hidden] {
    display: none;
}

.tour-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 60px 30px 30px;
    background: rgba(2, 12, 21, .96);
}

.tour-lightbox figure {
    max-width: min(1200px, 95vw);
    margin: 0;
}

.tour-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    margin: auto;
    object-fit: contain;
}

.tour-lightbox figcaption {
    max-width: 760px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, .82);
    text-align: center;
}

.tour-lightbox__close {
    position: absolute;
    top: 18px;
    right: 25px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.tour-lightbox-open {
    overflow: hidden;
}

/* Premium shared-shell finish, scoped to this page only. */
.school-tour-page .footer {
    padding: 82px 0 30px;
    border-top: 1px solid rgba(227, 203, 145, .22);
    background: #051827;
}

.school-tour-page .footer-content {
    align-items: start;
    gap: clamp(30px, 5vw, 70px);
}

.school-tour-page .footer-section h4 {
    margin-bottom: 20px;
    color: var(--tour-gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 400;
}

.school-tour-page .footer-section p,
.school-tour-page .footer-section a {
    color: rgba(255, 255, 255, .76);
    font-size: .91rem;
    line-height: 1.75;
}

.school-tour-page .footer-section li {
    margin-bottom: 10px;
}

.school-tour-page .footer-logo {
    height: 72px;
    margin-bottom: 18px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .2));
}

.school-tour-page .social-links {
    gap: 10px;
    margin-top: 22px;
}

.school-tour-page .social-links a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 0;
}

.school-tour-page .footer-bottom {
    margin-top: 52px;
    padding-top: 24px;
    border-top-color: rgba(255, 255, 255, .14);
}

@keyframes tourOpening {
    from { opacity: .4; transform: scale(1.055); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tourPulse {
    to { transform: translateX(6px); }
}

@media (max-width: 900px) {
    .tour-hero {
        min-height: 720px;
    }

    .tour-hero__content {
        padding-top: 80px;
    }

    .tour-chapter__layout,
    .tour-booking__layout {
        grid-template-columns: 1fr;
    }

    .tour-chapter--reverse .tour-chapter__copy,
    .tour-chapter--reverse .tour-mosaic,
    .tour-chapter--reverse .tour-chapter__empty {
        order: initial;
    }

    .tour-booking__intro {
        position: static;
    }
}

@media (max-width: 640px) {
    .tour-shell {
        width: min(100% - 28px, 1180px);
    }

    .tour-hero {
        min-height: 690px;
    }

    .tour-hero__shade {
        background:
            linear-gradient(0deg, rgba(3, 16, 29, .98) 0%, rgba(3, 16, 29, .9) 43%, rgba(3, 16, 29, .4) 78%, rgba(3, 16, 29, .16) 100%),
            linear-gradient(90deg, rgba(3, 16, 29, .34), transparent 70%);
    }

    .tour-hero__portal {
        top: 12%;
        right: 10%;
        width: 80%;
        height: 58%;
    }

    .tour-hero h1 {
        max-width: 100%;
        font-size: clamp(2.8rem, 13vw, 4rem);
        letter-spacing: -.045em;
        line-height: .96;
    }

    .tour-hero__content {
        align-self: end;
        width: min(100% - 28px, 1180px);
        max-width: calc(100% - 28px);
        padding: 82px 0 58px;
    }

    .tour-hero__actions {
        display: grid;
    }

    .tour-trust__grid {
        grid-template-columns: 1fr;
    }

    .tour-trust__grid > div {
        min-height: 74px;
        padding: 16px 18px;
        border-inline-end: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .tour-story__intro {
        padding-top: 82px;
        padding-bottom: 55px;
    }

    .tour-chapter {
        padding: 52px 0 76px;
    }

    .tour-chapter__layout {
        gap: 38px;
    }

    .tour-chapter__number {
        font-size: 4.8rem;
    }

    .tour-mosaic {
        grid-template-rows: repeat(10, 30px);
        gap: 7px;
    }

    .tour-mosaic__item span {
        opacity: 1;
        transform: none;
    }

    .tour-booking {
        padding: 80px 0;
    }

    .tour-booking__layout {
        gap: 42px;
    }

    .tour-form-card {
        margin-inline: -2px;
        padding: 26px 18px;
    }

    .tour-form__grid {
        grid-template-columns: 1fr;
    }

    .tour-form__full {
        grid-column: auto;
    }

    .tour-booking__contact a {
        overflow-wrap: anywhere;
    }

    .school-tour-page .footer {
        padding-top: 62px;
    }

    .school-tour-page .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 38px 24px;
    }

    .school-tour-page .footer-section:first-child,
    .school-tour-page .footer-section:last-child {
        grid-column: 1 / -1;
    }

    .school-tour-page .footer-section h4 {
        font-size: 1.12rem;
    }

    .school-tour-page .footer-section p,
    .school-tour-page .footer-section a {
        font-size: .95rem;
    }

    .school-tour-page .footer-section li {
        margin-bottom: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-hero__image,
    .tour-submit.is-loading i {
        animation: none;
    }

    .tour-mosaic {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tour-mosaic__item img,
    .tour-button {
        transition: none;
    }
}
