:root {
  --navy: #062a55;
  --navy-deep: #031f43;
  --blue: #4395c8;
  --blue-soft: #dcebf4;
  --gold: #c69758;
  --gold-light: #e6c58e;
  --ink: #10233e;
  --paper: #f7f6f2;
  --white: #ffffff;
  --body-font: "DM Sans", Arial, sans-serif;
  --serif-font: "Libre Baskerville", Georgia, serif;
  --script-font: "Caveat", "Brush Script MT", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 108px;
  padding: 18px clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(247, 246, 242, 0.96);
  border-bottom: 1px solid rgba(6, 42, 85, 0.13);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 60px;
  height: 72px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  color: var(--navy);
  line-height: 1.08;
}

.brand-copy strong {
  font-family: var(--serif-font);
  font-size: clamp(15px, 1.25vw, 20px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  min-height: 710px;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  overflow: hidden;
  background:
    linear-gradient(rgba(67, 149, 200, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 46px;
}

.hero-copy {
  z-index: 1;
  padding: clamp(58px, 6vw, 94px) clamp(30px, 6vw, 100px);
  padding-right: clamp(20px, 3.5vw, 58px);
  align-self: center;
}

.profile-back {
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-back span {
  color: var(--gold);
  font-size: 17px;
  transition: transform 180ms ease;
}

.profile-back:hover span,
.profile-back:focus-visible span {
  transform: translateX(-4px);
}

.profile-back:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9a7040;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: -18px 0 -10px;
  color: var(--navy);
  font-family: var(--script-font);
  font-size: clamp(88px, 9.4vw, 150px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero h1::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -7px;
  width: 96px;
  height: 8px;
  background: var(--blue);
  border-radius: 100%;
  transform: rotate(-3deg);
}

.role {
  margin: 22px 0 22px;
  color: var(--blue);
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro,
.bio {
  max-width: 590px;
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.55;
}

.intro {
  margin: 0 0 12px;
}

.bio {
  margin: 0;
  color: #334156;
}

.profile-highlights {
  max-width: 590px;
  margin-top: 20px;
}

.profile-highlight {
  padding: 14px 0;
  border-top: 1px solid rgba(198, 151, 88, 0.48);
}

.profile-highlight:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-highlight h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.profile-highlight p {
  margin: 0;
  color: #334156;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.48;
}

.philosophy {
  max-width: 600px;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid rgba(198, 151, 88, 0.8);
}

.heart {
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: var(--navy);
}

.heart svg {
  width: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.philosophy > span:last-child {
  padding: 15px 20px 16px;
}

.philosophy strong {
  display: block;
  margin-bottom: 5px;
  color: #9a7040;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.philosophy q {
  font-family: var(--serif-font);
  font-size: clamp(14px, 1.15vw, 17px);
  font-style: italic;
  line-height: 1.55;
}

.portrait {
  position: relative;
  min-width: 0;
  margin: 0 0 0 -9%;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--navy);
}

.portrait::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 11.8%;
  width: 9px;
  background: var(--gold-light);
  transform: skewX(-8deg);
  transform-origin: top;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 51% center;
}

.portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(77%, 560px);
  padding: 22px clamp(26px, 4vw, 54px);
  color: var(--white);
  background: rgba(3, 31, 67, 0.94);
  border-top: 3px solid var(--gold);
}

.portrait figcaption span,
.portrait figcaption strong {
  display: block;
}

.portrait figcaption span {
  margin-bottom: 7px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portrait figcaption strong {
  font-family: var(--serif-font);
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.5;
}

.facts {
  padding: 62px clamp(24px, 5vw, 80px) 68px;
  color: var(--white);
  background: var(--navy-deep);
  border-top: 5px solid var(--gold);
}

.facts-heading {
  margin-bottom: 35px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.facts-heading .eyebrow {
  margin: 0 0 8px;
  color: var(--gold-light);
}

.facts h2 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 400;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(230, 197, 142, 0.45);
}

.facts--four .fact-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facts--three .fact-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact {
  min-width: 0;
  padding: 32px clamp(16px, 2.2vw, 34px) 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  border-left: 1px solid rgba(230, 197, 142, 0.45);
  text-align: center;
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact svg {
  width: 56px;
  height: 56px;
  justify-self: center;
  fill: none;
  stroke: var(--gold-light);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fact h3 {
  margin: 0 0 7px;
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--serif-font);
  font-size: 13px;
  line-height: 1.6;
}

.welcome {
  padding: 45px clamp(24px, 8vw, 130px);
  display: grid;
  grid-template-columns: auto minmax(0, 900px);
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  background: var(--blue-soft);
}

.welcome-mark {
  color: var(--gold);
  font-size: 36px;
}

.profile-home-nav {
  padding: 0 24px 36px;
  display: flex;
  justify-content: center;
  background: var(--blue-soft);
}

.profile-home-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold-light);
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-family: var(--serif-font);
  font-size: 30px;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.profile-home-button span {
  margin: -3px 2px 0 0;
}

.profile-home-button:hover {
  color: var(--gold-light);
  background: var(--navy);
  border-color: var(--gold);
  transform: translateX(-3px);
}

.profile-home-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.welcome p {
  margin: 0;
  font-family: var(--serif-font);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.65;
}

footer {
  min-height: 92px;
  padding: 25px clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: var(--white);
  background: var(--navy);
  font-size: 13px;
}

footer > p {
  margin: 0;
  text-align: center;
  font-family: var(--serif-font);
  letter-spacing: 0.04em;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 54% 46%;
  }

  .hero-copy {
    padding-left: 42px;
  }

  .hero h1 {
    font-size: clamp(82px, 11vw, 115px);
  }

  .portrait {
    margin-left: -5%;
  }

  .fact-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact:nth-child(4),
  .fact:nth-child(5) {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(230, 197, 142, 0.45);
  }

  .fact:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .facts--four .fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts--four .fact:nth-child(3),
  .facts--four .fact:nth-child(4) {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(230, 197, 142, 0.45);
  }

  .facts--four .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 88px;
    padding: 12px 20px;
    justify-content: center;
  }

  .brand img {
    width: 48px;
    height: 58px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy span {
    font-size: 10px;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .hero-copy {
    padding: 54px 24px 46px;
    order: 2;
  }

  .hero h1 {
    margin-top: -10px;
    font-size: clamp(78px, 25vw, 112px);
  }

  .role {
    font-size: 19px;
    line-height: 1.35;
  }

  .portrait {
    min-height: 510px;
    margin: 0;
    order: 1;
    clip-path: none;
  }

  .portrait::before {
    inset: auto 0 0;
    width: auto;
    height: 5px;
    transform: none;
  }

  .portrait img {
    object-position: 50% 28%;
  }

  .portrait figcaption {
    width: 88%;
    padding: 18px 24px;
  }

  .facts {
    padding-block: 48px;
  }

  .facts-heading {
    display: block;
  }

  .fact-list {
    grid-template-columns: 1fr;
  }

  .facts--four .fact-list {
    grid-template-columns: 1fr;
  }

  .facts--three .fact-list {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:first-child,
  .fact:nth-child(4) {
    margin: 0;
    padding: 25px 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    border: 0;
    border-top: 1px solid rgba(230, 197, 142, 0.35);
  }

  .welcome {
    padding: 36px 24px;
    grid-template-columns: auto 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 440px) {
  .brand-copy {
    display: none;
  }

  .portrait {
    min-height: 430px;
  }

  .philosophy {
    grid-template-columns: 60px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Teacher directory */
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.directory-header {
  position: relative;
  border-bottom-color: rgba(198, 151, 88, 0.38);
}

.directory-intro {
  position: relative;
  min-height: 500px;
  padding: clamp(76px, 9vw, 132px) clamp(24px, 8vw, 128px) clamp(88px, 10vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(60px, 10vw, 160px);
  overflow: hidden;
  background:
    linear-gradient(rgba(67, 149, 200, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 46px;
}

.directory-intro::after {
  content: "";
  position: absolute;
  right: clamp(24px, 8vw, 128px);
  bottom: 0;
  left: clamp(24px, 8vw, 128px);
  height: 1px;
  background: rgba(6, 42, 85, 0.18);
}

.directory-intro-copy {
  max-width: 770px;
}

.directory-intro h1 {
  max-width: 770px;
  margin: 0 0 32px;
  color: var(--navy);
  font-family: var(--serif-font);
  font-size: clamp(54px, 6.06vw, 92px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.directory-intro-copy > p:last-child {
  max-width: 610px;
  margin: 0;
  color: #334156;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  text-wrap: pretty;
}

.directory-emblem {
  position: relative;
  justify-self: end;
  width: min(100%, 310px);
  display: grid;
  justify-items: center;
}

.directory-emblem::before,
.directory-emblem::after {
  content: "";
  position: absolute;
  top: 47%;
  width: 54%;
  height: 1px;
  background: var(--gold);
}

.directory-emblem::before {
  right: calc(100% + 24px);
}

.directory-emblem::after {
  left: calc(100% + 24px);
}

.directory-emblem img {
  width: clamp(150px, 16vw, 230px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(6, 42, 85, 0.12));
}

.directory-emblem span {
  margin-top: 20px;
  color: #9a7040;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.teacher-directory {
  padding: clamp(72px, 8vw, 120px) clamp(24px, 8vw, 128px) clamp(100px, 11vw, 170px);
  color: var(--white);
  background: var(--navy-deep);
  border-top: 5px solid var(--gold);
}

.teacher-directory-heading {
  max-width: 1280px;
  margin: 0 auto clamp(48px, 6vw, 82px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.teacher-directory-heading .eyebrow {
  color: var(--gold-light);
}

.teacher-directory-heading h2 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.teacher-directory-heading > p {
  max-width: 300px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--serif-font);
  font-size: 14px;
  line-height: 1.6;
}

.teacher-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: clamp(34px, 4vw, 64px);
}

.teacher-card {
  display: block;
  color: var(--white);
  outline: none;
}

.teacher-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #082f5d;
}

.teacher-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(230, 197, 142, 0.46);
  pointer-events: none;
}

.teacher-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 51% center;
  filter: saturate(0.88);
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 300ms ease;
}

.teacher-portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  color: var(--navy);
  background: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 250ms ease;
}

.teacher-card-copy {
  padding-top: 24px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  border-top: 1px solid transparent;
}

.teacher-number {
  padding-top: 5px;
  color: var(--gold-light);
  font-family: var(--serif-font);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.teacher-card-copy p {
  margin: 0 0 7px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.teacher-card-copy h3 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.teacher-link {
  margin-top: 15px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-link span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 200ms ease;
}

.teacher-card:hover .teacher-portrait img,
.teacher-card:focus-visible .teacher-portrait img {
  filter: saturate(1);
  transform: scale(1.035);
}

.teacher-card:hover .teacher-portrait figcaption,
.teacher-card:focus-visible .teacher-portrait figcaption {
  transform: translateY(0);
}

.teacher-card:hover .teacher-link span,
.teacher-card:focus-visible .teacher-link span {
  transform: translateX(5px);
}

.teacher-card:focus-visible .teacher-portrait {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.message-icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-monica .hero h1 {
  width: auto;
  max-width: 100%;
  font-size: clamp(70px, 6.4vw, 102px);
  line-height: 0.9;
}

.profile-christine .hero h1 {
  width: auto;
  max-width: 100%;
  font-size: clamp(70px, 6.7vw, 106px);
  line-height: 0.9;
}

.profile-nonku .hero h1 {
  width: auto;
  max-width: 100%;
  font-size: clamp(66px, 6.1vw, 96px);
  line-height: 0.9;
}

.profile-nargiz .hero h1 {
  width: auto;
  max-width: 100%;
  font-size: clamp(70px, 6.7vw, 106px);
  line-height: 0.9;
}

@media (max-width: 1050px) {
  .teacher-grid {
    max-width: 900px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .directory-intro {
    min-height: 0;
    padding: 68px 24px 82px;
    grid-template-columns: 1fr;
    gap: 55px;
    text-align: center;
  }

  .directory-intro h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .directory-intro-copy > p:last-child {
    margin-inline: auto;
  }

  .directory-emblem {
    justify-self: center;
    width: 210px;
  }

  .directory-emblem::before,
  .directory-emblem::after {
    width: 22vw;
  }

  .directory-emblem::before {
    right: calc(100% + 15px);
  }

  .directory-emblem::after {
    left: calc(100% + 15px);
  }

  .teacher-directory {
    padding: 64px 24px 96px;
  }

  .teacher-directory-heading {
    margin-bottom: 44px;
    display: block;
    text-align: center;
  }

  .teacher-directory-heading > p {
    margin: 16px auto 0;
  }

  .teacher-grid {
    grid-template-columns: minmax(0, 390px);
  }

  .teacher-portrait figcaption {
    transform: none;
  }

  .profile-monica .hero h1 {
    font-size: clamp(52px, 15.5vw, 72px);
    line-height: 0.92;
  }

  .profile-monica .role {
    font-size: clamp(15px, 5vw, 19px);
    letter-spacing: 0.07em;
    overflow-wrap: anywhere;
  }

  .profile-christine .hero h1 {
    font-size: clamp(54px, 16.5vw, 76px);
    line-height: 0.92;
  }

  .profile-nonku .hero h1 {
    font-size: clamp(50px, 15vw, 70px);
    line-height: 0.92;
  }

  .profile-nargiz .hero h1 {
    font-size: clamp(54px, 17vw, 76px);
    line-height: 0.92;
  }

  .profile-nargiz .role {
    font-size: clamp(15px, 5vw, 19px);
    letter-spacing: 0.07em;
    overflow-wrap: anywhere;
  }
}
