:root {
  --red: #96342b;
  --red-dark: #84291f;
  --olive: #464b21;
  --ink: #252525;
  --muted: #5f5f5f;
  --line: #e6e1dc;
  --paper: #ffffff;
  --soft: #f7f5f1;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.top-strip {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 8px clamp(20px, 7vw, 150px);
  background: var(--olive);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  animation: stripDrop 700ms var(--ease-out) both;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 0 clamp(18px, 6vw, 120px);
  background: var(--red);
  color: var(--paper);
  border-bottom: 3px solid rgba(255, 255, 255, 0.8);
  animation: headerDrop 800ms 90ms var(--ease-out) both;
}

.brand {
  position: absolute;
  left: clamp(18px, 12vw, 320px);
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 92px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.brand img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
  object-fit: cover;
  transition: transform 350ms var(--ease-out);
}

.brand span {
  display: none;
}

.brand:hover img {
  transform: translateY(-3px) scale(1.04);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 42px);
  margin-left: 140px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 250ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: #ffd7d2;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms var(--ease-out);
}

.site-nav a:hover {
  color: #ffd7d2;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--paper);
}

.hero-slider {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #111;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 5200ms ease, filter 800ms ease;
  filter: saturate(0.95) contrast(0.95);
}

.slide.is-active img {
  transform: scale(1);
  filter: saturate(1.05) contrast(1);
}

.slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22));
}

.slide-caption {
  position: absolute;
  left: 50%;
  bottom: 26%;
  z-index: 2;
  width: min(900px, calc(100% - 48px));
  transform: translateX(-50%);
  color: var(--paper);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 700ms 180ms ease, transform 700ms 180ms var(--ease-out);
  transform: translate(-50%, 26px);
}

.slide.is-active .slide-caption {
  opacity: 1;
  transform: translate(-50%, 0);
}

.slide-caption h1 {
  margin: 0 0 10px;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.slide-caption p {
  display: inline-block;
  margin: 0;
  padding: 12px 48px;
  background: rgba(0, 0, 0, 0.6);
  font-size: clamp(22px, 3vw, 36px);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 64px;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.12);
  color: var(--paper);
  cursor: pointer;
  font-size: 58px;
  line-height: 1;
  transition: background 250ms ease, transform 250ms var(--ease-out);
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev {
  left: 7%;
}

.slider-arrow.next {
  right: 7%;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 13px;
  height: 13px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 250ms ease, transform 250ms var(--ease-out);
}

.slider-dots button.is-active {
  background: var(--paper);
  transform: scale(1.28);
}

.welcome-band,
.apply-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 8vw, 120px);
  min-height: 108px;
  padding: 24px;
  background: var(--red-dark);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-band::before,
.apply-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 6s ease-in-out infinite;
}

.welcome-band h2,
.apply-band h2 {
  position: relative;
  margin: 0;
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notice-marquee {
  overflow: hidden;
  padding: 18px 0;
  color: var(--red);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: 4px;
  white-space: nowrap;
}

.notice-marquee p {
  display: inline-block;
  min-width: 100%;
  margin: 0;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.why-section,
.updates-grid,
.facilities,
.events,
.contact {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}

.why-section {
  padding: 70px 0 34px;
}

.why-section > h2,
.facilities > h2,
.events > h2 {
  margin: 0 0 58px;
  color: var(--olive);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.3fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.why-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

.why-grid img:hover,
.campus-gallery img:hover,
.event-grid article:hover img {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.22);
}

.why-grid p {
  margin: 0 0 18px;
  color: #3d3d3d;
  font-size: clamp(17px, 1.6vw, 21px);
}

.text-link {
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
  transition: color 250ms ease;
}

.text-link:hover {
  color: var(--olive);
}

.updates-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: clamp(36px, 7vw, 100px);
  padding: 44px 0 58px;
}

.notice-card h2,
.principal-card h2 {
  margin: 0 0 42px;
  color: var(--olive);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  text-align: center;
}

.notice-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  width: min(520px, 100%);
  margin-bottom: 18px;
  color: var(--paper);
  font-size: 19px;
  font-weight: 700;
  transition: transform 300ms var(--ease-out), filter 300ms ease;
}

.notice-item:hover {
  transform: translateX(8px);
  filter: brightness(1.04);
}

.notice-item time {
  padding: 22px 18px;
  background: #b3534a;
}

.notice-item span {
  padding: 22px 18px;
  background: #636363;
}

.solid-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 0 30px;
  background: var(--red-dark);
  color: var(--paper);
  font-size: 18px;
  font-weight: 800;
  transition: background 250ms ease, transform 250ms var(--ease-out), box-shadow 250ms ease;
}

.solid-button:hover,
.apply-band a:hover,
form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.principal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: 46px;
  align-items: start;
}

.principal-layout p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 20px);
}

.principal-layout figure {
  margin: 0;
  text-align: center;
}

.principal-layout img {
  width: 100%;
  border: 4px solid #ebb4df;
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

.principal-layout img:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.principal-layout figcaption {
  color: #111;
  font-size: 24px;
  font-weight: 800;
}

.facilities {
  padding: 48px 0 78px;
}

.facility-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
  text-align: center;
}

.facility-list article {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--olive);
  transition: transform 350ms var(--ease-out), color 250ms ease;
}

.facility-list article:hover {
  color: var(--red);
  transform: translateY(-8px);
}

.facility-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--olive);
  font-size: 72px;
  line-height: 1;
  transition: transform 350ms var(--ease-out);
}

.facility-list article:hover .facility-icon {
  transform: scale(1.12) rotate(-2deg);
}

.facility-list h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.apply-band {
  justify-content: space-evenly;
  background: var(--olive);
}

.apply-band a {
  display: inline-flex;
  min-width: 200px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--paper);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 250ms ease, color 250ms ease, transform 250ms var(--ease-out), box-shadow 250ms ease;
}

.apply-band a:hover {
  background: var(--paper);
  color: var(--olive);
}

.campus-gallery,
.events {
  padding: 78px 0 64px;
}

.campus-gallery {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}

.campus-gallery h2 {
  margin: 0 0 42px;
  color: var(--olive);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.campus-gallery > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.campus-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.event-grid article {
  min-width: 0;
  transition: transform 350ms var(--ease-out);
}

.event-grid article:hover {
  transform: translateY(-6px);
}

.event-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

.event-grid h3 {
  margin: 18px 0 10px;
  color: var(--red);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.15;
}

.event-grid p {
  margin: 0;
  font-size: 18px;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  padding: 60px 0 100px;
}

.contact h2 {
  margin: 0 0 10px;
  color: var(--olive);
  font-size: 34px;
  text-transform: uppercase;
}

.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

form button {
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: var(--red-dark);
  color: var(--paper);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  transition: transform 250ms var(--ease-out), box-shadow 250ms ease, background 250ms ease;
}

form button:hover {
  background: var(--red);
}

.chat-button,
.back-top {
  position: fixed;
  z-index: 40;
}

.chat-button {
  left: 28px;
  bottom: 28px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  cursor: pointer;
  font-size: 24px;
  box-shadow: var(--shadow);
  animation: pulseFloat 3.8s ease-in-out infinite;
  transition: transform 250ms var(--ease-out), background 250ms ease;
}

.chat-button:hover {
  transform: translateY(-4px) scale(1.04);
  background: var(--red-dark);
}

.back-top {
  right: 34px;
  bottom: 34px;
  color: var(--red-dark);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  transition: transform 250ms var(--ease-out), color 250ms ease;
}

.back-top:hover {
  color: var(--olive);
  transform: translateY(-5px);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 800ms ease, transform 800ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 80ms;
}

.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 160ms;
}

.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 240ms;
}

.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 320ms;
}

.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 400ms;
}

.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 480ms;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stripDrop {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheen {
  0%,
  42% {
    transform: translateX(-120%);
  }
  62%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 980px) {
  .top-strip {
    justify-content: center;
  }

  .site-header {
    justify-content: space-between;
    min-height: 78px;
  }

  .brand {
    position: static;
    display: flex;
    width: auto;
    align-items: center;
    text-align: left;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand span {
    display: inline;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 18px;
    display: none;
    width: min(310px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--red);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .site-nav a::after {
    display: none;
  }

  .hero-slider {
    min-height: 520px;
  }

  .why-grid,
  .updates-grid,
  .principal-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .campus-gallery > div,
  .event-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-strip {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
  }

  .hero-slider {
    min-height: 520px;
  }

  .slide-caption {
    bottom: 22%;
  }

  .slide-caption p {
    width: 100%;
    padding: 10px 16px;
  }

  .slider-arrow {
    width: 40px;
    height: 52px;
    font-size: 42px;
  }

  .slider-arrow.prev {
    left: 8px;
  }

  .slider-arrow.next {
    right: 8px;
  }

  .why-section,
  .updates-grid,
  .facilities,
  .campus-gallery,
  .events,
  .contact {
    width: min(100% - 28px, 480px);
  }

  .notice-marquee {
    font-size: 20px;
  }

  .notice-item {
    grid-template-columns: 1fr;
  }

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

  .apply-band {
    flex-direction: column;
  }

  .chat-button {
    left: 18px;
    bottom: 18px;
  }

  .back-top {
    right: 20px;
    bottom: 20px;
    font-size: 44px;
  }
}

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

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
