:root {
  --night: #141e3e;
  --navy: #1d294d;
  --navy-light: #2d3d66;
  --red: #bd283b;
  --red-hi: #d83d50;
  --ink: #182945;
  --muted: #536077;
  --page: #f6f8fd;
  --white: #fff;
  --line: #d8e1ef;
  --tint: #e9effa;
  --font: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --reveal-ease: cubic-bezier(.24, .68, .31, 1);
  --reveal-time: 880ms;
  --header: 5rem;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--header) + .9rem); }
body { margin: 0; font-size: 1.125rem; line-height: 1.65; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3069c0; outline-offset: 4px; }
.wrap { width: min(76rem, calc(100% - 4.5rem)); margin-inline: auto; }
.sr-only, .icon-library { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  z-index: 40;
  inset: .55rem .55rem auto auto;
  padding: .65rem 1.1rem;
  border-radius: .65rem;
  background: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-opening {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 44%, #334362, #192440 54%, #111a32);
  animation: opening-clear 2360ms ease-in-out both;
}
.opening-playing { --hero-start: 1700ms; }
.opening-book {
  position: relative;
  width: clamp(9.15rem, 19vw, 14.6rem);
  max-width: min(39vw, 56svh);
  aspect-ratio: .76;
  perspective: 76rem;
  perspective-origin: 100% 48%;
  animation: book-position 1640ms both;
}
.opening-book::before {
  content: "";
  position: absolute;
  inset: 7% -3% -5% 2%;
  border-radius: .55rem;
  background: #090f22c2;
  filter: blur(18px);
  animation: book-shadow 1120ms ease-in-out 455ms both;
}
.opening-page {
  position: absolute;
  inset: .22rem .09rem .32rem .19rem;
  display: grid;
  place-items: center;
  border: 1px solid #f9f4e9;
  border-radius: .44rem .12rem .13rem .4rem;
  background: linear-gradient(to left, #a7abc0, #e3e4e8 5%, #f8f5ed 18%, #fefcf7 78%, #eeebe5);
  box-shadow: 0 2px #acabb7, 0 4px #e2dcd2, 0 6px #8c8da3, -2px 7px 0 2px #1c2b4d;
  color: var(--night);
}
.opening-imprint { display: grid; justify-items: center; gap: .55rem; padding-inline: .56rem; animation: book-imprint 610ms var(--ease) 980ms both; }
.opening-imprint::after { content: ""; width: 1.42rem; height: 1px; margin-block-start: .1rem; background: var(--red); }
.opening-cover {
  position: absolute;
  inset: 0;
  transform-origin: right center;
  transform-style: preserve-3d;
  animation: book-cover-turn 1120ms cubic-bezier(.53, .05, .2, 1) 455ms both;
}
.opening-cover-front, .opening-cover-lining {
  position: absolute;
  inset: 0;
  border: 1px solid #6b7d9a;
  border-radius: .56rem .15rem .13rem .56rem;
  backface-visibility: hidden;
}
.opening-cover-front {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .72rem;
  padding-inline: .6rem;
  background: linear-gradient(to left, #16223f 1.5%, #a0465a 2%, #782e45 5.5%, #2c3d60 7%, #1b2849 11%, #283d61 65%, #1b2a49);
  box-shadow: inset 0 0 1.35rem #101b3463, -2px 2px #182541;
  color: var(--white);
  transform: translateZ(.12px);
}
.opening-cover-front::before, .opening-cover-lining::before {
  content: "";
  position: absolute;
  inset: 5% 9% 5% 5%;
  border: 1px solid #dce7fb39;
  border-radius: .22rem;
}
.opening-cover-lining {
  border-radius: .13rem .56rem .56rem .13rem;
  background: linear-gradient(to right, #17213d 2%, #2d3f61 11%, #465979 65%, #394a6a);
  transform: rotateY(180deg) translateZ(.12px);
}
.opening-cover-lining::before { inset: 5% 5% 5% 9%; }
.opening-book img { width: clamp(2.65rem, 35%, 5.3rem); height: auto; border: 1px solid #a6b4d2; border-radius: 50%; }
.opening-book p { font-size: clamp(.94rem, 1.9vw, 1.62rem); font-weight: 700; line-height: 1.3; text-align: center; text-wrap: balance; }
@keyframes book-position {
  0% { opacity: 0; transform: translateY(16px) scale(.955); animation-timing-function: var(--ease); }
  26%, 32% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.64, .12, .25, 1); }
  100% { opacity: 1; transform: translateX(-49%); }
}
@keyframes book-shadow {
  from { transform: scaleX(1); }
  to { transform: translateX(47%) scaleX(1.98); }
}
@keyframes book-cover-turn {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(178deg); }
}
@keyframes book-imprint { from { opacity: .15; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes opening-clear {
  0%, 82% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.conference-bar { border-block-end: 2px solid var(--red); background: var(--night); color: var(--white); }
.conference-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .96rem;
  min-height: 5.3rem;
  padding-block: .67rem;
}
.conference-info { display: flex; align-items: center; gap: .7rem; line-height: 1.4; }
.conference-icon { display: grid; place-items: center; width: 2.83rem; height: 2.83rem; flex-shrink: 0; border-radius: .75rem; background: #bd283b33; color: #ffc0cb; }
.conference-info p { font-size: clamp(1.11rem, 2vw, 1.35rem); font-weight: 700; }
.conference-info time { color: #dbe5fb; font-size: .96rem; }
.conference-title-link { text-decoration: underline; text-decoration-color: #b3c0df66; text-underline-offset: .23em; }
.conference-title-link:hover { text-decoration-color: #f6a8b5; }
.conference-title-link:focus-visible { outline-color: #f59aa6; }
.conference-timer { display: grid; grid-template-columns: repeat(4, minmax(2.75rem, 1fr)); gap: .3rem; }
.conference-timer > span { min-width: 0; padding: .16rem .38rem .26rem; border: 1px solid #c4d6ff32; border-radius: .5rem; background: #ffffff09; color: #dbe5fb; text-align: center; font-size: .72rem; line-height: 1.1; }
.conference-timer b { display: block; margin-block-end: .17rem; color: var(--white); font-size: 1.23rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.conference-bar .conference-timer { grid-template-columns: repeat(4, minmax(3.35rem, 1fr)); gap: .38rem; }
.conference-bar .conference-timer > span { padding: .25rem .3rem .34rem; font-size: .8rem; }
.conference-bar .conference-timer b { margin-block-end: .18rem; font-size: 1.58rem; }
.conference-status { color: #ffe0e6; font-size: .93rem; font-weight: 600; }
.conference-status:empty { display: none; }
.conference-link { display: inline-flex; align-items: center; justify-self: end; gap: .36rem; min-height: 2.95rem; padding-inline: .67rem; border: 1px solid #a3b8e361; border-radius: .62rem; color: #f1f5ff; font-size: .9rem; font-weight: 600; line-height: 1.28; white-space: nowrap; transition: background-color 180ms ease; }
.conference-link span { color: #ffb8c4; font-size: 1.26rem; line-height: 1; }
.conference-link:hover { background: #ffffff14; }
.conference-link:focus-visible { outline-color: #f59aa6; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 25;
  border-block-end: 1px solid #dfe5ed;
  background: #fffffff5;
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.35rem; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: .68rem; color: var(--night); }
.brand img { width: 3.75rem; height: 3.75rem; border-radius: 50%; object-fit: contain; }
.brand strong { font-size: 1.27rem; line-height: 1.38; }
.main-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.55vw, 2.5rem); }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 3.4rem;
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 .28rem;
  width: 1.3rem;
  height: 3px;
  margin: auto;
  border-radius: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 260ms var(--ease);
}
.main-nav a[aria-current], .main-nav a:hover { color: var(--navy); }
.main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav .compact-contact, .menu-toggle { display: none; }
.icon-button {
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--white);
  color: var(--navy);
}
.menu-toggle[aria-expanded="false"] .icon:last-child,
.menu-toggle[aria-expanded="true"] .icon:first-child { display: none; }
.header-contact[aria-current] { box-shadow: inset 0 -3px #e56879; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .61rem;
  min-height: 3.15rem;
  padding: .66rem 1.18rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color 180ms, border-color 180ms, transform 200ms var(--ease), box-shadow 220ms var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.975); }
.button-dark { color: var(--white); background: var(--navy); }
.button-dark:hover { background: var(--navy-light); }
.button-red { color: var(--white); background: var(--red); }
.button-red:hover { background: #ce3045; }
.button-ghost { color: var(--white); background: #ffffff0a; border-color: #ffffff55; }
.button-ghost:hover { background: #ffffff18; border-color: #ffffffae; }

.hero-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 4.15vw, 4.15rem) clamp(4.25rem, 5.65vw, 5.7rem);
  background: radial-gradient(ellipse at 78% 6%, #253657, transparent 56%), linear-gradient(100deg, #202f50, var(--night) 60%);
  color: var(--white);
}
.hero-surface::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35% auto -40% -7rem;
  width: min(56vw, 48rem);
  border-inline: 1px solid #cddcff19;
  background: linear-gradient(to left, #cfdbff09, transparent 54%);
  transform: skewX(-15deg);
  pointer-events: none;
}
.hero-grid { display: grid; min-height: 27rem; align-items: center; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); gap: clamp(1.6rem, 5.45vw, 5rem); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy::before {
  content: "";
  display: block;
  width: 3.15rem;
  height: 3px;
  margin-block-end: .96rem;
  border-radius: 3px;
  background: linear-gradient(to left, #ed8794 66%, #ed879449 66%);
  transform-origin: right;
  animation: draw-accent 850ms var(--reveal-ease) calc(var(--hero-start, 0ms) + 25ms) both;
}
@keyframes draw-accent {
  from { opacity: 0; transform: scaleX(.15); }
  to { opacity: 1; transform: scaleX(1); }
}
.hero h1 {
  margin-block-end: 1.35rem;
  font: 700 clamp(2.95rem, 5.55vw, 5.2rem)/1.11 var(--font);
}
.hero h1 > span { display: block; overflow: hidden; padding-block: .15em .21em; margin-block: -.15em -.21em; }
.hero h1 > span > span { display: block; animation: title-reveal 980ms var(--reveal-ease) calc(var(--hero-start, 0ms) + 50ms) both; }
.hero h1 > span + span > span { animation-delay: calc(var(--hero-start, 0ms) + 143ms); }
@keyframes title-reveal { from { opacity: 0; transform: translateY(115%); } to { opacity: 1; transform: none; } }
.hero-description { max-width: 39ch; color: #e4ecfa; font-size: clamp(1.12rem, 1.66vw, 1.35rem); line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .62rem; margin-block-start: 1.45rem; }
.hero :focus-visible, .footer :focus-visible { outline-color: #f59aa6; }
.hero-description { animation: arrive 850ms var(--reveal-ease) calc(var(--hero-start, 0ms) + 275ms) both; }
.hero-actions { animation: arrive 820ms var(--reveal-ease) calc(var(--hero-start, 0ms) + 420ms) both; }
.hero-actions:focus-within { animation: none; }
.opening-skipped .hero :is(.hero-description, .hero-actions, h1 span, .spotlight-feature, .spotlight-emblem, .spotlight-selector, .facts),
.opening-skipped .hero-copy::before { animation: none; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.spotlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .79rem;
  min-width: 0;
  padding-inline: clamp(0px, 1.55vw, 1.05rem);
}
.spotlight-feature {
  width: min(100%, 34rem);
  min-width: 0;
  overflow: clip;
  border: 1px solid #bdceec73;
  border-radius: 1.55rem .52rem 1.28rem .52rem;
  background: #192747;
  box-shadow: 0 .85rem 2.2rem #0c142b73;
  animation: portrait-reveal 1060ms var(--reveal-ease) calc(var(--hero-start, 0ms) + 94ms) both;
}
@keyframes portrait-reveal {
  from { opacity: .5; clip-path: inset(0 53% 0 0 round 1rem); transform: translateX(-12px) scale(.975); }
  to { opacity: 1; clip-path: inset(-12% -12% -12% -12%); transform: none; }
}
.spotlight-frame {
  --eye-level: 35%;
  --portrait-size: 113cqh;
  aspect-ratio: 1.61;
  touch-action: pan-y pinch-zoom;
}
.portrait-media.spotlight-frame {
  background: linear-gradient(110deg, #b4c1daa1, #f0f4ff82 70%), var(--studio-photo, #d9e1ee) center / cover;
}
.spotlight-frame::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: .02rem .02rem auto auto;
  width: 4.75rem;
  height: .25rem;
  border-radius: 0 0 .35rem .35rem;
  background: #bc3145;
  pointer-events: none;
}
.spotlight-emblem {
  position: absolute;
  inset: auto auto 8% 5%;
  width: 43%;
  height: auto;
  border-radius: 50%;
  opacity: .16;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.spotlight-frame:not(.spotlight-exit) > .spotlight-emblem { animation: emblem-settle 940ms var(--ease) calc(var(--hero-start, 0ms) + 90ms) both; }
@keyframes emblem-settle { from { transform: translateX(-19px) scale(.88); } to { transform: none; } }
.portrait-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: size;
  background: linear-gradient(#d5deebc7, #d5deebc7) center / cover,
    var(--studio-photo, linear-gradient(#dbe2ec, #cad4e3)) center / cover;
}
.portrait-layer { position: relative; width: 100%; height: 100%; }
.portrait-layer > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.portrait-framed .portrait-layer {
  position: absolute;
  inset: var(--eye-level, 34%) auto auto 50%;
  width: calc(var(--photo-scale) * var(--portrait-size, 108cqh));
  height: auto;
  aspect-ratio: var(--photo-aspect, .8);
  transform: translate(calc(var(--eye-x) * -1%), calc(var(--eye-y) * -1%));
  mask-image: var(--portrait-matte), linear-gradient(to right, transparent, black var(--left-feather, 4%), black 98%, transparent);
  mask-mode: luminance, alpha;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
  transition: scale 440ms var(--ease);
}
.spotlight-frame > .spotlight-exit {
  position: absolute;
  z-index: 3;
  inset: 0;
  aspect-ratio: auto;
  pointer-events: none;
}
.spotlight-initials {
  position: absolute;
  z-index: 1;
  inset: 43% auto auto 50%;
  display: grid;
  place-items: center;
  width: min(48cqh, 9rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffff76;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font: 700 clamp(1.9rem, 15cqh, 3.8rem)/1 var(--font);
}
.spotlight-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .12rem .75rem;
  padding: .72rem 1.15rem;
  border-block-start: 1px solid #b8c8e54b;
  color: var(--white);
}
.spotlight-caption p { color: #f0a6b1; font-size: .94rem; line-height: 1.35; }
.spotlight-caption strong { grid-column: 1; font-size: clamp(1.27rem, 2vw, 1.7rem); line-height: 1.3; }
.spotlight-link {
  display: grid;
  grid-row: 1 / 3;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #c5d7fb66;
  border-radius: .62rem;
  color: var(--white);
  transition: background-color 180ms, border-color 180ms;
}
.spotlight-link:hover { border-color: #f7acb8; background: #f2a1b021; }
.spotlight-selector { display: flex; justify-content: center; gap: .52rem; animation: arrive 860ms var(--reveal-ease) calc(var(--hero-start, 0ms) + 325ms) both; }
.spotlight:focus-within :is(.spotlight-selector, .spotlight-feature) { animation: none; }
.spotlight-selector:empty { display: none; }
.spotlight-selector button {
  position: relative;
  width: clamp(3rem, 4.35vw, 3.6rem);
  aspect-ratio: 1;
  padding: .16rem;
  border: 1px solid #e2e9fc47;
  border-radius: .77rem;
  background: #edf2fc15;
  color: white;
  transition: transform 240ms var(--ease), border-color 220ms, background-color 220ms;
}
.spotlight-selector button:active { transform: scale(.96); }
.spotlight-thumbnail { --eye-level: 48%; --portrait-size: 181cqh; display: block; width: 100%; height: 100%; border-radius: .54rem; opacity: .74; transition: opacity 220ms; }
.spotlight-thumbnail-initials {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font: 700 1rem/1 var(--font);
}
.spotlight-selector button[aria-pressed="true"] { border-color: #f8909a; background: #df6c7c3d; transform: translateY(-.18rem); }
.spotlight-selector button[aria-pressed="true"] .spotlight-thumbnail, .spotlight-selector button:hover .spotlight-thumbnail { opacity: 1; }

.facts-wrap { position: relative; z-index: 3; margin-block: -2.15rem 0; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: .92rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--white);
  box-shadow: 0 .4rem 1.4rem #1a2b4c11;
  animation: arrive 880ms var(--reveal-ease) calc(var(--hero-start, 0ms) + 465ms) both;
}
.facts > div { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-end; gap: .19rem; padding: .25rem .5rem; text-align: center; }
.facts > div + div { border-inline-start: 1px solid var(--line); }
.facts dd { color: var(--navy); font-size: clamp(1.62rem, 3.55vw, 3rem); line-height: 1.16; font-weight: 700; }
.facts dd span { color: var(--red); }
.facts dt { color: var(--muted); font-size: clamp(.87rem, 1.45vw, 1.05rem); font-weight: 700; line-height: 1.32; }

.section { padding-block: clamp(3.25rem, 6.2vw, 5.4rem); }
.faculty { padding-block-start: clamp(2.85rem, 4.45vw, 4rem); }
.section-head { margin-block-end: 1.5rem; }
.section-head h2 { color: var(--night); font: 700 clamp(1.8rem, 3.35vw, 2.85rem)/1.32 var(--font); }
.faculty-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.search {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: min(22rem, 100%);
  min-height: 3.25rem;
  padding-inline: .92rem .35rem;
  border: 1px solid #b7c5d9;
  border-radius: .88rem;
  background: var(--white);
  color: var(--muted);
  transition: box-shadow 220ms, border-color 220ms;
}
.search:focus-within { box-shadow: 0 0 0 3px #2a64bf29; border-color: #2f65b9; }
.search label { display: grid; cursor: text; }
.search input { width: 100%; min-width: 0; padding: .55rem 0; border: 0; background: transparent; color: var(--ink); font-size: 1.07rem; outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { appearance: none; }
.search .icon-button { display: grid; width: 2.75rem; height: 2.75rem; border-color: transparent; }
.search .icon-button:hover { background: var(--tint); }

.subject-selector { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; }
.subject-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-width: 0;
  min-height: 7.75rem;
  padding: .7rem .42rem .78rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  color: var(--navy);
  font-size: clamp(.95rem, 1.55vw, 1.16rem);
  font-weight: 700;
  line-height: 1.24;
  transition: transform 250ms var(--ease), background-color 230ms, box-shadow 240ms var(--ease), border-color 230ms;
}
.subject-card::after { content: ""; position: absolute; inset: auto 0 0; width: 1.75rem; height: 3px; margin: auto; border-radius: 5px 5px 0 0; background: #f28192; transform: scaleX(0); transition: transform 250ms var(--ease); }
.subject-card img { width: clamp(2.85rem, 6vw, 4rem); height: auto; aspect-ratio: 1; padding: .27rem; border-radius: .7rem; background: #f0f3f8; transition: transform 270ms var(--ease), background-color 230ms; }
.subject-card:hover { transform: translateY(-3px); border-color: #b2c1d8; box-shadow: 0 7px 19px #18294b14; }
.subject-card:hover img { transform: scale(1.08); }
.subject-card:active { transform: scale(.97); }
.subject-card[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); box-shadow: 0 8px 18px #18294b27; }
.subject-card[aria-pressed="true"] img { background: #f8faff; }
.subject-card[aria-pressed="true"]::after { transform: scaleX(1); }

.faculty-results { margin-block-start: 1.65rem; padding-block-start: 1.1rem; border-block-start: 1px solid var(--line); }
.results-head { display: flex; align-items: center; gap: .64rem; margin-block-end: .92rem; }
.results-head img { width: 2.85rem; height: 2.85rem; padding: .17rem; border: 1px solid var(--line); border-radius: .62rem; background: var(--white); }
.results-head h3 { font: 700 clamp(1.16rem, 2.1vw, 1.7rem)/1.36 var(--font); }
.results-head p { margin-inline-start: auto; color: var(--muted); font-size: .98rem; white-space: nowrap; }
.teacher-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .95rem; }
.teacher-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .82rem;
  background: var(--white);
  transition: transform 260ms var(--ease), border-color 200ms, box-shadow 240ms var(--ease);
}
.teacher-card:has(button):hover { transform: translateY(-4px); border-color: #acbed9; box-shadow: 0 12px 27px #142a4c1c; }
.teacher-card:focus-within { outline: 3px solid #3069c0; outline-offset: 3px; }
.teacher-enter { animation: arrive 650ms var(--reveal-ease) var(--card-delay, 0ms) both; }
.teacher-visual { position: relative; overflow: hidden; aspect-ratio: 1.11; }
@media (hover: hover) {
  .teacher-card:hover .portrait-layer { scale: 1.035; }
}
.teacher-visual.no-photo {
  isolation: isolate;
  display: grid;
  place-items: center;
  color: #506a91;
  background: #e9eef5;
}
.teacher-visual.no-photo::before { content: ""; position: absolute; z-index: -1; width: 41%; max-width: 6.25rem; aspect-ratio: 1; border: 1px solid #c3d1e6; border-radius: 50%; background: #f6f8fb; }
.no-photo .icon { width: clamp(2.5rem, 5vw, 3.85rem); height: auto; aspect-ratio: 1; stroke-width: 1.28; }
.teacher-info { min-height: 6.15rem; padding: .85rem 1rem 1rem; }
.teacher-info p { color: #a52135; font-size: .96rem; line-height: 1.36; font-weight: 700; }
.teacher-info h4 { margin-block-start: .2rem; color: var(--night); font-size: clamp(1.12rem, 2vw, 1.5rem); line-height: 1.3; overflow-wrap: anywhere; }
.teacher-open { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: transparent; outline: none; }
.teacher-expand {
  position: absolute;
  z-index: 2;
  inset: auto auto .65rem .65rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #ffffff8c;
  border-radius: .63rem;
  color: var(--navy);
  background: #ffffffef;
  box-shadow: 0 4px 10px #12244325;
  transition: background-color 190ms, color 190ms;
}
.teacher-card:focus-within .teacher-expand { color: var(--white); background: var(--navy); }
@media (hover: hover) {
  .teacher-card:hover .teacher-expand { color: var(--white); background: var(--navy); }
}
@media (min-width: 871px) {
  .teacher-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teacher-grid[data-count="3"] .teacher-visual { width: 100%; height: clamp(14rem, 22vw, 17rem); aspect-ratio: auto; }
}
.back-to-subjects { display: none; }
.empty { display: grid; justify-items: center; gap: .75rem; padding: 1.8rem; border: 1px dashed #b7c5d9; border-radius: .9rem; background: var(--white); text-align: center; }
.empty .icon { color: var(--red); width: 2rem; height: 2rem; }

.study { background: #edf2fa; border-block: 1px solid var(--line); }
.study-layout { display: grid; grid-template-columns: .94fr 1.06fr; gap: 1.14rem; align-items: stretch; }
.stages {
  overflow: hidden;
  display: grid;
  gap: .7rem;
  padding: clamp(1.05rem, 2.8vw, 1.75rem);
  border-radius: 1.22rem;
  background: var(--navy);
  color: var(--white);
}
.stage, .features li { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.stage { min-height: 4.8rem; padding: .55rem .66rem; border: 1px solid #e6edfe41; border-radius: .78rem; background: #ffffff0d; }
.stage-icon, .feature-icon { display: grid; flex-shrink: 0; width: 3.05rem; height: 3.05rem; place-items: center; border-radius: .74rem; }
.stage-icon { background: #ffffff19; color: #fff; }
.stage h3 { font-size: 1.17rem; line-height: 1.35; }
.features { display: grid; gap: .63rem; margin: 0; padding: 0; list-style: none; }
.features li { padding: .78rem .93rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--white); }
.features h3 { font-size: 1.16rem; line-height: 1.38; }
.feature-icon { background: #edf2f9; color: var(--navy); }
.features li:nth-child(2) .feature-icon { background: #f8e6e9; color: var(--red); }
.features li:nth-child(2) { --reveal-delay: 70ms; }
.features li:nth-child(3) { --reveal-delay: 140ms; }

.honors { padding-block-end: clamp(2.55rem, 4.7vw, 4.25rem); border-block-start: 1px solid var(--line); background: var(--white); }
.upcoming + .honors { padding-block-start: clamp(.7rem, 1.9vw, 1.55rem); border-block-start: 0; }
.honors > .wrap { max-width: 59rem; }
.honors-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .72rem 1.1rem; }
.honors-summary { max-width: 52ch; margin-block-start: .48rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.12rem); line-height: 1.7; }
.honors-video { display: inline-flex; align-items: center; gap: .48rem; min-height: 2.75rem; padding-inline: .72rem; border: 1px solid var(--line); border-radius: .68rem; color: var(--navy); font-size: .94rem; font-weight: 600; transition: background-color 180ms ease; }
.honors-video .icon { width: 1.19rem; height: 1.19rem; color: var(--red); }
.honors-video:hover { background: var(--tint); }
.honors-album { --album-paper: #fdfaf3; --album-gutter: clamp(.5rem, 1.8vw, 1.15rem); }
.album-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.honors-photo {
  display: grid;
  min-width: 0;
  align-content: start;
  padding: var(--album-gutter);
  border: 1px solid #e6dfd1;
  border-radius: .54rem .24rem .24rem .54rem;
  background: var(--album-paper);
  color: var(--navy);
}
.honors-photo:focus-visible { outline-offset: -4px; }
.honors-photo img { width: 100%; height: auto; aspect-ratio: 1280 / 676; border-radius: .22rem; background: var(--night); object-fit: contain; user-select: none; }
.honors-label { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .68rem .22rem .06rem; font-size: clamp(.94rem, 2.1vw, 1.15rem); line-height: 1.36; font-weight: 700; }
.honors-label .icon { width: 1.2rem; height: 1.2rem; color: var(--muted); }
.honors-photo:hover .honors-label .icon { color: var(--red); }
.album-ready .album-frame {
  padding: .5rem .86rem .66rem .59rem;
  overflow: clip;
  border: 1px solid #42516c;
  border-radius: .82rem .36rem .36rem .82rem;
  background: linear-gradient(to left, #263452 .1rem, #a64252 .15rem, #903b50 .34rem, var(--night) .39rem);
  box-shadow: 0 .8rem 1.7rem #15224127, inset 0 0 0 1px #f1f6ff1a;
}
.album-ready .album-pages {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-radius: .54rem .24rem .24rem .54rem;
  box-shadow: -2px 2px #eee7db, -3px 3px #a99f97, -4px 4px #eaddcc;
  background: var(--album-paper);
  perspective: max(40rem, 95vw);
  touch-action: pan-y pinch-zoom;
}
.album-ready .honors-photo { background: linear-gradient(to left, #e7decc, var(--album-paper) .85rem); }
.album-leaf {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform-origin: var(--album-hinge, .85rem) 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}
.album-leaf[data-backward] { --album-hinge: calc(100% - .85rem); }
.album-leaf > .honors-photo, .album-leaf-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}
.album-leaf > .honors-photo { transform: translateZ(.2px); box-shadow: 0 .12rem .9rem #151e3163; }
.album-leaf-back {
  transform: rotateY(180deg) translateZ(.2px);
  border: 1px solid #ded3c3;
  border-radius: .24rem .54rem .54rem .24rem;
  background: linear-gradient(to right, #d7cbb7, #f7f1e5 12%, #fffaf0);
}
.album-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .35rem; margin-block-start: .85rem; }
.album-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  width: fit-content;
  min-height: 2.75rem;
  padding-inline: .65rem;
  border: 1px solid var(--line);
  border-radius: .58rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: .92rem;
  transition: background-color 180ms ease;
}
.album-step .icon { width: 1.15rem; height: 1.15rem; }
.album-prev .icon { scale: -1 1; }
.album-next { justify-self: end; }
.album-step[aria-disabled="true"] { opacity: .52; cursor: default; }
.album-step[aria-disabled="false"]:hover { background: var(--tint); }
.album-status { color: var(--muted); font-size: .94rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.album-thumbnails { display: flex; justify-content: safe center; gap: clamp(.35rem, 1.2vw, .68rem); margin-block-start: .48rem; padding: .28rem .27rem .4rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.album-thumbnail {
  display: grid;
  align-items: center;
  flex-shrink: 0;
  width: clamp(3.5rem, 9vw, 5.8rem);
  min-height: 2.75rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: .54rem;
  background: var(--page);
  scroll-snap-align: center;
  transition: border-color 180ms, background-color 180ms;
}
.album-thumbnail img { width: 100%; height: auto; aspect-ratio: 640 / 336; border-radius: .27rem; object-fit: cover; }
.album-thumbnail:hover { background: var(--tint); }
.album-thumbnail[aria-pressed="true"] { border-color: var(--red); background: #fbebed; }

.upcoming { padding-block: clamp(2rem, 4.3vw, 3.85rem); border-block-start: 1px solid var(--line); background: var(--white); }
.upcoming-panel {
  --reveal-time: 1080ms;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(1.25rem, 4.7vw, 4.4rem);
  max-width: 69rem;
  min-height: clamp(25.5rem, 36vw, 31rem);
  padding: clamp(1.25rem, 4.1vw, 3.8rem);
  border-inline-start: .28rem solid var(--red);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 18% 26%, #70536b57, transparent 43%), linear-gradient(117deg, #243756, var(--night) 66%);
  color: var(--white);
}
.upcoming-panel h2 { max-width: 16ch; font: 700 clamp(1.8rem, 4vw, 3.45rem)/1.17 var(--font); text-wrap: balance; }
.upcoming-intro { --reveal-delay: 150ms; max-width: 40ch; margin-block-start: .8rem; color: #e6edfa; font-size: clamp(1rem, 1.75vw, 1.24rem); line-height: 1.65; }
.upcoming-details { --reveal-delay: 290ms; display: flex; align-items: center; gap: .58rem; margin-block: 1.2rem 1.32rem; color: #f3f6ff; font-weight: 600; line-height: 1.5; }
.upcoming-details .icon { color: #f6a3b0; }
.upcoming-content .button { --reveal-delay: 420ms; }
.upcoming :focus-visible { outline-color: #f8a8b4; }
.upcoming-clock {
  --reveal-delay: 240ms;
  position: relative;
  min-width: 0;
  padding: clamp(.9rem, 2.4vw, 1.65rem);
  border: 1px solid #bfd0f144;
  border-radius: .95rem;
  background: radial-gradient(ellipse at 50% 26%, #8c59762d, transparent 56%), #111c3470;
  text-align: center;
}
.upcoming-hourglass { --hourglass-motion: hourglass-turn; position: relative; width: clamp(6.5rem, 13vw, 9.5rem); aspect-ratio: .73; margin: .15rem auto clamp(.94rem, 1.9vw, 1.6rem); }
.upcoming-hourglass::before, .upcoming-hourglass::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 1% 0 auto;
  height: 9.5%;
  border: 1px solid #abbfdf99;
  border-radius: .32rem;
  background: linear-gradient(180deg, #b9c9e5, #607699 24%, #263852 72%, #6d82a3);
  box-shadow: 0 .4rem .9rem #0c132c66;
}
.upcoming-hourglass::after { inset: auto 0 1%; }
.hourglass-body {
  position: absolute;
  inset: 8% 9%;
  clip-path: polygon(0 0, 100% 0, 99% 13%, 94% 24%, 84% 34%, 68% 43%, 56% 48%, 55% 50%, 56% 52%, 68% 57%, 84% 66%, 94% 76%, 99% 87%, 100% 100%, 0 100%, 1% 87%, 6% 76%, 16% 66%, 32% 57%, 44% 52%, 45% 50%, 44% 48%, 32% 43%, 16% 34%, 6% 24%, 1% 13%);
  background: linear-gradient(118deg, #eaf1ff, #819bc3 29%, #4b6083 49%, #c7d8f6 79%, #8497ba);
}
.hourglass-window {
  position: absolute;
  inset: .095rem .115rem;
  clip-path: inherit;
  background: linear-gradient(110deg, #6078a3ae, #273958 38%, #21324d 70%, #536a90da);
}
.hourglass-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 15%, #f1f6ff24 24%, transparent 33% 62%, #e1ecff25 73%, transparent 78%); }
.hourglass-sand-top, .hourglass-sand-bottom, .hourglass-stream { position: absolute; display: block; }
.hourglass-sand-top, .hourglass-sand-bottom { inset-inline: 0; height: 50%; transform-origin: center bottom; background: linear-gradient(100deg, #d98196, #f8b7c3 47%, #ed9dae 70%, #bc6580); }
.hourglass-sand-top { --hourglass-motion: sand-top-loop; inset-block-start: 0; transform: scaleY(.66); }
.hourglass-sand-bottom { --hourglass-motion: sand-bottom-loop; inset-block-end: 0; transform: scaleY(.43); }
.hourglass-stream { --hourglass-motion: sand-stream-out; inset-block: 50% 8%; left: 50%; width: .09rem; translate: -50% 0; background: linear-gradient(#f9bbc7, #f394a8); opacity: 0; }
.hourglass-stream-return { --hourglass-motion: sand-stream-return; inset-block: 8% 50%; }
.upcoming-clock:has(.upcoming-clock-live:not([hidden])) :is(.upcoming-hourglass, .hourglass-sand-top, .hourglass-sand-bottom, .hourglass-stream) {
  animation: var(--hourglass-motion) 30s linear infinite;
  animation-play-state: var(--hourglass-play, paused);
}
.upcoming-clock.hourglass-in-view:not(.hourglass-paused) { --hourglass-play: running; }
@keyframes hourglass-turn {
  0%, 43% { rotate: 0deg; animation-timing-function: cubic-bezier(.45, 0, .28, 1); }
  50%, 93% { rotate: 180deg; animation-timing-function: cubic-bezier(.45, 0, .28, 1); }
  100% { rotate: 360deg; }
}
@keyframes sand-top-loop {
  0% { transform: scaleY(1); transform-origin: center bottom; }
  39% { transform: scaleY(0); transform-origin: center bottom; }
  43%, 50% { transform: scaleY(0); transform-origin: center top; }
  89%, 100% { transform: scaleY(1); transform-origin: center top; }
}
@keyframes sand-bottom-loop {
  0% { transform: scaleY(0); transform-origin: center bottom; }
  39% { transform: scaleY(1); transform-origin: center bottom; }
  43%, 50% { transform: scaleY(1); transform-origin: center top; }
  89% { transform: scaleY(0); transform-origin: center top; }
  93%, 100% { transform: scaleY(0); transform-origin: center bottom; }
}
@keyframes sand-stream-out { 0%, 39%, 100% { opacity: 0; } 3%, 36% { opacity: .89; } }
@keyframes sand-stream-return { 0%, 50%, 89%, 100% { opacity: 0; } 53%, 86% { opacity: .89; } }
.hourglass-toggle { position: absolute; inset-block-start: .58rem; inset-inline-end: .58rem; display: grid; place-items: center; border-color: #bfd0f162; background: #17233e9e; color: #edf3ff; }
.hourglass-toggle:hover { background: #394967; }
.hourglass-toggle .icon { width: 1.12rem; height: 1.12rem; }
.hourglass-toggle[aria-pressed="false"] .icon:last-child, .hourglass-toggle[aria-pressed="true"] .icon:first-child { display: none; }
.upcoming-clock-live > p { margin-block-end: .64rem; font-size: 1.02rem; font-weight: 600; }
.upcoming-clock .conference-timer { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.3rem, 1vw, .58rem); }
.upcoming-clock .conference-timer > span { padding: .71rem .1rem .65rem; font-size: .84rem; }
.upcoming-clock .conference-timer b { margin-block-end: .4rem; font-size: clamp(1.5rem, 4vw, 2.65rem); }

.footer {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-block-start: 3px solid var(--red);
  background: var(--night);
  color: var(--white);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.14fr .95fr .76fr;
  align-items: start;
  gap: 1.4rem clamp(1rem, 3.3vw, 2.65rem);
}
.footer .brand { justify-self: start; color: var(--white); }
.footer .brand img { width: 3.5rem; height: 3.5rem; border: 1px solid #c4d6ff6b; }
.footer h3 { margin-block-end: .3rem; font-size: 1.08rem; }
.footer address { font-style: normal; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 2.75rem;
  padding-block: .36rem;
  color: #e6edff;
  font-size: 1rem;
  line-height: 1.4;
  text-underline-offset: .2em;
}
.footer-link .icon { width: 1.26rem; height: 1.26rem; color: #ffadb9; }
.footer-link bdi { font-variant-numeric: tabular-nums; }
.footer-location { align-items: start; }
.footer-landmark { display: block; }
.footer-link:hover { text-decoration: underline; }
.mobile-dock { display: none; }

.sheet {
  position: fixed;
  width: min(30rem, calc(100% - 1.6rem));
  max-height: min(90vh, calc(100dvh - 1.5rem));
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1.3rem 4rem #0b163a79;
}
.sheet[open] { animation: open-sheet 300ms var(--ease) both; }
.sheet::backdrop { background: #0b163ba8; backdrop-filter: blur(4px); }
@keyframes open-sheet {
  from { opacity: 0; transform: translateY(13px) scale(.976); }
  to { opacity: 1; transform: none; }
}
.sheet-close { position: absolute; z-index: 4; display: grid; inset: .63rem auto auto .63rem; }
.sheet-close:hover { background: var(--tint); }
.sheet-body { padding: 1.35rem; }
.sheet h2 { max-width: calc(100% - 2.75rem); color: var(--navy); font: 700 clamp(1.38rem, 3vw, 1.92rem)/1.4 var(--font); }
.profile-sheet { width: min(23.5rem, calc(100% - 1.6rem)); }
.profile-portrait { --eye-level: 35%; --portrait-size: 90cqh; width: 100%; height: min(27rem, 62vh, 62dvh); }
.profile-meta { display: flex; align-items: center; gap: .48rem; margin-block-end: .3rem; color: var(--red); font-size: .98rem; font-weight: 700; }
.profile-meta img { width: 2.1rem; height: 2.1rem; padding: .09rem; border-radius: .4rem; background: var(--tint); }
.sheet.honors-dialog { width: min(68rem, calc(100% - 1.6rem)); background: var(--night); color: var(--white); }
.honors-image-viewport { max-height: min(72vh, 72dvh); overflow: auto; overscroll-behavior: contain; direction: ltr; }
.honors-image-viewport:focus-visible { outline-color: #f59aa6; outline-offset: -4px; }
.honors-dialog img { width: 100%; max-height: min(72vh, 72dvh); object-fit: contain; }
.honors-dialog.honors-zoomed img { width: min(245%, var(--honors-detail-width)); max-width: none; max-height: none; }
.honors-dialog figcaption { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .6rem .85rem; font-size: 1.03rem; }
.honors-zoom { min-height: 2.75rem; padding-inline: .66rem; border: 1px solid #c6d7f46e; border-radius: .58rem; background: #ffffff13; color: var(--white); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.honors-zoom:hover { background: #ffffff26; }
.honors-zoom:focus-visible { outline-color: #f59aa6; }

.will-reveal { opacity: 0; translate: 0 16px; transition: opacity var(--reveal-time) var(--reveal-ease) var(--reveal-delay, 0ms), translate var(--reveal-time) var(--reveal-ease) var(--reveal-delay, 0ms); }
.will-reveal.revealed, .will-reveal:focus-within { opacity: 1; translate: none; }
.subject-card.will-reveal {
  transition: opacity var(--reveal-time) var(--reveal-ease) var(--reveal-delay), translate var(--reveal-time) var(--reveal-ease) var(--reveal-delay),
    transform 250ms var(--ease), background-color 230ms, box-shadow 240ms var(--ease), border-color 230ms;
}
.will-reveal:focus-within:not(.revealed) { transition: none; }

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 3.25rem); }
  .main-nav { gap: clamp(.9rem, 2vw, 1.5rem); }
  .hero-grid { gap: 1.85rem; }
  .hero h1 { font-size: clamp(2.68rem, 5.88vw, 4.45rem); }
  .spotlight { padding-inline: .3rem; }
}
@media (max-width: 870px) {
  :root { --header: 4.45rem; }
  .conference-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .header-contact { display: none; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand img { width: 3.25rem; height: 3.25rem; }
  .brand strong { font-size: 1.19rem; }
  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header) - 1rem);
    overflow: auto;
    padding: .4rem 1.5rem .8rem;
    border-block-end: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 12px 23px #1022421b;
  }
  .main-nav.open { display: flex; animation: open-sheet 220ms var(--ease) both; }
  .main-nav a, .main-nav .compact-contact { display: flex; min-height: 2.9rem; padding-inline: .59rem; border-block-end: 1px solid var(--line); }
  .main-nav a[aria-current] { background: var(--tint); }
  .main-nav a::after { display: none; }
  .hero-grid { min-height: 0; gap: 1.35rem; }
  .hero h1 { font-size: clamp(2.56rem, 5.7vw, 3.6rem); }
  .hero-actions a { padding-inline: .78rem; font-size: .98rem; }
  .hero-actions .icon { width: 1.18rem; height: 1.18rem; }
  .subject-selector { gap: .51rem; }
  .subject-card { min-height: 6.7rem; }
  .teacher-grid { gap: .65rem; }
  .teacher-info { padding-inline: .65rem; }
}
@media (max-width: 680px) {
  :root { --header: 4.18rem; }
  .wrap { width: calc(100% - 1.6rem); }
  .conference-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .58rem .45rem; padding-block: .67rem; }
  .conference-info { grid-column: 1 / -1; gap: .56rem; }
  .conference-icon { width: 2.48rem; height: 2.48rem; border-radius: .62rem; }
  .conference-info time { font-size: .87rem; }
  .conference-bar .conference-timer { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 15.8rem; gap: .26rem; }
  .conference-bar .conference-timer > span { padding-inline: .14rem; }
  .conference-bar .conference-timer b { font-size: 1.47rem; }
  .conference-link { padding-inline: .47rem; }
  .header-inner { gap: .55rem; }
  .brand { gap: .55rem; }
  .brand img { width: 3.05rem; height: 3.05rem; }
  .brand strong { font-size: 1.14rem; }
  .hero-surface { padding-block: 1.52rem 3.7rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.32rem; }
  .hero h1 { display: flex; flex-wrap: wrap; gap: .13em .2em; margin-block-end: .72rem; font-size: clamp(2.2rem, 7.35vw, 3.6rem); line-height: 1.25; }
  .hero-description { font-size: 1.12rem; line-height: 1.7; }
  .hero-actions { margin-block-start: .98rem; gap: .43rem; }
  .spotlight { max-width: 29rem; width: 100%; gap: .62rem; padding-inline: .12rem; margin-inline: auto; }
  .spotlight-feature { border-radius: 1.15rem .44rem 1.02rem .44rem; }
  .spotlight-frame { --eye-level: 34%; aspect-ratio: 1.64; }
  .spotlight-caption { padding: .54rem .67rem; }
  .spotlight-selector { gap: .49rem; }
  .spotlight-selector button { width: 3.12rem; }
  .facts-wrap { margin-block-start: -1.67rem; }
  .facts { padding: .6rem .27rem; border-radius: .92rem; }
  .facts > div { padding-inline: .25rem; }
  .section { padding-block: 2.6rem; }
  .faculty { padding-block-start: 2.5rem; }
  .section-head { margin-block-end: 1.05rem; }
  .faculty-head { flex-direction: column; align-items: stretch; gap: .78rem; }
  .search { width: 100%; }
  .subject-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subject-card { min-height: 5.65rem; padding: .42rem .25rem .55rem; line-height: 1.18; }
  .subject-card img { width: 3rem; padding: .17rem; }
  .faculty-results { margin-block-start: 1.22rem; }
  .results-head { gap: .45rem; margin-block-end: .7rem; }
  .results-head img { width: 2.25rem; height: 2.25rem; }
  .results-head p { font-size: .88rem; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-visual { aspect-ratio: .96; }
  .teacher-info { min-height: 4.9rem; padding: .58rem .61rem .68rem; }
  .teacher-info p { font-size: .86rem; }
  .teacher-expand { inset: auto auto .45rem .45rem; }
  .back-to-subjects { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block-start: .52rem; color: var(--navy); font-size: .99rem; font-weight: 700; text-decoration: underline; text-underline-offset: .24em; }
  .study-layout { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .features li { gap: .69rem; padding: .65rem .7rem; }
  .honors-head { align-items: start; gap: .57rem; }
  .honors-label { padding-block-start: .54rem; }
  .upcoming-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: .93rem; }
  .upcoming-details { margin-block: .8rem .93rem; font-size: .97rem; }
  .upcoming-hourglass { width: clamp(5.45rem, 25vw, 7.6rem); }
  .footer .brand, .footer-group:has(address) { grid-column: 1 / -1; }
  .footer-inner { gap: 1.12rem .55rem; }
}
@media (max-width: 680px), (max-width: 950px) and (max-height: 480px) and (pointer: coarse) {
  html { scroll-padding-block-end: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
  body { padding-block-end: calc(4.55rem + env(safe-area-inset-bottom, 0px)); }
  a, button { -webkit-tap-highlight-color: transparent; }
  .mobile-dock {
    position: fixed;
    z-index: 26;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .35rem;
    padding: .32rem max(.48rem, env(safe-area-inset-right)) calc(.32rem + env(safe-area-inset-bottom, 0px)) max(.48rem, env(safe-area-inset-left));
    border-block-start: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(14px);
    box-shadow: 0 -7px 24px #14294516;
  }
  .mobile-dock a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .16rem;
    min-height: 3.55rem;
    border-radius: .73rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.28;
    font-weight: 700;
    transition: background-color 180ms, transform 180ms var(--ease);
  }
  .mobile-dock a[aria-current] { background: var(--tint); color: var(--navy); }
  .mobile-dock a[aria-current]::before { content: ""; position: absolute; inset-block-start: -.31rem; width: 1.2rem; height: 3px; border-radius: 3px; background: var(--red); }
  .mobile-dock a:active { transform: scale(.94); }
  .dock-study-label { max-width: 100%; font-size: .83rem; line-height: 1.12; text-align: center; text-wrap: balance; translate: 0 -.12rem; }
}
@media (min-width: 681px) and (max-width: 950px) and (max-height: 480px) and (pointer: coarse) {
  html { scroll-padding-block-end: calc(3.75rem + env(safe-area-inset-bottom, 0px)); }
  body { padding-block-end: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock a { flex-direction: row; gap: .42rem; min-height: 2.75rem; }
  .main-nav { max-height: calc(100dvh - var(--header) - 4rem); }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2.05rem; }
  .hero-actions a { padding-inline: .49rem; gap: .34rem; font-size: .89rem; }
  .subject-card { font-size: .89rem; }
  .results-head p { font-size: .81rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .site-opening { display: none; }
  .will-reveal { opacity: 1; translate: none; }
}
