/* ==========================================================================
   SFS Academy — About pages (About Us, Our Patron, Our Founder, Principal's
   Message). Built from the Home page's colours, type and spacing.
   ========================================================================== */

/* Page menu under the banner */
.about-nav {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.about-nav ul {
    display: flex;
    gap: 0.25rem 1.75rem;
    overflow-x: auto;
}

.about-nav a {
    display: block;
    padding-block: 1rem;
    border-bottom: 3px solid transparent;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.about-nav a:hover {
    color: var(--indigo-700);
}

.about-nav a[aria-current="page"] {
    border-bottom-color: var(--orange-500);
    color: var(--indigo-700);
}

.about-block {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Two-column rows: heading beside text, or a picture beside text */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
}

.about-split--crest {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
}

.about-split--portrait {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}

.about-text > * + * {
    margin-top: 1.25rem;
}

.about-text .section-heading {
    margin-bottom: 0.5rem;
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink-soft, var(--ink));
}

.about-text .lead {
    font-size: 1.1875rem;
    color: var(--ink);
}

/* Vision, Mission and Motto cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.5rem;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.about-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
}

.about-card h3 {
    margin-bottom: 0.875rem;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--saffron-400);
}

.about-card p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.about-card p + p {
    margin-top: 0.75rem;
}

.about-card--accent {
    border-color: transparent;
    background: var(--indigo-700);
}

.about-card__motto {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--white);
}

/* Crest */
.about-crest {
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: var(--cream);
    box-shadow: var(--shadow);
}

.about-crest img {
    width: min(100%, 22rem);
    height: auto;
}

/* Patron and Founder */
.about-portrait {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--cream);
    box-shadow: var(--shadow);
}

/* Patron and Founder portraits sit flat on the page. */
.about-portrait:not(.about-portrait--named) {
    background: none;
    box-shadow: none;
}

.about-portrait img {
    width: 100%;
    height: auto;
}

.about-dates {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: var(--sand);
    font-size: 0.9375rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--indigo-700) !important;
}

.about-quote {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--orange-500);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: var(--cream);
}

.about-quote p {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

/* Principal's message */
.about-message {
    max-width: 52rem;
}

.about-message__body {
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-left: 4px solid var(--orange-500);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: var(--cream);
}

.about-message__body > * + * {
    margin-top: 1.25rem;
}

.about-message__body p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-message__body .lead {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .about-split,
    .about-split--crest,
    .about-split--portrait {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-portrait,
    .about-crest {
        max-width: 22rem;
    }
}

/* Principal: photograph with name and designation */
.about-portrait--named figcaption {
    display: grid;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.82);
}

.about-portrait--named figcaption strong {
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--white);
}

.about-portrait--named figcaption span {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--saffron-400);
}

/* Management: leaders and staff photographs */
.about-people {
    display: grid;
    gap: 2rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.about-people ul {
    display: grid;
    gap: 1.5rem;
}

.about-people__leaders {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 17.5rem));
}

.about-people__staff {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.about-person {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.about-person img {
    width: 100%;
    height: auto;
}

.about-person figcaption {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border-top: 3px solid var(--orange-500);
}

.about-person strong {
    font-size: 1.0625rem;
    line-height: 1.3;
    color: var(--ink);
}

.about-person span {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--indigo-700);
}

/* About St. Francis De Sales Academy: text beside a rounded photo-and-figure grid */
.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 3rem clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.about-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(11rem, 15rem));
    gap: 1rem;
}

.about-bento__photo,
.about-bento__card {
    overflow: hidden;
    border-radius: 1.5rem;
}

.about-bento__photo {
    background: var(--sand);
}

.about-bento__photo picture,
.about-bento__photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.about-bento__photo img {
    object-fit: cover;
}

.about-bento__photo--a {
    grid-column: 1 / 3;
}

.about-bento__photo--b {
    grid-column: 2 / 4;
}

.about-bento__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--white);
}

.about-bento__card strong {
    font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: inherit;
}

.about-bento__card span {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.about-bento__card--sky {
    background: var(--sky-400);
    color: var(--navy-950);
}

.about-bento__card--orange {
    background: var(--orange-500);
}

@media (max-width: 860px) {
    .about-intro {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .about-bento {
        grid-template-rows: repeat(2, 9.5rem);
    }

    .about-bento__card {
        padding: 1rem;
    }
}

/* Vision, Mission & Motto: glass cards with a round icon, rule and corner arc */
#vision {
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}

.about-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 2.6vw, 2rem);
    border: 1px solid rgba(120, 170, 255, 0.28);
    border-radius: 1.125rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.about-card::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    bottom: -3.5rem;
    width: 9rem;
    height: 9rem;
    border: 2px solid var(--arc, rgba(255, 255, 255, 0.14));
    border-radius: 50%;
    background: var(--arc-fill, transparent);
    pointer-events: none;
}

.about-card--vision {
    --tone: #16a37f;
    --arc-fill: rgba(22, 163, 127, 0.18);
    --arc: rgba(22, 163, 127, 0.3);
}

.about-card--mission {
    --tone: var(--indigo-700);
    --arc-fill: rgba(58, 109, 240, 0.22);
    --arc: rgba(58, 109, 240, 0.35);
}

.about-card--motto {
    --tone: #f5b50a;
    --arc: var(--saffron-400);
}

.about-card__head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.about-card__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: var(--tone);
    color: var(--white);
    box-shadow: 0 10px 24px -10px var(--tone);
}

.about-card h3 {
    position: relative;
    margin: 0;
    padding-bottom: 0.625rem;
    font-size: 1.0625rem;
    letter-spacing: 0.22em;
    color: var(--white);
}

.about-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3.25rem;
    height: 3px;
    border-radius: 3px;
    background: var(--tone);
}

.about-card--mission h3::after {
    background: var(--sky-400);
}

.about-card p {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.about-card__motto {
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem) !important;
    font-weight: 700;
    line-height: 1.2 !important;
    color: var(--white) !important;
}

.about-card--motto p:last-child {
    color: rgba(255, 255, 255, 0.78);
}

/* School Crest: crest on a faded view of the school, offset navy shape behind */
.about-crest {
    position: relative;
    display: block;
    padding: 0;
    background: none;
    box-shadow: none;
    isolation: isolate;
}

.about-crest__shape {
    position: absolute;
    inset: -1.25rem auto auto -1.25rem;
    z-index: -1;
    width: 62%;
    height: 72%;
    border-radius: 2rem;
    background: var(--navy-800);
}

.about-crest__frame {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 2rem;
    background: var(--white);
    box-shadow: 0 24px 50px -24px rgba(11, 31, 77, 0.35);
}

.about-crest__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.22;
    filter: saturate(0.6) blur(1px);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-crest__backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-crest__frame > img {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    height: auto;
}

.about-crest__wave {
    position: absolute;
    left: -2.5rem;
    bottom: -2.5rem;
    z-index: 0;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: var(--navy-800);
    box-shadow: 1.25rem 0.75rem 0 -0.4rem var(--sky-400);
}

/* The four symbols */
.about-symbols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 1.5rem 0;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.about-symbols li {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0.25rem 0.75rem;
    grid-template-columns: auto 1fr;
    padding-inline: 1rem;
}

.about-symbols li + li {
    border-left: 1px solid var(--line);
}

.about-symbols li:first-child {
    padding-left: 0;
}

.about-symbols__icon {
    display: grid;
    grid-row: span 1;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
}

.about-symbols strong {
    align-self: center;
    font-size: 0.9375rem;
    color: var(--ink);
}

.about-symbols li > span:last-child {
    grid-column: 1 / -1;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #526079;
}

.about-symbols__icon--blue { background: #e6eefc; color: var(--indigo-700); }
.about-symbols__icon--gold { background: #fdf0cf; color: #c2410c; }
.about-symbols__icon--green { background: #dcf3ec; color: #0f8a6a; }
.about-symbols__icon--red { background: #fde6e8; color: var(--red-500, #e5283d); }

@media (max-width: 640px) {
    .about-symbols li + li {
        border-left: 0;
    }

    .about-symbols li {
        padding-left: 0;
    }
}

.about-crest__frame picture,
.about-crest__frame .about-crest__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.about-crest__frame picture {
    opacity: 0.22;
    filter: saturate(0.6);
}

.about-crest__frame picture img,
.about-crest__frame img.about-crest__backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-crest__frame picture .about-crest__backdrop {
    opacity: 1;
    filter: none;
}

/* Section headings: the eyebrow keeps its normal size and colour inside text columns. */
.about-text .eyebrow {
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--indigo-700);
}

.about-text .section-heading {
    margin-bottom: 0.5rem;
}

/* Our Patron: round portrait on a pale disc, pill dates, tinted quotation */
.about-portrait--round {
    position: relative;
    max-width: 24rem;
    overflow: visible;
    border-radius: 50%;
}

.about-portrait--round::before {
    content: "";
    position: absolute;
    inset: -1.25rem -1.25rem -1.25rem -1.25rem;
    z-index: -1;
    border-radius: 50%;
    background: var(--sand);
}

.about-portrait--round::after {
    content: "";
    position: absolute;
    left: -2.25rem;
    top: 2rem;
    width: 3px;
    height: 3.5rem;
    border-radius: 3px;
    background: #0e9aa7;
}

.about-portrait--round img {
    border-radius: 50%;
    box-shadow: 0 22px 40px -22px rgba(11, 31, 77, 0.45);
}

.about-split--portrait:has(.about-portrait--round) {
    isolation: isolate;
    align-items: center;
}

.about-dates {
    background: #dff6f7;
    color: #0b5d63 !important;
}

.about-quote {
    border-left-color: #0e9aa7;
    background: #e6f6f7;
}

.about-quote p {
    font-style: italic;
    font-weight: 600;
    color: var(--navy-900);
}

.about-quote footer {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #526079;
}

.about-quote footer::before {
    content: "— ";
}

/* Our Patron: finished portrait artwork (disc and leaves are part of the picture) */
.about-portrait--art {
    max-width: 17.5rem;
    margin-inline: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.about-portrait--art::before,
.about-portrait--art::after {
    display: none;
}

.about-portrait--art img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.about-portrait--art img {
    clip-path: inset(0 0 5% 0);
    mix-blend-mode: multiply;
}

.about-portrait--art {
    max-width: 26rem;
}

.about-portrait--art img {
    clip-path: none;
}

.about-portrait--art img {
    mix-blend-mode: normal;
}

/* Our Patron: a faded dotted pattern with soft rings, fading out toward the edges */
.about-block--pattern {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.about-block--pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(31, 79, 216, 0.3) 1.5px, transparent 1.6px),
        radial-gradient(circle at 18% 50%, transparent 0 15rem, rgba(31, 79, 216, 0.16) 15rem calc(15rem + 2px), transparent calc(15rem + 2px) 19rem, rgba(14, 154, 167, 0.16) 19rem calc(19rem + 2px), transparent calc(19rem + 2px));
    background-size: 26px 26px, 100% 100%;
    -webkit-mask-image: radial-gradient(ellipse at 22% 50%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
    mask-image: radial-gradient(ellipse at 22% 50%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
    pointer-events: none;
}

/* Our Founder: the only source photograph is 250px wide, so the round portrait stays small and sharp. */
.about-portrait--small {
    width: 100%;
    margin-inline: auto;
}

.about-portrait--small::before {
    inset: -1.5rem;
}

/* Our Founder: no pale disc behind the portrait. */
.about-portrait--small::before {
    display: none;
}

.about-portrait--small img {
    box-shadow: none;
}

/* Mission: a bulleted list followed by the closing line. */
.about-card__list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.5rem;
    padding: 0;
}

.about-card__list li {
    position: relative;
    padding-left: 1.375rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.about-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--sky-400);
}

.about-card .about-card__closing {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Vision, Mission and Motto: Vision and Motto side by side, Mission full width below with a two-column list. */
@media (min-width: 860px) {
    .about-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "vision motto"
            "mission mission";
        align-items: stretch;
    }

    .about-card--vision { grid-area: vision; }
    .about-card--motto { grid-area: motto; }
    .about-card--mission { grid-area: mission; }

    .about-card--mission .about-card__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 3rem;
    }
}

/* ==========================================================================
   About Us page redesign. Everything below is scoped to .ab so that the Patron,
   Founder and Principal pages, which share this stylesheet, are not affected.
   ========================================================================== */

/* ---- 1. Our School: large editorial heading, one tall photograph and two quiet figures ---- */
.ab-school {
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.ab-school .about-intro { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.ab-school .section-heading__title { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem); line-height: 1.02; }
.ab-school .about-intro__text > .lead { margin-top: 1.5rem; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.6; color: var(--navy-900); }
.ab-school .about-intro__text > p:not(.lead) { margin-top: 1.25rem; line-height: 1.85; color: #44516b; }

.ab-school .about-bento {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.25rem clamp(1rem, 3vw, 2rem);
    align-items: start;
}

.ab-school .about-bento__photo { border-radius: 1.5rem; }
.ab-school .about-bento__photo--a { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 3 / 4.4; border-radius: 1.5rem 1.5rem 1.5rem 7rem; }
.ab-school .about-bento__photo--b { grid-column: 2; grid-row: 2; aspect-ratio: 4 / 3; border-radius: 7rem 1.5rem 1.5rem 1.5rem; }
.ab-school .about-bento__photo img { object-fit: cover; transition: transform 0.6s var(--ease); }
.ab-school .about-bento__photo:hover img { transform: scale(1.04); }

.ab-school .about-bento__card {
    display: grid;
    gap: 0.375rem;
    align-content: start;
    padding: 1.25rem 0 0;
    border-radius: 0;
    border-top: 2px solid var(--orange-500);
    background: none;
    color: var(--navy-900);
}

.ab-school .about-bento__card--sky { grid-column: 2; grid-row: 1; border-top-color: var(--indigo-700); }
.ab-school .about-bento__card--orange { grid-column: 2; grid-row: 3; }

.ab-school .about-bento__card strong {
    font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--indigo-700);
}

.ab-school .about-bento__card--orange strong { color: var(--orange-600); }
.ab-school .about-bento__card span { max-width: 16rem; font-size: 0.9688rem; line-height: 1.55; color: #44516b; }

/* ---- 2. Vision, Mission and Motto: statements on a deep navy field ---- */
.ab-vision {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(58, 109, 240, 0.28), transparent 60%),
        radial-gradient(40rem 26rem at 0% 110%, rgba(251, 191, 36, 0.12), transparent 60%),
        linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 70%);
}

.ab-vision::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
    background-size: 22px 22px;
    pointer-events: none;
}

.ab-vision .container { position: relative; }

.ab-vision .about-cards { gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }

.ab-vision .about-card,
.ab-vision .about-card:hover {
    padding: 1.75rem 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}

.ab-vision .about-card::after { display: none; }

.ab-vision .about-card__head { margin-bottom: 1.25rem; gap: 1rem; }

.ab-vision .about-card__icon {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--tone, var(--saffron-400));
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.ab-vision .about-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--saffron-400);
}

.ab-vision .about-card h3::after { display: none; }

.ab-vision .about-card--vision > p {
    font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
    line-height: 1.55;
    font-weight: 500;
    color: var(--white);
}

.ab-vision .about-card--motto .about-card__motto {
    margin-bottom: 1rem;
    font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem) !important;
    line-height: 1.12;
    color: var(--saffron-400);
}

.ab-vision .about-card--motto p:last-child { font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, 0.82); }

/* Mission: a numbered, two-column list */
.ab-vision .about-card__list { counter-reset: mission; gap: 0; }

.ab-vision .about-card__list li {
    position: relative;
    counter-increment: mission;
    padding: 0.875rem 0 0.875rem 3.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.0625rem;
    line-height: 1.55;
}

.ab-vision .about-card__list li::before {
    content: counter(mission, decimal-leading-zero);
    left: 0;
    top: 0.875rem;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--saffron-400);
}

/* ---- 3. Crest: round crest on a softened view of the school, symbols as open columns ---- */
.ab-crest { background: var(--white); }

.ab-crest .about-crest__frame {
    max-width: 26rem;
    margin-inline: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 0 10px var(--indigo-100), 0 0 0 11px var(--line);
}

.ab-crest .about-crest__frame > img { width: min(78%, 20rem); }

.ab-crest .about-split--crest { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ab-crest .section-heading__title { font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.05; }
.ab-crest .about-text > .lead { margin-top: 1.25rem; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); color: var(--navy-900); }

.ab-crest .about-symbols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2.5rem;
    margin-top: 2rem;
    padding-top: 0;
    border-top: 0;
}

.ab-crest .about-symbols li,
.ab-crest .about-symbols li:first-child {
    padding: 1.125rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    transition: transform 0.3s var(--ease);
}

.ab-crest .about-symbols li + li { border-left: 0; }
.ab-crest .about-symbols li:hover { transform: translateX(0.25rem); }

/* ---- 4. Management: heading and text side by side, leaders as arched portraits ---- */
.ab-leadership { position: relative; overflow: hidden; background: var(--cream); }

.ab-leadership .container { position: relative; z-index: 1; }
.ab-leadership .section-heading__title { font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.05; }
.ab-leadership .about-text p { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.8; color: #2c3a57; }

.ab-leadership .about-people__leaders {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 17rem));
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.ab-leadership .about-person {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    text-align: center;
}

.ab-leadership .about-person picture,
.ab-leadership .about-person img {
    display: block;
    width: 100%;
}

.ab-leadership .about-person img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 9rem 9rem 1.25rem 1.25rem;
    transition: transform 0.5s var(--ease);
}

.ab-leadership .about-person:hover img { transform: translateY(-6px); }

.ab-leadership .about-person figcaption {
    justify-items: center;
    padding: 1.25rem 0 0;
    border-top: 0;
}

.ab-leadership .about-person figcaption::before {
    content: "";
    width: 2.5rem;
    height: 3px;
    margin-bottom: 0.5rem;
    border-radius: 2px;
    background: var(--orange-500);
}

.ab-leadership .about-person strong { font-size: 1.1875rem; }

@media (max-width: 1000px) {
    .ab-school .about-intro,
    .ab-crest .about-split--crest { grid-template-columns: minmax(0, 1fr); }
    .ab-school .about-bento__photo--a { border-radius: 1.5rem 1.5rem 1.5rem 5rem; }
    .ab-school .about-bento__photo--b { border-radius: 5rem 1.5rem 1.5rem 1.5rem; }
}

@media (max-width: 640px) {
    .ab-school .about-bento { grid-template-columns: minmax(0, 1fr); }
    .ab-school .about-bento__photo--a,
    .ab-school .about-bento__photo--b,
    .ab-school .about-bento__card--sky,
    .ab-school .about-bento__card--orange { grid-column: 1; grid-row: auto; }
    .ab-school .about-bento__photo--a { aspect-ratio: 4 / 3; }
    .ab-crest .about-symbols { grid-template-columns: minmax(0, 1fr); }
    .ab-leadership .about-people__leaders { grid-template-columns: minmax(0, 1fr); max-width: 17rem; margin-inline: auto; }
    .ab-vision .about-card__list li { padding-left: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-school .about-bento__photo img,
    .ab-crest .about-symbols li,
    .ab-leadership .about-person img { transition: none; }
    .ab-crest .about-symbols li:hover,
    .ab-leadership .about-person:hover img { transform: none; }
}

/* ---- Vision, Mission and Motto, second design: statements on top, Mission as an icon list below ---- */
.ab-vision .about-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "vision motto"
        "mission mission";
    gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.ab-vision .about-card--vision,
.ab-vision .about-card--motto { border-top: 0; padding-top: 0; }

.ab-vision .about-hl { color: var(--saffron-400); }
.ab-vision .about-card--motto .about-hl { color: var(--saffron-400); }

.ab-vision .about-card--vision > p { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); line-height: 1.5; font-weight: 500; }

.ab-vision .about-card--motto .about-card__motto {
    margin-top: 0;
    font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem) !important;
    line-height: 1.1;
    color: var(--white);
}

.ab-vision .about-card--motto p:last-child { max-width: 30rem; }

/* A thin rule above the Mission row, like the reference. */
.ab-vision .about-card--mission {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
    gap: 2rem clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.ab-vision .about-card--mission .about-card__head { margin-bottom: 0; }

.ab-vision .about-card--mission .about-card__icon {
    width: 4rem;
    height: 4rem;
    border-color: var(--saffron-400);
    color: var(--saffron-400);
}

.ab-vision .about-card--mission h3 { color: var(--saffron-400); }

/* Two columns of numbered rows, filled top to bottom. */
.ab-vision .about-card__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    column-gap: clamp(1.5rem, 4vw, 3rem);
}

.ab-vision .about-card__list li {
    display: grid;
    grid-template-columns: 2.5rem 3rem minmax(0, 1fr);
    align-items: center;
    gap: 0 1rem;
    padding: 0.875rem 0;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.ab-vision .about-card__list li::before {
    position: static;
    grid-column: 1;
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.ab-vision .about-card__item-icon {
    grid-column: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.ab-vision .about-card__list li > span:last-child { grid-column: 3; }
.ab-vision .about-card__list li:hover .about-card__item-icon { background: var(--saffron-400); color: var(--navy-950); }

@media (max-width: 1100px) {
    .ab-vision .about-card--mission { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .ab-vision .about-cards {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "vision" "motto" "mission";
    }

    .ab-vision .about-card__list {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-flow: row;
    }
}

@media (max-width: 480px) {
    .ab-vision .about-card__list li { grid-template-columns: 2rem 2.75rem minmax(0, 1fr); gap: 0 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-vision .about-card__item-icon { transition: none; }
}

/* Mission headline under the label. */
.ab-vision .about-card--mission .about-card__head { grid-column: 1; grid-row: 1; }
.ab-vision .about-card--mission .about-card__statement { grid-column: 1; grid-row: 2; }
.ab-vision .about-card--mission .about-card__list { grid-column: 2; grid-row: 1 / span 2; }

.ab-vision .about-card--mission .about-card__statement {
    margin-top: -0.5rem;
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--white);
}

@media (max-width: 1100px) {
    .ab-vision .about-card--mission .about-card__list { grid-column: 1; grid-row: auto; }
    .ab-vision .about-card--mission .about-card__statement { margin-top: 0; }
}

/* Vision, Mission and Motto: every accent uses the site's saffron. */
.ab-vision .about-card--vision,
.ab-vision .about-card--mission,
.ab-vision .about-card--motto { --tone: var(--saffron-400); }

/* Mission list: no numbers, just the icon and the text. */
.ab-vision .about-card__list li { grid-template-columns: 3rem minmax(0, 1fr); }
.ab-vision .about-card__list li::before { display: none; }
.ab-vision .about-card__item-icon { grid-column: 1; }
.ab-vision .about-card__list li > span:last-child { grid-column: 2; }

@media (max-width: 480px) {
    .ab-vision .about-card__list li { grid-template-columns: 2.75rem minmax(0, 1fr); }
}

/* ---- School Crest, second design: crest on a tilted plaque over a navy shape, symbols in four columns ---- */
.ab-crest { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--white) 40%, var(--cream) 100%); }

.ab-crest .about-split--crest { grid-template-columns: minmax(0, 7fr) minmax(0, 13fr); gap: 2.5rem clamp(3rem, 7vw, 6rem); align-items: center; }

/* Left: navy shape, gold arc and the tilted plaque. */
.ab-crest .about-crest { position: relative; isolation: isolate; padding: clamp(1.5rem, 4vw, 3rem) 0; }

.ab-crest .about-crest::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: -2.5rem;
    bottom: -2.5rem;
    left: -50vw;
    right: -2rem;
    border-radius: 0 40% 40% 0 / 0 30% 30% 0;
    background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.ab-crest .about-crest::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -1rem;
    bottom: -1rem;
    left: -50vw;
    right: -3.25rem;
    border: 2px solid var(--saffron-400);
    border-left: 0;
    border-radius: 0 40% 40% 0 / 0 30% 30% 0;
    opacity: 0.8;
    pointer-events: none;
}

.ab-crest .about-crest__frame {
    max-width: 20rem;
    margin-inline: auto;
    aspect-ratio: 1;
    border-radius: 2rem;
    background: linear-gradient(145deg, #f7f4ee 0%, #e4dfd4 100%);
    box-shadow: 0 30px 50px -20px rgba(7, 20, 47, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transform: rotate(-5deg);
    transition: transform 0.5s var(--ease);
}

.ab-crest .about-crest:hover .about-crest__frame { transform: rotate(-2deg) translateY(-4px); }
.ab-crest .about-crest__backdrop { opacity: 0.12; }
.ab-crest .about-crest__frame > img { width: min(82%, 20rem); filter: drop-shadow(0 12px 14px rgba(7, 20, 47, 0.35)); transform: rotate(5deg); }

/* Right: italic heading accent and a four-column symbol row. */
.ab-crest .section-heading__title { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); }
.ab-crest .section-heading__title em { font-style: italic; }

.about-symbols__title {
    margin-top: 2rem;
    padding-left: 0.875rem;
    border-left: 3px solid var(--orange-500);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy-800);
}

.ab-crest .about-symbols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 1.25rem;
}

.ab-crest .about-symbols li,
.ab-crest .about-symbols li:first-child {
    --tone: var(--indigo-700);
    --tint: var(--indigo-100);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-content: start;
    gap: 0.5rem;
    padding: 0.25rem 1.125rem 1.25rem;
    border-top: 0;
    border-left: 1px solid var(--line);
}

.ab-crest .about-symbols li:first-child { padding-left: 0; border-left: 0; }
.ab-crest .about-symbols li:nth-child(2) { --tone: #d99a06; --tint: #fff3d1; }
.ab-crest .about-symbols li:nth-child(3) { --tone: #0e9bb4; --tint: #d9f3f8; }
.ab-crest .about-symbols li:nth-child(4) { --tone: var(--orange-600); --tint: #ffe9d6; }

.ab-crest .about-symbols li::after { content: ""; width: 2rem; height: 3px; margin-top: 0.375rem; border-radius: 2px; background: var(--tone); }

.ab-crest .about-symbols__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.5rem;
    background: var(--tint);
    color: var(--tone);
}

.ab-crest .about-symbols strong { font-size: 1.0625rem; color: var(--navy-900); }
.ab-crest .about-symbols li > span:not(.about-symbols__icon) { font-size: 0.9375rem; line-height: 1.5; color: #526079; }

@media (max-width: 1100px) {
    .ab-crest .about-symbols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
    .ab-crest .about-symbols li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 1000px) {
    .ab-crest .about-split--crest { grid-template-columns: minmax(0, 1fr); }
    .ab-crest .about-crest { padding-block: 2.5rem; }
    .ab-crest .about-crest::before { left: -2rem; right: -2rem; top: 0; bottom: 0; border-radius: 2rem; }
    .ab-crest .about-crest::after { display: none; }
}

@media (max-width: 520px) {
    .ab-crest .about-symbols { grid-template-columns: minmax(0, 1fr); }
    .ab-crest .about-symbols li,
    .ab-crest .about-symbols li:first-child,
    .ab-crest .about-symbols li:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
    .ab-crest .about-symbols li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-crest .about-crest__frame { transition: none; }
    .ab-crest .about-crest:hover .about-crest__frame { transform: rotate(-5deg); }
}

/* Our Founder on a wide screen looks the same as on a phone: the portrait stands alone, with no teal tick beside it and no rings drawn around it. */
.about-portrait--small::after {
    display: none;
}

/* Our Patron and Our Founder: no rings behind the portrait on any screen, only the faint dots. */
.about-block--pattern:has(.about-portrait--small)::before,
.about-block--pattern:has(.about-portrait--art)::before {
    background-image: radial-gradient(circle at 1px 1px, rgba(31, 79, 216, 0.3) 1.5px, transparent 1.6px);
    background-size: 26px 26px;
}

/* Our Patron: the portrait sits in the middle of its column, level with the middle of the text beside it. */
@media (min-width: 861px) {
    .about-split--portrait:has(.about-portrait--art) {
        align-items: center;
    }
}
