:root {
  --magenta: #ff2bd6;
  --purple: #b14bff;
  --blue: #5a7dff;
  --teal: #21e6d1;
  --bg: #070711;
  --ink: #f4f3ff;
  --muted: #aaaac5;
  --line: rgba(177, 75, 255, .25);
  --neon: linear-gradient(110deg, var(--magenta), var(--purple) 38%, var(--blue) 70%, var(--teal));
  --display: "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(65rem 35rem at 50% -6rem, rgba(75, 30, 154, .25), transparent 64%), var(--bg);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 68px;
  padding: .65rem max(1rem, calc((100vw - var(--max)) / 2));
  background: rgba(7, 7, 17, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex: 0 0 auto;
  font: 700 1.04rem/1 var(--display);
  letter-spacing: .05em;
}
.brand img { filter: drop-shadow(0 0 10px rgba(255, 43, 214, .55)); }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.6vw, 2.1rem); font-size: .92rem; }
.nav a { color: #c7c6dc; transition: color .16s ease, text-shadow .16s ease; }
.nav a:hover, .nav a:focus-visible { color: #fff; text-shadow: 0 0 14px var(--teal); }

.hero {
  position: relative;
  min-height: min(680px, 78vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; opacity: .82; }
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 17, .12), rgba(7, 7, 17, .2) 45%, rgba(7, 7, 17, .92)), radial-gradient(circle at center 30%, transparent, rgba(7, 7, 17, .32) 67%);
}
.hero__content { position: relative; z-index: 1; display: grid; place-items: center; width: min(880px, calc(100% - 2rem)); padding: 2.6rem 1rem; }
.hero__mark {
  width: clamp(260px, 34vw, 430px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 26px rgba(255, 43, 214, .62)) drop-shadow(0 0 55px rgba(33, 230, 209, .28));
  animation: breathe 5.8s ease-in-out infinite;
}

.section { padding: clamp(3rem, 6vw, 5.4rem) max(1rem, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid rgba(177, 75, 255, .16); }
.section h2 {
  position: relative;
  width: fit-content;
  margin: 0 0 1rem;
  padding-bottom: .55rem;
  font: 800 clamp(2rem, 4vw, 3.1rem)/1 var(--display);
  letter-spacing: .035em;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(255, 43, 214, .55);
}
.section__heading { margin-bottom: 2rem; }
.section__heading p, .section__intro p { max-width: 620px; margin: 0; color: var(--muted); }
.text-link { display: inline-flex; gap: .45rem; margin-top: 1.45rem; color: #65e9ff; font-weight: 700; }
.text-link:hover, .text-link:focus-visible { color: #fff; text-shadow: 0 0 14px var(--teal); }

.classroom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.classroom-card {
  --card-glow: rgba(177, 75, 255, .42);
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(177, 75, 255, .48);
  border-radius: .7rem;
  background: linear-gradient(145deg, rgba(25, 12, 49, .96), rgba(7, 13, 32, .98));
  box-shadow: 0 18px 40px -34px var(--magenta);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.classroom-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -95px;
  right: -78px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow), transparent 68%);
  pointer-events: none;
}
.classroom-card::after { content: "↗"; position: absolute; top: .9rem; right: 1rem; color: rgba(255, 255, 255, .5); font-size: .9rem; }
.classroom-card:nth-child(3n + 2) { --card-glow: rgba(33, 230, 209, .38); border-color: rgba(33, 230, 209, .4); }
.classroom-card:nth-child(3n) { --card-glow: rgba(90, 125, 255, .42); border-color: rgba(90, 125, 255, .46); }
.classroom-card img { position: relative; z-index: 1; width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 0 16px var(--card-glow)); transition: transform .22s ease; }
.classroom-card span { position: relative; z-index: 1; font: 800 1.08rem/1.18 var(--display); letter-spacing: .025em; }
.classroom-card:hover, .classroom-card:focus-visible { border-color: var(--teal); outline: none; box-shadow: 0 0 28px -9px var(--teal); transform: translateY(-4px); }
.classroom-card:hover img, .classroom-card:focus-visible img { transform: scale(1.08); }

.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.game-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(177, 75, 255, .55);
  border-radius: .7rem;
  background: #110c21;
  box-shadow: 0 18px 40px -34px var(--magenta);
  isolation: isolate;
}
.game-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 35%, rgba(5, 5, 13, .96) 88%); }
.game-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.game-card span { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .9rem; }
.game-card strong { display: block; font: 800 1.06rem/1.15 var(--display); letter-spacing: .025em; }
.game-card small { display: block; margin-top: .25rem; color: #bebcd1; font-size: .72rem; }
.game-card:hover, .game-card:focus-visible { border-color: var(--teal); outline: none; box-shadow: 0 0 26px -8px var(--teal); }
.game-card:hover img, .game-card:focus-visible img { transform: scale(1.045); filter: saturate(1.16) brightness(1.08); }
.game-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .2rem;
  overflow: hidden;
  text-align: center;
  transition: transform .28s ease, filter .28s ease;
}
.game-poster::before, .game-poster::after { content: ""; position: absolute; pointer-events: none; }
.game-poster b { position: relative; z-index: 1; font: 900 clamp(2.4rem, 4.2vw, 4rem)/.9 var(--display); letter-spacing: -.055em; text-shadow: 0 6px 22px rgba(0, 0, 0, .7); }
.game-poster em { position: relative; z-index: 1; color: rgba(255, 255, 255, .82); font: 800 .64rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; }
.game-poster--zero82 { background: radial-gradient(circle at 72% 24%, rgba(255, 124, 24, .96) 0 13%, transparent 13.5%), linear-gradient(145deg, #2d113f, #0a0e25 58%, #151d43); }
.game-poster--zero82::before { inset: 0; background: repeating-linear-gradient(118deg, transparent 0 18px, rgba(255, 255, 255, .045) 19px 20px); }
.game-poster--zero82::after { width: 120px; height: 120px; right: -38px; top: -38px; border: 2px solid rgba(255, 255, 255, .38); border-radius: 50%; box-shadow: inset 0 0 0 20px rgba(0, 0, 0, .08); }
.game-poster--seventeen { background: linear-gradient(90deg, transparent 49.4%, rgba(255, 255, 255, .28) 49.5% 50.5%, transparent 50.6%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 31px), linear-gradient(140deg, #0f5b46, #071d2d 63%, #13102c); }
.game-poster--seventeen::before { width: 190px; height: 190px; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-18deg); border: 3px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.game-poster--one62 { background: radial-gradient(circle at 70% 28%, #f0eee5 0 12%, transparent 12.5%), linear-gradient(145deg, #7d1834, #101a3b 56%, #07101f); }
.game-poster--one62::before { width: 76px; height: 76px; right: calc(30% - 38px); top: calc(28% - 38px); border: 2px dashed rgba(173, 36, 61, .72); border-radius: 50%; transform: rotate(28deg); }
.game-poster--one62::after { inset: 0; background: linear-gradient(128deg, transparent 0 44%, rgba(255, 255, 255, .06) 44.5% 45.5%, transparent 46%); }
.game-card:hover .game-poster, .game-card:focus-visible .game-poster { transform: scale(1.045); filter: saturate(1.16) brightness(1.08); }

.sports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sport-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 1.7rem;
  border: 1px solid var(--magenta);
  border-radius: .75rem;
  background: linear-gradient(135deg, rgba(23, 12, 49, .96), rgba(6, 12, 31, .96));
}
.sport-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 43, 214, .18), transparent 52%); }
.sport-card--court { border-color: var(--teal); }
.sport-card--court::before { background: linear-gradient(120deg, rgba(33, 230, 209, .16), transparent 55%); }
.sport-card img { position: absolute; width: 190px; height: 190px; right: 7%; top: 50%; transform: translateY(-55%); opacity: .24; filter: drop-shadow(0 0 26px currentColor); }
.sport-card span { position: relative; z-index: 1; max-width: 80%; }
.sport-card strong { display: block; font: 800 clamp(1.6rem, 3vw, 2.5rem)/1.05 var(--display); }
.sport-card small { display: block; max-width: 28rem; margin: .55rem 0 .9rem; color: #c7c5da; font-size: .92rem; }
.sport-card b { color: #fff; font-size: .84rem; }
.sport-card:hover, .sport-card:focus-visible { outline: 1px solid #fff; outline-offset: 3px; box-shadow: 0 0 28px -10px currentColor; }

.books-panel {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr minmax(100px, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 190px;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border: 1px solid rgba(177, 75, 255, .42);
  border-radius: .75rem;
  background: linear-gradient(100deg, rgba(18, 10, 39, .72), rgba(9, 13, 31, .92));
  text-align: center;
}
.books-panel svg { width: 100%; max-height: 120px; fill: none; stroke: rgba(177, 75, 255, .46); stroke-width: 2; }
.books-panel strong { display: block; font: 800 clamp(2rem, 4.5vw, 4rem)/1 var(--display); background: var(--neon); background-clip: text; color: transparent; }
.books-panel p { margin: .8rem auto 0; max-width: 520px; color: var(--muted); }

.about__layout { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); max-width: 980px; margin: 0 auto; }
.about__portrait { width: 220px; height: 220px; object-fit: cover; border: 1px solid var(--magenta); border-radius: 1rem; box-shadow: 0 0 30px -12px var(--magenta); }
.about__copy { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d4d2e4; }
.about__copy p { margin: 0 0 1rem; }
.about__copy strong { color: #fff; }

footer { display: grid; justify-items: center; gap: .3rem; padding: 2.5rem 1rem; color: var(--muted); text-align: center; }
footer img { filter: drop-shadow(0 0 10px var(--magenta)); }
footer p { margin: .2rem 0 0; color: #d2d0e1; }
footer a { color: #d8d6e9; text-decoration: underline; text-underline-offset: .2rem; }
footer small { font-size: .72rem; }

.legal { min-height: calc(100vh - 68px); padding: clamp(2.5rem, 7vw, 6rem) 1rem; }
.legal article { max-width: 760px; margin: 0 auto; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 1rem; background: rgba(12, 11, 25, .88); }
.legal h1 { margin: 0 0 1.4rem; font: 800 clamp(2.2rem, 5vw, 3.6rem)/1 var(--display); }
.legal h2 { margin: 2rem 0 .55rem; font: 800 1.35rem/1.2 var(--display); letter-spacing: .025em; }
.legal p { color: #cfcede; }
.legal__back { margin-top: 0; }
.legal__updated { margin-top: 2.4rem; color: var(--muted) !important; font-size: .88rem; }

@keyframes breathe {
  50% { transform: translateY(-7px); filter: drop-shadow(0 0 38px rgba(255, 43, 214, .72)) drop-shadow(0 0 66px rgba(33, 230, 209, .34)); }
}

@media (max-width: 980px) {
  .classroom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { align-items: flex-start; padding: .65rem 1rem; }
  .brand span { display: none; }
  .nav { flex: 1; justify-content: flex-end; gap: 1rem; overflow-x: auto; padding: .35rem 0 .55rem; font-size: .8rem; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero { min-height: 500px; }
  .hero__content { padding-top: 1.4rem; }
  .classroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card { min-height: 245px; }
  .sports-grid { grid-template-columns: 1fr; }
  .sport-card { min-height: 230px; }
  .books-panel { grid-template-columns: 1fr; }
  .books-panel svg { display: none; }
  .about__layout { grid-template-columns: 1fr; }
  .about__portrait { width: 180px; height: 180px; }
}

@media (max-width: 430px) {
  .section { padding-left: .85rem; padding-right: .85rem; }
  .classroom-card { min-height: 210px; }
  .game-card { min-height: 220px; }
  .game-card strong { font-size: .94rem; }
  .game-card small { display: none; }
  .sport-card { padding: 1.25rem; }
  .sport-card span { max-width: 90%; }
}

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