
/* ================================================================
   GITARAM ACADEMY — IMPERIAL GARNET DIGITAL IDENTITY
   Primary: #751C3A | Typeface: Instrument Sans
   Designed: August 2026
   ================================================================ */

:root {
    --gra-garnet: #751C3A;
    --gra-garnet-deep: #431022;
    --gra-garnet-dark: #290812;
    --gra-garnet-soft: #9A3657;
    --gra-rose: #F2E7EB;
    --gra-ivory: #F7F3EE;
    --gra-paper: #FCFAF7;
    --gra-white: #FFFFFF;
    --gra-ink: #171214;
    --gra-muted: #72666A;
    --gra-line: rgba(60, 20, 33, .16);
    --gra-line-light: rgba(255,255,255,.25);
    --gra-header-h: 92px;
    --gra-max: 1440px;
    --gra-gutter: clamp(22px, 4vw, 72px);
    --gra-ease: cubic-bezier(.2,.75,.2,1);
    --gra-spring: cubic-bezier(.17,.89,.32,1.28);
    --gra-shadow: 0 24px 80px rgba(53, 9, 25, .12);
}

html { scroll-behavior: smooth; }
body {
    margin: 0 !important;
    overflow-x: hidden;
    background: var(--gra-paper);
    color: var(--gra-ink);
    font-family: "Instrument Sans", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.gra-menu-open,
body.gra-sheet-open { overflow: hidden; }
* { box-sizing: border-box; }
::selection { background: var(--gra-garnet); color: #fff; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.site-shell { overflow: clip; }
.site-container {
    width: min(var(--gra-max), calc(100% - (var(--gra-gutter) * 2))) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}
.skip-link {
    position: fixed; left: 18px; top: -80px; z-index: 99999;
    padding: 12px 18px; background: #fff; color: var(--gra-garnet);
    transition: top .2s ease;
}
.skip-link:focus { top: 18px; }
.gra-overline,
.eyebrow {
    margin: 0 0 18px;
    color: var(--gra-garnet);
    font-family: "Instrument Sans", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: .17em !important;
    text-transform: uppercase;
}
.gra-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
    align-items: end;
    gap: clamp(35px, 8vw, 130px);
    margin-bottom: clamp(48px, 7vw, 96px);
}
.gra-section-head h2,
.gra-stat-intro h2,
.gra-chairman-copy h2,
.gra-admission-cta h2 {
    margin: 0;
    color: var(--gra-ink);
    font-family: "Instrument Sans", Arial, sans-serif !important;
    font-size: clamp(42px, 5vw, 78px) !important;
    font-weight: 500 !important;
    line-height: .98 !important;
    letter-spacing: -.055em !important;
}
.gra-section-head > p,
.gra-section-head > a {
    align-self: end;
}
.gra-section-head > p {
    margin: 0;
    color: var(--gra-muted);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.65;
}
.gra-section-head--inverse h2,
.gra-section-head--inverse .gra-overline,
.gra-section-head--inverse > p { color: #fff; }
.gra-section-head--inverse > p { opacity: .72; }

.gra-arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-width: 220px;
    padding: 13px 0;
    border-bottom: 1px solid currentColor;
    color: var(--gra-garnet);
    font-size: 14px;
    font-weight: 600;
    transition: gap .4s var(--gra-ease), color .3s ease;
}
.gra-arrow-link i { transition: transform .4s var(--gra-ease); }
.gra-arrow-link:hover { color: var(--gra-garnet-dark); gap: 36px; }
.gra-arrow-link:hover i { transform: translateX(5px); }
.gra-arrow-link--light { color: #fff; }
.gra-arrow-link--light:hover { color: #fff; }
.gra-text-link {
    color: #fff; font-size: 14px; font-weight: 600;
    text-decoration: underline; text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

/* progress */
.gra-progress {
    position: fixed; inset: 0 0 auto; z-index: 10050; height: 2px;
    pointer-events: none;
}
.gra-progress span {
    display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left;
    background: #fff;
}
.is-inner .gra-progress span { background: var(--gra-garnet); }

/* ================================================================
   V18 — SCHOOL TOUR TEXT OVERLAP FIX
   ================================================================ */

.gra-pathway-stage--aligned .gra-pathway-tour {
    position: relative !important;
    overflow: hidden !important;
}


/* Main text container */
.gra-pathway-stage--aligned .gra-pathway-tour-copy {
    position: absolute !important;

    left: 22px !important;
    right: 72px !important;
    bottom: 20px !important;

    z-index: 4 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* EXPLORE OUR CAMPUS */
.gra-pathway-stage--aligned
.gra-pathway-tour-copy > small {

    position: static !important;

    display: block !important;

    margin: 0 0 12px !important;
    padding: 0 !important;

    color: rgba(255,255,255,.78) !important;

    font-size: 9px !important;
    font-weight: 650 !important;

    line-height: 1.2 !important;

    letter-spacing: .11em !important;
    text-transform: uppercase !important;
}


/* SCHOOL + TOUR wrapper */
.gra-pathway-stage--aligned
.gra-pathway-tour-title {

    display: flex !important;
    flex-direction: column !important;

    align-items: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1 !important;
}


/* SCHOOL */
.gra-pathway-stage--aligned
.gra-pathway-tour-title span {

    position: static !important;

    display: block !important;

    margin: 0 0 3px !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-family: "Instrument Sans", Arial, sans-serif !important;

    font-size: clamp(27px, 2.8vw, 40px) !important;
    font-weight: 400 !important;

    line-height: .92 !important;

    letter-spacing: -.055em !important;
}


/* TOUR */
.gra-pathway-stage--aligned
.gra-pathway-tour-title strong {

    position: static !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-family: "Instrument Sans", Arial, sans-serif !important;

    font-size: clamp(46px, 4.7vw, 64px) !important;
    font-weight: 650 !important;

    line-height: .82 !important;

    letter-spacing: -.068em !important;
}


/* Arrow button */
.gra-pathway-stage--aligned
.gra-pathway-tour > i {

    position: absolute !important;

    right: 15px !important;
    bottom: 15px !important;

    z-index: 5 !important;
}


/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 1024px) {

    .gra-pathway-stage--aligned
    .gra-pathway-tour-copy {

        left: 19px !important;
        right: 66px !important;
        bottom: 18px !important;
    }


    .gra-pathway-stage--aligned
    .gra-pathway-tour-title span {

        font-size: 30px !important;
    }


    .gra-pathway-stage--aligned
    .gra-pathway-tour-title strong {

        font-size: 50px !important;
    }

}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 767px) {

    .gra-pathway-stage--aligned
    .gra-pathway-tour {

        min-height: 220px !important;
    }


    .gra-pathway-stage--aligned
    .gra-pathway-tour-copy {

        left: 18px !important;
        right: 68px !important;
        bottom: 18px !important;
    }


    .gra-pathway-stage--aligned
    .gra-pathway-tour-copy > small {

        margin-bottom: 9px !important;

        font-size: 8px !important;
    }


    .gra-pathway-stage--aligned
    .gra-pathway-tour-title span {

        font-size: 28px !important;
    }


    .gra-pathway-stage--aligned
    .gra-pathway-tour-title strong {

        font-size: 47px !important;
    }


    .gra-pathway-stage--aligned
    .gra-pathway-tour > i {

        right: 14px !important;
        bottom: 14px !important;
    }

}

/* ================================================================
   DESKTOP HEADER / MEGA MENU
   ================================================================ */
.gra-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: var(--gra-header-h);
    color: #fff;
    transition: height .45s var(--gra-ease), background .4s ease, color .4s ease, box-shadow .4s ease;
}
.gra-header::after {
    content: ""; position: absolute; inset: auto 0 0; height: 1px;
    background: rgba(255,255,255,.28);
    transition: background .4s ease;
}
.is-inner .gra-header,
.gra-header.is-scrolled {
    height: 78px;
    background: rgba(252,250,247,.96);
    color: var(--gra-ink);
    box-shadow: 0 10px 40px rgba(37, 7, 17, .07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.is-inner .gra-header::after,
.gra-header.is-scrolled::after { background: var(--gra-line); }
.gra-header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(var(--gra-max), calc(100% - (var(--gra-gutter) * 2)));
    height: 100%;
    margin-inline: auto;
}
.gra-desktop-nav { display: flex; align-items: center; gap: clamp(22px, 2.7vw, 46px); }
.gra-desktop-nav--left { justify-content: flex-start; }
.gra-desktop-nav--right { justify-content: flex-end; }
.gra-nav-link,
.gra-nav-trigger {
    position: relative;
    padding: 10px 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.gra-nav-link::after,
.gra-nav-trigger::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px;
    background: currentColor;
    transition: right .35s var(--gra-ease);
}
.gra-nav-link:hover::after,
.gra-nav-trigger:hover::after,
.gra-nav-link.is-active::after,
.gra-nav-item.is-active .gra-nav-trigger::after { right: 0; }
.gra-brand {
    align-self: start;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 118px;
    margin-top: 0;
    padding: 12px 20px 13px;
    background: var(--gra-paper);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 12px 40px rgba(41, 8, 18, .12);
    transition: height .45s var(--gra-ease), width .45s var(--gra-ease), padding .45s var(--gra-ease);
}
.gra-brand-mark { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; }
.gra-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.gra-brand-wordmark { width: 106px; max-height: 31px; margin-top: 6px; object-fit: contain; }
.is-inner .gra-brand,
.gra-header.is-scrolled .gra-brand { width: 126px; height: 86px; padding: 8px 16px; }
.is-inner .gra-brand-mark,
.gra-header.is-scrolled .gra-brand-mark { width: 40px; height: 40px; }
.is-inner .gra-brand-wordmark,
.gra-header.is-scrolled .gra-brand-wordmark { width: 88px; margin-top: 3px; }

.gra-mega[hidden] { display: none; }
.gra-mega { position: fixed; inset: 0; z-index: 950; padding-top: 0; }
.gra-mega-backdrop { position: absolute; inset: 0; background: rgba(17, 7, 10, .55); backdrop-filter: blur(4px); }
.gra-mega-panel {
    position: relative;
    margin-top: 0;
    min-height: 520px;
    padding: 30px max(var(--gra-gutter), calc((100vw - var(--gra-max))/2 + var(--gra-gutter))) 36px;
    background: var(--gra-paper);
    color: var(--gra-ink);
    transform: translateY(-100%);
    transition: transform .65s var(--gra-ease);
}
.gra-mega.is-open .gra-mega-panel { transform: translateY(0); }
.gra-mega-topline {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--gra-line);
    color: var(--gra-muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.gra-mega-topline button { border: 0; background: none; color: var(--gra-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.gra-mega-topline i { margin-left: 9px; }
.gra-mega-view {
    display: grid;
    grid-template-columns: minmax(240px,.72fr) minmax(330px,1.35fr) minmax(280px,.8fr);
    gap: clamp(42px, 6vw, 90px);
    align-items: start;
}
.gra-mega-view[hidden] { display: none; }
.gra-mega-intro > span { color: var(--gra-garnet); font-size: 12px; font-weight: 600; }
.gra-mega-intro h2 { margin: 12px 0 18px; color: var(--gra-garnet); font-size: clamp(42px,4.5vw,68px); font-weight: 500; letter-spacing: -.055em; }
.gra-mega-intro p { max-width: 340px; margin: 0; color: var(--gra-muted); font-size: 15px; line-height: 1.7; }
.gra-mega-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 34px; }
.gra-mega-links a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; border-bottom: 1px solid var(--gra-line);
    font-size: 15px; font-weight: 500;
    transition: color .25s ease, padding-left .3s var(--gra-ease);
}
.gra-mega-links a i { color: var(--gra-garnet); font-size: 11px; opacity: 0; transform: translateX(-8px); transition: .3s var(--gra-ease); }
.gra-mega-links a:hover { color: var(--gra-garnet); padding-left: 8px; }
.gra-mega-links a:hover i { opacity: 1; transform: translateX(0); }
.gra-mega-links--compact a { min-height: 40px; font-size: 14px; }
.gra-mega-image { position: relative; display: block; height: 230px; overflow: hidden; }
.gra-mega-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 40%,rgba(26,7,14,.7)); }
.gra-mega-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--gra-ease); }
.gra-mega-image span { position: absolute; z-index: 2; left: 20px; bottom: 17px; color: #fff; font-size: 14px; font-weight: 600; }
.gra-mega-image:hover img { transform: scale(1.05); }
.gra-mega-footer { display: flex; gap: 34px; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gra-line); color: var(--gra-muted); font-size: 12px; }
.gra-mega-footer a { display: inline-flex; align-items: center; gap: 8px; }

.gra-enquire-rail {
    position: fixed; z-index: 900; right: 0; top: 50%;
    display: flex; align-items: center; gap: 12px;
    padding: 16px 13px 16px 16px;
    background: var(--gra-garnet); color: #fff;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    transition: background .3s ease, padding .3s var(--gra-ease);
}
.gra-enquire-rail i { transform: rotate(45deg); }
.gra-enquire-rail:hover { background: var(--gra-garnet-deep); padding-right: 18px; }

/* ================================================================
   HOME HERO
   ================================================================ */
.gra-home-hero {
    position: relative;
    min-height: 100svh;
    background: var(--gra-garnet-dark);
    color: #fff;
    isolation: isolate;
}
.gra-home-media,
.gra-home-media video,
.gra-hero-slides,
.gra-hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.gra-home-media video,
.gra-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.gra-hero-slide { margin: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6.5s linear; }
.gra-hero-slide.is-active { opacity: 1; transform: scale(1); }
.gra-home-shade {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(21,5,11,.82) 0%, rgba(24,6,12,.42) 43%, rgba(24,6,12,.22) 68%, rgba(24,6,12,.52) 100%),
        linear-gradient(0deg, rgba(21,5,11,.56) 0%, transparent 45%);
}
.gra-home-grid,
.gra-page-hero-grid {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 25% 100%, 25% 100%;
    mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.6) 24%, rgba(0,0,0,.4) 75%, transparent);
    opacity: .38;
}
.gra-home-hero-copy {
    position: relative; z-index: 3;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 100svh;
    padding-top: calc(var(--gra-header-h) + 90px) !important;
    padding-bottom: clamp(90px, 10vh, 130px) !important;
}
.gra-home-hero-copy .gra-overline { color: #fff; opacity: .82; }
.gra-home-hero-copy h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(58px, 8.2vw, 132px) !important;
    font-weight: 500 !important;
    line-height: .86 !important;
    letter-spacing: -.065em !important;
    text-wrap: balance;
}
.gra-home-hero-copy h1 em { display: block; font-style: normal; color: #fff; }
.gra-home-hero-copy > p:not(.gra-overline) {
    max-width: 620px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(16px,1.45vw,20px);
    line-height: 1.65;
}
.gra-hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 34px; }
.gra-hero-status {
    position: absolute; z-index: 3; right: var(--gra-gutter); bottom: 46px;
    display: flex; align-items: center; gap: 15px;
    font-size: 11px; font-weight: 600; letter-spacing: .12em;
}
.gra-hero-status i { width: 64px; height: 1px; background: rgba(255,255,255,.5); }
.gra-hero-scroll {
    position: absolute; z-index: 3; left: 50%; bottom: 26px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(255,255,255,.8); font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
    transform: translateX(-50%);
}
.gra-hero-scroll i { position: relative; width: 1px; height: 40px; overflow: hidden; background: rgba(255,255,255,.25); }
.gra-hero-scroll i::after { content: ""; position: absolute; inset: -100% 0 auto; height: 100%; background: #fff; animation: graScrollLine 2s ease-in-out infinite; }
@keyframes graScrollLine { 0%{transform:translateY(0)} 100%{transform:translateY(200%)} }

.gra-notice-line { background: var(--gra-garnet); color: #fff; }
.gra-notice-line .site-container { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 24px; min-height: 60px; }
.gra-notice-tag { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.gra-notice-line p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; opacity: .85; }
.gra-notice-line a { font-size: 12px; font-weight: 600; }
.gra-notice-line a i { margin-left: 8px; }

.gra-announcements { padding: 42px 0; background: var(--gra-rose); }
.gra-announcements article { display: grid; grid-template-columns: minmax(180px,300px) 1fr; gap: 40px; align-items: center; }
.gra-announcements article + article { margin-top: 28px; }
.gra-announcements img { width: 100%; height: 220px; object-fit: cover; }
.gra-announcements h2 { margin: 0 0 12px; font-size: clamp(28px,3vw,42px); font-weight: 500; letter-spacing: -.04em; }
.gra-announcements p { max-width: 760px; color: var(--gra-muted); line-height: 1.7; }

/* academic cards */
.gra-academics { padding: clamp(100px, 12vw, 185px) 0; background: var(--gra-paper); }
.gra-academic-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(12px,1.5vw,24px); }
.gra-academic-card { display: block; min-width: 0; }
.gra-academic-card figure { position: relative; height: clamp(280px,34vw,520px); margin: 0; overflow: hidden; background: var(--gra-rose); }
.gra-academic-card figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 60%,rgba(34,8,17,.12)); }
.gra-academic-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .9s var(--gra-ease), filter .6s ease; }
.gra-academic-card > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 70px; border-bottom: 1px solid var(--gra-line); }
.gra-academic-card span { color: var(--gra-muted); font-size: 11px; }
.gra-academic-card h3 { margin: 0; font-size: clamp(17px,1.6vw,24px); font-weight: 500; letter-spacing: -.025em; }
.gra-academic-card i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gra-line); border-radius: 50%; color: var(--gra-garnet); font-size: 11px; transition: .35s var(--gra-ease); }
.gra-academic-card:hover img { transform: scale(1.035); filter: saturate(1); }
.gra-academic-card:hover i { background: var(--gra-garnet); border-color: var(--gra-garnet); color: #fff; transform: rotate(-35deg); }

/* pathways */
.gra-pathways { position: relative; overflow: hidden; padding: clamp(105px,12vw,180px) 0; background: var(--gra-garnet-deep); color: #fff; }
.gra-pathways::before { content: ""; position: absolute; width: 700px; height: 700px; right: -320px; top: 10%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.gra-pathways-word { position: absolute; left: -20px; bottom: -35px; color: rgba(255,255,255,.028); font-size: clamp(150px,26vw,390px); font-weight: 700; line-height: .8; letter-spacing: -.08em; }
.gra-pathway-stage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12,1fr);
    grid-template-rows: repeat(3,minmax(150px,auto));
    gap: clamp(12px,1.5vw,22px);
    min-height: 660px;
}
.gra-pathway-tile,
.gra-pathway-tour {
    position: relative; z-index: 2; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(20px,2.2vw,34px);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    transition: background .4s ease, color .4s ease, transform .5s var(--gra-ease), border-color .4s ease;
}
.gra-pathway-tile::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--gra-paper); transform: translateY(101%); transition: transform .55s var(--gra-ease);
}
.gra-pathway-tile > span { font-size: 11px; opacity: .62; }
.gra-pathway-tile strong { max-width: 90%; font-size: clamp(22px,2.1vw,34px); font-weight: 500; line-height: 1.03; letter-spacing: -.04em; }
.gra-pathway-tile small { font-size: 11px; opacity: .65; letter-spacing: .06em; text-transform: uppercase; }
.gra-pathway-tile:hover { color: var(--gra-garnet-deep); border-color: var(--gra-paper); }
.gra-pathway-tile:hover::before { transform: translateY(0); }
.gra-pathway-tile--facilities { grid-column: 1 / span 3; grid-row: 1 / span 2; }
.gra-pathway-tile--alumni { grid-column: 4 / span 3; grid-row: 1; }
.gra-pathway-tile--achievement { grid-column: 9 / span 4; grid-row: 1; }
.gra-pathway-tile--experience { grid-column: 1 / span 4; grid-row: 3; }
.gra-pathway-tile--safety { grid-column: 5 / span 3; grid-row: 3; }
.gra-pathway-tile--holistic { grid-column: 8 / span 5; grid-row: 2 / span 2; }
.gra-pathway-tour {
    grid-column: 4 / span 5; grid-row: 2;
    flex-direction: row; align-items: center; justify-content: center; gap: 8px;
    background: var(--gra-paper); color: var(--gra-garnet);
    border-color: var(--gra-paper);
}
.gra-pathway-tour > span:not(.gra-pathway-tour-ring) { font-size: clamp(24px,3vw,48px); font-weight: 400; }
.gra-pathway-tour strong { font-size: clamp(34px,4.8vw,74px); font-weight: 600; letter-spacing: -.06em; }
.gra-pathway-tour i { margin-left: 14px; font-size: 18px; transform: rotate(-35deg); transition: transform .4s var(--gra-ease); }
.gra-pathway-tour-ring { position: absolute; width: 125px; height: 125px; border: 1px solid rgba(117,28,58,.25); border-radius: 50%; transition: transform .8s var(--gra-ease); }
.gra-pathway-tour:hover .gra-pathway-tour-ring { transform: scale(2.6); }
.gra-pathway-tour:hover i { transform: translateX(8px) rotate(0); }

/* stats */
.gra-stat-story { padding: clamp(95px,11vw,165px) 0; background: var(--gra-ivory); }
.gra-stat-story-grid { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: clamp(60px,10vw,150px); }
.gra-stat-intro { position: sticky; top: 150px; align-self: start; }
.gra-stat-intro h2 { font-size: clamp(44px,5vw,72px) !important; }
.gra-stat-intro .gra-arrow-link { margin-top: 34px; }
.gra-stat-list { border-top: 1px solid var(--gra-line); }
.gra-stat { display: grid; grid-template-columns: minmax(130px,.55fr) 1fr; align-items: baseline; gap: 30px; padding: clamp(24px,3.2vw,48px) 0; border-bottom: 1px solid var(--gra-line); }
.gra-stat strong { color: var(--gra-garnet); font-size: clamp(50px,6vw,92px); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.gra-stat span { color: var(--gra-muted); font-size: 14px; }

/* achievements */
.gra-achievements { padding: clamp(100px,12vw,180px) 0; background: var(--gra-paper); }
.gra-achievement-track { display: grid; grid-template-columns: 1.25fr .85fr .85fr; gap: clamp(18px,2vw,30px); }
.gra-achievement-card { min-width: 0; }
.gra-achievement-card figure { position: relative; height: 530px; margin: 0 0 24px; overflow: hidden; background: var(--gra-rose); }
.gra-achievement-card:first-child figure { height: 650px; }
.gra-achievement-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--gra-ease); }
.gra-achievement-card:hover img { transform: scale(1.025); }
.gra-achievement-card > div > span { color: var(--gra-garnet); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.gra-achievement-card h3 { margin: 12px 0 12px; font-size: clamp(24px,2.2vw,36px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.gra-achievement-card p { margin: 0; color: var(--gra-muted); font-size: 14px; line-height: 1.7; }

/* chairman */
.gra-chairman { padding: clamp(90px,11vw,170px) 0; background: var(--gra-garnet); color: #fff; }
.gra-chairman-grid { display: grid; grid-template-columns: minmax(300px,.78fr) minmax(0,1.22fr); gap: clamp(60px,9vw,140px); align-items: center; }
.gra-chairman-image { margin: 0; }
.gra-chairman-image img { display: block; width: 100%; height: clamp(480px,55vw,760px); object-fit: cover; object-position: center top; }
.gra-chairman-image figcaption { margin-top: 17px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; }
.gra-chairman-image figcaption span { opacity: .65; font-weight: 400; }
.gra-chairman-copy .gra-overline { color: #fff; opacity: .7; }
.gra-chairman-copy h2 { max-width: 840px; color: #fff; }
.gra-quote-mark { display: block; margin: 0 0 -22px; color: rgba(255,255,255,.25); font-size: 105px; line-height: .5; }
.gra-chairman-copy blockquote { max-width: 840px; margin: 34px 0 0; padding: 0; border: 0; color: rgba(255,255,255,.78); font-size: clamp(16px,1.35vw,19px); font-style: normal; line-height: 1.8; }

/* legacy */
.gra-legacy { padding: clamp(100px,12vw,180px) 0; background: var(--gra-paper); }
.gra-legacy-list { border-top: 1px solid var(--gra-line); }
.gra-legacy-row { display: grid; grid-template-columns: minmax(340px,.9fr) minmax(0,1.1fr); gap: clamp(50px,9vw,130px); align-items: center; padding: clamp(55px,8vw,110px) 0; border-bottom: 1px solid var(--gra-line); }
.gra-legacy-row:nth-child(even) figure { order: 2; }
.gra-legacy-row figure { height: clamp(360px,42vw,620px); margin: 0; overflow: hidden; }
.gra-legacy-row img { width: 100%; height: 100%; object-fit: cover; }
.gra-legacy-row > div > span { color: var(--gra-garnet); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.gra-legacy-row h3 { margin: 17px 0 20px; font-size: clamp(34px,4vw,58px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.gra-legacy-row p { margin: 0 0 25px; color: var(--gra-muted); font-size: 16px; line-height: 1.8; }
.gra-legacy-row a { color: var(--gra-garnet); font-size: 13px; font-weight: 600; }
.gra-legacy-row a i { margin-left: 8px; }

/* mosaic */
.gra-campus-mosaic { padding: clamp(100px,12vw,180px) 0; background: var(--gra-garnet-dark); color: #fff; }
.gra-mosaic { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 300px; gap: 12px; }
.gra-mosaic-card { position: relative; overflow: hidden; }
.gra-mosaic-card--wide { grid-column: span 2; }
.gra-mosaic-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 55%,rgba(20,5,11,.75)); }
.gra-mosaic-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--gra-ease), filter .5s ease; }
.gra-mosaic-card span { position: absolute; z-index: 2; left: 24px; bottom: 21px; color: #fff; font-size: 20px; font-weight: 500; }
.gra-mosaic-card:hover img { transform: scale(1.035); filter: saturate(1.05); }

/* birthdays */
.gra-birthdays { padding: clamp(85px,10vw,140px) 0; background: var(--gra-rose); }
.gra-birthday-grid { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: clamp(50px,9vw,130px); align-items: center; }
.gra-birthday-grid > div:first-child h2 { margin: 0 0 20px; font-size: clamp(42px,5vw,68px); font-weight: 500; letter-spacing: -.055em; }
.gra-birthday-grid > div:first-child > p:not(.gra-overline) { max-width: 520px; color: var(--gra-muted); line-height: 1.7; }
.gra-birthday-date { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--gra-garnet); font-size: 12px; font-weight: 600; }
.gra-birthday-track { position: relative; min-height: 320px; }
.gra-birthday-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px,5vw,70px); background: var(--gra-garnet); color: #fff; opacity: 0; transform: translateX(20px); pointer-events: none; transition: opacity .45s ease, transform .45s var(--gra-ease); }
.gra-birthday-card.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.gra-birthday-card > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.gra-birthday-card h3 { margin: 16px 0 8px; font-size: clamp(38px,4.5vw,68px); font-weight: 500; letter-spacing: -.055em; }
.gra-birthday-card p { margin: 0; opacity: .72; }
.gra-birthday-card strong { position: absolute; right: 42px; top: 42px; display: flex; flex-direction: column; font-size: 42px; font-weight: 500; line-height: 1; }
.gra-birthday-card strong small { margin-top: 6px; font-size: 10px; font-weight: 400; text-transform: uppercase; opacity: .6; }
.gra-birthday-controls { position: absolute; z-index: 3; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 12px; color: #fff; }
.gra-birthday-controls button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; }
.gra-birthday-controls span { font-size: 11px; }

/* ================================================================
   INNER PAGE SYSTEM
   ================================================================ */
.is-inner .site-main { background: var(--gra-paper); }
.gra-page-hero {
    position: relative;
    min-height: min(72svh, 760px);
    padding-top: var(--gra-header-h);
    background: var(--gra-garnet-dark);
    color: #fff;
    overflow: hidden;
}
.gra-page-hero-media { position: absolute; inset: 0; background-image: var(--page-hero); background-position: center; background-size: cover; transform: scale(1.04); }
.gra-page-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(26,5,12,.82),rgba(26,5,12,.28) 65%,rgba(26,5,12,.5)); }
.gra-page-hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(72svh,760px); padding-bottom: clamp(55px,7vw,90px) !important; }
.gra-page-hero .gra-overline { color: #fff; opacity: .74; }
.gra-page-hero h1 { max-width: 1050px; margin: 0; font-size: clamp(58px,8vw,126px); font-weight: 500; line-height: .84; letter-spacing: -.065em; }
.gra-page-hero-meta { display: flex; gap: 30px; margin-top: 30px; color: rgba(255,255,255,.66); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.gra-page-scroll { position: absolute; z-index: 4; right: var(--gra-gutter); bottom: 32px; display: flex; align-items: center; gap: 13px; color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.gra-page-scroll i { display: block; width: 50px; height: 1px; background: rgba(255,255,255,.5); }
.gra-section-nav { position: sticky; z-index: 700; top: 78px; background: rgba(252,250,247,.96); border-bottom: 1px solid var(--gra-line); backdrop-filter: blur(14px); }
.gra-section-nav .site-container { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; min-height: 60px; }
.gra-section-nav-title { padding-right: 28px; color: var(--gra-garnet); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gra-section-nav-scroll { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.gra-section-nav-scroll::-webkit-scrollbar { display: none; }
.gra-section-nav a { flex: 0 0 auto; padding: 11px 14px; color: var(--gra-muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.gra-section-nav a:hover,
.gra-section-nav a.is-active { background: var(--gra-rose); color: var(--gra-garnet); }

.gra-inner-surface {
    position: relative;
    padding-top: clamp(75px,9vw,130px) !important;
    padding-bottom: clamp(100px,12vw,180px) !important;
}
/* remove duplicated legacy headings and legacy submenu */
.gra-inner-surface > .row > center:first-child,
.gra-inner-surface .My_nav,
.gra-inner-surface center:first-child > h2,
.gra-inner-surface .legacy-page-heading { display: none !important; }
.gra-inner-surface > div[calss="container"],
.gra-inner-surface > div[class="container"] { width: 100% !important; }
.gra-inner-surface .row { margin-left: 0 !important; margin-right: 0 !important; }

/* JS assigns these to legacy image/text rows */
.gra-inner-surface .gra-content-section {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(330px,.84fr) minmax(0,1.16fr);
    align-items: center;
    gap: clamp(50px,8vw,120px);
    width: 100%;
    margin: 0 !important;
    padding: clamp(45px,7vw,100px) 0 !important;
    border-bottom: 1px solid var(--gra-line);
}
.gra-inner-surface .gra-content-section.gra-reverse { grid-template-columns: minmax(0,1.16fr) minmax(330px,.84fr); }
.gra-inner-surface .gra-content-section.gra-reverse .gra-media-col { order: 2; }
.gra-inner-surface .gra-content-section.gra-reverse .gra-copy-col { order: 1; }
.gra-inner-surface .gra-content-section > [class*="col-"] { float: none !important; width: auto !important; padding: 0 !important; }
.gra-inner-surface .gra-content-section .gra-empty-col { display: none !important; }
.gra-inner-surface .gra-media-col { position: relative; min-height: 420px; overflow: hidden; background: var(--gra-rose); }
.gra-inner-surface .gra-media-col::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(117,28,58,.15); pointer-events: none; }
.gra-inner-surface .gra-media-col img { display: block; width: 100% !important; height: 100% !important; min-height: 420px; max-height: 650px; object-fit: cover; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transition: transform .9s var(--gra-ease); }
.gra-inner-surface .gra-content-section:hover .gra-media-col img { transform: scale(1.018); }
.gra-inner-surface .gra-copy-col { min-width: 0; }
.gra-inner-surface .gra-copy-col::before { content: ""; display: block; width: 52px; height: 2px; margin-bottom: 26px; background: var(--gra-garnet); }

/* all legacy content typography */
.gra-inner-surface h1,
.gra-inner-surface h2,
.gra-inner-surface h3,
.gra-inner-surface h4,
.gra-inner-surface h5,
.gra-inner-surface h6 { font-family: "Instrument Sans", Arial, sans-serif !important; color: var(--gra-ink) !important; text-transform: none !important; }
.gra-inner-surface h2 { margin: 0 0 24px !important; font-size: clamp(38px,4.6vw,66px) !important; font-weight: 500 !important; line-height: 1 !important; letter-spacing: -.052em !important; }
.gra-inner-surface h3 { margin: 0 0 20px !important; font-size: clamp(28px,3.2vw,44px) !important; font-weight: 500 !important; line-height: 1.05 !important; letter-spacing: -.04em !important; }
.gra-inner-surface h4 { font-size: clamp(22px,2.4vw,32px) !important; font-weight: 500 !important; letter-spacing: -.03em !important; }
.gra-inner-surface h5 { margin: 0 !important; font-size: 16px !important; font-weight: 400 !important; line-height: 1.82 !important; }
.gra-inner-surface p,
.gra-inner-surface li { color: var(--gra-muted) !important; font-family: "Instrument Sans",Arial,sans-serif !important; font-size: 16px !important; line-height: 1.82 !important; }
.gra-inner-surface strong,
.gra-inner-surface b { color: var(--gra-ink); font-weight: 600; }
.gra-inner-surface a:not(.btn):not(.button):not(.submit-btn):not(.gra-gallery-card) { color: var(--gra-garnet); text-underline-offset: 4px; }
.gra-inner-surface img { border-radius: 0 !important; }
.gra-inner-surface br + br { line-height: 1.2; }
.gra-inner-surface center { text-align: left !important; }
.gra-inner-surface .img-thumbnail { padding: 0 !important; background: none !important; border: 0 !important; }
.gra-inner-surface .image-head-wrapper { min-height: 420px; margin-bottom: 50px; background-size: cover; background-position: center; }

/* Fallback for pages that cannot be split */
.gra-inner-surface > .gra-text-section,
.gra-inner-surface > .cms-managed-content { max-width: 960px; margin-inline: auto; padding: 50px 0; }
.gra-inner-surface > .row:not(.gra-content-section) { width: 100%; }

/* forms */
.gra-inner-surface form { padding: clamp(24px,4vw,46px) !important; background: var(--gra-ivory) !important; border: 1px solid var(--gra-line) !important; border-radius: 0 !important; box-shadow: none !important; }
.gra-inner-surface .form-control,
.gra-inner-surface input[type="text"],
.gra-inner-surface input[type="email"],
.gra-inner-surface input[type="number"],
.gra-inner-surface input[type="tel"],
.gra-inner-surface input[type="date"],
.gra-inner-surface select,
.gra-inner-surface textarea {
    min-height: 52px !important;
    margin-bottom: 14px !important;
    padding: 12px 14px !important;
    background: #fff !important;
    border: 1px solid var(--gra-line) !important;
    border-radius: 0 !important;
    color: var(--gra-ink) !important;
    box-shadow: none !important;
}
.gra-inner-surface textarea { min-height: 145px !important; }
.gra-inner-surface input[type="submit"],
.gra-inner-surface .submit-btn,
.gra-inner-surface .btn,
.gra-inner-surface .button {
    min-height: 50px !important;
    padding: 12px 24px !important;
    background: var(--gra-garnet) !important;
    border: 1px solid var(--gra-garnet) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.gra-inner-surface input[type="submit"]:hover,
.gra-inner-surface .submit-btn:hover,
.gra-inner-surface .btn:hover { background: var(--gra-garnet-deep) !important; }

/* tables */
.gra-inner-surface table { width: 100% !important; border-collapse: collapse !important; background: #fff; }
.gra-inner-surface th { padding: 15px !important; background: var(--gra-garnet) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.18) !important; font-size: 13px !important; }
.gra-inner-surface td { padding: 14px !important; border: 1px solid var(--gra-line) !important; color: var(--gra-muted) !important; font-size: 14px !important; }
.gra-inner-surface tr:nth-child(even) td { background: var(--gra-ivory); }

/* panels / listing cards */
.gra-inner-surface .panel,
.gra-inner-surface .well,
.gra-inner-surface .thumbnail,
.gra-inner-surface .media,
.gra-inner-surface .cms-public-content-card { border: 1px solid var(--gra-line) !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; }
.gra-inner-surface .panel-heading { background: var(--gra-garnet) !important; color: #fff !important; border-radius: 0 !important; }

/* gallery retained but restyled */
.gra-gallery-experience { width: 100%; }
.gra-gallery-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.gra-gallery-heading h2 { margin: 0 !important; }
.gra-gallery-featured { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 300px 300px; gap: 12px; margin-bottom: 12px; }
.gra-gallery-card--featured-1 { grid-row: span 2; }
.gra-gallery-card { position: relative; display: block; overflow: hidden; min-height: 260px; }
.gra-gallery-media { display: block; height: 100%; }
.gra-gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--gra-ease); }
.gra-gallery-shade { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(23,5,11,.58)); }
.gra-gallery-index { position: absolute; top: 15px; left: 17px; color: #fff; font-size: 11px; }
.gra-gallery-open { position: absolute; right: 16px; top: 15px; color: #fff; }
.gra-gallery-caption { position: absolute; left: 18px; right: 18px; bottom: 17px; color: #fff; font-size: 17px; font-weight: 500; }
.gra-gallery-card:hover img { transform: scale(1.035); }
.gra-gallery-masonry { columns: 3; column-gap: 12px; }
.gra-gallery-masonry .gra-gallery-card { break-inside: avoid; margin-bottom: 12px; height: auto; aspect-ratio: 4/3; }
.gra-gallery-masonry .gra-gallery-card:nth-child(4n+1) { aspect-ratio: 3/4; }

.status-banner { margin-bottom: 30px; padding: 16px 20px; border-left: 3px solid var(--gra-garnet); background: var(--gra-rose); color: var(--gra-ink); }
.status-error { border-left-color: #a32626; }

/* ================================================================
   CTA + FOOTER
   ================================================================ */
.gra-admission-cta { padding: clamp(80px,9vw,135px) 0; background: var(--gra-rose); }
.gra-admission-cta-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(50px,10vw,140px); align-items: end; }
.gra-admission-cta h2 { max-width: 850px; color: var(--gra-garnet); }
.gra-admission-cta-grid > div:last-child { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.gra-admission-cta p { margin: 0; color: var(--gra-muted); line-height: 1.7; }
.gra-circle-arrow { display: grid; place-items: center; width: 86px; height: 86px; border: 1px solid var(--gra-garnet); border-radius: 50%; color: var(--gra-garnet); transition: .4s var(--gra-ease); }
.gra-circle-arrow i { transform: rotate(-35deg); }
.gra-circle-arrow:hover { background: var(--gra-garnet); color: #fff; transform: rotate(35deg); }

.gra-footer { padding: 82px 0 0; background: var(--gra-garnet-dark); color: #fff; }
.gra-footer-main { display: grid; grid-template-columns: 1.45fr repeat(3,.72fr) 1fr; gap: clamp(30px,4.5vw,75px); padding-bottom: 70px !important; }
.gra-footer-logo { display: flex; align-items: center; gap: 14px; }
.gra-footer-logo img:first-child { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.gra-footer-logo img:last-child { width: 165px; filter: brightness(0) invert(1); }
.gra-footer-brand > p { max-width: 340px; margin: 25px 0 22px; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.7; }
.gra-footer-social { display: flex; gap: 10px; }
.gra-footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; }
.gra-footer h3 { margin: 0 0 20px; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gra-footer-links { display: flex; flex-direction: column; gap: 11px; }
.gra-footer-links a,
.gra-footer-contact a { color: rgba(255,255,255,.65); font-size: 13px; transition: color .2s ease; }
.gra-footer-links a:hover,
.gra-footer-contact a:hover { color: #fff; }
.gra-footer-contact p { margin: 0 0 18px; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.65; }
.gra-footer-contact { display: flex; flex-direction: column; gap: 10px; }
.gra-footer-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 68px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.42); font-size: 11px; }
.gra-footer-bottom > div { display: flex; gap: 24px; }
.gra-footer-bottom a { color: inherit; }
.gra-footer-bottom a:hover { color: #fff; }

.gra-back-top { position: fixed; z-index: 780; right: 24px; bottom: 24px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gra-garnet); color: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s var(--gra-ease); }
.gra-back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* modals */
.admission-modal[hidden] { display: none !important; }
.admission-modal { position: fixed; inset: 0; z-index: 11000; display: grid; place-items: center; padding: 24px; background: rgba(23,6,12,.68); backdrop-filter: blur(10px); }
.admission-modal-card { position: relative; width: min(510px,100%); padding: clamp(34px,5vw,58px); background: var(--gra-paper); color: var(--gra-ink); box-shadow: var(--gra-shadow); }
.admission-modal-card h2 { margin: 0 0 14px; font-size: clamp(36px,5vw,56px); font-weight: 500; letter-spacing: -.055em; }
.admission-modal-card > p:not(.gra-overline) { color: var(--gra-muted); line-height: 1.6; }
.admission-modal-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; background: none; color: var(--gra-ink); font-size: 28px; }
.admission-modal-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; border-radius: 50%; background: var(--gra-rose); color: var(--gra-garnet); }
.gra-modal-button { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 15px 18px; background: var(--gra-garnet); color: #fff; font-size: 13px; font-weight: 600; }
.modal-phone { display: inline-flex; gap: 8px; margin-top: 16px; color: var(--gra-garnet); font-size: 12px; font-weight: 600; }
.cms-popup-image { width: 100%; max-height: 240px; object-fit: cover; margin-bottom: 22px; }

/* ================================================================
   MOTION SYSTEM
   ================================================================ */
[data-reveal] { opacity: 1; transform: none; }
.gra-motion-ready [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .85s ease, transform .85s var(--gra-ease); }
.gra-motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.gra-motion-ready .gra-academic-card:nth-child(2) { transition-delay: 90ms; }
.gra-motion-ready .gra-academic-card:nth-child(3) { transition-delay: 180ms; }
.gra-motion-ready .gra-academic-card:nth-child(4) { transition-delay: 270ms; }
.gra-title-line { display: block; overflow: hidden; }
.gra-title-line > span { display: block; transform: translateY(110%); transition: transform .9s var(--gra-ease); }
.gra-page-ready .gra-title-line > span { transform: translateY(0); }
.gra-title-line:nth-child(2) > span { transition-delay: .08s; }
.gra-title-line:nth-child(3) > span { transition-delay: .16s; }

/* ================================================================
   MOBILE BOTTOM NAV + SHEET
   ================================================================ */
.gra-mobile-dock,
.gra-mobile-sheet { display: none; }

@media (max-width: 1180px) {
    :root { --gra-gutter: clamp(22px,3vw,42px); }
    .gra-desktop-nav { gap: 19px; }
    .gra-nav-link, .gra-nav-trigger { font-size: 13px; }
    .gra-brand { width: 130px; }
    .gra-mega-view { grid-template-columns: .7fr 1.3fr .75fr; gap: 34px; }
    .gra-footer-main { grid-template-columns: 1.3fr repeat(3,.75fr); }
    .gra-footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,1fr); align-items: start; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
    .gra-footer-contact h3 { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --gra-header-h: 72px; --gra-gutter: 20px; }
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .gra-progress { top: 0; }
    .gra-desktop-nav,
    .gra-enquire-rail,
    .gra-mega { display: none !important; }
    .gra-header { height: 72px !important; background: rgba(252,250,247,.95) !important; color: var(--gra-ink) !important; backdrop-filter: blur(16px); }
    .gra-header::after { background: var(--gra-line) !important; }
    .gra-header-inner { display: flex; justify-content: center; width: calc(100% - 40px); }
    .gra-brand,
    .is-inner .gra-brand,
    .gra-header.is-scrolled .gra-brand { position: static; width: auto; height: 72px; padding: 7px 0; background: transparent; box-shadow: none; flex-direction: row; gap: 10px; }
    .gra-brand-mark,
    .is-inner .gra-brand-mark,
    .gra-header.is-scrolled .gra-brand-mark { width: 43px; height: 43px; }
    .gra-brand-wordmark,
    .is-inner .gra-brand-wordmark,
    .gra-header.is-scrolled .gra-brand-wordmark { width: 120px; margin: 0; }

    .gra-mobile-dock {
        position: fixed; z-index: 10000; left: 0; right: 0; bottom: 0;
        display: grid; grid-template-columns: repeat(5,1fr);
        min-height: 72px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: rgba(252,250,247,.98); border-top: 1px solid var(--gra-line);
        backdrop-filter: blur(18px); box-shadow: 0 -10px 35px rgba(42,8,19,.08);
    }
    .gra-mobile-dock a,
    .gra-mobile-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; border: 0; background: none; color: var(--gra-muted); font-size: 9px; font-weight: 600; }
    .gra-mobile-dock i { font-size: 16px; }
    .gra-mobile-dock .is-active { color: var(--gra-garnet); }
    .gra-mobile-dock-apply { margin: 0 2px; background: var(--gra-garnet) !important; color: #fff !important; border-radius: 2px; }

    .gra-mobile-sheet[hidden] { display: none !important; }
    .gra-mobile-sheet { position: fixed; inset: 0; z-index: 10020; display: block; }
    .gra-mobile-sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(24,7,13,.56); backdrop-filter: blur(4px); }
    .gra-mobile-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(76svh,720px); overflow-y: auto; padding: 12px 20px calc(28px + env(safe-area-inset-bottom)); background: var(--gra-paper); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .5s var(--gra-ease); }
    .gra-mobile-sheet.is-open .gra-mobile-sheet-panel { transform: translateY(0); }
    .gra-mobile-sheet-handle { width: 42px; height: 4px; margin: 0 auto 17px; border-radius: 8px; background: rgba(38,13,22,.15); }
    .gra-mobile-sheet header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--gra-line); }
    .gra-mobile-sheet header span { color: var(--gra-garnet); font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
    .gra-mobile-sheet header button { width: 38px; height: 38px; border: 1px solid var(--gra-line); border-radius: 50%; background: none; }
    .gra-mobile-sheet-view { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 18px; padding-top: 12px; }
    .gra-mobile-sheet-view[hidden] { display: none; }
    .gra-mobile-sheet-view a { padding: 14px 0; border-bottom: 1px solid var(--gra-line); font-size: 14px; font-weight: 500; }
    .gra-mobile-sheet-contact { display: flex; gap: 16px; margin-top: 22px; }
    .gra-mobile-sheet-contact a { flex: 1; padding: 13px; background: var(--gra-rose); color: var(--gra-garnet); font-size: 11px; font-weight: 600; text-align: center; }
    .gra-mobile-sheet-contact i { margin-right: 7px; }

    .gra-home-hero,
    .gra-home-hero-copy { min-height: calc(100svh - 0px); }
    .gra-home-hero-copy { padding-top: 130px !important; padding-bottom: 95px !important; }
    .gra-home-hero-copy h1 { font-size: clamp(54px,13vw,88px) !important; line-height: .9 !important; }
    .gra-home-shade { background: linear-gradient(0deg,rgba(22,5,11,.8),rgba(22,5,11,.14) 72%), linear-gradient(90deg,rgba(22,5,11,.45),transparent); }
    .gra-home-grid { background-size: 50% 100%, 50% 100%; }
    .gra-home-hero-copy > p:not(.gra-overline) { max-width: 520px; }
    .gra-hero-status { display: none; }
    .gra-hero-scroll { left: auto; right: 20px; transform: none; }
    .gra-notice-line .site-container { grid-template-columns: auto minmax(0,1fr); min-height: 56px; }
    .gra-notice-line a { display: none; }

    .gra-section-head { grid-template-columns: 1fr; gap: 24px; }
    .gra-section-head h2, .gra-stat-intro h2, .gra-chairman-copy h2, .gra-admission-cta h2 { font-size: clamp(40px,9vw,62px) !important; }
    .gra-academic-grid { grid-template-columns: repeat(2,1fr); gap: 28px 12px; }
    .gra-academic-card figure { height: min(65vw,480px); }

    .gra-pathway-stage { grid-template-columns: repeat(2,1fr); grid-template-rows: none; min-height: auto; }
    .gra-pathway-tile,
    .gra-pathway-tour { grid-column: auto !important; grid-row: auto !important; min-height: 190px; }
    .gra-pathway-tour { grid-column: 1 / -1 !important; min-height: 170px; }
    .gra-pathway-tile--facilities,
    .gra-pathway-tile--holistic { min-height: 250px; }

    .gra-stat-story-grid { grid-template-columns: 1fr; gap: 60px; }
    .gra-stat-intro { position: static; }
    .gra-achievement-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .gra-achievement-track::-webkit-scrollbar { display: none; }
    .gra-achievement-card { flex: 0 0 min(78vw,470px); scroll-snap-align: start; }
    .gra-achievement-card figure,
    .gra-achievement-card:first-child figure { height: min(105vw,600px); }
    .gra-chairman-grid { grid-template-columns: 1fr; }
    .gra-chairman-image { max-width: 620px; }
    .gra-legacy-row { grid-template-columns: 1fr; gap: 36px; }
    .gra-legacy-row:nth-child(even) figure { order: 0; }
    .gra-mosaic { grid-template-columns: repeat(2,1fr); grid-auto-rows: 250px; }
    .gra-mosaic-card--wide { grid-column: span 2; }
    .gra-birthday-grid { grid-template-columns: 1fr; }

    .gra-page-hero { min-height: 56svh; padding-top: 72px; }
    .gra-page-hero-content { min-height: 56svh; padding-bottom: 54px !important; }
    .gra-page-hero h1 { font-size: clamp(54px,13vw,86px); }
    .gra-page-hero-meta { flex-wrap: wrap; gap: 10px 20px; }
    .gra-page-scroll { display: none; }
    .gra-section-nav { top: 72px; }
    .gra-section-nav .site-container { display: block; padding: 10px 0 !important; }
    .gra-section-nav-title { display: none; }
    .gra-inner-surface .gra-content-section,
    .gra-inner-surface .gra-content-section.gra-reverse { grid-template-columns: 1fr; gap: 30px; }
    .gra-inner-surface .gra-content-section.gra-reverse .gra-media-col,
    .gra-inner-surface .gra-content-section.gra-reverse .gra-copy-col { order: initial; }
    .gra-inner-surface .gra-media-col { min-height: 340px; }
    .gra-inner-surface .gra-media-col img { min-height: 340px; }
    .gra-gallery-heading { grid-template-columns: 1fr; gap: 20px; }
    .gra-gallery-featured { grid-template-columns: 1fr 1fr; grid-template-rows: 390px 230px; }
    .gra-gallery-card--featured-1 { grid-column: 1 / -1; grid-row: auto; }
    .gra-gallery-masonry { columns: 2; }

    .gra-admission-cta-grid { grid-template-columns: 1fr; gap: 35px; }
    .gra-footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
    .gra-footer-brand { grid-column: 1 / -1; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
    .gra-footer-contact { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .gra-back-top { bottom: 92px; right: 18px; }
}

@media (max-width: 600px) {
    :root { --gra-gutter: 18px; }
    .gra-overline, .eyebrow { font-size: 10px !important; }
    .gra-home-hero-copy { padding-top: 120px !important; padding-bottom: 90px !important; }
    .gra-home-hero-copy h1 { font-size: clamp(50px,15.5vw,72px) !important; }
    .gra-home-hero-copy > p:not(.gra-overline) { margin-top: 20px; font-size: 15px; line-height: 1.55; }
    .gra-hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 25px; }
    .gra-arrow-link { min-width: 190px; }
    .gra-hero-scroll { display: none; }
    .gra-notice-line p { font-size: 12px; }
    .gra-announcements article { grid-template-columns: 1fr; gap: 20px; }
    .gra-announcements img { height: 200px; }
    .gra-academics { padding: 82px 0 95px; }
    .gra-section-head { margin-bottom: 42px; }
    .gra-section-head h2, .gra-stat-intro h2, .gra-chairman-copy h2, .gra-admission-cta h2 { font-size: clamp(38px,11.5vw,54px) !important; }
    .gra-section-head > p { font-size: 15px; }
    .gra-academic-grid { grid-template-columns: 1fr 1fr; gap: 26px 8px; }
    .gra-academic-card figure { height: 58vw; }
    .gra-academic-card > div { grid-template-columns: 1fr auto; min-height: 62px; gap: 8px; }
    .gra-academic-card span { display: none; }
    .gra-academic-card h3 { font-size: 16px; }
    .gra-academic-card i { width: 30px; height: 30px; }

    .gra-pathways { padding: 85px 0; }
    .gra-pathway-stage { gap: 8px; }
    .gra-pathway-tile { min-height: 165px; padding: 18px; }
    .gra-pathway-tile--facilities,
    .gra-pathway-tile--holistic { min-height: 205px; }
    .gra-pathway-tile strong { font-size: 21px; }
    .gra-pathway-tile small { font-size: 9px; }
    .gra-pathway-tour { min-height: 135px; }
    .gra-pathway-tour > span:not(.gra-pathway-tour-ring) { font-size: 22px; }
    .gra-pathway-tour strong { font-size: 38px; }

    .gra-stat-story { padding: 80px 0; }
    .gra-stat { grid-template-columns: 1fr auto; gap: 20px; }
    .gra-stat strong { font-size: 54px; }
    .gra-achievements { padding: 85px 0; }
    .gra-achievement-card { flex-basis: 84vw; }
    .gra-achievement-card figure,
    .gra-achievement-card:first-child figure { height: 115vw; }
    .gra-chairman { padding: 80px 0; }
    .gra-chairman-image img { height: 120vw; max-height: 620px; }
    .gra-chairman-copy blockquote { font-size: 15px; }
    .gra-legacy { padding: 85px 0; }
    .gra-legacy-row { padding: 50px 0; }
    .gra-legacy-row figure { height: 72vw; }
    .gra-legacy-row h3 { font-size: 34px; }
    .gra-legacy-row p { font-size: 15px; }
    .gra-campus-mosaic { padding: 85px 0; }
    .gra-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 7px; }
    .gra-mosaic-card span { left: 15px; bottom: 13px; font-size: 15px; }
    .gra-birthdays { padding: 75px 0; }
    .gra-birthday-track { min-height: 290px; }
    .gra-birthday-card { padding: 28px; }
    .gra-birthday-card h3 { font-size: 40px; }
    .gra-birthday-card strong { right: 26px; top: 26px; font-size: 34px; }

    .gra-page-hero { min-height: 50svh; }
    .gra-page-hero-content { min-height: 50svh; padding-bottom: 38px !important; }
    .gra-page-hero h1 { font-size: clamp(48px,14vw,68px); }
    .gra-page-hero-meta { margin-top: 20px; font-size: 9px; }
    .gra-section-nav-scroll { margin-inline: -4px; }
    .gra-section-nav a { padding: 9px 12px; font-size: 11px; }
    .gra-inner-surface { padding-top: 55px !important; padding-bottom: 85px !important; }
    .gra-inner-surface .gra-content-section { padding: 38px 0 !important; }
    .gra-inner-surface .gra-media-col,
    .gra-inner-surface .gra-media-col img { min-height: 270px; }
    .gra-inner-surface h2 { font-size: 38px !important; }
    .gra-inner-surface h3 { font-size: 28px !important; }
    .gra-inner-surface p,
    .gra-inner-surface li,
    .gra-inner-surface h5 { font-size: 15px !important; line-height: 1.75 !important; }
    .gra-inner-surface .image-head-wrapper { min-height: 270px; }
    .gra-gallery-featured { display: block; }
    .gra-gallery-card--featured { min-height: 300px; margin-bottom: 8px; }
    .gra-gallery-masonry { columns: 1; }

    .gra-admission-cta { padding: 70px 0; }
    .gra-admission-cta-grid > div:last-child { grid-template-columns: 1fr auto; }
    .gra-circle-arrow { width: 64px; height: 64px; }
    .gra-footer { padding-top: 60px; }
    .gra-footer-main { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
    .gra-footer-brand { grid-column: 1 / -1; }
    .gra-footer-links:nth-of-type(4) { grid-column: 1 / -1; }
    .gra-footer-contact { display: flex; grid-column: 1 / -1; }
    .gra-footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; padding: 20px 0 !important; }
    .gra-footer-bottom > div { gap: 14px; flex-wrap: wrap; }
    .gra-mobile-sheet-view { grid-template-columns: 1fr 1fr; gap: 0 14px; }
    .gra-mobile-sheet-view a { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .gra-motion-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
    .gra-title-line > span { transform: none !important; }
}

/* ================================================================
   AUGUST 22 REFINEMENT — VIDEO-FIRST HOME / ALIGNED BENTO / FOOTER
   ================================================================ */

/* Compact, centered desktop navigation around the school mark */
@media (min-width: 901px) {
    .gra-header-inner {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: clamp(20px, 2.15vw, 34px);
        width: min(1220px, calc(100% - 44px));
    }
    .gra-desktop-nav {
        flex: 0 0 auto;
        gap: clamp(18px, 1.75vw, 28px);
    }
    .gra-desktop-nav--left,
    .gra-desktop-nav--right { justify-content: center; }
    .gra-brand { flex: 0 0 auto; width: 138px; height: 112px; margin-inline: 2px; }
    .is-inner .gra-brand,
    .gra-header.is-scrolled .gra-brand { width: 120px; height: 84px; }
    .gra-nav-link,
    .gra-nav-trigger { font-size: 13.5px; letter-spacing: -.01em; }
}

/* Home hero is intentionally a pure film surface — no copy over the film */
.gra-home-hero--video { min-height: min(100svh, 980px); background: #17070d; }
.gra-home-hero--video .gra-home-media { overflow: hidden; }
.gra-home-hero--video .gra-home-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.012);
    animation: graVideoSettle 1.8s var(--gra-ease) both;
}
.gra-video-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(17,4,9,.30) 0%, transparent 22%, transparent 72%, rgba(17,4,9,.30) 100%),
      linear-gradient(90deg, rgba(17,4,9,.10), transparent 22%, transparent 78%, rgba(17,4,9,.10));
}
.gra-video-scroll {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 28px;
    width: 34px;
    height: 54px;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 999px;
    display: grid;
    place-items: start center;
    padding-top: 9px;
    transition: border-color .3s ease, transform .3s ease;
}
.gra-video-scroll span {
    display: block;
    width: 3px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    animation: graVideoScroll 1.8s ease-in-out infinite;
}
.gra-video-scroll:hover { border-color: #fff; transform: translateX(-50%) translateY(-3px); }
@keyframes graVideoSettle { from { opacity: 0; transform: scale(1.045); } to { opacity: 1; transform: scale(1.012); } }
@keyframes graVideoScroll { 0%,100% { transform: translateY(0); opacity: .45; } 45% { transform: translateY(20px); opacity: 1; } }

/* Animated notice ticker */
.gra-notice-marquee { position: relative; overflow: hidden; background: var(--gra-garnet); }
.gra-notice-shell {
    width: min(var(--gra-max), calc(100% - (var(--gra-gutter) * 2)));
    min-height: 58px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 26px;
}
.gra-notice-window { min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.gra-notice-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: graNoticeTicker 25s linear infinite;
}
.gra-notice-track span {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    padding-right: 58px;
}
.gra-notice-track span::after { content: "•"; padding-left: 58px; opacity: .46; }
.gra-notice-marquee:hover .gra-notice-track { animation-play-state: paused; }
.gra-notice-marquee > .gra-notice-shell > a { color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
@keyframes graNoticeTicker { from { transform: translate3d(18vw,0,0); } to { transform: translate3d(-100%,0,0); } }

/* Cleaner Academics heading */
.gra-academics { padding-top: clamp(86px, 10vw, 145px); }
.gra-academics-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: clamp(42px, 5vw, 72px);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--gra-line);
}
.gra-academics-heading h2 {
    margin: 0;
    color: var(--gra-ink);
    font-size: clamp(48px, 6.5vw, 96px);
    font-weight: 500;
    line-height: .92;
    letter-spacing: -.062em;
}
.gra-academics-heading > span { color: var(--gra-muted); font-size: 11px; letter-spacing: .16em; }
.gra-academic-card figure { clip-path: inset(0 0 0 0); }
.gra-motion-ready .gra-academic-card figure img { transform: scale(1.075); transition: transform 1.25s var(--gra-ease), filter .6s ease; }
.gra-motion-ready .gra-academic-card.is-visible figure img { transform: scale(1); }
.gra-academic-card:hover figure img,
.gra-motion-ready .gra-academic-card.is-visible:hover figure img { transform: scale(1.045); }

/* Precisely aligned visual bento — V5 image-backed pathway system */
.gra-pathways {
    padding: clamp(100px, 11vw, 160px) 0;
    background:
      radial-gradient(circle at 82% 8%, rgba(160,74,104,.24), transparent 34%),
      linear-gradient(145deg, #310a19 0%, #4a1028 48%, #260710 100%);
}
.gra-pathways::before {
    width: 760px;
    height: 760px;
    right: -350px;
    top: -220px;
    border-color: rgba(255,255,255,.07);
}
.gra-pathways-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, transparent 4%, #000 22%, #000 80%, transparent 100%);
}
.gra-pathways-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: clamp(44px, 6vw, 78px);
}
.gra-pathways-heading .gra-overline { color: rgba(255,255,255,.68); margin: 0; }
.gra-pathways-heading h2 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5.2vw, 78px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.055em;
    text-align: right;
}
.gra-pathway-stage--aligned {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(245px, 1fr));
    gap: 12px;
    min-height: 0;
}

/* Shared tile foundation */
.gra-pathway-stage--aligned .gra-pathway-tile,
.gra-pathway-stage--aligned .gra-pathway-tour {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 245px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
    transform: translateZ(0);
}

/* Six pathway cards: solid Garnet base + independent low-opacity photo layer. */
.gra-pathway-stage--aligned .gra-pathway-tile {
    background: linear-gradient(145deg, #54122d 0%, #3a0b1d 100%);
    transition: transform .55s var(--gra-ease), border-color .35s ease, box-shadow .55s ease;
}
.gra-pathway-stage--aligned .gra-pathway-tile::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: 0;
    pointer-events: none;
    background-image: var(--tile-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .22;
    filter: blur(2.5px) saturate(.84) contrast(.96);
    transform: scale(1.07);
    transition:
      opacity .7s ease,
      filter .7s ease,
      transform 1.15s var(--gra-ease);
}
.gra-pathway-stage--aligned .gra-pathway-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(35,4,16,.18) 0%, rgba(58,8,28,.42) 52%, rgba(29,3,12,.78) 100%),
      linear-gradient(120deg, rgba(117,28,58,.22), rgba(18,2,8,.08));
    transition: background .6s ease;
}

/* Keep every label/button crisp above both visual layers. */
.gra-pathway-stage--aligned .gra-pathway-tile > span,
.gra-pathway-stage--aligned .gra-pathway-tile strong,
.gra-pathway-stage--aligned .gra-pathway-tile small,
.gra-pathway-stage--aligned .gra-pathway-tile i {
    position: relative;
    z-index: 3;
}
.gra-pathway-stage--aligned .gra-pathway-tile strong { color: #fff; max-width: 86%; }
.gra-pathway-stage--aligned .gra-pathway-tile small { color: rgba(255,255,255,.72); }
.gra-pathway-stage--aligned .gra-pathway-tile i {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    transform: rotate(-35deg);
    transition: transform .45s var(--gra-ease), background .3s ease, color .3s ease, border-color .3s ease;
}

/* Smooth hover: photo becomes clearer and gently pushes forward. */
.gra-pathway-stage--aligned .gra-pathway-tile:hover {
    color: #fff;
    border-color: rgba(255,255,255,.55);
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(22,2,9,.22);
}
.gra-pathway-stage--aligned .gra-pathway-tile:hover::before {
    opacity: .36;
    filter: blur(.6px) saturate(.96) contrast(1.02);
    transform: scale(1.12);
}
.gra-pathway-stage--aligned .gra-pathway-tile:hover::after {
    background:
      linear-gradient(180deg, rgba(35,4,16,.10) 0%, rgba(58,8,28,.30) 52%, rgba(29,3,12,.69) 100%),
      linear-gradient(120deg, rgba(117,28,58,.16), rgba(18,2,8,.04));
}
.gra-pathway-stage--aligned .gra-pathway-tile:hover i {
    transform: rotate(0);
    background: #fff;
    border-color: #fff;
    color: var(--gra-garnet);
}

/* Desktop bento placement */
.gra-pathway-stage--aligned .gra-pathway-tile--facilities { grid-column: 1 / span 3; grid-row: 1; }
.gra-pathway-stage--aligned .gra-pathway-tile--alumni { grid-column: 4 / span 3; grid-row: 1; }
.gra-pathway-stage--aligned .gra-pathway-tile--achievement { grid-column: 7 / span 6; grid-row: 1; }
.gra-pathway-stage--aligned .gra-pathway-tile--experience { grid-column: 1 / span 3; grid-row: 2; }
.gra-pathway-stage--aligned .gra-pathway-tour { grid-column: 4 / span 4; grid-row: 2; }
.gra-pathway-stage--aligned .gra-pathway-tile--safety { grid-column: 8 / span 2; grid-row: 2; }
.gra-pathway-stage--aligned .gra-pathway-tile--holistic { grid-column: 10 / span 3; grid-row: 2; }

/* School Tour uses the same image treatment, but stays deliberately lighter. */
.gra-pathway-stage--aligned .gra-pathway-tour {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0;
    padding: clamp(24px, 2.3vw, 36px);
    background: #f8f2f4;
    color: var(--gra-garnet);
    transition: transform .55s var(--gra-ease), border-color .35s ease, box-shadow .55s ease;
}
.gra-pathway-stage--aligned .gra-pathway-tour::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: 0;
    pointer-events: none;
    background-image: var(--tile-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .14;
    filter: blur(2px) saturate(.75);
    transform: scale(1.07);
    transition: opacity .7s ease, filter .7s ease, transform 1.15s var(--gra-ease);
}
.gra-pathway-stage--aligned .gra-pathway-tour::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(252,248,249,.94) 0%, rgba(250,245,247,.84) 56%, rgba(117,28,58,.16) 100%);
    transition: background .6s ease;
}
.gra-pathway-stage--aligned .gra-pathway-tour > * { position: relative; z-index: 3; }
.gra-pathway-stage--aligned .gra-pathway-tour small {
    position: absolute;
    top: 28px;
    left: 32px;
    color: var(--gra-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.gra-pathway-stage--aligned .gra-pathway-tour > span:not(.gra-pathway-tour-ring) { font-size: clamp(24px,2.5vw,38px); line-height: .9; }
.gra-pathway-stage--aligned .gra-pathway-tour strong { font-size: clamp(44px,4.5vw,68px); line-height: .88; }
.gra-pathway-stage--aligned .gra-pathway-tour i { position: absolute; right: 30px; bottom: 32px; }
.gra-pathway-stage--aligned .gra-pathway-tour:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.5);
    box-shadow: 0 18px 45px rgba(22,2,9,.16);
}
.gra-pathway-stage--aligned .gra-pathway-tour:hover::before {
    opacity: .25;
    filter: blur(.5px) saturate(.9);
    transform: scale(1.12);
}
.gra-pathway-stage--aligned .gra-pathway-tour:hover::after {
    background: linear-gradient(90deg, rgba(252,248,249,.90) 0%, rgba(250,245,247,.73) 56%, rgba(117,28,58,.19) 100%);
}

/* Dedicated Chairman page (moved out of the home page into Discover) */
.gra-chairman-page {
    display: grid;
    grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr);
    gap: clamp(52px, 8vw, 120px);
    align-items: start;
    padding: clamp(35px, 5vw, 74px) 0 clamp(80px, 10vw, 150px);
}
.gra-chairman-page-media { margin: 0; position: sticky; top: 126px; }
.gra-chairman-page-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
.gra-chairman-page-media figcaption { display: grid; gap: 3px; padding-top: 15px; border-top: 1px solid var(--gra-line); margin-top: 14px; font-size: 13px; }
.gra-chairman-page-media figcaption span { color: var(--gra-muted); }
.gra-chairman-page-copy { padding-top: 5px; }
.gra-chairman-page-copy .gra-quote-mark { display: block; color: var(--gra-garnet); font-size: 112px; font-weight: 400; line-height: .55; opacity: .2; }
.gra-chairman-page-copy h2 { max-width: 760px; margin: 10px 0 36px; font-size: clamp(42px, 5vw, 76px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.gra-chairman-page-copy > p:not(.gra-overline) { max-width: 800px; color: var(--gra-muted); font-size: clamp(16px,1.25vw,19px); line-height: 1.85; }

/* Refined admissions bridge + footer */
.gra-admission-cta--refined {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 120px) 0;
    background: var(--gra-rose);
}
.gra-admission-cta--refined::after {
    content: "2027—28";
    position: absolute;
    right: -1vw;
    bottom: -0.22em;
    color: rgba(117,28,58,.045);
    font-size: clamp(100px, 17vw, 270px);
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: .8;
    pointer-events: none;
}
.gra-admission-cta--refined .gra-admission-cta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0,1.3fr) auto;
    align-items: end;
    gap: 60px;
}
.gra-admission-cta--refined h2 { max-width: 900px; font-size: clamp(44px,5.5vw,82px) !important; }
.gra-admission-cta-action {
    width: clamp(150px, 14vw, 205px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid rgba(117,28,58,.35);
    color: var(--gra-garnet);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: background .45s var(--gra-ease), color .45s var(--gra-ease), transform .45s var(--gra-ease);
}
.gra-admission-cta-action i { transform: rotate(-35deg); transition: transform .45s var(--gra-ease); }
.gra-admission-cta-action:hover { background: var(--gra-garnet); color: #fff; transform: rotate(-3deg); }
.gra-admission-cta-action:hover i { transform: rotate(0) translateX(3px); }

.gra-footer--refined { position: relative; overflow: hidden; padding: 0; background: #250810; color: #fff; }
.gra-footer--refined .site-container { position: relative; z-index: 2; }
.gra-footer-top {
    display: grid;
    grid-template-columns: minmax(230px,.85fr) minmax(300px,1.15fr) auto;
    align-items: center;
    gap: clamp(35px,6vw,100px);
    min-height: 160px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.gra-footer-identity { display: flex; align-items: center; gap: 14px; }
.gra-footer-identity img:first-child { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.gra-footer-identity img:last-child { width: 170px; filter: brightness(0) invert(1); }
.gra-footer-top > p { max-width: 560px; margin: 0; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.75; }
.gra-footer--refined .gra-footer-social { justify-self: end; }
.gra-footer-display {
    margin: clamp(46px,6vw,86px) 0 clamp(44px,5vw,74px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.14);
    font-size: clamp(62px, 11vw, 170px);
    font-weight: 600;
    line-height: .77;
    letter-spacing: -.075em;
    white-space: nowrap;
    user-select: none;
}
.gra-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px,.62fr)) minmax(300px,1.35fr);
    gap: clamp(28px,4.5vw,72px);
    padding-bottom: clamp(52px,6vw,86px);
}
.gra-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.gra-footer--refined h3 { margin: 0 0 12px; color: rgba(255,255,255,.45); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.gra-footer-column a { position: relative; color: rgba(255,255,255,.74); font-size: 13px; transition: color .25s ease, transform .25s ease; }
.gra-footer-column a:hover { color: #fff; transform: translateX(4px); }
.gra-footer-contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: clamp(26px,3vw,42px);
    border: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(145deg, rgba(117,28,58,.45), rgba(117,28,58,.12));
}
.gra-footer-contact-card > span { margin-bottom: 8px; color: rgba(255,255,255,.48); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.gra-footer-contact-card p { max-width: 430px; margin: 0 0 13px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.65; }
.gra-footer-contact-card a { color: #fff; font-size: 13px; }
.gra-footer-map { margin-top: 12px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.4); }
.gra-footer-map i { margin-left: 10px; transform: rotate(45deg); }
.gra-footer--refined .gra-footer-bottom {
    min-height: 72px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.44);
}

/* Admission modal — centered content and smoother arrival */
.admission-modal { align-items: center; justify-items: center; }
.admission-modal-card {
    width: min(560px, 100%);
    text-align: center;
    border-top: 3px solid var(--gra-garnet);
    animation: graModalEnter .62s var(--gra-ease) both;
}
.admission-modal-icon { margin-inline: auto; }
.admission-modal-card .gra-overline { text-align: center; }
.admission-modal-card > p:not(.gra-overline) { max-width: 420px; margin-left: auto; margin-right: auto; }
.gra-modal-button { justify-content: center; width: min(390px,100%); margin-inline: auto; }
.modal-phone { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; }
@keyframes graModalEnter { from { opacity: 0; transform: translateY(22px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* More polished reveal timing */
.gra-motion-ready [data-reveal] { transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--gra-ease); }
.gra-motion-ready [data-reveal].is-visible { transform: translateY(0); }
.gra-motion-ready .gra-pathway-stage--aligned .gra-pathway-tile:nth-child(2) { transition-delay: 70ms; }
.gra-motion-ready .gra-pathway-stage--aligned .gra-pathway-tile:nth-child(3) { transition-delay: 140ms; }
.gra-motion-ready .gra-pathway-stage--aligned .gra-pathway-tile:nth-child(4) { transition-delay: 60ms; }
.gra-motion-ready .gra-pathway-stage--aligned .gra-pathway-tour { transition-delay: 120ms; }
.gra-motion-ready .gra-pathway-stage--aligned .gra-pathway-tile:nth-child(6) { transition-delay: 180ms; }
.gra-motion-ready .gra-pathway-stage--aligned .gra-pathway-tile:nth-child(7) { transition-delay: 240ms; }

@media (max-width: 1100px) and (min-width: 901px) {
    .gra-header-inner { gap: 16px; }
    .gra-desktop-nav { gap: 15px; }
    .gra-nav-link, .gra-nav-trigger { font-size: 12.5px; }
    .gra-brand { width: 124px; }
    .gra-pathway-stage--aligned { grid-template-rows: repeat(2, 220px); }
    .gra-pathway-stage--aligned .gra-pathway-tile,
    .gra-pathway-stage--aligned .gra-pathway-tour { min-height: 220px; }
    .gra-footer-grid { grid-template-columns: repeat(3,1fr); }
    .gra-footer-contact-card { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .gra-home-hero--video { min-height: 78svh; }
    .gra-video-scroll { bottom: 20px; }
    .gra-notice-shell { width: calc(100% - 36px); grid-template-columns: auto minmax(0,1fr); gap: 15px; min-height: 54px; }
    .gra-notice-shell > a { display: none; }
    .gra-notice-track span { font-size: 12px; padding-right: 38px; }
    .gra-notice-track span::after { padding-left: 38px; }
    .gra-academics-heading h2 { font-size: clamp(44px, 12vw, 70px); }
    .gra-pathways-heading { display: block; }
    .gra-pathways-heading .gra-overline { margin-bottom: 16px; }
    .gra-pathways-heading h2 { max-width: 680px; text-align: left; font-size: clamp(40px,9vw,62px); }
    .gra-pathway-stage--aligned {
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: none;
        gap: 9px;
    }
    .gra-pathway-stage--aligned .gra-pathway-tile,
    .gra-pathway-stage--aligned .gra-pathway-tour {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 205px;
    }
    .gra-pathway-stage--aligned .gra-pathway-tour { grid-column: 1 / -1 !important; min-height: 190px; }
    .gra-pathway-stage--aligned .gra-pathway-tile--achievement { grid-column: 1 / -1 !important; }
    .gra-pathway-stage--aligned .gra-pathway-tile--safety strong { font-size: 20px; }
    .gra-chairman-page { grid-template-columns: 1fr; }
    .gra-chairman-page-media { position: static; max-width: 580px; }
    .gra-footer-top { grid-template-columns: 1fr auto; min-height: 0; padding: 56px 0 38px; }
    .gra-footer-top > p { grid-column: 1 / -1; grid-row: 2; }
    .gra-footer-grid { grid-template-columns: repeat(3,1fr); }
    .gra-footer-contact-card { grid-column: 1 / -1; }
    .gra-footer-display { font-size: clamp(60px,13vw,115px); }
}

@media (max-width: 600px) {
    .gra-home-hero--video { min-height: 68svh; }
    .gra-home-hero--video .gra-home-media video { object-position: center; }
    .gra-video-scroll { width: 30px; height: 47px; bottom: 15px; }
    .gra-notice-marquee { margin-top: 0; }
    .gra-notice-shell { width: calc(100% - 28px); }
    .gra-academics { padding-top: 70px; }
    .gra-academics-heading { margin-bottom: 34px; padding-bottom: 16px; }
    .gra-academics-heading h2 { font-size: 48px; }
    .gra-academics-heading > span { font-size: 9px; }
    .gra-pathways { padding: 78px 0; }
    .gra-pathways-heading { margin-bottom: 34px; }
    .gra-pathways-heading h2 { font-size: 42px; }
    .gra-pathway-stage--aligned { grid-template-columns: 1fr; gap: 8px; }
    .gra-pathway-stage--aligned .gra-pathway-tile,
    .gra-pathway-stage--aligned .gra-pathway-tour,
    .gra-pathway-stage--aligned .gra-pathway-tile--achievement { grid-column: 1 !important; min-height: 178px; }
    .gra-pathway-stage--aligned .gra-pathway-tour { min-height: 170px; }
    .gra-pathway-stage--aligned .gra-pathway-tile strong { font-size: 24px; }
    .gra-pathway-stage--aligned .gra-pathway-tile i { right: 18px; bottom: 18px; }
    .gra-pathway-stage--aligned .gra-pathway-tour small { left: 22px; top: 22px; }
    .gra-pathway-stage--aligned .gra-pathway-tour i { right: 22px; bottom: 22px; }
    .gra-admission-cta--refined .gra-admission-cta-grid { grid-template-columns: 1fr; gap: 35px; }
    .gra-admission-cta-action { width: 138px; justify-self: start; }
    .gra-footer-top { grid-template-columns: 1fr; gap: 25px; }
    .gra-footer-top > p { grid-column: auto; grid-row: auto; }
    .gra-footer--refined .gra-footer-social { justify-self: start; }
    .gra-footer-display { margin: 34px 0 38px; font-size: 19vw; }
    .gra-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 26px; }
    .gra-footer-column:nth-child(3) { grid-column: 1 / -1; }
    .gra-footer-contact-card { grid-column: 1 / -1; padding: 25px; }
    .gra-footer--refined .gra-footer-bottom { padding-bottom: calc(22px + 78px) !important; }
    .admission-modal { padding: 18px; }
    .admission-modal-card { padding: 40px 24px 30px; }
    .admission-modal-card h2 { font-size: clamp(38px,12vw,54px); }
}

@media (prefers-reduced-motion: reduce) {
    .gra-home-hero--video .gra-home-media video,
    .gra-video-scroll span,
    .gra-notice-track,
    .admission-modal-card { animation: none !important; }
}

/* ======================================================================
   Garnet refinement V3 — compact notice ticker, reference-style footer,
   and proportionally sized admission modal.
   ====================================================================== */

/* Notice ticker: balanced fixed labels + seamless continuous movement */
.gra-notice-marquee {
    background: var(--gra-garnet);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.gra-notice-shell {
    min-height: 48px;
    grid-template-columns: 88px minmax(0,1fr) 112px;
    gap: 0;
}
.gra-notice-tag {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-right: 20px;
    border-right: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 10px;
    letter-spacing: .16em;
}
.gra-notice-window {
    height: 48px;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
}
.gra-notice-track {
    display: flex;
    flex: none;
    width: max-content;
    transform: translate3d(0,0,0);
    animation: graNoticeTickerV3 28s linear infinite;
}
.gra-notice-group {
    display: flex;
    align-items: center;
    flex: none;
    padding-right: 52px;
}
.gra-notice-track span {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 0 0 0 52px;
    color: rgba(255,255,255,.92);
    font-size: 12.5px;
    line-height: 1;
    letter-spacing: -.005em;
}
.gra-notice-track span::after {
    content: "";
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    margin-left: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.42);
    padding: 0;
}
.gra-notice-all {
    align-self: stretch;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,.22);
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}
.gra-notice-all i { margin: 0 !important; transition: transform .3s var(--gra-ease); }
.gra-notice-all:hover i { transform: translateX(4px); }
.gra-notice-marquee:hover .gra-notice-track { animation-play-state: paused; }
@keyframes graNoticeTickerV3 {
    from { transform: translate3d(0,0,0); }
    to { transform: translate3d(-50%,0,0); }
}

/* Footer inspired by the user's compact institutional reference:
   brand at left, useful links in the middle, contact panel at right. */
.gra-footer--refined {
    overflow: visible;
    padding: 0;
    background: linear-gradient(135deg, #751C3A 0%, #681630 52%, #4A1024 100%);
    color: #fff;
}
.gra-footer-reference-layout {
    display: grid;
    grid-template-columns: minmax(155px,.85fr) repeat(3,minmax(135px,1fr)) minmax(300px,1.45fr);
    gap: clamp(28px,3.4vw,58px);
    align-items: start;
    padding-top: clamp(48px,5vw,72px) !important;
    padding-bottom: clamp(42px,4.5vw,64px) !important;
}
.gra-footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.gra-footer-crest {
    display: block;
    width: 82px;
    height: 82px;
    margin-bottom: 18px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(34,5,15,.18);
}
.gra-footer-crest img { width: 100%; height: 100%; object-fit: cover; }
.gra-footer-brand-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.025em;
}
.gra-footer-affiliation {
    margin-top: 8px;
    color: rgba(255,255,255,.7);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.gra-footer--refined .gra-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 4px;
}
.gra-footer--refined .gra-footer-column a {
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 450;
    line-height: 1.35;
    transition: opacity .25s ease, transform .3s var(--gra-ease);
}
.gra-footer--refined .gra-footer-column a:hover {
    color: #fff;
    opacity: .72;
    transform: translateX(3px);
}
.gra-footer-contact-panel {
    min-height: 250px;
    padding: 2px 0 0 clamp(28px,3.2vw,46px);
    border-left: 1px solid rgba(255,255,255,.28);
}
.gra-footer-contact-panel h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.02em;
    text-transform: none;
}
.gra-footer-contact-panel p {
    max-width: 330px;
    margin: 0 0 14px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    line-height: 1.55;
}
.gra-footer-contact-panel > a {
    display: block;
    width: fit-content;
    margin: 6px 0;
    color: #fff;
    font-size: 12.5px;
}
.gra-footer-contact-panel .gra-footer-map {
    margin-top: 14px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,.55);
}
.gra-footer-contact-panel .gra-footer-map i { margin-left: 7px; transform: rotate(45deg); }
.gra-footer-contact-panel .gra-footer-social {
    display: flex;
    gap: 9px;
    margin-top: 20px;
}
.gra-footer-contact-panel .gra-footer-social a {
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 5px;
    color: #fff;
}
.gra-footer-contact-panel .gra-footer-social a:hover { background: #fff; color: var(--gra-garnet); }
.gra-footer-copyright {
    display: block;
    margin-top: 18px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
}
.gra-footer-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 58px;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    border-top: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.62);
    font-size: 10.5px;
}
.gra-footer-utility > span { max-width: 720px; }
.gra-footer-utility > div { display: flex; gap: 22px; flex: none; }
.gra-footer-utility a { color: rgba(255,255,255,.78); }
.gra-footer-utility a:hover { color: #fff; }

/* Remove the previous decorative/footer-card treatment when old rules coexist. */
.gra-footer--refined .gra-footer-top,
.gra-footer--refined .gra-footer-display,
.gra-footer--refined .gra-footer-grid,
.gra-footer--refined .gra-footer-bottom,
.gra-footer--refined .gra-footer-contact-card { display: none !important; }

/* Home admission modal: compact, centered and proportionate. */
#admissionModal { padding: 22px; background: rgba(29,5,13,.58); backdrop-filter: blur(8px); }
#admissionModal .admission-modal-card {
    width: min(420px, calc(100vw - 44px));
    padding: 28px 30px 24px;
    border-top: 2px solid var(--gra-garnet);
    box-shadow: 0 28px 70px rgba(35,6,16,.24);
}
#admissionModal .admission-modal-close {
    top: 7px;
    right: 9px;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 1;
}
#admissionModal .admission-modal-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    font-size: 13px;
}
#admissionModal .gra-overline {
    margin: 0 0 9px;
    font-size: 9.5px !important;
    letter-spacing: .15em;
}
#admissionModal .admission-modal-card h2 {
    margin: 0 0 10px;
    font-size: clamp(31px,3.4vw,40px);
    line-height: 1.02;
    letter-spacing: -.045em;
}
#admissionModal .admission-modal-card > p:not(.gra-overline) {
    max-width: 340px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.55;
}
#admissionModal .gra-modal-button {
    width: 100%;
    min-height: 46px;
    margin: 18px auto 0;
    padding: 12px 16px;
    justify-content: space-between;
    font-size: 12.5px;
}
#admissionModal .modal-phone { margin-top: 11px; font-size: 11.5px; }
.gra-footer-contact-panel {
    background: rgba(62, 8, 28, .14);
}
.gra-modal-enquiry {
    display: inline-flex;
    justify-content: center;
    margin: 10px auto 0;
    color: var(--gra-garnet);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.gra-modal-enquiry:hover { color: var(--gra-garnet-dark); }


@media (max-width: 1100px) {
    .gra-footer-reference-layout {
        grid-template-columns: minmax(140px,.8fr) repeat(3,minmax(120px,1fr));
    }
    .gra-footer-contact-panel {
        grid-column: 1 / -1;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(180px,.65fr) minmax(260px,1.3fr) repeat(2,auto);
        column-gap: 24px;
        align-items: start;
        padding: 28px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.28);
    }
    .gra-footer-contact-panel h3 { grid-column: 1; }
    .gra-footer-contact-panel p { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
    .gra-footer-contact-panel > a { grid-column: 1; }
    .gra-footer-contact-panel .gra-footer-social { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
    .gra-footer-copyright { grid-column: 4; grid-row: 1; margin: 5px 0 0; white-space: nowrap; }
}

@media (max-width: 760px) {
    .gra-notice-shell {
        width: calc(100% - 28px);
        min-height: 46px;
        grid-template-columns: 62px minmax(0,1fr);
    }
    .gra-notice-tag { padding-right: 12px; font-size: 9px; }
    .gra-notice-window { height: 46px; }
    .gra-notice-all { display: none !important; }
    .gra-notice-track { animation-duration: 23s; }
    .gra-notice-group { padding-right: 34px; }
    .gra-notice-track span { padding-left: 34px; font-size: 11.5px; }
    .gra-notice-track span::after { margin-left: 34px; }

    .gra-footer-reference-layout {
        grid-template-columns: 1fr 1fr;
        gap: 34px 24px;
        padding-top: 46px !important;
        padding-bottom: 38px !important;
    }
    .gra-footer-brand-block { grid-column: 1 / -1; }
    .gra-footer-crest { width: 70px; height: 70px; margin-bottom: 14px; }
    .gra-footer--refined .gra-footer-column:nth-of-type(3) { grid-column: 1 / -1; }
    .gra-footer-contact-panel {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 26px;
    }
    .gra-footer-contact-panel h3 { margin-bottom: 10px; }
    .gra-footer-contact-panel p { margin-bottom: 13px; }
    .gra-footer-contact-panel .gra-footer-social { margin-top: 18px; }
    .gra-footer-copyright { margin-top: 16px; }
    .gra-footer-utility {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        padding-bottom: calc(16px + 78px) !important;
    }
    .gra-footer-utility > div { gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    #admissionModal { padding: 16px; }
    #admissionModal .admission-modal-card { width: 100%; padding: 25px 21px 21px; }
    #admissionModal .admission-modal-card h2 { font-size: 30px; }
    #admissionModal .admission-modal-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .gra-notice-track { animation: none !important; }
}

/* ================================================================
   REFINEMENT V4 — blurred photographic pathway tiles + social finish
   ================================================================ */
.gra-pathway-stage--aligned .gra-pathway-tile {
    isolation: isolate;
    background: #2b0715;
    box-shadow: 0 18px 44px rgba(24,3,11,.14);
}
.gra-pathway-stage--aligned .gra-pathway-tile::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 0;
    background-image: var(--tile-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(7px) saturate(.82) contrast(.96);
    transform: scale(1.08);
    opacity: .62;
    transition: transform 1.15s var(--gra-ease), filter .8s var(--gra-ease), opacity .55s ease;
}
.gra-pathway-stage--aligned .gra-pathway-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(36,5,16,.28) 0%, rgba(51,8,23,.48) 48%, rgba(28,4,12,.86) 100%),
        linear-gradient(115deg, rgba(117,28,58,.46), rgba(25,4,11,.16));
    transform: none;
    transition: background .65s ease, opacity .65s ease;
    pointer-events: none;
}
.gra-pathway-stage--aligned .gra-pathway-tile > span,
.gra-pathway-stage--aligned .gra-pathway-tile strong,
.gra-pathway-stage--aligned .gra-pathway-tile small,
.gra-pathway-stage--aligned .gra-pathway-tile i {
    position: relative;
    z-index: 3;
}
.gra-pathway-stage--aligned .gra-pathway-tile:hover::before {
    transform: scale(1.15);
    filter: blur(4px) saturate(.98) contrast(1.02);
    opacity: .76;
}
.gra-pathway-stage--aligned .gra-pathway-tile:hover::after {
    transform: none;
    background:
        linear-gradient(180deg, rgba(36,5,16,.16) 0%, rgba(51,8,23,.38) 46%, rgba(28,4,12,.80) 100%),
        linear-gradient(115deg, rgba(117,28,58,.34), rgba(25,4,11,.10));
}
.gra-pathway-stage--aligned .gra-pathway-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,.62);
    box-shadow: 0 26px 60px rgba(22,3,10,.26);
}

/* School Tour now follows the same photo-led language while remaining the visual anchor. */
.gra-pathway-stage--aligned .gra-pathway-tour {
    isolation: isolate;
    overflow: hidden;
    background: #3a0b1d;
    color: #fff;
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 18px 44px rgba(24,3,11,.14);
    transition: transform .55s var(--gra-ease), border-color .35s ease, box-shadow .45s ease;
}
.gra-pathway-stage--aligned .gra-pathway-tour::before {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: 0;
    background-image: var(--tile-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(7px) saturate(.78);
    transform: scale(1.1);
    opacity: .68;
    transition: transform 1.15s var(--gra-ease), filter .8s var(--gra-ease), opacity .55s ease;
}
.gra-pathway-stage--aligned .gra-pathway-tour::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(52,8,24,.80) 0%, rgba(117,28,58,.58) 48%, rgba(26,4,11,.72) 100%);
    pointer-events: none;
}
.gra-pathway-stage--aligned .gra-pathway-tour > * {
    position: relative;
    z-index: 3;
}
.gra-pathway-stage--aligned .gra-pathway-tour small { color: rgba(255,255,255,.72); }
.gra-pathway-stage--aligned .gra-pathway-tour > span:not(.gra-pathway-tour-ring),
.gra-pathway-stage--aligned .gra-pathway-tour strong { color: #fff; }
.gra-pathway-stage--aligned .gra-pathway-tour .gra-pathway-tour-ring {
    position: absolute;
    z-index: 2;
    border-color: rgba(255,255,255,.28);
}
.gra-pathway-stage--aligned .gra-pathway-tour i { color: #fff; }
.gra-pathway-stage--aligned .gra-pathway-tour:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,.62);
    box-shadow: 0 26px 60px rgba(22,3,10,.26);
}
.gra-pathway-stage--aligned .gra-pathway-tour:hover::before {
    transform: scale(1.17);
    filter: blur(4px) saturate(.96);
    opacity: .82;
}

/* Make the three footer social destinations visually explicit and touch-friendly. */
.gra-footer-contact-panel .gra-footer-social a {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 6px;
    transition: transform .3s var(--gra-ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.gra-footer-contact-panel .gra-footer-social a:hover {
    transform: translateY(-3px);
    border-color: #fff;
}

@media (max-width: 767px) {
    .gra-pathway-stage--aligned .gra-pathway-tile::before,
    .gra-pathway-stage--aligned .gra-pathway-tour::before {
        filter: blur(5px) saturate(.84);
        opacity: .66;
    }
}


/* ================================================================
   REFINEMENT V7 — 70% PATHWAY PHOTO VISIBILITY
   Use real <img> layers instead of CSS custom-property URLs.
   This avoids path/custom-property issues and guarantees that each
   pathway card visibly renders its assigned photograph.
   ================================================================ */
.gra-pathway-stage--aligned .gra-pathway-tile,
.gra-pathway-stage--aligned .gra-pathway-tour {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #350817 !important;
}

/* Disable older pseudo-element photo implementations. */
.gra-pathway-stage--aligned .gra-pathway-tile::before,
.gra-pathway-stage--aligned .gra-pathway-tour::before {
    content: none !important;
    display: none !important;
}

/* Actual background image element. */
.gra-pathway-stage--aligned .gra-pathway-bg {
    position: absolute !important;
    inset: -12px !important;
    width: calc(100% + 24px) !important;
    height: calc(100% + 24px) !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: .70 !important;
    filter: blur(4px) saturate(.88) contrast(1.02) !important;
    transform: scale(1.04) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    transition: transform 1.1s var(--gra-ease), opacity .65s ease, filter .65s ease !important;
}

/* Garnet readability overlay. */
.gra-pathway-stage--aligned .gra-pathway-tile::after,
.gra-pathway-stage--aligned .gra-pathway-tour::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    transform: none !important;
    background:
        linear-gradient(180deg, rgba(42,5,18,.30) 0%, rgba(69,10,32,.42) 46%, rgba(28,3,12,.78) 100%),
        linear-gradient(125deg, rgba(117,28,58,.30), rgba(25,3,10,.08)) !important;
    transition: background .65s ease, opacity .65s ease !important;
}

/* Keep all copy and controls above the photograph/overlay. */
.gra-pathway-stage--aligned .gra-pathway-tile > span,
.gra-pathway-stage--aligned .gra-pathway-tile > strong,
.gra-pathway-stage--aligned .gra-pathway-tile > small,
.gra-pathway-stage--aligned .gra-pathway-tile > i,
.gra-pathway-stage--aligned .gra-pathway-tour > span,
.gra-pathway-stage--aligned .gra-pathway-tour > strong,
.gra-pathway-stage--aligned .gra-pathway-tour > small,
.gra-pathway-stage--aligned .gra-pathway-tour > i {
    position: relative;
    z-index: 3 !important;
}

.gra-pathway-stage--aligned .gra-pathway-tile:hover .gra-pathway-bg,
.gra-pathway-stage--aligned .gra-pathway-tour:hover .gra-pathway-bg {
    opacity: .82 !important;
    filter: blur(2px) saturate(1) contrast(1.04) !important;
    transform: scale(1.10) !important;
}

.gra-pathway-stage--aligned .gra-pathway-tile:hover::after,
.gra-pathway-stage--aligned .gra-pathway-tour:hover::after {
    background:
        linear-gradient(180deg, rgba(42,5,18,.20) 0%, rgba(69,10,32,.32) 46%, rgba(28,3,12,.70) 100%),
        linear-gradient(125deg, rgba(117,28,58,.22), rgba(25,3,10,.05)) !important;
}

/* The central School Tour card uses the same photo-led Garnet language. */
.gra-pathway-stage--aligned .gra-pathway-tour {
    color: #fff !important;
    border-color: rgba(255,255,255,.26) !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour > span:not(.gra-pathway-tour-ring),
.gra-pathway-stage--aligned .gra-pathway-tour > strong,
.gra-pathway-stage--aligned .gra-pathway-tour > i {
    color: #fff !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour > small {
    color: rgba(255,255,255,.76) !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour .gra-pathway-tour-ring {
    position: absolute !important;
    z-index: 2 !important;
    border-color: rgba(255,255,255,.30) !important;
}

@media (max-width: 767px) {
    .gra-pathway-stage--aligned .gra-pathway-bg {
        opacity: .70 !important;
        filter: blur(3px) saturate(.9) !important;
    }
}


/* ================================================================
   REFINEMENT V8 — PATHWAY CREST COMPOSITION
   3 cards / 1 focal School Tour / 3 cards.
   Keeps the cards rectangular, but gives the GROUP a deliberate
   crest / diamond-like composition and prevents text overlap.
   ================================================================ */

.gra-pathway-stage--aligned {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(220px, 245px) minmax(275px, 315px) minmax(220px, 245px) !important;
    gap: 18px !important;
    align-items: stretch !important;
    min-height: 0 !important;
    padding: 6px 0 !important;
}
.gra-pathway-stage--aligned::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: min(48vw, 650px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    pointer-events: none;
}
.gra-pathway-stage--aligned::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: min(31vw, 420px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 50%;
    pointer-events: none;
}
.gra-pathway-stage--aligned .gra-pathway-tile--facilities { grid-column: 1 / span 4 !important; grid-row: 1 !important; }
.gra-pathway-stage--aligned .gra-pathway-tile--alumni { grid-column: 5 / span 4 !important; grid-row: 1 !important; }
.gra-pathway-stage--aligned .gra-pathway-tile--achievement { grid-column: 9 / span 4 !important; grid-row: 1 !important; }
.gra-pathway-stage--aligned .gra-pathway-tour { grid-column: 4 / span 6 !important; grid-row: 2 !important; }
.gra-pathway-stage--aligned .gra-pathway-tile--experience { grid-column: 1 / span 4 !important; grid-row: 3 !important; }
.gra-pathway-stage--aligned .gra-pathway-tile--safety { grid-column: 5 / span 4 !important; grid-row: 3 !important; }
.gra-pathway-stage--aligned .gra-pathway-tile--holistic { grid-column: 9 / span 4 !important; grid-row: 3 !important; }

.gra-pathway-stage--aligned .gra-pathway-tile,
.gra-pathway-stage--aligned .gra-pathway-tour {
    z-index: 2 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    box-shadow: 0 18px 42px rgba(17,2,8,.16), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.gra-pathway-stage--aligned .gra-pathway-tile {
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    align-items: stretch !important;
    padding: 28px 30px !important;
}
.gra-pathway-stage--aligned .gra-pathway-tile > span:not(.gra-pathway-tour-ring) {
    grid-row: 1 !important;
    align-self: start !important;
    margin: 0 !important;
    color: rgba(255,255,255,.74) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
}
.gra-pathway-stage--aligned .gra-pathway-tile > strong {
    grid-row: 2 !important;
    align-self: end !important;
    display: block !important;
    width: min(100%, 420px) !important;
    max-width: calc(100% - 18px) !important;
    margin: 20px 0 18px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: clamp(25px, 2.15vw, 34px) !important;
    font-weight: 500 !important;
    line-height: 1.03 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance;
}
.gra-pathway-stage--aligned .gra-pathway-tile > small {
    grid-row: 3 !important;
    align-self: end !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 58px 1px 0 !important;
    color: rgba(255,255,255,.76) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: .075em !important;
    text-transform: uppercase !important;
    white-space: normal !important;
}
.gra-pathway-stage--aligned .gra-pathway-tile > i {
    position: absolute !important;
    right: 25px !important;
    bottom: 23px !important;
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(255,255,255,.52) !important;
    border-radius: 50% !important;
    background: rgba(38,5,16,.18) !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    color: #fff !important;
    font-size: 11px !important;
}
.gra-pathway-stage--aligned .gra-pathway-bg {
    opacity: .70 !important;
    filter: blur(2.4px) saturate(.92) contrast(1.03) !important;
    transform: scale(1.045) !important;
}
.gra-pathway-stage--aligned .gra-pathway-tile::after,
.gra-pathway-stage--aligned .gra-pathway-tour::after {
    background: linear-gradient(180deg, rgba(31,3,13,.17) 0%, rgba(59,8,27,.30) 48%, rgba(24,2,10,.73) 100%), linear-gradient(125deg, rgba(117,28,58,.21), rgba(18,2,8,.04)) !important;
}

.gra-pathway-stage--aligned .gra-pathway-tour {
    position: relative !important;
    display: block !important;
    padding: 34px 38px !important;
    color: #fff !important;
    border-radius: 28px !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour > small {
    position: absolute !important;
    top: 32px !important;
    left: 38px !important;
    right: 38px !important;
    bottom: auto !important;
    margin: 0 !important;
    color: rgba(255,255,255,.78) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour > span:not(.gra-pathway-tour-ring) {
    position: absolute !important;
    left: 38px !important;
    bottom: 95px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(31px, 3.2vw, 48px) !important;
    font-weight: 400 !important;
    line-height: .94 !important;
    letter-spacing: -.045em !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour > strong {
    position: absolute !important;
    left: 38px !important;
    bottom: 31px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(50px, 5vw, 76px) !important;
    font-weight: 600 !important;
    line-height: .84 !important;
    letter-spacing: -.065em !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour > i {
    position: absolute !important;
    right: 34px !important;
    bottom: 32px !important;
    width: 48px !important;
    height: 48px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.54) !important;
    border-radius: 50% !important;
    background: rgba(38,5,16,.20) !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    color: #fff !important;
    font-size: 12px !important;
    transform: rotate(-35deg) !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour .gra-pathway-tour-ring {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 190px !important;
    height: 190px !important;
    transform: translate(-50%, -50%) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}
.gra-pathway-stage--aligned .gra-pathway-tile:hover,
.gra-pathway-stage--aligned .gra-pathway-tour:hover {
    transform: translateY(-7px) !important;
    border-color: rgba(255,255,255,.62) !important;
    box-shadow: 0 28px 62px rgba(17,2,8,.26), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.gra-pathway-stage--aligned .gra-pathway-tile:hover .gra-pathway-bg,
.gra-pathway-stage--aligned .gra-pathway-tour:hover .gra-pathway-bg {
    opacity: .84 !important;
    filter: blur(.8px) saturate(1.02) contrast(1.05) !important;
    transform: scale(1.085) !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour:hover > i {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--gra-garnet) !important;
    transform: rotate(0deg) !important;
}
.gra-pathway-stage--aligned .gra-pathway-tour:hover .gra-pathway-tour-ring {
    transform: translate(-50%, -50%) scale(1.18) !important;
}

@media (max-width: 1100px) {
    .gra-pathway-stage--aligned {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        gap: 14px !important;
    }
    .gra-pathway-stage--aligned::before,
    .gra-pathway-stage--aligned::after { display: none !important; }
    .gra-pathway-stage--aligned .gra-pathway-tile,
    .gra-pathway-stage--aligned .gra-pathway-tour {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 235px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tour {
        grid-column: 1 / -1 !important;
        min-height: 285px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tile > strong {
        font-size: clamp(25px, 3.4vw, 34px) !important;
    }
}
@media (max-width: 680px) {
    .gra-pathway-stage--aligned {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tile,
    .gra-pathway-stage--aligned .gra-pathway-tour {
        grid-column: 1 !important;
        min-height: 215px !important;
        border-radius: 18px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tile { padding: 24px !important; }
    .gra-pathway-stage--aligned .gra-pathway-tile > strong {
        max-width: calc(100% - 8px) !important;
        margin: 18px 0 15px !important;
        font-size: 27px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tile > small {
        padding-right: 54px !important;
        font-size: 9px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tile > i {
        right: 22px !important;
        bottom: 20px !important;
        width: 39px !important;
        height: 39px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tour {
        grid-column: 1 !important;
        min-height: 260px !important;
        padding: 28px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tour > small {
        top: 27px !important;
        left: 28px !important;
        right: 28px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tour > span:not(.gra-pathway-tour-ring) {
        left: 28px !important;
        bottom: 88px !important;
        font-size: 33px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tour > strong {
        left: 28px !important;
        bottom: 29px !important;
        font-size: 54px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tour > i {
        right: 27px !important;
        bottom: 27px !important;
        width: 44px !important;
        height: 44px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-tour .gra-pathway-tour-ring {
        width: 145px !important;
        height: 145px !important;
    }
    .gra-pathway-stage--aligned .gra-pathway-bg {
        opacity: .70 !important;
        filter: blur(2px) saturate(.94) contrast(1.03) !important;
    }
}


/* ================================================================
   REFINEMENT V10 — formal admission modal
   ================================================================ */
#admissionModal {
    padding: 20px;
    background: rgba(31, 5, 15, .62);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
}

#admissionModal .admission-modal-card--formal {
    position: relative;
    width: min(438px, calc(100vw - 40px));
    padding: 34px 36px 26px;
    overflow: hidden;
    border: 1px solid rgba(117, 28, 58, .16);
    border-top: 4px solid #751C3A;
    background:
        radial-gradient(circle at 100% 0%, rgba(117,28,58,.075), transparent 34%),
        #fbf8f7;
    color: #1c1719;
    text-align: center;
    box-shadow: 0 32px 85px rgba(32, 5, 15, .30);
}

/* Subtle institutional watermark instead of decorative clutter. */
#admissionModal .admission-modal-card--formal::before {
    content: "G";
    position: absolute;
    right: -14px;
    bottom: -54px;
    z-index: 0;
    color: rgba(117, 28, 58, .035);
    font-family: "Instrument Sans", sans-serif;
    font-size: 190px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.09em;
    pointer-events: none;
}

#admissionModal .admission-modal-card--formal > * {
    position: relative;
    z-index: 1;
}

#admissionModal .admission-modal-close {
    top: 11px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(117, 28, 58, .13);
    border-radius: 50%;
    background: rgba(255,255,255,.72);
    color: #4b3039;
    font-size: 19px;
    line-height: 1;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

#admissionModal .admission-modal-close:hover {
    background: #751C3A;
    color: #fff;
    transform: rotate(90deg);
}

#admissionModal .admission-modal-brandmark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 17px;
    border: 1px solid rgba(117,28,58,.16);
    border-radius: 50%;
    background: #f4e8ec;
    color: #751C3A;
    font-size: 15px;
}

#admissionModal .admission-modal-card--formal .gra-overline {
    margin: 0 0 10px;
    color: #751C3A;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .19em;
    text-align: center;
    text-transform: uppercase;
}

#admissionModal .admission-modal-card--formal h2 {
    margin: 0;
    color: #181416;
    font-size: clamp(31px, 3.2vw, 40px);
    font-weight: 520;
    line-height: 1.04;
    letter-spacing: -.045em;
}

#admissionModal .admission-modal-card--formal h2 span {
    display: block;
    margin-bottom: 5px;
    color: #7a7074;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#admissionModal .admission-modal-rule {
    width: 42px;
    height: 1px;
    margin: 18px auto 17px;
    background: #751C3A;
    opacity: .55;
}

#admissionModal .admission-modal-copy {
    max-width: 330px;
    margin: 0 auto !important;
    color: #71676b !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
}

#admissionModal .gra-modal-button--formal {
    width: 100%;
    min-height: 49px;
    margin: 22px auto 0;
    padding: 0 18px;
    border: 1px solid #751C3A;
    background: #751C3A;
    color: #fff;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: .01em;
    justify-content: space-between;
    transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}

#admissionModal .gra-modal-button--formal i {
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

#admissionModal .gra-modal-button--formal:hover {
    background: #5c132e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(117,28,58,.18);
}

#admissionModal .gra-modal-button--formal:hover i {
    transform: translateX(4px);
}

#admissionModal .admission-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid rgba(117,28,58,.11);
    color: #877c80;
    font-size: 10.5px;
    text-align: left;
}

#admissionModal .admission-modal-meta > span {
    font-weight: 600;
    letter-spacing: .035em;
}

#admissionModal .admission-modal-meta .modal-phone {
    margin: 0;
    color: #751C3A;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

#admissionModal .admission-modal-meta .modal-phone i {
    margin-right: 5px;
}

/* The enquiry link is intentionally excluded from the home popup. */
#admissionModal .gra-modal-enquiry { display: none !important; }

@media (max-width: 480px) {
    #admissionModal { padding: 14px; }
    #admissionModal .admission-modal-card--formal {
        width: 100%;
        padding: 31px 23px 22px;
    }
    #admissionModal .admission-modal-card--formal h2 {
        font-size: clamp(29px, 9vw, 35px);
    }
    #admissionModal .admission-modal-copy {
        max-width: 280px;
        font-size: 12.5px !important;
    }
    #admissionModal .admission-modal-meta {
        align-items: center;
        flex-direction: column;
        gap: 7px;
        text-align: center;
    }
}


/* ================================================================
   V14 — ACADEMIC STAGE PAGES
   Shared template for Pre-Primary / Primary / Secondary /
   Higher Secondary
   ================================================================ */

.gra-mega-backdrop { cursor: pointer; }

.gra-stage-page {
    --stage-border: rgba(117,28,58,.16);
    --stage-soft: #f6edef;
    --stage-paper: #fcfaf7;
    width: 100%;
}

.gra-stage-page > section:first-child { padding-top: 0; }

.gra-stage-lead {
    display: grid;
    grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr);
    gap: clamp(48px,8vw,120px);
    align-items: end;
    padding: 0 0 clamp(70px,8vw,110px);
    border-bottom: 1px solid var(--stage-border);
}
.gra-stage-lead-mark { position: relative; }
.gra-stage-index {
    display: block;
    margin-bottom: 26px;
    color: var(--gra-garnet);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}
.gra-stage-lead .gra-overline { margin: 0 0 16px; }
.gra-stage-lead h2 {
    max-width: 600px;
    margin: 0 !important;
    font-size: clamp(52px,6.6vw,92px) !important;
    line-height: .9 !important;
    letter-spacing: -.065em !important;
}
.gra-stage-lead-copy { padding-bottom: 4px; }
.gra-stage-intro {
    max-width: 770px;
    margin: 0;
    color: var(--gra-ink);
    font-size: clamp(19px,2vw,27px) !important;
    line-height: 1.48 !important;
    letter-spacing: -.018em;
}
.gra-stage-facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1px;
    margin-top: 38px;
    background: var(--stage-border);
    border: 1px solid var(--stage-border);
}
.gra-stage-facts span {
    display: flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: var(--stage-paper);
}
.gra-stage-facts small {
    color: var(--gra-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.gra-stage-facts strong {
    color: var(--gra-garnet);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.gra-stage-section {
    position: relative;
    padding: clamp(72px,8.5vw,125px) 0;
    border-bottom: 1px solid var(--stage-border);
}
.gra-stage-section--tint {
    background: var(--stage-soft);
    box-shadow: 0 0 0 100vmax var(--stage-soft);
    clip-path: inset(0 -100vmax);
}
.gra-stage-section--garnet {
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.10), transparent 28%),
        linear-gradient(135deg, #4b1026 0%, #751c3a 58%, #3a0b1d 100%);
    box-shadow: 0 0 0 100vmax #5d1530;
    clip-path: inset(0 -100vmax);
    border-bottom: 0;
}

.gra-stage-section-head {
    display: grid;
    grid-template-columns: minmax(180px,.54fr) minmax(0,1.46fr);
    gap: clamp(35px,7vw,100px);
    align-items: start;
    margin-bottom: clamp(42px,6vw,80px);
}
.gra-stage-section-head .gra-overline { margin: 7px 0 0; }
.gra-stage-section-head h2 {
    max-width: 850px;
    margin: 0 !important;
    font-size: clamp(43px,5.6vw,76px) !important;
}
.gra-stage-section-head--light h2,
.gra-stage-section-head--light .gra-overline { color: #fff !important; }

.gra-framework-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}
.gra-framework-card {
    position: relative;
    min-height: 330px;
    padding: clamp(30px,4vw,54px);
    border: 1px solid var(--stage-border);
    background: rgba(255,255,255,.76);
    overflow: hidden;
}
.gra-framework-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -72px;
    bottom: -72px;
    border: 1px solid rgba(117,28,58,.18);
    border-radius: 50%;
}
.gra-framework-card--cisce { background: #fff; }
.gra-framework-card--nep { background: rgba(117,28,58,.055); }
.gra-framework-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    margin-bottom: 42px;
    border: 1px solid rgba(117,28,58,.22);
    color: var(--gra-garnet);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.gra-framework-card h3 {
    max-width: 560px;
    margin: 0 0 22px !important;
    font-size: clamp(27px,3vw,40px) !important;
}
.gra-framework-card p {
    max-width: 660px;
    margin: 0 !important;
    color: var(--gra-muted) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}

.gra-stage-learning-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1px;
    background: var(--stage-border);
    border: 1px solid var(--stage-border);
}
.gra-stage-learning-card {
    position: relative;
    min-height: 270px;
    padding: 30px 28px 34px;
    background: var(--stage-paper);
    transition: background .4s ease, transform .45s var(--gra-ease);
}
.gra-stage-learning-card:hover { background: #fff; transform: translateY(-4px); z-index: 2; }
.gra-stage-learning-card > span {
    display: block;
    margin-bottom: 50px;
    color: var(--gra-garnet);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}
.gra-stage-learning-card h3 {
    margin: 0 0 15px !important;
    font-size: clamp(23px,2.1vw,31px) !important;
    letter-spacing: -.035em !important;
}
.gra-stage-learning-card p {
    margin: 0 !important;
    color: var(--gra-muted) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.gra-stage-method-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.22);
}
.gra-stage-method-card {
    min-height: 300px;
    padding: 34px 28px;
    background: rgba(55,7,25,.34);
    transition: background .4s ease, transform .45s var(--gra-ease);
}
.gra-stage-method-card:hover { background: rgba(255,255,255,.09); transform: translateY(-5px); }
.gra-stage-method-card i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 58px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
}
.gra-stage-method-card h3 {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: clamp(22px,2.1vw,30px) !important;
}
.gra-stage-method-card p {
    margin: 0 !important;
    color: rgba(255,255,255,.69) !important;
    font-size: 14px !important;
    line-height: 1.68 !important;
}

.gra-stage-assessment {
    display: grid;
    grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
    gap: clamp(55px,9vw,135px);
    align-items: start;
}
.gra-stage-assessment header .gra-overline { margin-bottom: 22px; }
.gra-stage-assessment h2 {
    margin: 0 0 26px !important;
    font-size: clamp(42px,5vw,68px) !important;
}
.gra-stage-assessment header > p:last-child {
    max-width: 620px;
    color: var(--gra-muted) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}
.gra-stage-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: stagecheck;
    border-top: 1px solid var(--stage-border);
}
.gra-stage-checklist li {
    position: relative;
    min-height: 92px;
    padding: 24px 24px 24px 70px;
    border-bottom: 1px solid var(--stage-border);
    color: var(--gra-ink);
    font-size: 15px;
    line-height: 1.6;
    counter-increment: stagecheck;
}
.gra-stage-checklist li::before {
    content: counter(stagecheck, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 27px;
    color: var(--gra-garnet);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.gra-stage-outcome-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}
.gra-stage-outcome-grid article {
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--stage-border);
    background: rgba(255,255,255,.74);
}
.gra-stage-outcome-grid article > span {
    display: block;
    margin-bottom: 58px;
    color: var(--gra-garnet);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}
.gra-stage-outcome-grid h3 {
    margin: 0 0 14px !important;
    font-size: clamp(23px,2vw,29px) !important;
}
.gra-stage-outcome-grid p {
    margin: 0 !important;
    color: var(--gra-muted) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.gra-stage-reference-section {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: clamp(50px,8vw,120px);
    padding: clamp(75px,8vw,115px) 0 0;
}
.gra-stage-reference-section h2 {
    margin: 16px 0 24px !important;
    font-size: clamp(38px,4.4vw,60px) !important;
}
.gra-stage-reference-note {
    max-width: 610px;
    margin: 0 !important;
    color: var(--gra-muted) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}
.gra-stage-reference-links {
    border-top: 1px solid var(--stage-border);
}
.gra-stage-reference-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 68px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--stage-border);
    color: var(--gra-ink);
    font-size: 14px;
    font-weight: 600;
    transition: color .25s ease, padding-left .35s var(--gra-ease);
}
.gra-stage-reference-links a:hover { padding-left: 10px; color: var(--gra-garnet); }
.gra-stage-reference-links i { color: var(--gra-garnet); font-size: 11px; }

@media (max-width: 1100px) {
    .gra-stage-learning-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gra-stage-method-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gra-stage-outcome-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .page-pre_primary .gra-inner-surface,
    .page-primary .gra-inner-surface,
    .page-secondary .gra-inner-surface,
    .page-higher_secondary .gra-inner-surface {
        padding-top: 58px !important;
        padding-bottom: 95px !important;
    }
    .gra-stage-lead,
    .gra-stage-section-head,
    .gra-stage-assessment,
    .gra-stage-reference-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .gra-stage-lead { align-items: start; }
    .gra-stage-lead h2 { font-size: clamp(50px,15vw,76px) !important; }
    .gra-stage-facts { grid-template-columns: 1fr; }
    .gra-stage-facts span { min-height: 78px; }
    .gra-framework-grid,
    .gra-stage-learning-grid,
    .gra-stage-method-grid,
    .gra-stage-outcome-grid { grid-template-columns: 1fr; }
    .gra-framework-card { min-height: 0; }
    .gra-framework-badge { margin-bottom: 30px; }
    .gra-stage-learning-card,
    .gra-stage-method-card,
    .gra-stage-outcome-grid article { min-height: 230px; }
    .gra-stage-section-head { margin-bottom: 36px; }
    .gra-stage-section { padding: 68px 0; }
    .gra-stage-reference-section { padding-top: 68px; }
}


/* ================================================================
   V15 — RESPONSIVE SPACING REFINEMENT
   Compact admission CTA + tighter homepage vertical rhythm
   ================================================================ */

/* ---------------- HOME PAGE SECTION RHYTHM ----------------
   Reduce empty vertical areas while keeping visual breathing room.
------------------------------------------------------------ */
.gra-announcements {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

.gra-academics {
    padding-top: clamp(58px, 5.5vw, 76px) !important;
    padding-bottom: clamp(58px, 5.5vw, 76px) !important;
}

.gra-academics-heading {
    margin-bottom: clamp(30px, 3.5vw, 46px) !important;
}

.gra-pathways {
    padding-top: clamp(64px, 6vw, 84px) !important;
    padding-bottom: clamp(64px, 6vw, 84px) !important;
}

.gra-pathways-heading {
    margin-bottom: clamp(30px, 3.5vw, 46px) !important;
}

.gra-stat-story,
.gra-achievements,
.gra-legacy,
.gra-campus-mosaic {
    padding-top: clamp(62px, 6vw, 82px) !important;
    padding-bottom: clamp(62px, 6vw, 82px) !important;
}

.gra-birthdays {
    padding-top: clamp(52px, 5vw, 70px) !important;
    padding-bottom: clamp(52px, 5vw, 70px) !important;
}

/* Legacy content already has internal row spacing; keep it compact. */
.gra-legacy-row {
    padding-top: clamp(34px, 4vw, 52px) !important;
    padding-bottom: clamp(34px, 4vw, 52px) !important;
}

/* ---------------- ADMISSIONS CTA: ALL PUBLIC PAGES ----------------
   The CTA lives in footer.php, therefore these rules apply to both
   the homepage and every internal page.
------------------------------------------------------------ */
.gra-admission-cta.gra-admission-cta--refined {
    min-height: 0 !important;
    height: auto !important;
    padding: clamp(42px, 4.4vw, 62px) 0 !important;
}

/* Keep the decorative 2027—28 as decoration only, never as height. */
.gra-admission-cta--refined::after {
    right: -1.5vw !important;
    bottom: -0.14em !important;
    font-size: clamp(86px, 13vw, 190px) !important;
    line-height: .72 !important;
    opacity: .78;
}

.gra-admission-cta--refined .gra-admission-cta-grid {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: clamp(38px, 6vw, 82px) !important;
    min-height: 0 !important;
}

.gra-admission-cta--refined .gra-admission-cta-copy {
    align-self: center;
}

.gra-admission-cta--refined .gra-overline {
    margin-bottom: 10px !important;
}

.gra-admission-cta--refined h2 {
    max-width: 760px !important;
    margin: 0 !important;
    font-size: clamp(42px, 4.8vw, 68px) !important;
    line-height: .94 !important;
    letter-spacing: -.055em !important;
}

/* Smaller, more proportional desktop action circle. */
.gra-admission-cta--refined .gra-admission-cta-action {
    width: clamp(128px, 11.5vw, 158px) !important;
    height: clamp(128px, 11.5vw, 158px) !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto;
    gap: 14px !important;
    font-size: 12px !important;
}

/* ---------------- INTERNAL PAGE SURFACE ---------------- */
.gra-inner-surface {
    padding-top: clamp(54px, 5.4vw, 78px) !important;
    padding-bottom: clamp(64px, 6vw, 90px) !important;
}

/* ================================================================
   TABLET
   ================================================================ */
@media (max-width: 900px) {
    .gra-admission-cta.gra-admission-cta--refined {
        padding: 40px 0 !important;
    }

    .gra-admission-cta--refined .gra-admission-cta-grid {
        grid-template-columns: minmax(0, 1fr) 124px !important;
        gap: 30px !important;
    }

    .gra-admission-cta--refined h2 {
        font-size: clamp(38px, 6vw, 52px) !important;
    }

    .gra-admission-cta--refined .gra-admission-cta-action {
        width: 124px !important;
        height: 124px !important;
    }

    .gra-inner-surface {
        padding-top: 50px !important;
        padding-bottom: 72px !important;
    }
}

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 700px) {
    /* Homepage sections */
    .gra-announcements {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .gra-academics,
    .gra-pathways,
    .gra-stat-story,
    .gra-achievements,
    .gra-legacy,
    .gra-campus-mosaic,
    .gra-birthdays {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }

    .gra-academics-heading,
    .gra-pathways-heading {
        margin-bottom: 26px !important;
    }

    .gra-legacy-row {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    /* Admission CTA becomes a compact, readable mobile band. */
    .gra-admission-cta.gra-admission-cta--refined {
        padding: 34px 0 38px !important;
    }

    .gra-admission-cta--refined .gra-admission-cta-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
        gap: 24px !important;
    }

    .gra-admission-cta--refined .gra-overline {
        margin-bottom: 8px !important;
        font-size: 10px !important;
    }

    .gra-admission-cta--refined h2 {
        max-width: 100% !important;
        font-size: clamp(34px, 10.5vw, 44px) !important;
        line-height: .98 !important;
        letter-spacing: -.048em !important;
    }

    /* On phones, a rectangular CTA is easier to use than a large circle. */
    .gra-admission-cta--refined .gra-admission-cta-action {
        width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
        padding: 0 18px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 18px !important;
        text-align: left !important;
        font-size: 12px !important;
    }

    .gra-admission-cta--refined .gra-admission-cta-action i {
        transform: rotate(-35deg);
    }

    .gra-admission-cta--refined::after {
        right: -18px !important;
        bottom: 3px !important;
        font-size: clamp(72px, 25vw, 110px) !important;
        line-height: .7 !important;
        opacity: .55;
    }

    .gra-inner-surface {
        padding-top: 42px !important;
        padding-bottom: 64px !important;
    }
}

/* Extra-small phones */
@media (max-width: 420px) {
    .gra-admission-cta.gra-admission-cta--refined {
        padding: 30px 0 34px !important;
    }

    .gra-admission-cta--refined h2 {
        font-size: 32px !important;
    }

    .gra-academics,
    .gra-pathways,
    .gra-stat-story,
    .gra-achievements,
    .gra-legacy,
    .gra-campus-mosaic,
    .gra-birthdays {
        padding-top: 38px !important;
        padding-bottom: 38px !important;
    }
}


/* ================================================================
   V16 — HOME LEGACY READ MORE
   Full original text expands inside the same content panel.
   ================================================================ */
.gra-legacy-copy { min-width: 0; }
.gra-readmore-extra {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .55s var(--gra-ease), opacity .35s ease;
}
.gra-readmore-extra-inner { min-height: 0; overflow: hidden; }
.gra-readmore-extra-inner p:first-child { padding-top: 1px; }
.gra-legacy-row.is-expanded .gra-readmore-extra { grid-template-rows: 1fr; opacity: 1; }
.gra-legacy-readmore {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 2px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(117,28,58,.28);
    background: transparent;
    color: var(--gra-garnet);
    font-family: "Instrument Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .25s ease, gap .35s var(--gra-ease), color .25s ease;
}
.gra-legacy-readmore:hover { gap: 15px; border-bottom-color: var(--gra-garnet); }
.gra-legacy-readmore i { font-size: 10px; transition: transform .4s var(--gra-ease); }
.gra-legacy-row.is-expanded .gra-legacy-readmore i { transform: rotate(180deg); }
.gra-legacy-readmore:focus-visible { outline: 2px solid var(--gra-garnet); outline-offset: 5px; }
@media (max-width: 700px) {
    .gra-legacy-readmore { min-height: 42px; margin-top: 0; padding: 12px 0; }
}


/* ================================================================
   V17 — IMAGE-LED "EXPLORE GITARAM" SECTION
   Reference direction: cinematic school image + crisp rectangular
   option panels + square outlined arrow controls.
   Keeps the existing 3–1–3 composition.
   ================================================================ */

.gra-pathways {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    color: #fff !important;

    /* Full-section campus photograph */
    background:
        linear-gradient(
            90deg,
            rgba(23,3,10,.91) 0%,
            rgba(53,8,25,.78) 34%,
            rgba(117,28,58,.60) 61%,
            rgba(22,3,10,.88) 100%
        ),
        linear-gradient(
            180deg,
            rgba(17,2,8,.30) 0%,
            rgba(17,2,8,.18) 38%,
            rgba(17,2,8,.73) 100%
        ),
        url('../images/school.JPG') center 46% / cover no-repeat !important;
}

/* Remove the old decorative circle from the section itself. */
.gra-pathways::before {
    display: none !important;
}

.gra-pathways-glow {
    display: none !important;
}

.gra-pathways > .site-container {
    position: relative;
    z-index: 2;
}

/* Heading sits clearly on the photographic background. */
.gra-pathways-heading {
    display: grid !important;
    grid-template-columns: minmax(130px,.42fr) minmax(0,1.58fr) !important;
    align-items: end !important;
    gap: clamp(32px,6vw,90px) !important;
}

.gra-pathways-heading .gra-overline {
    color: rgba(255,255,255,.72) !important;
}

.gra-pathways-heading h2 {
    max-width: 760px !important;
    justify-self: end;
    color: #fff !important;
    text-shadow: 0 4px 26px rgba(0,0,0,.18);
}

/* ---------------------------------------------------------------
   Option panels: clean rectangular thumbnails.
   --------------------------------------------------------------- */
.gra-pathway-stage--aligned .gra-pathway-tile,
.gra-pathway-stage--aligned .gra-pathway-tour {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    border: 1px solid rgba(255,255,255,.62) !important;
    background: rgba(15,2,7,.35) !important;
    box-shadow: 0 14px 38px rgba(9,1,4,.22) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition:
        transform .48s var(--gra-ease),
        border-color .35s ease,
        box-shadow .48s var(--gra-ease) !important;
}

/* Make the individual pictures read as genuine image thumbnails. */
.gra-pathway-stage--aligned .gra-pathway-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: .88 !important;
    filter: saturate(.91) contrast(1.03) brightness(.90) !important;
    transform: scale(1.01) !important;
    transition:
        transform .75s var(--gra-ease),
        filter .55s ease,
        opacity .55s ease !important;
}

/* Harrow-like dark gradient at the bottom keeps labels crisp. */
.gra-pathway-stage--aligned .gra-pathway-tile::after,
.gra-pathway-stage--aligned .gra-pathway-tour::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background:
        linear-gradient(
            180deg,
            rgba(10,1,5,.08) 0%,
            rgba(10,1,5,.12) 38%,
            rgba(10,1,5,.80) 100%
        ),
        linear-gradient(
            90deg,
            rgba(117,28,58,.24),
            rgba(0,0,0,0) 62%
        ) !important;
}

/* Remove older pseudo image layers, if present. */
.gra-pathway-stage--aligned .gra-pathway-tile::before,
.gra-pathway-stage--aligned .gra-pathway-tour::before {
    display: none !important;
}

/* All copy remains above image + gradient. */
.gra-pathway-stage--aligned .gra-pathway-tile > span,
.gra-pathway-stage--aligned .gra-pathway-tile > strong,
.gra-pathway-stage--aligned .gra-pathway-tile > small,
.gra-pathway-stage--aligned .gra-pathway-tile > i,
.gra-pathway-stage--aligned .gra-pathway-tour > span,
.gra-pathway-stage--aligned .gra-pathway-tour > strong,
.gra-pathway-stage--aligned .gra-pathway-tour > small,
.gra-pathway-stage--aligned .gra-pathway-tour > i {
    z-index: 3 !important;
}

/* Standard cards: image above, concise caption treatment below. */
.gra-pathway-stage--aligned .gra-pathway-tile {
    display: block !important;
    padding: 0 !important;
}

.gra-pathway-stage--aligned .gra-pathway-tile > span:not(.gra-pathway-tour-ring) {
    position: absolute !important;
    top: 17px !important;
    left: 18px !important;
    margin: 0 !important;
    color: rgba(255,255,255,.76) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
}

.gra-pathway-stage--aligned .gra-pathway-tile > strong {
    position: absolute !important;
    left: 18px !important;
    right: 68px !important;
    bottom: 48px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: clamp(24px,2vw,31px) !important;
    font-weight: 550 !important;
    line-height: .98 !important;
    letter-spacing: -.043em !important;
    text-wrap: balance;
}

.gra-pathway-stage--aligned .gra-pathway-tile > small {
    position: absolute !important;
    left: 18px !important;
    right: 66px !important;
    bottom: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255,255,255,.74) !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: .075em !important;
    text-transform: uppercase !important;
}

/* Square arrow controls inspired by the first reference. */
.gra-pathway-stage--aligned .gra-pathway-tile > i,
.gra-pathway-stage--aligned .gra-pathway-tour > i {
    position: absolute !important;
    right: 15px !important;
    bottom: 15px !important;
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    border-radius: 0 !important;
    background: rgba(10,1,5,.16) !important;
    color: #fff !important;
    font-size: 10px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    transition:
        background .35s ease,
        color .35s ease,
        border-color .35s ease,
        transform .35s var(--gra-ease) !important;
}

/* ---------------------------------------------------------------
   Central School Tour feature.
   --------------------------------------------------------------- */
.gra-pathway-stage--aligned .gra-pathway-tour {
    padding: 0 !important;
}

.gra-pathway-stage--aligned .gra-pathway-tour > small {
    position: absolute !important;
    top: auto !important;
    left: 22px !important;
    right: 70px !important;
    bottom: 106px !important;
    color: rgba(255,255,255,.73) !important;
    font-size: 9px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
}

.gra-pathway-stage--aligned .gra-pathway-tour > span:not(.gra-pathway-tour-ring) {
    position: absolute !important;
    left: 22px !important;
    bottom: 64px !important;
    color: #fff !important;
    font-size: clamp(29px,3vw,43px) !important;
    font-weight: 400 !important;
    line-height: .9 !important;
    letter-spacing: -.05em !important;
}

.gra-pathway-stage--aligned .gra-pathway-tour > strong {
    position: absolute !important;
    left: 22px !important;
    bottom: 19px !important;
    color: #fff !important;
    font-size: clamp(45px,5vw,68px) !important;
    font-weight: 650 !important;
    line-height: .78 !important;
    letter-spacing: -.065em !important;
}

.gra-pathway-stage--aligned .gra-pathway-tour .gra-pathway-tour-ring {
    display: none !important;
}

/* ---------------------------------------------------------------
   Hover motion: photographic and controlled, not flashy.
   --------------------------------------------------------------- */
.gra-pathway-stage--aligned .gra-pathway-tile:hover,
.gra-pathway-stage--aligned .gra-pathway-tour:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(255,255,255,.95) !important;
    box-shadow: 0 24px 48px rgba(8,1,4,.32) !important;
}

.gra-pathway-stage--aligned .gra-pathway-tile:hover .gra-pathway-bg,
.gra-pathway-stage--aligned .gra-pathway-tour:hover .gra-pathway-bg {
    opacity: .96 !important;
    filter: saturate(.98) contrast(1.04) brightness(.94) !important;
    transform: scale(1.055) !important;
}

.gra-pathway-stage--aligned .gra-pathway-tile:hover > i,
.gra-pathway-stage--aligned .gra-pathway-tour:hover > i {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--gra-garnet) !important;
    transform: translateX(2px) !important;
}

/* Remove crest circles because the photographic section is now the motif. */
.gra-pathway-stage--aligned::before,
.gra-pathway-stage--aligned::after {
    display: none !important;
}

/* ================================================================
   TABLET
   ================================================================ */
@media (max-width: 1024px) {
    .gra-pathways {
        background-position: 54% center !important;
    }

    .gra-pathways-heading {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .gra-pathways-heading h2 {
        justify-self: start !important;
        max-width: 680px !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tile > strong {
        font-size: 25px !important;
        right: 62px !important;
    }
}

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 767px) {
    .gra-pathways {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
        background:
            linear-gradient(
                180deg,
                rgba(28,4,14,.84) 0%,
                rgba(67,13,34,.68) 47%,
                rgba(18,2,8,.91) 100%
            ),
            url('../images/school.JPG') center center / cover no-repeat !important;
    }

    .gra-pathways-heading {
        margin-bottom: 24px !important;
    }

    .gra-pathways-heading h2 {
        font-size: clamp(38px,10.5vw,52px) !important;
        line-height: .94 !important;
    }

    .gra-pathway-stage--aligned {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tile,
    .gra-pathway-stage--aligned .gra-pathway-tour,
    .gra-pathway-stage--aligned .gra-pathway-tile--achievement {
        grid-column: 1 !important;
        grid-row: auto !important;
        min-height: 178px !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tour {
        min-height: 220px !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tile > strong {
        left: 18px !important;
        right: 66px !important;
        bottom: 48px !important;
        font-size: 26px !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tile > small {
        left: 18px !important;
        right: 64px !important;
        bottom: 18px !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tile > i,
    .gra-pathway-stage--aligned .gra-pathway-tour > i {
        right: 14px !important;
        bottom: 14px !important;
        width: 38px !important;
        height: 38px !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tour > small {
        left: 19px !important;
        bottom: 92px !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tour > span:not(.gra-pathway-tour-ring) {
        left: 19px !important;
        bottom: 57px !important;
        font-size: 30px !important;
    }

    .gra-pathway-stage--aligned .gra-pathway-tour > strong {
        left: 19px !important;
        bottom: 18px !important;
        font-size: 48px !important;
    }
}

/* ========================================================================
   GITARAM ACADEMY
   FINAL INNER PAGE LAYOUT REFINEMENT — V20

   PURPOSE
   ------------------------------------------------------------------------
   1. Remove excessive empty/dark space below sub-navigation.
   2. Reduce unnecessary vertical spacing.
   3. Properly align existing inner-page images and text.
   4. Create consistent image/text proportions.
   5. Preserve ALL existing content.
   6. Preserve homepage design.
   7. Improve tablet/mobile responsiveness.
   ======================================================================== */


/* ========================================================================
   01. INNER PAGE MAIN AREA
   ======================================================================== */

body.is-inner .site-main {
    position: relative !important;

    min-height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    background: var(--gra-paper) !important;
}


/* Content must start directly after submenu */
body.is-inner #page-content {
    margin-top: 0 !important;
}


/* Main content wrapper */
body.is-inner .gra-inner-surface {
    position: relative !important;

    width: min(
        var(--gra-max),
        calc(100% - (var(--gra-gutter) * 2))
    ) !important;

    max-width: none !important;

    margin:
        0
        auto !important;

    padding:
        clamp(28px, 3.4vw, 48px)
        0
        clamp(60px, 6vw, 90px) !important;

    background:
        var(--gra-paper) !important;

    color:
        var(--gra-ink) !important;
}


/* First item must not create another top gap */
body.is-inner
.gra-inner-surface
> *:first-child {

    margin-top: 0 !important;
}


/* ========================================================================
   02. REMOVE LEGACY / EMPTY SPACERS
   ======================================================================== */

/*
   Many old pages contain blank divs, .free classes,
   empty rows and repeated line breaks.
*/

body.is-inner
.gra-inner-surface
.free {

    display: none !important;

    height: 0 !important;

    min-height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;
}


body.is-inner
.gra-inner-surface
.gra-empty-col {

    display: none !important;
}


body.is-inner
.gra-inner-surface
.row:empty,

body.is-inner
.gra-inner-surface
.container:empty {

    display: none !important;
}


body.is-inner
.gra-inner-surface
> br:first-child {

    display: none !important;
}


/* Prevent stacked BR tags creating large blank areas */
body.is-inner
.gra-inner-surface
br + br {

    line-height: .45 !important;
}


/* Old duplicate page headings/submenus */
body.is-inner
.gra-inner-surface
.My_nav,

body.is-inner
.gra-inner-surface
.legacy-page-heading,

body.is-inner
.gra-inner-surface
> .row
> center:first-child,

body.is-inner
.gra-inner-surface
center:first-child
> h2 {

    display: none !important;
}


/* ========================================================================
   03. SUB MENU
   ======================================================================== */

body.is-inner
.gra-section-nav {

    position: sticky !important;

    z-index: 700 !important;

    top: 78px !important;

    margin: 0 !important;

    padding: 0 !important;

    background:
        rgba(252, 250, 247, .97) !important;

    border-top:
        0 !important;

    border-bottom:
        1px solid var(--gra-line) !important;

    box-shadow:
        0 8px 26px rgba(46, 8, 22, .045) !important;

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);
}


body.is-inner
.gra-section-nav
.site-container {

    display: grid !important;

    grid-template-columns:
        auto
        minmax(0, 1fr) !important;

    align-items:
        center !important;

    min-height:
        52px !important;
}


body.is-inner
.gra-section-nav-title {

    padding-right:
        24px !important;

    color:
        var(--gra-garnet) !important;

    font-size:
        10px !important;

    font-weight:
        700 !important;

    letter-spacing:
        .13em !important;

    text-transform:
        uppercase !important;

    white-space:
        nowrap !important;
}


body.is-inner
.gra-section-nav-scroll {

    display:
        flex !important;

    align-items:
        center !important;

    gap:
        3px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow-x:
        auto !important;

    scrollbar-width:
        none;
}


body.is-inner
.gra-section-nav-scroll::-webkit-scrollbar {

    display:
        none;
}


body.is-inner
.gra-section-nav
a {

    flex:
        0 0 auto !important;

    margin:
        0 !important;

    padding:
        9px
        12px !important;

    color:
        var(--gra-muted) !important;

    font-size:
        11px !important;

    font-weight:
        550 !important;

    line-height:
        1.2 !important;

    white-space:
        nowrap !important;

    transition:
        color .25s ease,
        background .25s ease !important;
}


body.is-inner
.gra-section-nav
a:hover,

body.is-inner
.gra-section-nav
a.is-active {

    color:
        var(--gra-garnet) !important;

    background:
        var(--gra-rose) !important;
}


/* ========================================================================
   04. STANDARD IMAGE + TEXT ROW
   ======================================================================== */

/*
   Your JavaScript already assigns .gra-content-section,
   .gra-media-col and .gra-copy-col to legacy content rows.

   These rules only improve their layout.
*/

body.is-inner
.gra-inner-surface
.gra-content-section {

    position:
        relative !important;

    display:
        grid !important;

    grid-template-columns:
        minmax(300px, .88fr)
        minmax(0, 1.12fr) !important;

    align-items:
        center !important;

    gap:
        clamp(34px, 5vw, 72px) !important;

    width:
        100% !important;

    max-width:
        1240px !important;

    margin:
        0
        auto !important;

    padding:
        clamp(30px, 3.8vw, 54px)
        0 !important;

    border-bottom:
        1px solid var(--gra-line) !important;
}


/* First content row */
body.is-inner
.gra-inner-surface
.gra-content-section:first-of-type {

    padding-top:
        6px !important;
}


/* Last content row */
body.is-inner
.gra-inner-surface
.gra-content-section:last-of-type {

    padding-bottom:
        18px !important;

    border-bottom:
        0 !important;
}


/* Alternating image/text arrangement */
body.is-inner
.gra-inner-surface
.gra-content-section.gra-reverse {

    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(300px, .88fr) !important;
}


body.is-inner
.gra-inner-surface
.gra-content-section.gra-reverse
.gra-media-col {

    order:
        2 !important;
}


body.is-inner
.gra-inner-surface
.gra-content-section.gra-reverse
.gra-copy-col {

    order:
        1 !important;
}


/* Remove old Bootstrap spacing */
body.is-inner
.gra-inner-surface
.gra-content-section
> [class*="col-"] {

    float:
        none !important;

    width:
        auto !important;

    max-width:
        100% !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


/* ========================================================================
   05. IMAGE COLUMN
   ======================================================================== */

body.is-inner
.gra-inner-surface
.gra-media-col {

    position:
        relative !important;

    width:
        100% !important;

    min-height:
        0 !important;

    height:
        clamp(300px, 31vw, 440px) !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow:
        hidden !important;

    background:
        var(--gra-rose) !important;
}


/* Garnet frame */
body.is-inner
.gra-inner-surface
.gra-media-col::after {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    z-index:
        2;

    border:
        1px solid rgba(117, 28, 58, .15);

    pointer-events:
        none;
}


/* Images */
body.is-inner
.gra-inner-surface
.gra-media-col
img {

    display:
        block !important;

    width:
        100% !important;

    height:
        100% !important;

    min-height:
        0 !important;

    max-height:
        none !important;

    margin:
        0 !important;

    padding:
        0 !important;

    object-fit:
        cover !important;

    object-position:
        center !important;

    border:
        0 !important;

    border-radius:
        0 !important;

    box-shadow:
        none !important;

    transform:
        scale(1.001);

    transition:
        transform .75s var(--gra-ease),
        filter .5s ease !important;
}


body.is-inner
.gra-inner-surface
.gra-content-section:hover
.gra-media-col
img {

    transform:
        scale(1.025);
}


/* ========================================================================
   06. TEXT COLUMN
   ======================================================================== */

body.is-inner
.gra-inner-surface
.gra-copy-col {

    min-width:
        0 !important;

    width:
        100% !important;

    max-width:
        720px !important;

    margin:
        0 !important;

    padding:
        4px 0 !important;
}


/* Brand divider */
body.is-inner
.gra-inner-surface
.gra-copy-col::before {

    content:
        "";

    display:
        block;

    width:
        42px !important;

    height:
        2px !important;

    margin:
        0
        0
        19px !important;

    background:
        var(--gra-garnet) !important;
}


body.is-inner
.gra-inner-surface
.gra-copy-col
> *:first-child {

    margin-top:
        0 !important;
}


body.is-inner
.gra-inner-surface
.gra-copy-col
> *:last-child {

    margin-bottom:
        0 !important;
}


/* ========================================================================
   07. INNER PAGE TYPOGRAPHY
   ======================================================================== */

body.is-inner
.gra-inner-surface
h1,

body.is-inner
.gra-inner-surface
h2,

body.is-inner
.gra-inner-surface
h3,

body.is-inner
.gra-inner-surface
h4,

body.is-inner
.gra-inner-surface
h5,

body.is-inner
.gra-inner-surface
h6 {

    font-family:
        "Instrument Sans",
        Arial,
        sans-serif !important;

    color:
        var(--gra-ink) !important;

    text-transform:
        none !important;
}


body.is-inner
.gra-inner-surface
h2 {

    margin:
        0
        0
        17px !important;

    font-size:
        clamp(34px, 3.7vw, 52px) !important;

    font-weight:
        500 !important;

    line-height:
        1.02 !important;

    letter-spacing:
        -.045em !important;
}


body.is-inner
.gra-inner-surface
h3 {

    margin:
        0
        0
        15px !important;

    font-size:
        clamp(27px, 2.7vw, 37px) !important;

    font-weight:
        500 !important;

    line-height:
        1.08 !important;

    letter-spacing:
        -.035em !important;
}


body.is-inner
.gra-inner-surface
h4 {

    margin:
        0
        0
        13px !important;

    font-size:
        clamp(21px, 2vw, 28px) !important;

    font-weight:
        500 !important;

    line-height:
        1.18 !important;

    letter-spacing:
        -.025em !important;
}


body.is-inner
.gra-inner-surface
h5 {

    margin:
        0
        0
        12px !important;

    font-size:
        16px !important;

    font-weight:
        500 !important;

    line-height:
        1.55 !important;
}


body.is-inner
.gra-inner-surface
p,

body.is-inner
.gra-inner-surface
li {

    color:
        var(--gra-muted) !important;

    font-family:
        "Instrument Sans",
        Arial,
        sans-serif !important;

    font-size:
        15.5px !important;

    line-height:
        1.72 !important;
}


body.is-inner
.gra-inner-surface
p {

    margin:
        0
        0
        16px !important;
}


body.is-inner
.gra-inner-surface
ul,

body.is-inner
.gra-inner-surface
ol {

    margin:
        12px
        0
        22px !important;

    padding-left:
        22px !important;
}


body.is-inner
.gra-inner-surface
li {

    margin-bottom:
        7px !important;
}


body.is-inner
.gra-inner-surface
strong,

body.is-inner
.gra-inner-surface
b {

    color:
        var(--gra-ink) !important;

    font-weight:
        600 !important;
}


/* ========================================================================
   08. NORMAL LEGACY BOOTSTRAP ROWS
   ======================================================================== */

body.is-inner
.gra-inner-surface
.row {

    margin-left:
        0 !important;

    margin-right:
        0 !important;
}


/*
   Rows not converted into image/text sections should
   continue functioning normally.
*/
body.is-inner
.gra-inner-surface
.row:not(.gra-content-section) {

    width:
        100% !important;

    margin-left:
        0 !important;

    margin-right:
        0 !important;
}


body.is-inner
.gra-inner-surface
.row:not(.gra-content-section)
> [class*="col-"] {

    margin-bottom:
        20px !important;
}


/* ========================================================================
   09. GENERAL IMAGES ON OLD PAGES
   ======================================================================== */

body.is-inner
.gra-inner-surface
img {

    max-width:
        100% !important;
}


/* Legacy top/banner image */
body.is-inner
.gra-inner-surface
.image-head-wrapper {

    width:
        100% !important;

    height:
        clamp(290px, 34vw, 450px) !important;

    min-height:
        0 !important;

    margin:
        0
        0
        clamp(28px, 3.8vw, 44px) !important;

    padding:
        0 !important;

    overflow:
        hidden !important;

    background-size:
        cover !important;

    background-position:
        center !important;
}


/* ========================================================================
   10. TEXT-ONLY PAGES
   ======================================================================== */

body.is-inner
.gra-inner-surface
> .gra-text-section,

body.is-inner
.gra-inner-surface
> .cms-managed-content {

    width:
        min(100%, 1040px) !important;

    max-width:
        1040px !important;

    margin:
        0
        auto !important;

    padding:
        14px
        0
        28px !important;
}


/* CMS content should not generate another huge gap */
body.is-inner
.gra-inner-surface
.cms-managed-content {

    margin-top:
        22px !important;
}


/* ========================================================================
   11. TABLES
   ======================================================================== */

body.is-inner
.gra-inner-surface
.table-responsive,

body.is-inner
.gra-inner-surface
.table-scroll {

    width:
        100% !important;

    max-width:
        100% !important;

    margin:
        20px
        0
        30px !important;

    overflow-x:
        auto !important;

    border:
        1px solid var(--gra-line) !important;

    background:
        #fff !important;
}


body.is-inner
.gra-inner-surface
table {

    width:
        100% !important;

    margin:
        20px
        0
        28px !important;

    border-collapse:
        collapse !important;

    background:
        #fff !important;
}


body.is-inner
.gra-inner-surface
th {

    padding:
        13px
        15px !important;

    background:
        var(--gra-garnet) !important;

    color:
        #fff !important;

    vertical-align:
        top !important;
}


body.is-inner
.gra-inner-surface
td {

    padding:
        13px
        15px !important;

    color:
        var(--gra-muted) !important;

    vertical-align:
        top !important;

    border:
        1px solid var(--gra-line) !important;
}


/* ========================================================================
   12. CARDS / PANELS
   ======================================================================== */

body.is-inner
.gra-inner-surface
.panel,

body.is-inner
.gra-inner-surface
.well,

body.is-inner
.gra-inner-surface
.thumbnail,

body.is-inner
.gra-inner-surface
.media,

body.is-inner
.gra-inner-surface
.cms-public-content-card {

    margin-bottom:
        22px !important;

    border:
        1px solid var(--gra-line) !important;

    border-radius:
        0 !important;

    background:
        #fff !important;

    box-shadow:
        none !important;
}


body.is-inner
.gra-inner-surface
.panel-body,

body.is-inner
.gra-inner-surface
.well {

    padding:
        22px !important;
}


/* ========================================================================
   13. FORMS
   ======================================================================== */

body.is-inner
.gra-inner-surface
form {

    margin:
        24px
        0
        34px !important;

    padding:
        clamp(22px, 3vw, 34px) !important;
}


/* ========================================================================
   14. CAROUSEL
   ======================================================================== */

body.is-inner
.gra-inner-surface
.carousel {

    margin:
        0
        0
        30px !important;

    overflow:
        hidden !important;
}


body.is-inner
.gra-inner-surface
.carousel-inner
> .item
> img {

    width:
        100% !important;

    height:
        clamp(290px, 45vw, 510px) !important;

    object-fit:
        cover !important;
}


/* ========================================================================
   15. PAGES WITH SPECIAL CUSTOM LAYOUTS
   ======================================================================== */

/*
   Don't unnecessarily interfere with already custom-built
   Academic Stage / Gallery pages.
*/

body.is-inner
.gra-stage-page,

body.is-inner
.gra-gallery-experience {

    margin-top:
        0 !important;
}


/* ========================================================================
   16. TABLET
   ======================================================================== */

@media (max-width: 1024px) {

    body.is-inner
    .gra-inner-surface {

        padding-top:
            28px !important;

        padding-bottom:
            72px !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-content-section,

    body.is-inner
    .gra-inner-surface
    .gra-content-section.gra-reverse {

        grid-template-columns:
            minmax(250px, .88fr)
            minmax(0, 1.12fr) !important;

        gap:
            32px !important;

        padding:
            30px
            0 !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-media-col {

        height:
            clamp(275px, 38vw, 365px) !important;
    }


    body.is-inner
    .gra-inner-surface
    h2 {

        font-size:
            clamp(32px, 4.5vw, 44px) !important;
    }

}


/* ========================================================================
   17. MOBILE
   ======================================================================== */

@media (max-width: 767px) {

    /* ------------------------------------------------
       Sub navigation
       ------------------------------------------------ */

    body.is-inner
    .gra-section-nav {

        top:
            72px !important;
    }


    body.is-inner
    .gra-section-nav
    .site-container {

        display:
            block !important;

        min-height:
            0 !important;

        padding:
            6px
            0 !important;
    }


    body.is-inner
    .gra-section-nav-title {

        display:
            none !important;
    }


    body.is-inner
    .gra-section-nav-scroll {

        width:
            100% !important;

        margin:
            0 !important;

        padding:
            0 !important;

        gap:
            2px !important;
    }


    body.is-inner
    .gra-section-nav
    a {

        padding:
            8px
            10px !important;

        font-size:
            10px !important;
    }


    /* ------------------------------------------------
       Content starts immediately after submenu
       ------------------------------------------------ */

    body.is-inner
    .site-main {

        margin:
            0 !important;

        padding:
            0 !important;
    }


    body.is-inner
    .gra-inner-surface {

        width:
            calc(100% - 28px) !important;

        margin:
            0
            auto !important;

        padding:
            20px
            0
            60px !important;
    }


    /* ------------------------------------------------
       Image/text sections
       ------------------------------------------------ */

    body.is-inner
    .gra-inner-surface
    .gra-content-section,

    body.is-inner
    .gra-inner-surface
    .gra-content-section.gra-reverse {

        display:
            grid !important;

        grid-template-columns:
            1fr !important;

        gap:
            21px !important;

        margin:
            0 !important;

        padding:
            24px
            0 !important;
    }


    /*
       Consistent mobile flow:
       IMAGE first → TEXT second
    */

    body.is-inner
    .gra-inner-surface
    .gra-content-section
    .gra-media-col,

    body.is-inner
    .gra-inner-surface
    .gra-content-section.gra-reverse
    .gra-media-col {

        order:
            1 !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-content-section
    .gra-copy-col,

    body.is-inner
    .gra-inner-surface
    .gra-content-section.gra-reverse
    .gra-copy-col {

        order:
            2 !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-media-col {

        width:
            100% !important;

        height:
            clamp(220px, 65vw, 300px) !important;

        min-height:
            0 !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-media-col
    img {

        width:
            100% !important;

        height:
            100% !important;

        min-height:
            0 !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-copy-col {

        width:
            100% !important;

        max-width:
            none !important;

        padding:
            0 !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-copy-col::before {

        width:
            35px !important;

        margin-bottom:
            14px !important;
    }


    /* ------------------------------------------------
       Typography
       ------------------------------------------------ */

    body.is-inner
    .gra-inner-surface
    h2 {

        margin-bottom:
            14px !important;

        font-size:
            31px !important;

        line-height:
            1.04 !important;
    }


    body.is-inner
    .gra-inner-surface
    h3 {

        margin-bottom:
            13px !important;

        font-size:
            24px !important;

        line-height:
            1.1 !important;
    }


    body.is-inner
    .gra-inner-surface
    h4 {

        font-size:
            20px !important;
    }


    body.is-inner
    .gra-inner-surface
    p,

    body.is-inner
    .gra-inner-surface
    li {

        font-size:
            15px !important;

        line-height:
            1.66 !important;
    }


    /* ------------------------------------------------
       Old Bootstrap rows
       ------------------------------------------------ */

    body.is-inner
    .gra-inner-surface
    .row:not(.gra-content-section) {

        margin:
            0 !important;
    }


    body.is-inner
    .gra-inner-surface
    .row:not(.gra-content-section)
    > [class*="col-"] {

        float:
            none !important;

        width:
            100% !important;

        max-width:
            100% !important;

        margin-bottom:
            18px !important;

        padding-left:
            0 !important;

        padding-right:
            0 !important;
    }


    /* ------------------------------------------------
       Large old header image
       ------------------------------------------------ */

    body.is-inner
    .gra-inner-surface
    .image-head-wrapper {

        height:
            235px !important;

        min-height:
            0 !important;

        margin-bottom:
            24px !important;
    }


    /* ------------------------------------------------
       Tables
       ------------------------------------------------ */

    body.is-inner
    .gra-inner-surface
    table {

        font-size:
            13px !important;
    }


    body.is-inner
    .gra-inner-surface
    th,

    body.is-inner
    .gra-inner-surface
    td {

        padding:
            10px
            11px !important;
    }


    /* ------------------------------------------------
       Forms/cards
       ------------------------------------------------ */

    body.is-inner
    .gra-inner-surface
    form,

    body.is-inner
    .gra-inner-surface
    .panel-body,

    body.is-inner
    .gra-inner-surface
    .well {

        padding:
            18px !important;
    }

}


/* ========================================================================
   18. SMALL MOBILE
   ======================================================================== */

@media (max-width: 480px) {

    body.is-inner
    .gra-inner-surface {

        width:
            calc(100% - 24px) !important;

        padding-top:
            16px !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-content-section {

        padding:
            20px
            0 !important;
    }


    body.is-inner
    .gra-inner-surface
    .gra-media-col {

        height:
            215px !important;
    }


    body.is-inner
    .gra-inner-surface
    h2 {

        font-size:
            29px !important;
    }


    body.is-inner
    .gra-inner-surface
    h3 {

        font-size:
            23px !important;
    }

}

