@font-face {
  font-family: "AnselmSchool";
  src: url("../fonts/WeddingText.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "AnselmBody";
  src: url("../fonts/ALLER_RG.TTF") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "AnselmHeading";
  src: url("../fonts/Aclonica.ttf") format("truetype");
  font-display: swap;
}

:root {
  --school-blue: #206aaa;
  --deep-blue: #003366;
  --gold: #fecc00;
  --ink: #172033;
  --muted: #697386;
  --paper: #f7fbff;
  --line: rgba(255, 255, 255, .24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "AnselmBody", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  overflow-x: hidden;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--school-blue);
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
  background: rgba(0,0,0,0.3);
}

.top-strip {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-size: clamp(.8rem, .78rem + .15vw, .95rem);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.top-strip a {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.brand-strip {
  border-bottom: 1px solid rgba(255, 255, 255, .36);
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: 112px minmax(430px, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.crest-link img {
  width: 100px;
  height: auto;
}

.school-identity {
  min-width: 0;
}

.name-line {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.school-name {
  margin: 0;
  color: #fff;
  font-family: "AnselmSchool", "Times New Roman", serif;
  font-size: clamp(1.65rem, 1.05rem + 1.65vw, 2.75rem);
  line-height: .95;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 0 3px 8px rgba(0, 0, 0, .48);
}

.plain-apostrophe {
  font-family: Verdana, sans-serif;
}

.school-identity p {
  margin: .45rem 0 0;
  color: #fff;
  font-size: clamp(.9rem, .84rem + .2vw, 1.08rem);
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .42);
}

.social-links {
  display: inline-flex;
  gap: .45rem;
  flex: 0 0 auto;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--school-blue);
  box-shadow: 0 8px 22px rgba(32, 106, 170, .25);
  transition: transform .2s ease, background-color .2s ease;
}

.social-links a:first-child {
  background: #dc2626;
}

.social-links a:nth-child(3) {
  background: #1877f2;
}

.social-links a:hover,
.social-links a:focus {
  transform: translateY(-2px);
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.quick-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.quick-actions .btn {
  --bs-btn-border-width: 0;
  display: inline-block;
  padding: 5px 10px;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.quick-actions span {
  font-weight: 700;
}

.action-blue { background: #337ab7; }
.action-orange { background: #f0ad4e; }
.action-red { background: #d9534f; }
.action-green { background: #5cb85c; }

.main-nav {
  min-height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.main-nav .container-fluid,
.main-nav .navbar-collapse {
  min-width: 0;
}

.main-nav .navbar-collapse {
  flex: 1 1 auto;
}

.home-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-right: .6rem;
  color: #fff;
  border-radius: 50%;
}

.home-button:hover,
.home-button:focus {
  background: rgba(255, 255, 255, .14);
}

.home-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .45);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .15rem rgba(255, 255, 255, .25);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.main-nav .navbar-nav {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
}

.main-nav .nav-link {
  color: #fff;
  padding: .58rem .48rem;
  border-radius: 999px;
  font-size: clamp(.7rem, .48rem + .38vw, .88rem);
  font-weight: 700;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .show > .nav-link {
  color: var(--school-blue);
  background: #fff;
}

.dropdown-menu {
  border: 0;
  border-radius: 6px;
  padding: .45rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.dropdown-item {
  color: var(--school-blue);
  border-radius: 4px;
  font-size: .93rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background: var(--school-blue);
}

.media-slider {
  min-height: 0;
  background: transparent;
}

.media-slide {
  height: min(86vh, 820px);
  min-height: 680px;
  background: #111;
}

.media-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, .18) 100%);
}

.media-slide img,
.media-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-video + .slide-fallback {
  display: none;
}

.video-missing .slide-video {
  display: none;
}

.video-missing .slide-fallback {
  display: block;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 5;
  width: 7%;
}

.carousel-indicators {
  z-index: 6;
  margin-bottom: 1.4rem;
}

.section-pad {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-kicker {
  margin-bottom: .65rem;
  color: #ce006a;
  font-family: "AnselmHeading", serif;
  font-size: .92rem;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 1.15rem;
  color: var(--school-blue);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 3rem);
  line-height: 1.18;
  font-weight: 400;
}

main p {
  color: #3e4858;
  font-size: 1.05rem;
  line-height: 1.75;
}

.feature-image,
.principal-photo {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(18, 49, 84, .18);
}

.feature-image {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.principal-photo {
  max-width: 430px;
  height: auto;
  margin-left: auto;
  object-fit: contain;
}

.orbit-section {
  overflow: hidden;
  background: var(--paper);
}

.student-orbit {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  isolation: isolate;
}

.orbit-ring {
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  border: 2px dashed rgba(0, 172, 235, .22);
  border-radius: 50%;
  transform-origin: center;
  animation: ringSpin var(--ring-speed, 36s) linear infinite;
}

.ring-one {
  width: 34%;
  height: 34%;
  --ring-speed: 28s;
}

.ring-two {
  width: 58%;
  height: 58%;
  --ring-speed: 36s;
  animation-direction: reverse;
}

.ring-three {
  width: 82%;
  height: 82%;
  --ring-speed: 44s;
}

.center-node,
.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
}

.center-node {
  --size: 28%;
  animation: none;
}

.center-node .orbit-img {
  animation-delay: 0s;
}

.orbit-img {
  width: 100%;
  height: 100%;
  border: 8px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  transform-origin: center;
  animation: smoothZoom 6.5s ease-in-out infinite;
  will-change: transform;
}

.orbit-one .orbit-img {
  animation-delay: .4s;
}

.orbit-two .orbit-img {
  animation-delay: 1s;
}

.orbit-three .orbit-img {
  animation-delay: 1.6s;
}

.orbit-four .orbit-img {
  animation-delay: 2.2s;
}

.orbit-one {
  --size: 18%;
  top: 17%;
  left: 22%;
}

.orbit-two {
  --size: 23%;
  top: 11%;
  left: 72%;
}

.orbit-three {
  --size: 19%;
  top: 78%;
  left: 73%;
}

.orbit-four {
  --size: 16%;
  top: 68%;
  left: 25%;
}

.ring-dot {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.dot-blue {
  top: 50%;
  left: 0;
  width: 17px;
  height: 17px;
  translate: -50% -50%;
  background: #0066ad;
}

.dot-orange {
  top: 62%;
  left: 1%;
  width: 54px;
  height: 54px;
  translate: -50% -50%;
  background: #ff9517;
}

.dot-green {
  top: 100%;
  left: 54%;
  width: 34px;
  height: 34px;
  translate: -50% -50%;
  background: #a6cf37;
}

.dot-red {
  top: 48%;
  left: 100%;
  width: 16px;
  height: 16px;
  translate: -50% -50%;
  background: #f01827;
}

.dot-sky {
  top: 43%;
  left: 100%;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  background: #16b8e8;
}

@keyframes ringSpin {
  to {
    rotate: 1turn;
  }
}

@keyframes smoothZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.055);
  }
}


.principal-section {
  background: #fff;
}

.principal-signature {
  margin-top: 1.2rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: right;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem 1.05rem;
  margin-top: .35rem;
  color: #fff;
  border-radius: 4px;
  background: var(--school-blue);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(32, 106, 170, .22);
  transition: transform .2s ease, background-color .2s ease;
}

.read-more-link:hover,
.read-more-link:focus {
  color: #fff;
  background: #155e90;
  transform: translateY(-2px);
}

.principal-signature span {
  font-size: 1rem;
}

.principals-strip {
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #eef7ff 100%);
}

.principal-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.principal-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: principalScroll 58s linear infinite;
}

.principal-track:hover {
  animation-play-state: paused;
}

.principal-track figure {
  position: relative;
  width: 154px;
  height: 220px;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #dce9f6;
  box-shadow: 0 14px 32px rgba(18, 49, 84, .14);
}

.principal-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-track figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: .8rem .55rem;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.principal-track figure:hover figcaption,
.principal-track figure:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

@keyframes principalScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer {
  color: #fff;
  background: linear-gradient(135deg, #064b82 0%, #0f6aa8 58%, #155e90 100%);
}

.footer > .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer h2 {
  margin-bottom: 1rem;
  font-size: 1.18rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, .9);
}

.footer a:hover,
.footer a:focus {
  color: #fff;
  text-decoration: underline;
}

.footer-school {
  text-align: center;
}

.footer-school img {
  margin: 0 auto 1rem;
}

.footer-links {
  display: grid;
  gap: .65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.app-link img {
  width: 82px;
  height: auto;
}

.footer-social-links {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-top: 1rem;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  transition: transform .2s ease, background-color .2s ease;
}

.footer-social-links a:first-child {
  background: #dc2626;
}

.footer-social-links a:nth-child(2) {
  background: var(--school-blue);
}

.footer-social-links a:nth-child(3) {
  background: #1877f2;
}

.footer-social-links a:hover,
.footer-social-links a:focus {
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  padding: .85rem 0;
  color: #fff;
  background: #050505;
  font-size: .9rem;
}

@media (min-width: 1200px) and (max-width: 1450px) {
  .brand-row {
    grid-template-columns: 98px minmax(350px, 1fr) auto;
    gap: .7rem;
  }

  .quick-actions .btn {
    padding-inline: 7px;
    font-size: 12px;
  }

  .main-nav .nav-link {
    padding-inline: .23rem;
    font-size: .65rem;
  }
}

@media (max-width: 1199.98px) {
  .site-header {
    position: relative;
  }

  .brand-row {
    grid-template-columns: 86px 1fr;
    align-items: center;
    padding: .9rem 0;
  }

  .quick-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .main-nav {
    background: var(--school-blue);
  }

  .home-button {
    margin-right: auto;
  }

  .main-nav .navbar-nav {
    align-items: stretch;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .8rem 0;
  }

  .main-nav .nav-link {
    padding: .65rem .85rem;
    border-radius: 4px;
    font-size: .98rem;
  }

  .dropdown-menu {
    box-shadow: none;
  }

  .media-slider,
  .media-slide {
    min-height: auto;
  }

  .media-slide {
    height: clamp(420px, 58vw, 620px);
  }
}

@media (max-width: 767.98px) {
  .top-strip {
    padding: .35rem 0;
    text-align: center;
  }

  .brand-row {
    grid-template-columns: 76px 1fr;
  }

  .crest-link img {
    width: 74px;
  }

  .name-line {
    align-items: flex-start;
  }

  .school-name {
    white-space: normal;
    font-size: 1.85rem;
  }

  .school-identity p {
    font-size: .86rem;
  }

  .social-links {
    flex-direction: column;
    gap: .28rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions .btn {
    font-size: .82rem;
    white-space: normal;
  }

  .media-slide {
    height: 360px;
  }

  .section-pad {
    padding: 3.25rem 0;
  }

  .student-orbit {
    width: min(100%, 430px);
  }

  .principal-photo {
    margin: 0 auto;
  }

  .principal-signature {
    text-align: left;
  }

  .principal-track figure {
    width: 132px;
    height: 190px;
  }
}

@media (max-width: 430px) {
  .brand-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .crest-link img {
    margin: 0 auto;
  }

  .name-line {
    justify-content: center;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
