/* =========================================================================
   Theme C "Dusk Cinematic": page group 1
   About, Staff, FAQ, Admission Success.
   Page-only layout. Uses the ground tokens of theme-c.css only.
   ========================================================================= */

/* ---------- FAQ: a numbered sheet beside an arched evening view ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-aside { position: sticky; top: 120px; }
.faq-arch { max-width: 380px; margin-inline: auto; }
.faq-arch img { object-position: 30% 50%; }
.faq-sheet .faq-list { max-width: none; border-top-color: var(--fg-strong); }
.faq-sheet .faq-item > summary {
  grid-template-columns: 4.6rem minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 84px;
  padding: 22px 0;
}
.faq-sheet .faq-item > summary::before {
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  line-height: 1;
  color: var(--accent);
  transition: color 0.25s;
}
.faq-sheet .faq-item[open] > summary::before,
.faq-sheet .faq-item > summary:hover::before { color: var(--brass); }
.faq-sheet .faq-item[open] { background: linear-gradient(90deg, color-mix(in srgb, var(--brass) 9%, transparent), transparent 70%); }
.faq-sheet .faq-body {
  padding: 0 52px 28px calc(4.6rem + 14px);
  font-size: 1.06rem;
  line-height: 1.7;
}
.faq-sheet .faq-body strong {
  color: var(--fg-strong);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--bus) 34%, transparent) 58%, color-mix(in srgb, var(--bus) 34%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.faq-item:target > summary { color: var(--accent); }

.faq-cta { text-align: center; }
.faq-cta-inner p { margin: 0; }
.faq-cta .btn {
  min-height: 60px;
  padding-inline: clamp(24px, 4vw, 44px);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

@media (max-width: 899px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq-aside { position: static; }
  .faq-arch { aspect-ratio: 16 / 9; max-width: none; outline-offset: 5px; }
}
@media (max-width: 599px) {
  .faq-sheet .faq-item > summary { grid-template-columns: 2.9rem minmax(0, 1fr) 30px; gap: 0 10px; min-height: 72px; }
  .faq-sheet .faq-item > summary::before { font-size: 1.6rem; }
  .faq-sheet .faq-item > summary::after { width: 30px; height: 30px; }
  .faq-sheet .faq-body { padding: 0 0 24px calc(2.9rem + 10px); }
}
:lang(hi) .faq-cta .btn { line-height: 1.5; }

/* =========================================================================
   ABOUT
   ========================================================================= */

/* the motto, set in the evening sky above the campus */
.about-motto {
  min-height: clamp(560px, 64vw, 900px);
  align-items: flex-start;
  padding-block: clamp(84px, 9vw, 132px) clamp(72px, 9vw, 128px);
}
.about-motto > img , .about-motto > :where(.kb-pic) > img { object-position: 50% 70%; }
.about-motto::before {
  /* lighter than the shared band: the campus stays bright at the foot of the frame */
  background: linear-gradient(0deg, rgba(27, 31, 64, 0.35) 0%, rgba(27, 31, 64, 0) 30%);
}
.about-motto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--dusk) 0%, rgba(38, 43, 82, 0.62) 14%, rgba(38, 43, 82, 0.18) 40%, rgba(38, 43, 82, 0) 56%),
    radial-gradient(ellipse 72% 66% at 24% 38%, rgba(27, 31, 64, 0.84) 0%, rgba(27, 31, 64, 0.6) 50%, rgba(27, 31, 64, 0) 82%);
  pointer-events: none;
}
.motto-block { margin: 0; max-width: 1080px; }
.motto-block .motto-eyebrow { color: var(--brass-light); margin: 0 0 clamp(14px, 2vw, 24px); }
.motto-quote { margin: 0; font-family: var(--f-latin); font-weight: 400; color: var(--paper); }
.motto-quote span {
  display: block;
  font-size: clamp(2.6rem, 0.9rem + 6.4vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-shadow: 0 2px 28px rgba(14, 17, 40, 0.5);
}
.motto-quote .motto-part-2 {
  padding-left: clamp(24px, 8vw, 128px);
  font-style: italic;
  color: var(--brass-light);
}
.motto-caption {
  margin-top: clamp(22px, 3vw, 36px);
  max-width: calc(40 * 0.575em);
  padding-left: clamp(24px, 8vw, 128px);
  font-size: var(--t-lede);
  line-height: 1.55;
  color: var(--on-dark);
  text-shadow: 0 1px 14px rgba(14, 17, 40, 0.6);
}
:lang(hi) .motto-caption { line-height: 1.75; max-width: calc(44 * 0.575em); }

/* story: heading in a rail, text to the right */
.story-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.story-split > h2 { position: sticky; top: 120px; color: var(--fg-strong); }
.story-split > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--brass), var(--bus));
}
.story-prose { max-width: calc(62 * 0.575em); }
.story-prose .lede { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); line-height: 1.38; color: var(--fg-strong); margin-bottom: 1.1em; }
:lang(hi) .story-prose .lede { line-height: 1.6; }
.story-prose p:not(.lede) { font-size: 1.08rem; line-height: 1.75; }

/* leadership: four equal arches */
.leadership-grid { gap: clamp(40px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.leader-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  object-position: 50% 30%;
}
.leader-photo img { object-position: 50% 30%; transition: transform 0.9s var(--ease); }
/* the principal sits further back at her desk: bring her face to the same size as the others */
.leader-photo--principal img { object-position: 52% 50%; transform: scale(1.55); transform-origin: 52% 52%; }
.leader-card:hover .leader-photo img { transform: scale(1.04); }
.leader-card:hover .leader-photo--principal img { transform: scale(1.6); }
.leader-body { display: flex; flex-direction: column; align-items: center; }
.leader-body .profile-meta { font-size: 0.97rem; }

/* mission and vision as statements, values as a hairline row */
.mvv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(32px, 5vw, 80px); }
.mvv-card { min-width: 0; }
.mvv-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border: 1px solid var(--hair); border-radius: 50%; color: var(--accent); }
.mvv-icon svg { width: 24px; height: 24px; }
.mvv-statement h3 { color: var(--accent); font-size: 1.15rem; font-family: var(--f-body); font-weight: 600; margin-bottom: 12px; }
.mvv-statement p { font-family: var(--f-latin); font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); line-height: 1.42; color: var(--fg-strong); max-width: 30ch; }
.mvv-card-values { grid-column: 1 / -1; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--hair); }
.mvv-values-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(24px, 3vw, 36px); }
.mvv-values-head .mvv-icon { margin: 0; }
.mvv-values-head h3 { margin: 0; color: var(--fg-strong); }
.mvv-values-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fg-strong); }
.mvv-value-item { display: flex; flex-direction: column; gap: 10px; padding: 24px clamp(14px, 2vw, 28px) 8px; border-left: 1px solid var(--hair); min-width: 0; }
.mvv-value-item:first-child { border-left: 0; padding-left: 0; }
.mvv-value-name { font-family: var(--f-latin); font-size: var(--t-h3); line-height: 1.2; color: var(--fg-strong); }
.mvv-value-name::before { content: ""; display: block; width: 8px; height: 8px; margin-bottom: 16px; background: var(--spark); transform: rotate(45deg); }
.mvv-value-desc { color: var(--fg-soft); line-height: 1.55; }

/* principal's message: her portrait beside the letter */
.principal-message .letter {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0 clamp(32px, 6vw, 96px);
  align-items: start;
}
.principal-message figure.letter-portrait {
  grid-row: 1 / span 2;
  width: 100%;
  max-width: 300px;
  margin: 8px auto 0;
  aspect-ratio: 4 / 5;
}
.letter-portrait img { object-position: 52% 50%; transform: scale(1.45); transform-origin: 52% 54%; }
.principal-message h2 { color: var(--fg-strong); margin-bottom: clamp(24px, 3vw, 36px); }
.principal-message h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 22px; background: linear-gradient(90deg, var(--brass), var(--bus)); }
.letter-body { margin: 0; max-width: calc(58 * 0.575em); }
.letter-body p {
  font-family: var(--f-display);
  font-size: clamp(1.18rem, 1rem + 0.55vw, 1.45rem);
  line-height: 1.6;
  color: var(--fg-strong);
  text-wrap: pretty;
}
.letter-body p:first-child { font-size: clamp(1.3rem, 1rem + 0.9vw, 1.75rem); line-height: 1.5; }
.letter-body p + p { margin-top: 1.1em; }
.letter-body footer {
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}
:lang(hi) .letter-body p { line-height: 1.8; font-size: clamp(1.12rem, 1rem + 0.4vw, 1.32rem); }
:lang(hi) .letter-body p:first-child { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); line-height: 1.7; }
@media (max-width: 767px) {
  .principal-message .letter { grid-template-columns: minmax(0, 1fr); }
  .principal-message figure.letter-portrait { grid-row: auto; max-width: 180px; margin: 0 0 32px; }
}

/* key facts: three plates in a row with hairlines */
.facts-row .card--flat { border-top-color: var(--fg-strong); }
.facts-row h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); }
.facts-row p { font-size: 1.04rem; line-height: 1.65; }

@media (max-width: 1023px) {
  .leadership-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mvv-values-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mvv-value-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .mvv-value-item:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 767px) {
  .story-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .story-split > h2 { position: static; }
  .mvv-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-row.grid-3 { grid-template-columns: minmax(0, 1fr); }
  .about-motto { min-height: 0; padding-block: 96px clamp(180px, 52vw, 260px); }
  .about-motto > img , .about-motto > :where(.kb-pic) > img { object-position: 46% 78%; }
  .about-motto::after { background: linear-gradient(180deg, var(--dusk) 0%, rgba(38, 43, 82, 0.8) 30%, rgba(27, 31, 64, 0.74) 62%, rgba(27, 31, 64, 0.12) 92%); }
  .motto-quote .motto-part-2, .motto-caption { padding-left: 0; }
  .motto-quote .motto-part-2 { margin-left: 0.6em; }
}
@media (max-width: 599px) {
  /* leadership as rows: a small arch beside the name, the text below */
  .leadership-grid.cols-4 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .leader-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0 20px;
    align-items: center;
    padding: 24px 0;
    text-align: left;
    border-top: 1px solid var(--hair);
  }
  .leader-card:last-child { border-bottom: 1px solid var(--hair); }
  .leader-photo { max-width: 88px; outline-offset: 4px; }
  .leader-body { display: contents; }
  .leader-body .profile-name { grid-column: 2; grid-row: 1; margin-top: 0; align-self: end; }
  .leader-body .profile-role { grid-column: 2; grid-row: 2; align-self: start; }
  .leader-card .leader-photo { grid-column: 1; grid-row: 1 / span 2; }
  .leader-body .profile-meta { grid-column: 1 / -1; grid-row: 3; max-width: none; margin-top: 16px; }
  .mvv-values-list { grid-template-columns: minmax(0, 1fr); }
  .mvv-value-item, .mvv-value-item:nth-child(3) { border-left: 0; padding: 20px 0 16px; }
  .mvv-value-item + .mvv-value-item { border-top: 1px solid var(--hair); }
}

/* =========================================================================
   STAFF
   ========================================================================= */
.staff-subjects { font-size: 1.12rem; line-height: 1.8; }
.staff-subjects .subj {
  color: var(--fg-strong);
  background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--bus) 34%, transparent) 58%, color-mix(in srgb, var(--bus) 34%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* the photo wall: native shapes, staggered like a contact sheet */
.staff-wall {
  counter-reset: staff;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(24px, 3vw, 44px);
  align-items: center;
}
.staff-card { counter-increment: staff; min-width: 0; margin: 0; }
.staff-card--m1 { grid-column: 1 / span 5; }
.staff-card--f1 { grid-column: 6 / span 7; }
.staff-card--m2 { grid-column: 1 / span 7; }
.staff-card--f2 { grid-column: 8 / span 5; }
.staff-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 8px;
}
.staff-card--portrait .staff-photo { aspect-ratio: 3 / 4; }
.staff-card--f1 .staff-photo { aspect-ratio: 1280 / 828; }
.staff-card--m2 .staff-photo { aspect-ratio: 16 / 9; }
.staff-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.staff-card-body { position: relative; padding: clamp(22px, 2.4vw, 32px) 0 0 clamp(52px, 5vw, 72px); max-width: calc(52 * 0.575em); }
.staff-card-body::before {
  content: counter(staff, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(22px, 2.4vw, 32px);
  font-family: var(--f-latin);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.staff-card-body h3 { color: var(--fg-strong); margin-bottom: 8px; }
.staff-card-body p { color: var(--fg-soft); line-height: 1.65; }

/* commitment: a pull-quote on dusk */
.staff-commitment-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.staff-commitment h2 { color: var(--fg-strong); }
.staff-commitment h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 22px; background: linear-gradient(90deg, var(--brass), var(--bus)); }
.staff-pledge { font-family: var(--f-latin); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); line-height: 1.42; color: var(--fg-strong); }
.staff-reach { margin-top: 26px; font-size: 1.1rem; color: var(--fg-soft); }
.staff-reach a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--bus);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.staff-reach a:hover { color: var(--bus); }

@media (max-width: 899px) {
  .staff-wall { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .staff-card--m1, .staff-card--f1, .staff-card--m2, .staff-card--f2 { grid-column: 1; margin-top: 0; }
  .staff-card--portrait .staff-photo { aspect-ratio: 4 / 5; }
  .staff-card--m1 .staff-photo img { object-position: 50% 88%; }
  .staff-card--f2 .staff-photo img { object-position: 50% 85%; }
  .staff-commitment-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .staff-photo { outline-offset: 5px; }
  .staff-card-body { padding-left: 44px; }
  .staff-card-body::before { font-size: 1.4rem; }
}

/* =========================================================================
   ADMISSION SUCCESS
   ========================================================================= */
.success-band { padding-top: clamp(40px, 5vw, 72px); }
.success-band h1::before { display: none; }
.success-band h1 { max-width: 20ch; text-wrap: balance; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); }
:lang(hi) .success-band h1 { line-height: 1.35; }
.success-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto clamp(22px, 3vw, 32px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--bus), var(--brass) 70%);
  color: var(--night);
  box-shadow: 0 0 0 10px rgba(210, 162, 76, 0.14), 0 0 60px 8px rgba(255, 199, 44, 0.3);
}
.success-check::after {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(232, 199, 132, 0.45);
  border-radius: 50%;
}
.success-check svg { width: 46px; height: 46px; }
.success-check polyline { stroke-dasharray: 28; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .success-check polyline { animation: success-draw 0.5s 0.25s var(--ease) both; }
  .success-check { animation: success-rise 0.6s var(--ease) both; }
}
@keyframes success-draw { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
@keyframes success-rise { from { transform: scale(0.82); opacity: 0; } to { transform: none; opacity: 1; } }

.success-timeline { max-width: none; }
.success-timeline .step { border-top-color: var(--hair); }
.success-timeline .step:last-child { border-bottom: 1px solid var(--hair); }
.success-step-title { font-size: 1.4rem; line-height: 1.3; color: var(--fg-strong); margin-bottom: 8px; }
:lang(hi) .success-step-title:not(.is-latin) { font-weight: 400; font-size: 1.4rem; }
.success-timeline p { line-height: 1.7; }
.success-timeline strong.doc {
  color: var(--fg-strong);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--bus) 34%, transparent) 58%, color-mix(in srgb, var(--bus) 34%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.success-contact-row { margin-top: clamp(36px, 4vw, 52px); justify-content: center; align-items: center; }
.success-horizon {
  height: calc(var(--ridge-h) + 48px);
  background: var(--night);
  -webkit-mask: var(--ridge-back) center top / 100% var(--ridge-h) no-repeat, linear-gradient(#000, #000) 0 var(--ridge-h) / 100% 100% no-repeat;
  mask: var(--ridge-back) center top / 100% var(--ridge-h) no-repeat, linear-gradient(#000, #000) 0 var(--ridge-h) / 100% 100% no-repeat;
}
.page-admission-success .success-next { padding-bottom: clamp(56px, 7vw, 96px); }
@media (max-width: 599px) {
  .success-check { width: 80px; height: 80px; }
  .success-check svg { width: 38px; height: 38px; }
  .success-contact-row .btn { width: 100%; }
}

/* the FAQ view turns into a wide 16:9 window on small screens; its arch follows that shape */
@media (max-width: 899px) {
  .faq-arch { border-radius: 50% 50% var(--radius) var(--radius) / 72% 72% var(--radius) var(--radius); }
}
@media (max-width: 599px) {
  .motto-quote span { font-size: clamp(2.1rem, 0.6rem + 7.4vw, 2.6rem); }
  .motto-quote .motto-part-2 { margin-left: 0.5em; }
}



/* Staff on tablets: two photos side by side instead of one very tall column */
@media (min-width: 600px) and (max-width: 899px) {
  .staff-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; align-items: start; }
  .staff-card--m1, .staff-card--m2 { grid-column: 1; }
  .staff-card--f1, .staff-card--f2 { grid-column: 2; }
  .staff-card--f1, .staff-card--m2 { align-self: center; }
  .staff-card-body { padding-left: 44px; }
}

/* =========================================================================
   DUSK LIGHT LAYER for page group 1 (about, staff, faq, admission success)
   Works with theme-c-fx.css and assets/js/dusk/g1.js.
   Resting CSS = the finished state. Hidden or moving start states live only
   inside prefers-reduced-motion: no-preference, under html.kb-on or on
   elements the engine (.kb-arm) or g1.js (.g1-wait) has armed below the
   first screen. Photos are never tinted, blurred or dimmed.
   ========================================================================= */

/* a revealed photo frame or arch keeps its offset outline hidden while its
   clip runs, then the outline fades in (the clip would cut it off otherwise) */
@media (prefers-reduced-motion: no-preference) {
  .kb-arm:is([data-kb-arch], [data-kb-shutter]):not(.is-in) { outline-color: transparent !important; }
  .kb-arm:is([data-kb-arch], [data-kb-shutter]).is-in {
    transition: outline-color 500ms ease calc(820ms + var(--i, 0) * var(--kb-step, 70ms));
  }
  /* ink: Chrome does not restyle an SVG shape when a class changes on an
     ancestor and the rule's last step is [pathLength="1"] (mixed-case SVG
     attribute), so the engine's ink stays undrawn below the first screen.
     The same rule keyed on the shape tags restyles correctly. */
  .kb-arm[data-kb-ink]:not(.is-in) :is(path, circle, line, polyline, polygon, rect, ellipse) {
    animation: none;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .kb-arm[data-kb-ink].is-in :is(path, circle, line, polyline, polygon, rect, ellipse) {
    stroke-dasharray: 1;
    animation: kb-ink 600ms var(--ease) calc(var(--i, 0) * var(--kb-step, 70ms)) backwards;
  }
  /* g1.js: a waiting block below the first screen */
  html.kb-on .g1-wait:not(.is-in) { opacity: 0; }
  html.kb-on .g1-wait.is-in { animation: kb-fade 600ms ease-out var(--g1-delay, 0ms) backwards; }
}

/* ---------- ADMISSION SUCCESS: the admit card ---------- */

/* the card: a faint ground behind the check, title and line, with a
   perforated lower edge like a ticket stub. Decoration only. */
.success-hero { position: relative; isolation: isolate; }
.success-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * clamp(20px, 3vw, 36px)) calc(-1 * min(48px, 3.2vw)) calc(-1 * clamp(26px, 3.4vw, 44px));
  border: 1px solid rgba(235, 203, 138, 0.26);
  border-radius: 22px 22px 6px 6px;
  background:
    radial-gradient(ellipse 60% 46% at 50% 0%, rgba(255, 199, 44, calc(0.1 * var(--lamp, 0.7))), rgba(255, 199, 44, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  -webkit-mask:
    radial-gradient(circle 6px at 50% 100%, transparent 96%, #000 100%) left bottom / 22px 12px repeat-x,
    linear-gradient(#000 0 0) left top / 100% calc(100% - 11.5px) no-repeat;
  mask:
    radial-gradient(circle 6px at 50% 100%, transparent 96%, #000 100%) left bottom / 22px 12px repeat-x,
    linear-gradient(#000 0 0) left top / 100% calc(100% - 11.5px) no-repeat;
  pointer-events: none;
}
/* the tear line just above the stub */
.success-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(-1 * min(48px, 3.2vw) + 14px);
  right: calc(-1 * min(48px, 3.2vw) + 14px);
  bottom: calc(-1 * clamp(26px, 3.4vw, 44px) + 22px);
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(235, 203, 138, 0.34) 0 6px, transparent 6px 12px);
  pointer-events: none;
}
.success-band h1:focus, .success-band h1:focus-visible { outline: none; box-shadow: none; }

/* the seal: a gold disc with a thin inner ring and the tick */
.success-check svg { overflow: visible; }
.success-check .success-ring { stroke-width: 0.7; opacity: 0.55; }
.success-check polyline { stroke-dasharray: none; }
.success-check { box-shadow: 0 0 0 10px rgba(210, 162, 76, 0.14), 0 0 60px 8px rgba(255, 199, 44, calc(0.42 * var(--lamp, 0.7))); }
@media (prefers-reduced-motion: no-preference) {
  .success-check { animation: g1-seal-rise 600ms var(--ease-rise, var(--ease)) both; }
  .success-check [pathLength="1"] { stroke-dasharray: 1; }
  .success-check .success-ring { animation: g1-draw 500ms var(--ease) 180ms backwards; }
  .success-check polyline { animation: g1-draw 300ms var(--ease) 680ms backwards; }
  .success-check::after { animation: g1-halo 1400ms ease-out 900ms backwards; }
}
@keyframes g1-seal-rise { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes g1-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes g1-halo { from { opacity: 0; transform: scale(0.94); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }

/* petals rise from the seal on a layer of their own (g1.js, once per session) */
.g1-petals { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* the admission road: the bus waits at the first stop. On narrower screens the
   road needs a lane of its own beside the steps. */
.success-timeline { position: relative; }
@media (max-width: 899px) {
  html.c-js .success-timeline[data-fx~="busroute"] { padding-left: 46px; }
}
/* a stop lights when the bus reaches it: a soft window light behind the
   numeral (the numeral keeps its own brass ink, so contrast stays) */
.success-timeline-num { position: relative; isolation: isolate; }
.success-timeline-num::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0.265em;
  top: 0.465em;
  width: 1.6em;
  height: 1.6em;
  margin: -0.8em 0 0 -0.8em;
  border-radius: 50%;
  background: radial-gradient(circle, var(--g1-stop, rgba(210, 162, 76, 0.28)) 0%, rgba(255, 199, 44, 0) 68%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
/* the numeral is a tall grid item (it spans the heading and the text), so the
   light is set in em from its top left corner: the centre of the numeral's own
   ink on its first line, at every width */
.steps--rail > .step > .success-timeline-num::before { left: 0.265em; top: 0.465em; }
.success-timeline-num.is-reached::before { opacity: 1; }
.success-timeline-num.is-here::before { --g1-stop: rgba(255, 199, 44, calc(0.5 * var(--lamp, 0.7) + 0.1)); }
@media (prefers-reduced-motion: no-preference) {
  .success-timeline-num.is-reached::before { animation: kb-switch-on 900ms ease-out backwards; }
}

/* the WhatsApp button: a green rim follows the pointer */
.success-contact-row .btn-wa { --kb-rim-c: #7ff0c2; }

/* the horizon: once ridge.js has drawn its navy layers the static
   silhouette steps aside, so only the moving ridges show */
.success-horizon:has(> .kbfx-ridge) {
  background: none;
  -webkit-mask: none;
  mask: none;
}

/* ---------- FAQ: every answer lights a lamp ---------- */
/* a small flame beside each numeral: unlit outline at rest, lit when the
   answer is open (brass), catching with a flicker as it opens */
.faq-sheet {
  --flame-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 .8C5 .8 9.1 5.5 9.1 8.9a4.1 4.1 0 0 1-8.2 0C.9 5.5 5 .8 5 .8z' fill='none' stroke='%239a7430' stroke-width='.9'/%3E%3C/svg%3E");
  --flame-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 .8C5 .8 9.1 5.5 9.1 8.9a4.1 4.1 0 0 1-8.2 0C.9 5.5 5 .8 5 .8z' fill='%23d2a24c' fill-opacity='.22' stroke='%23b8862e' stroke-width='.9'/%3E%3C/svg%3E");
  --flame-bus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 .8C5 .8 9.1 5.5 9.1 8.9a4.1 4.1 0 0 1-8.2 0C.9 5.5 5 .8 5 .8z' fill='%23ffc72c' stroke='%23e0a514' stroke-width='.6'/%3E%3Cellipse cx='5' cy='9.4' rx='1.9' ry='2.6' fill='%23fff4cc'/%3E%3C/svg%3E");
  --flame-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 .8C5 .8 9.1 5.5 9.1 8.9a4.1 4.1 0 0 1-8.2 0C.9 5.5 5 .8 5 .8z' fill='%23d2a24c' stroke='%23a47a2c' stroke-width='.6'/%3E%3Cellipse cx='5' cy='9.4' rx='1.8' ry='2.4' fill='%23f6e2b0'/%3E%3C/svg%3E");
}
/* (the flame is an aria-hidden <i class="faq-flame"> that g1.js puts in each
   question; without the script the rows look as they always did) */
.faq-flame {
  position: absolute;
  left: calc(4.6rem - 18px);
  top: 50%;
  width: 11px;
  height: 15.4px;
  margin-top: -8.5px;
  background: var(--flame-off) center / contain no-repeat;
  pointer-events: none;
}
.faq-flame::before {
  content: "";
  position: absolute;
  inset: -7px -8px -5px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(210, 162, 76, 0.36), rgba(210, 162, 76, 0));
  opacity: 0;
  transition: opacity 220ms ease;
}
.faq-sheet .faq-item > summary:hover .faq-flame { background-image: var(--flame-hover); }
.faq-sheet .faq-item[open] .faq-flame { background-image: var(--flame-on); }
.faq-sheet .faq-item[open] .faq-flame::before { opacity: 1; }
@media (max-width: 599px) {
  .faq-flame { left: calc(2.9rem - 11px); width: 9px; height: 12.6px; margin-top: -7px; }
}

/* the open row: a 2px brass rule down its left edge, over its warm ground */
.faq-sheet .faq-item[open] {
  background:
    linear-gradient(var(--brass), var(--brass)) left top / 2px 100% no-repeat,
    linear-gradient(90deg, color-mix(in srgb, var(--brass) 9%, transparent), transparent 70%);
}

/* the arch glows a little more with each open answer (--open 0..3 from g1.js);
   the photo itself is never dimmed or tinted */
.faq-aside { isolation: isolate; }
.faq-aside::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% max(-18%, -48px) -8%;
  background: radial-gradient(ellipse 52% 48% at 50% 46%, rgba(235, 203, 138, 0.42), rgba(235, 203, 138, 0) 72%);
  opacity: calc(var(--open, 0) / 3);
  transition: opacity 600ms var(--ease);
  pointer-events: none;
}
@media (max-width: 899px) { .faq-aside { position: relative; top: auto; } .faq-aside::before { inset: -6% 0; } }
.faq-arch {
  box-shadow: 0 0 calc(var(--open, 0) * 14px) rgba(235, 203, 138, 0.3);
  outline-color: color-mix(in srgb, var(--brass) calc(45% + var(--open, 0) * 18%), transparent);
  transition: box-shadow 600ms var(--ease), outline-color 600ms var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  /* the flame catches: scale 0.8 to 1, flickers in bus yellow, settles to brass */
  .faq-sheet .faq-item[open] .faq-flame { animation: g1-flame 900ms ease-out; }
  .faq-sheet .faq-item[open] .faq-flame::before { animation: kb-switch-on 900ms ease-out; }
  /* the answer clears from a soft blur; the rule grows down the row */
  .faq-sheet .faq-item[open] .faq-body { animation: g1-answer 180ms ease-out 40ms backwards; }
  .faq-sheet .faq-item[open] { animation: g1-rule 420ms var(--ease-rise, var(--ease)); }
  /* a deep link (#faq-5): the rule of that row pulses once */
  .faq-sheet .faq-item[open].is-pulse { animation: g1-rule 420ms var(--ease-rise, var(--ease)), g1-rule-pulse 1100ms ease-out 360ms; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  /* the answer opens smoothly where the browser can size to auto; find-in-page still opens it */
  @supports (interpolate-size: allow-keywords) {
    .faq-sheet .faq-list { interpolate-size: allow-keywords; }
    .faq-sheet .faq-item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 180ms var(--ease), content-visibility 180ms allow-discrete;
    }
    .faq-sheet .faq-item[open]::details-content { block-size: auto; transition-duration: var(--t-ui, 220ms); }
  }
}
@keyframes g1-flame {
  0% { background-image: var(--flame-off); scale: 0.8; opacity: 0.6; }
  22% { background-image: var(--flame-bus); opacity: 1; }
  34% { background-image: var(--flame-off); opacity: 0.5; }
  56% { background-image: var(--flame-bus); scale: 1; opacity: 1; }
  100% { background-image: var(--flame-on); }
}
@keyframes g1-answer { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@keyframes g1-rule { from { background-size: 2px 0, 100% 100%; } }
@keyframes g1-rule-pulse {
  0%, 100% { background-size: 2px 100%, 100% 100%; }
  35% { background-size: 6px 100%, 100% 100%; }
}

/* ---------- ABOUT: the letter read by lamplight ---------- */
/* motto: a brass rule runs out after "Our Motto" (drawn by data-kb-rule="after") */
.motto-block .motto-eyebrow { display: flex; align-items: center; gap: 16px; }
.motto-block .motto-eyebrow::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(48px, 6vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, var(--brass-light), rgba(235, 203, 138, 0));
}
/* the campus photo makes one slow push-in (transform only, never past 1.04) */
.about-motto > img , .about-motto > :where(.kb-pic) > img { transform-origin: 50% 72%; }
@media (prefers-reduced-motion: no-preference) {
  html.kb-on .about-motto > img , html.kb-on .about-motto > :where(.kb-pic) > img { animation: g1-push 16s cubic-bezier(0.25, 0.1, 0.25, 1) both; }
}
@keyframes g1-push { from { scale: 1; } to { scale: 1.04; } }

/* our story: both languages open with a mark. English has a hanging Bodoni
   initial; Hindi (Devanagari has no drop cap) has a short brass rule above the
   first line. A brass thread draws down the left of the prose as it is read. */
.story-prose > p:first-child::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--brass-deep);
}
/* one column: the heading's own rule sits just above the text, so the mark
   moves into the first line as a short lead-in rule (no doubled underline) */
@media (max-width: 767px) {
  .story-prose > p:first-child::before {
    display: inline-block;
    vertical-align: 0.32em;
    margin: 0 12px 0 0;
  }
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  :lang(en) .story-prose > p:first-child::before { content: none; }
  :lang(en) .story-prose > p:first-child::first-letter {
    -webkit-initial-letter: 3;
    initial-letter: 3;
    margin-right: 0.14em;
    font-family: var(--f-latin);
    font-weight: 500;
    color: var(--brass-deep);
  }
}
.story-prose { position: relative; }
.story-prose::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(10px, 2.6vw, 40px));
  top: 0.55em;
  bottom: 0.3em;
  width: 1px;
  background: linear-gradient(180deg, var(--brass), color-mix(in srgb, var(--brass) 18%, transparent));
  transform-origin: 50% 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.kb-on .story-prose::before {
      animation: g1-thread linear both;
      animation-timeline: view();
      animation-range: entry 25% cover 60%;
    }
  }
}
@keyframes g1-thread { from { scale: 1 0; } to { scale: 1 1; } }

/* leadership: focus or hover lights the arch rim */
.leader-photo { transition: outline-color 250ms var(--ease); }
.leader-card:hover .leader-photo, .leader-card:focus-within .leader-photo { outline-color: var(--brass); }

/* mission, vision, values: the round icon frames take the rim light */
.mvv-icon { position: relative; }

/* ---------- STAFF: four lit windows ---------- */
/* the light is in the frame, never over the faces: the engine's lit rim moves
   from the whole card to the photo frame. Resting (and no script) = lit. */
.staff-card[data-kb-lit] { box-shadow: none; }
.staff-photo { transition: outline-color 250ms var(--ease), box-shadow 250ms var(--ease); }
.staff-card[data-kb-lit] .staff-photo { outline-color: color-mix(in srgb, var(--brass) 80%, transparent); }
.staff-card[data-kb-lit]:is(:hover, :focus-within) .staff-photo {
  outline-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass), 0 0 32px -6px rgba(235, 203, 138, calc(0.45 + 0.3 * var(--lamp, 0.7)));
}
.staff-card-body h3 { transition: color 250ms var(--ease); }
.staff-card[data-kb-lit]:is(:hover, :focus-within) .staff-card-body h3 { color: var(--brass-deep); }
@media (prefers-reduced-motion: no-preference) {
  html.kb-on .staff-card.kb-arm[data-kb-lit] { box-shadow: none; }
  html.kb-on .staff-card.kb-arm[data-kb-lit]:not(.is-lit, :hover, :focus-within) .staff-photo {
    outline-color: color-mix(in srgb, var(--accent) 40%, transparent);
  }
}

/* our commitment: rendered only when near the screen (a faster first paint) */
.staff-commitment { content-visibility: auto; contain-intrinsic-size: auto 560px; }

/* Admission success band: main.js swaps the headline and the line under it for its own
   wording. While those lines are out of sight (shared sheet), their boxes are held at the
   size the final wording takes, so the band does not shrink when it lands. Lets go after 5 s
   with the shared sheet's "show anyway"; with scripts off nothing is held. */
.page-admission-success .success-hero { --hl: 2; --pl: 2; }
@media (max-width: 515.98px) { .page-admission-success .success-hero { --pl: 3; } }
@media (max-width: 347.98px) { .page-admission-success .success-hero { --pl: 4; } }
html.c-js:not(.c-live) .page-admission-success .success-hero h1 { animation: c-safe 0s linear 5s forwards, g1-hold-h 5s step-end; }
html.c-js:not(.c-live) .page-admission-success .success-hero h1 + p { animation: c-safe 0s linear 5s forwards, g1-hold-p 5s step-end; }
@keyframes g1-hold-h { from { max-height: calc(var(--hl) * 1lh); overflow: clip; } }
@keyframes g1-hold-p { from { max-height: calc(var(--pl) * 1lh); overflow: clip; } }

/* FAQ rows: every row is set in a little from the list edge, so the brass rule of an open
   row stands clear of its numeral (it used to run through the "0"); the lit numeral keeps
   enough ink to read on the warm ground */
.faq-sheet .faq-item > summary { padding-left: 12px; }
.faq-sheet .faq-body { padding-left: calc(4.6rem + 26px); }
.faq-sheet .faq-flame { left: calc(4.6rem - 6px); }
@media (max-width: 599px) {
  .faq-sheet .faq-item > summary { padding-left: 10px; }
  .faq-sheet .faq-body { padding-left: calc(2.9rem + 20px); }
  .faq-sheet .faq-flame { left: calc(2.9rem - 1px); }
}
.faq-sheet .faq-item[open] > summary::before,
.faq-sheet .faq-item > summary:hover::before { color: color-mix(in srgb, var(--brass) 42%, var(--brass-deep)); }
