/* About Us page — page-specific layouts. Loaded after style.css and scoped with the ab- prefix,
   so nothing here touches the homepage. Same tokens, type and motion as the rest of the site. */

/* 1. Hero: a full-bleed campus photograph under a maroon shade, a very large title bottom-left */
.ab-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(560px, 88vh, 820px); background: var(--footer); color: var(--base); }
.js .ab-hero { margin-top: calc(var(--header-h) * -1); }
.ab-hero .hero__media { position: absolute; inset: 0; z-index: -2; }
.ab-hero__img { position: absolute; top: 0; left: 0; width: 100%; height: 136%; max-width: none; object-fit: cover; object-position: 62% 0; transform-origin: 50% 0; }
.motion .ab-hero__img { animation: kenburns 10s var(--ease) both; }
.ab-hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(3, 16, 40, 0.82) 0%, rgba(3, 16, 40, 0.6) 22%, rgba(3, 16, 40, 0.22) 48%, transparent 66%),
  linear-gradient(90deg, rgba(3, 16, 40, 0.38) 0%, transparent 42%),
  linear-gradient(180deg, rgba(8, 47, 99, 0.3) 0%, transparent 18%); }
/* with the lighter shade the photograph shows more; the white words carry a soft shadow of their own */
.ab-hero__title, .ab-hero__lead, .ab-hero .label { text-shadow: 0 1px 3px rgba(5, 28, 66, 0.55), 0 4px 26px rgba(5, 28, 66, 0.5); }
.ab-hero__inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 1rem + 4vw, 6rem); align-items: end; padding-top: calc(var(--header-h) + 5rem); padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.ab-hero__title { font-family: var(--display); font-size: clamp(3rem, 1.2rem + 7vw, 7.25rem); font-weight: 280; line-height: 0.95; letter-spacing: -0.04em; color: var(--base); }
.ab-line { display: inline-block; vertical-align: top; overflow: hidden; padding: 0.04em 0.08em 0.1em; margin: -0.04em -0.08em -0.1em; }
.ab-line__in { display: block; }
.ab-hero__title em { font-style: italic; font-weight: 260; color: var(--flame); }
.ab-line--em { margin-left: 0.22em; }
.motion .ab-line__in { transform: translateY(108%); transition: transform 1.2s var(--ease) 0.25s; }
.motion .ab-line--em .ab-line__in { transition-delay: 0.45s; }
.motion .ab-hero.is-in .ab-line__in { transform: none; }
.ab-hero__lead { margin: 0; padding-left: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); border-left: 2px solid var(--flame); font-family: var(--display); font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.15rem); font-weight: 330; line-height: 1.45; color: var(--base); }
.ab-hero__cue { position: absolute; left: var(--pad); bottom: 1.25rem; display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); transition: color 0.3s; }
.ab-hero__cue::before { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--flame), transparent); }
.ab-hero__cue:hover { color: var(--flame); }
.motion .ab-hero__lead, .motion .ab-hero .label { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease) 0.7s, transform 1.1s var(--ease) 0.7s; }
.motion .ab-hero.is-in .ab-hero__lead, .motion .ab-hero.is-in .label { opacity: 1; transform: none; }

/* 2. Story: a tall photograph beside two very large years on one gold line */
.ab-story { position: relative; padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--rose-tint) 100%); }
.ab-story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 6vw, 7rem); align-items: stretch; }
.ab-story__photos { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(1rem, .8rem + 1vw, 1.5rem); height: 100%; min-height: 0; }
.ab-story__photo { position: relative; overflow: hidden; margin: 0; border-radius: var(--r-lg); min-height: 14rem; background: var(--raised); }
.ab-story__photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 54% 50%; }
.ab-story__head { margin-bottom: clamp(2rem, 1.5rem + 3vw, 4rem); }
.ab-story__title { color: var(--ink); }
.ab-story__title em { font-style: italic; color: var(--red); }
.ab-years { position: relative; display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); padding-left: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); }
.ab-years::before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1rem; width: 1px; background: linear-gradient(var(--flame), var(--red) 80%, transparent); }
.ab-year { position: relative; }
.ab-year::before { content: ""; position: absolute; left: calc(clamp(1.5rem, 1rem + 2.5vw, 3.5rem) * -1 - 5px); top: clamp(1.75rem, 1.2rem + 3vw, 3.75rem); width: 11px; height: 11px; background: var(--flame); box-shadow: 0 0 0 4px var(--rose-tint), 0 0 0 5px var(--red); transform: rotate(45deg); }
.ab-year__n { display: block; font-family: var(--display); font-size: clamp(5rem, 2.5rem + 10vw, 12rem); font-weight: 200; line-height: 0.9; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--red); font-variant-numeric: lining-nums; }
.ab-year__t { max-width: 34rem; margin: 1.25rem 0 0; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.65; color: var(--text); }
.ab-year__t strong { font-family: var(--display); font-weight: 400; color: var(--maroon); }


/* 3. Management: a dark statement, then two ruled columns each led by a line icon */
.ab-manage { position: relative; isolation: isolate; overflow: clip; padding-block: calc(var(--section) * 0.95); color: var(--on-dark); background:
  radial-gradient(55% 60% at 100% 0%, rgba(254, 182, 40, 0.16), transparent 70%),
  radial-gradient(45% 55% at 0% 100%, rgba(27, 154, 239, 0.28), transparent 70%),
  linear-gradient(180deg, var(--band) 0%, var(--footer) 100%); }
.ab-manage__statement { max-width: 46rem; color: var(--base); }
.ab-manage__statement em { font-style: italic; color: var(--flame); }
.ab-manage__lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid rgba(254, 182, 40, 0.4); }
.ab-manage__item { display: flex; align-items: flex-start; gap: clamp(1rem, 0.75rem + 1vw, 1.75rem); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) clamp(1rem, 0.5rem + 2vw, 3rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem) 0; }
.ab-manage__item + .ab-manage__item { padding-left: clamp(1rem, 0.5rem + 2vw, 3rem); border-left: 1px solid var(--line-dark); }
.ab-manage__item p { margin: 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.6; color: var(--base); }
.ab-ico { flex: none; width: clamp(40px, 3vw + 24px, 56px); height: auto; fill: none; stroke: var(--flame); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 4. Affiliation: the sentence beside the faculty photograph, which sits on gold corner blocks */
.ab-cbse { position: relative; padding-block: calc(var(--section) * 0.8); background: var(--base); }
.ab-cbse__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.ab-cbse__text { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); color: var(--ink); }
.ab-cbse__text mark { background: none; color: var(--maroon); font-style: italic; }
.ab-cbse__rule { display: block; width: 84px; height: 2px; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); background: var(--flame); }
.ab-cbse__photo { position: relative; margin: 0; aspect-ratio: 16 / 7.2; border-radius: var(--r); overflow: visible; background: none; }
.ab-cbse__photo::before, .ab-cbse__photo::after { content: ""; position: absolute; z-index: -1; width: 24%; aspect-ratio: 1.15; border-radius: var(--r); background: var(--flame-tint); border: 1px solid rgba(254, 182, 40, 0.5); }
.ab-cbse__photo::before { top: -14px; right: -14px; }
.ab-cbse__photo::after { bottom: -14px; left: -14px; }
.ab-cbse__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; border-radius: var(--r); box-shadow: var(--shadow-sm); }

/* 5. Leadership: a labelled heading, then two portraits in soft panels */
.ab-lead { position: relative; padding-block: calc(var(--section) * 0.9); background: linear-gradient(180deg, var(--surface) 0%, var(--flame-tint) 100%); }
.ab-lead__head { margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
/* the headline is kept narrow, so it breaks into about four lines on wide screens */
.ab-lead__head .h2 { max-width: 46rem; }
.ab-lead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: stretch; }
.ab-person { display: flex; flex-direction: column; margin: 0; padding: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ab-person__img { position: relative; overflow: hidden; flex: none; height: clamp(260px, 24vw, 360px); border-radius: var(--r); background: var(--raised); }
.ab-person__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ab-person:hover .ab-person__img img { transform: scale(1.04); }
.ab-person--principal .ab-person__img img { object-position: 38% 50%; }
.ab-person--bursar .ab-person__img img { object-position: 50% 22%; }
.ab-person figcaption { display: grid; gap: 0.3rem; padding: 1.1rem 0.5rem 0.4rem; }
.ab-person__role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.ab-person__name { font-family: var(--display); font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.9rem); font-weight: 360; line-height: 1.15; color: var(--ink); }
/* 6. Logo: the crest large on maroon, its two meanings set as two big statements */
.ab-logo { position: relative; isolation: isolate; overflow: clip; padding-block: calc(var(--section) * 1.05); color: var(--on-dark); background:
  radial-gradient(50% 70% at 0% 50%, rgba(254, 182, 40, 0.22), transparent 70%),
  linear-gradient(135deg, var(--maroon) 0%, var(--band) 60%, var(--footer) 100%); }
.ab-logo__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 5vw, 7rem); align-items: center; }
.ab-logo__crest { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; }
.ab-logo__crest::before, .ab-logo__crest::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(254, 182, 40, 0.45); }
.ab-logo__crest::before { inset: 0; }
.ab-logo__crest::after { inset: 12%; border-style: dashed; border-color: rgba(247, 244, 239, 0.25); }
.ab-logo__crest img { position: relative; width: 52%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); transition: transform 1s var(--ease); }
.ab-logo__crest:hover img { transform: scale(1.06) rotate(-2deg); }
.ab-logo__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.ab-logo__point { padding-top: 1.5rem; border-top: 1px solid rgba(254, 182, 40, 0.4); }
.ab-logo__point h3 { margin-bottom: 0.75rem; font-family: var(--display); font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.1rem); font-weight: 300; font-style: italic; line-height: 1.05; letter-spacing: -0.025em; color: var(--flame); }
.ab-logo__point p { max-width: none; margin: 0; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem); line-height: 1.6; color: var(--base); }

@media (max-width: 1000px) {
  .ab-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .ab-hero__lead { max-width: none; }
  .ab-story__grid, .ab-lead__grid, .ab-logo__grid, .ab-cbse__grid { grid-template-columns: minmax(0, 1fr); }
  .ab-story__photos { grid-template-rows: none; height: auto; }
  .ab-story__photo { position: relative; top: 0; aspect-ratio: 16 / 10; min-height: 0; max-width: 640px; }
  .ab-logo__crest { max-width: 300px; margin-inline: auto; }
}
@media (max-width: 700px) {
  .ab-manage__lines { grid-template-columns: minmax(0, 1fr); }
  .ab-manage__item + .ab-manage__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .ab-cbse__photo { aspect-ratio: 16 / 9; }
  .ab-person__img { height: 240px; }
  .ab-hero__title { font-size: clamp(2.5rem, 15vw, 4rem); }
  .ab-hero__cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero__img { animation: none; }
}
@media (max-width: 640px) { .ab-logo__points { grid-template-columns: minmax(0, 1fr); } }

/* Phones: a lower hero banner on the inner pages, so the page content starts sooner */
@media (max-width: 700px) {
  .ab-hero { min-height: clamp(300px, 46vh, 380px); }
  .ab-hero__inner { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 1.75rem; gap: 1rem; }
  .ab-hero__lead { font-size: 1rem; line-height: 1.4; }
}

/* A line of the management section can have a small heading (for example Affiliation); a last line on its own spans both columns */
.ab-manage__item .ab-manage__label { margin: 0 0 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--flame); }
.ab-manage__item:nth-child(odd):last-child { grid-column: 1 / -1; padding-left: clamp(1rem, 0.5rem + 2vw, 3rem); border-left: 0; border-top: 1px solid var(--line-dark); }
/* Principal Council: the members side by side, each with a picture, the role and the name */
.ab-council { padding-block: calc(var(--section) * 0.9); background: linear-gradient(180deg, var(--flame-tint) 0%, var(--base) 100%); }
.ab-council__head { margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.ab-council__head .h2 { max-width: 46rem; }
.ab-council__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.ab-member { display: flex; flex-direction: column; margin: 0; padding: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ab-member__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--raised); }
.ab-member__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.4s var(--ease); }
.ab-member:hover .ab-member__img img { transform: scale(1.04); }
.ab-member figcaption { display: grid; gap: 0.3rem; padding: 1.1rem 0.5rem 0.4rem; }
@media (max-width: 1000px) { .ab-council__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ab-council__grid { grid-template-columns: minmax(0, 1fr); } .ab-member__img { aspect-ratio: 1 / 1; } }

/* Leadership with three people: three equal cards side by side */
.ab-lead__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-lead__grid--3 .ab-person__img { height: clamp(240px, 22vw, 340px); }
.ab-lead__grid--3 .ab-person__img img { object-position: 50% 20%; }
@media (max-width: 1000px) { .ab-lead__grid--3 { grid-template-columns: minmax(0, 1fr); } }
/* inner hero: the photograph a little brighter, and the italic word of the title in the same orange-yellow as the home hero */
.ab-hero__img { filter: brightness(1.14) saturate(1.06); }
.ab-hero__title em { background: linear-gradient(100deg, #FFC21A 0%, #FFA41B 55%, #FF8A1F 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; text-shadow: none; filter: drop-shadow(0 1px 2px rgba(5, 28, 66, 0.45)); }

/* Leadership, sixth design: three tall panels side by side that slide open. All three share the width; point at one and it grows
   while the others narrow. The picture fills the panel; the role, the name and a gold bar sit on a blue fade at its foot. */
.ab-lead__grid--3 { display: flex; grid-template-columns: none; gap: 0.9rem; height: clamp(28rem, 22rem + 14vw, 36rem); }
.ab-lead__grid--3 .ab-person { position: relative; flex: 1 1 0; min-width: 0; display: block; padding: 0; border: 0; border-radius: 1.5rem; background: var(--raised); box-shadow: 0 24px 50px -30px rgba(8, 47, 99, 0.6); overflow: hidden; transition: flex-grow 0.7s var(--ease), box-shadow 0.6s; }
.ab-lead__grid--3:hover .ab-person { flex-grow: 0.78; }
.ab-lead__grid--3 .ab-person:hover { flex-grow: 1.7; box-shadow: 0 34px 60px -28px rgba(8, 47, 99, 0.7); }
.ab-lead__grid--3 .ab-person__img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.ab-lead__grid--3 .ab-person__img img { object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.ab-lead__grid--3 .ab-person:hover .ab-person__img img { transform: scale(1.05); }
.ab-lead__grid--3 .ab-person figcaption { position: absolute; left: 0; right: 0; bottom: 0; gap: 0.3rem; padding: 5rem clamp(1rem, 0.7rem + 1vw, 1.6rem) clamp(1rem, 0.7rem + 1vw, 1.5rem); background: linear-gradient(0deg, rgba(5, 28, 66, 0.95) 0%, rgba(12, 74, 143, 0.7) 45%, rgba(12, 74, 143, 0) 100%); }
.ab-lead__grid--3 .ab-person figcaption::before { content: ""; width: 2.75rem; height: 3px; margin-bottom: 0.45rem; border-radius: 2px; background: linear-gradient(90deg, #FFC21A, #FF8A1F); transition: width 0.6s var(--ease); }
.ab-lead__grid--3 .ab-person:hover figcaption::before { width: 5.5rem; }
.ab-lead__grid--3 .ab-person__role { color: #FFC21A; }
.ab-lead__grid--3 .ab-person__name { color: #fff; font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.55rem); line-height: 1.2; text-shadow: 0 1px 8px rgba(5, 28, 66, 0.5); }
@media (max-width: 800px) {
  .ab-lead__grid--3 { flex-direction: column; height: auto; max-width: 26rem; margin-inline: auto; gap: 1.25rem; }
  .ab-lead__grid--3 .ab-person, .ab-lead__grid--3:hover .ab-person, .ab-lead__grid--3 .ab-person:hover { flex: none; height: 24rem; }
}
/* ---- Small title header for every inner page (no photograph): the same look as the Principal's Desk header.
   The banner photograph and its shade are hidden; the title, the small label and the short line stay. ---- */
.ab-hero.ab-hero, .in-hero.in-hero { position: relative; isolation: isolate; overflow: hidden; display: block; min-height: 0; margin-top: 0 !important; padding-block: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  background: radial-gradient(70% 140% at 100% 0%, rgba(27, 154, 239, .16) 0%, rgba(27, 154, 239, 0) 60%), radial-gradient(rgba(15, 108, 189, .16) 1.2px, transparent 1.6px) 0 0 / 18px 18px, linear-gradient(180deg, #F2F7FD 0%, var(--base) 100%);
  border-bottom: 1px solid var(--line); color: var(--ink); }
.ab-hero.ab-hero::after, .in-hero.in-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--flame), var(--red) 55%, transparent); }
.ab-hero.ab-hero::before, .in-hero.in-hero::before { content: ""; position: absolute; right: -6%; top: -60%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(254, 182, 40, .22) 0 1px, transparent 1px 14px); pointer-events: none; z-index: 0; }
.ab-hero .hero__media, .ab-hero__shade, .ab-hero__cue, .in-hero .hero__media, .in-hero__shade, .in-hero__cue { display: none !important; }
.ab-hero .ab-hero__inner, .in-hero .in-hero__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; min-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; }
.ab-hero .label, .in-hero .label { margin-bottom: .7rem; color: var(--muted); text-shadow: none; }
.ab-hero .label::before, .in-hero .label::before { background: var(--flame); }
.ab-hero .ab-hero__title, .in-hero .in-hero__title { margin: 0; font-family: var(--display); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); text-shadow: none; }
.ab-hero .ab-hero__title em, .in-hero .in-hero__title em { font-style: italic; background: none; -webkit-text-fill-color: currentColor; color: var(--maroon); }
.ab-hero .ab-line, .in-hero .ab-line { display: inline; }
.ab-hero .ab-line + .ab-line::before, .in-hero .ab-line + .ab-line::before { content: " "; }
.ab-hero .ab-line__in, .in-hero .ab-line__in { display: inline; }
.ab-hero .ab-hero__lead, .in-hero .in-hero__lead { max-width: 30rem; margin: 0; padding-left: 1rem; border-left: 2px solid var(--flame); font-family: var(--display); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.4; color: var(--text); text-shadow: none; }
.ab-hero .ab-hero__lead span, .in-hero .in-hero__lead span { color: var(--ink); }
@media (max-width: 640px) { .ab-hero .ab-hero__inner, .in-hero .in-hero__inner { align-items: flex-start; } .ab-hero .ab-hero__title, .in-hero .in-hero__title { font-size: clamp(1.8rem, 1.2rem + 4vw, 2.4rem); } }
