:root {
  --terminal: #07110d;
  --terminal-2: #0d1d17;
  --terminal-3: #14241d;
  --phosphor: #8dffb1;
  --phosphor-soft: #48c774;
  --amber: #ffbf4d;
  --amber-soft: #ffe3a3;
  --paper: #f3e7c6;
  --paper-2: #c9b77e;
  --ink: #111812;
  --muted: #405247;
  --red: #b44737;
  --blue: #5bb9d6;
  --line: rgba(141, 255, 177, 0.2);
  --paper-line: rgba(17, 24, 18, 0.16);
  --glow: 0 0 28px rgba(141, 255, 177, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  --max: 1180px;
  --measure: 66ch;
  --measure-wide: 78ch;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(141, 255, 177, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 255, 177, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 0, rgba(255, 191, 77, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(91, 185, 214, 0.08), transparent 30rem),
    var(--terminal);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  font-family: "IBM Plex Sans", "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
  font-kerning: normal;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.34));
  mix-blend-mode: screen;
  opacity: 0.46;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

::selection {
  background: var(--phosphor);
  color: var(--terminal);
}

code {
  padding: 0.08rem 0.32rem;
  border: 1px solid rgba(141, 255, 177, 0.28);
  border-radius: 4px;
  background: rgba(7, 17, 13, 0.78);
  color: var(--phosphor);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  line-height: 1.45;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-200%);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--amber);
  background: var(--terminal);
  color: var(--amber-soft);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 191, 77, 0.26);
  background: rgba(7, 17, 13, 0.94);
  color: var(--amber-soft);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

body.admin-bar .site-header {
  top: 32px;
}

.notice-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.38rem 1rem;
  border-bottom: 1px solid rgba(7, 17, 13, 0.44);
  background: var(--amber);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.notice-bar span + span {
  color: #2d2110;
  font-weight: 700;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.76rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 18rem;
  gap: 0.85rem;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(141, 255, 177, 0.08), var(--glow);
}

.brand strong,
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand strong {
  display: block;
  color: var(--paper);
  font-size: 1.16rem;
  line-height: 1.14;
}

.brand small {
  display: block;
  color: rgba(255, 227, 163, 0.78);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.36rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.44rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: rgba(243, 231, 198, 0.9);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  border-color: rgba(141, 255, 177, 0.34);
  background: rgba(141, 255, 177, 0.08);
  color: var(--phosphor);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 111px);
  border-bottom: 1px solid rgba(141, 255, 177, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 17, 13, 0.52), rgba(7, 17, 13, 0.92)),
    url("assets/campus-scenes/matriculation.png") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.98), rgba(7, 17, 13, 0.76) 48%, rgba(7, 17, 13, 0.38)),
    repeating-linear-gradient(0deg, rgba(141, 255, 177, 0.11) 0 1px, transparent 1px 7px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(var(--max), calc(100% - 2rem));
  min-height: calc(100svh - 111px);
  margin: 0 auto;
  padding: 4.8rem 0 5rem;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
dt,
dd {
  overflow-wrap: break-word;
}

h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--paper);
  font-size: 5.4rem;
  line-height: 0.93;
  text-shadow: 0 0 24px rgba(141, 255, 177, 0.2), 0 7px 24px rgba(0, 0, 0, 0.48);
  text-wrap: balance;
}

h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--paper);
  font-size: 3.25rem;
  line-height: 1.04;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
  text-wrap: balance;
}

.lede {
  max-width: var(--measure-wide);
  margin: 1.3rem 0 0;
  color: rgba(243, 231, 198, 0.94);
  font-size: 1.22rem;
  line-height: 1.62;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border: 2px solid var(--amber);
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 191, 77, 0.12), 0 16px 30px rgba(0, 0, 0, 0.32);
}

.button.primary:hover {
  background: var(--amber-soft);
}

.button.secondary {
  border-color: rgba(141, 255, 177, 0.62);
  background: rgba(7, 17, 13, 0.62);
  color: var(--phosphor);
}

.button.secondary:hover {
  background: rgba(141, 255, 177, 0.12);
}

.hero-scene,
.scene-card,
.course-card,
.step-card,
.tool-ledger,
.apply-card {
  min-width: 0;
}

.hero-scene {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(141, 255, 177, 0.32);
  border-radius: 6px;
  background: var(--terminal);
  box-shadow: var(--shadow), var(--glow);
}

.hero-scene::before,
.scene-card::before,
.course-card.featured::before,
.apply::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 6px);
  opacity: 0.42;
}

.hero-scene img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.hero-scene figcaption {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
  border-top: 1px solid rgba(141, 255, 177, 0.28);
  background: linear-gradient(180deg, rgba(13, 29, 23, 0.94), rgba(7, 17, 13, 0.98));
}

.hero-scene span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-scene strong {
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.35;
}

.status-band {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - 2rem));
  margin: -2.2rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 77, 0.42);
  border-radius: 6px;
  background: linear-gradient(180deg, #17271f, #09140f);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.status-band div {
  padding: 1.1rem;
  border-right: 1px solid rgba(255, 191, 77, 0.2);
  text-align: center;
}

.status-band div:last-child {
  border-right: 0;
}

.status-band strong {
  display: block;
  color: var(--phosphor);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 2.7rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(141, 255, 177, 0.34);
}

.status-band span {
  display: block;
  margin-top: 0.38rem;
  color: rgba(243, 231, 198, 0.86);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.32;
}

.section,
.campus {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding-top: 5.8rem;
}

.section-heading,
.campus-copy {
  max-width: var(--measure-wide);
  margin-bottom: 2rem;
}

.admissions-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 20rem);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  max-width: 100%;
}

.section-heading::before,
.campus-copy::before {
  display: block;
  width: 5rem;
  height: 3px;
  margin-bottom: 1rem;
  content: "";
  background: linear-gradient(90deg, var(--amber), var(--phosphor), var(--blue));
}

.admissions-heading::before {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.admissions-seal {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: center;
  width: min(20rem, 28vw);
  min-width: 13rem;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  filter: drop-shadow(0 0 28px rgba(255, 191, 77, 0.18)) drop-shadow(0 24px 42px rgba(0, 0, 0, 0.34));
  isolation: isolate;
}

.admissions-seal::before,
.admissions-seal::after {
  position: absolute;
  inset: 7%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.admissions-seal::before {
  border: 1px solid rgba(255, 191, 77, 0.36);
  box-shadow:
    0 0 0 10px rgba(255, 191, 77, 0.025),
    0 0 72px rgba(141, 255, 177, 0.12);
}

.admissions-seal::after {
  inset: -5%;
  background:
    radial-gradient(circle, rgba(255, 191, 77, 0.18), transparent 54%),
    conic-gradient(from 90deg, rgba(255, 191, 77, 0.18), rgba(141, 255, 177, 0.1), rgba(91, 185, 214, 0.12), rgba(255, 191, 77, 0.18));
  opacity: 0.7;
  transform: rotate(-8deg);
}

.admissions-seal img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.section-heading p:not(.eyebrow),
.campus-copy p:not(.eyebrow),
.apply-copy p {
  max-width: var(--measure);
  color: rgba(243, 231, 198, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.admissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.15rem;
  border: 1px solid rgba(141, 255, 177, 0.22);
  border-top: 4px solid var(--amber);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(13, 29, 23, 0.96), rgba(7, 17, 13, 0.96)),
    var(--terminal-2);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.step-card:nth-child(2) {
  border-top-color: var(--phosphor-soft);
}

.step-card:nth-child(3) {
  border-top-color: var(--blue);
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 191, 77, 0.52);
  border-radius: 50%;
  background: rgba(255, 191, 77, 0.12);
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 900;
}

.step-card h3,
.tool-ledger h3 {
  color: var(--amber-soft);
}

.step-card p,
.bulletin-board p,
.course-card p,
.tool-ledger dd,
.apply-card li {
  margin: 0;
  color: rgba(243, 231, 198, 0.76);
  line-height: 1.62;
  text-wrap: pretty;
}

.step-card > code {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  white-space: normal;
  word-break: break-word;
}

.campus {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.campus-copy {
  position: sticky;
  top: 8rem;
  margin-bottom: 0;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.scene-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(141, 255, 177, 0.22);
  border-radius: 6px;
  background: var(--terminal-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.scene-card.wide {
  grid-column: 1 / -1;
}

.scene-card img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.scene-card figcaption {
  padding: 1rem;
  border-top: 1px solid rgba(141, 255, 177, 0.2);
  background: rgba(7, 17, 13, 0.94);
}

.scene-card strong,
.scene-card span {
  display: block;
}

.scene-card strong {
  color: var(--phosphor);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.14;
}

.scene-card span {
  margin-top: 0.35rem;
  color: rgba(243, 231, 198, 0.78);
  font-size: 0.96rem;
  line-height: 1.48;
}

.catalog-layout {
  display: grid;
  gap: 1rem;
}

.course-card.featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 191, 77, 0.36);
  border-radius: 6px;
  background: linear-gradient(135deg, #101b15, #351c14);
  box-shadow: var(--shadow);
}

.course-card.featured img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.course-card.featured > div {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
}

.course-code {
  margin: 0;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-card h3 {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
}

.course-card.featured a {
  justify-self: start;
  color: var(--phosphor);
  font-weight: 900;
  text-decoration-color: rgba(141, 255, 177, 0.58);
}

.bulletin-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.bulletin-board article,
.tool-ledger,
.apply-card {
  border: 1px solid rgba(255, 191, 77, 0.25);
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 191, 77, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 191, 77, 0.028) 1px, transparent 1px),
    #111a14;
  background-size: 18px 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.bulletin-board article {
  padding: 1rem;
  border-top: 4px solid var(--amber);
}

.bulletin-board article:nth-child(2) {
  border-top-color: var(--phosphor-soft);
}

.bulletin-board article:nth-child(3) {
  border-top-color: var(--blue);
}

.bulletin-board article:nth-child(4) {
  border-top-color: var(--red);
}

.bulletin-board h3 {
  margin-bottom: 0.45rem;
  color: var(--amber-soft);
}

.terminal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: stretch;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(141, 255, 177, 0.28);
  border-radius: 6px;
  background: #030806;
  box-shadow: var(--shadow), var(--glow);
}

.terminal-bar {
  display: flex;
  gap: 0.42rem;
  padding: 0.72rem;
  border-bottom: 1px solid rgba(141, 255, 177, 0.2);
  background: linear-gradient(180deg, #15271e, #07110d);
}

.terminal-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 12px rgba(141, 255, 177, 0.7);
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 191, 77, 0.55);
}

.terminal-bar span:nth-child(3) {
  background: var(--red);
  box-shadow: 0 0 12px rgba(180, 71, 55, 0.5);
}

.terminal-poster {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1.4rem;
}

.terminal-poster picture {
  width: min(100%, 760px);
}

.terminal-poster img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
}

.tool-ledger {
  padding: 1.15rem;
}

.tool-ledger h3 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.tool-ledger dl {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.tool-ledger div {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(141, 255, 177, 0.24);
}

.tool-ledger div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tool-ledger dt {
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 900;
}

.tool-ledger dd {
  margin: 0;
}

.tool-ledger code {
  display: block;
  white-space: normal;
  word-break: break-word;
}

.apply {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(330px, 1.06fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: min(var(--max), calc(100% - 2rem));
  margin: 5.8rem auto 0;
  padding: 2.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 77, 0.32);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.98), rgba(7, 17, 13, 0.78)),
    url("assets/campus-scenes/capstone.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.apply h2 {
  color: var(--paper);
}

.apply-card {
  padding: 1.2rem 1.25rem 1.2rem 1.5rem;
  background:
    linear-gradient(rgba(17, 24, 18, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 18, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 18px 18px;
  color: var(--ink);
}

.apply-card h3 {
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.apply-card ol {
  margin: 0;
  padding-left: 1.15rem;
}

.apply-card li {
  color: var(--muted);
}

.apply-card li + li {
  margin-top: 0.62rem;
}

.apply-card code {
  border-color: rgba(17, 24, 18, 0.22);
  background: #fff4d2;
  color: #18472c;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0 2.8rem;
  color: rgba(243, 231, 198, 0.72);
}

.site-footer strong {
  color: var(--amber-soft);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    transition: box-shadow 240ms ease, background-color 240ms ease;
  }

  .site-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--amber), var(--phosphor), var(--blue));
    transform: scaleX(var(--scroll-progress, 1));
    transform-origin: left center;
    transition: transform 90ms linear;
  }

  .brand img,
  .hero-scene,
  .scene-card,
  .step-card,
  .course-card.featured,
  .bulletin-board article,
  .terminal-card,
  .tool-ledger,
  .apply-card {
    transition:
      transform 260ms var(--ease-spring),
      box-shadow 260ms ease,
      border-color 260ms ease,
      filter 260ms ease;
  }

  .brand:hover img {
    transform: rotate(-3deg) scale(1.04);
  }

  .hero-scene:hover,
  .scene-card:hover,
  .step-card:hover,
  .course-card.featured:hover,
  .bulletin-board article:hover,
  .terminal-card:hover,
  .tool-ledger:hover,
  .apply-card:hover {
    transform: translateY(-4px);
    border-color: rgba(141, 255, 177, 0.45);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.34), 0 0 32px rgba(141, 255, 177, 0.16);
  }

  .hero-scene:hover img,
  .scene-card:hover img,
  .course-card.featured:hover img {
    filter: saturate(1.12) contrast(1.06);
  }

  .terminal-card::after,
  .hero-scene::after,
  .scene-card::after {
    position: absolute;
    inset: 0;
    z-index: 3;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(141, 255, 177, 0.14), transparent);
    opacity: 0;
    transform: translateY(-100%);
  }

  .terminal-card:hover::after,
  .hero-scene:hover::after,
  .scene-card:hover::after,
  .activity-card::after {
    animation: mcpoly-terminal-scan 3.8s linear infinite;
  }

  .activity-card .terminal-bar span {
    animation: mcpoly-status-pulse 1.8s ease-in-out infinite;
  }

  .activity-card .terminal-bar span:nth-child(2) {
    animation-delay: 180ms;
  }

  .activity-card .terminal-bar span:nth-child(3) {
    animation-delay: 360ms;
  }

  @keyframes mcpoly-terminal-scan {
    0% {
      opacity: 0;
      transform: translateY(-100%);
    }

    14% {
      opacity: 0.68;
    }

    100% {
      opacity: 0;
      transform: translateY(100%);
    }
  }

  @keyframes mcpoly-status-pulse {
    0%,
    100% {
      opacity: 0.62;
      transform: scale(1);
    }

    50% {
      opacity: 1;
      transform: scale(1.18);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1040px) {
  h1 {
    font-size: 4.15rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero-grid,
  .campus,
  .admissions-heading,
  .terminal-layout,
  .apply {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .campus-copy {
    position: static;
  }

  .status-band,
  .admissions-grid,
  .bulletin-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-card.featured {
    grid-template-columns: 1fr;
  }

  .course-card.featured img {
    min-height: 0;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .notice-bar,
  .nav-shell,
  .site-footer {
    display: block;
  }

  .notice-bar span + span {
    display: none;
  }

  .brand {
    min-width: 0;
  }

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

  .brand small {
    display: none;
  }

  .nav-links {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  .nav-links a {
    padding-inline: 0.4rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 3.4rem 0 4.2rem;
  }

  h1 {
    max-width: 100%;
    font-size: 3rem;
    line-height: 0.98;
  }

  h2 {
    max-width: 100%;
    font-size: 2.1rem;
    line-height: 1.1;
  }

  .lede {
    font-size: 1.05rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .status-band,
  .admissions-grid,
  .scene-grid,
  .bulletin-board {
    grid-template-columns: 1fr;
  }

  .status-band {
    margin-top: -1rem;
  }

  .status-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 191, 77, 0.2);
  }

  .status-band div:last-child {
    border-bottom: 0;
  }

  .section,
  .campus {
    padding-top: 4.2rem;
  }

  .admissions-seal {
    width: min(17rem, 64vw);
    margin: 0 auto;
  }

  .apply {
    width: 100%;
    margin-top: 4.2rem;
    padding: 1rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .terminal-poster {
    padding: 0.85rem;
  }

  .site-footer p:last-child {
    margin-top: 0.7rem;
  }
}
