:root {
  color-scheme: light;
  --ink: #151922;
  --ink-2: #2a3140;
  --muted: #687284;
  --paper: #f7f8fa;
  --white: #ffffff;
  --brand: #073f97;
  --brand-2: #0c62c7;
  --brass: #b8914b;
  --signal: #b72431;
  --line: rgba(21, 25, 34, 0.14);
  --shadow: 0 24px 70px rgba(21, 25, 34, 0.16);
  --max: 1180px;
  --radius: 8px;
  --body-font: "HarmonyOS Sans SC", "MiSans", "Alibaba PuHuiTi", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display-font: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --number-font: "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", var(--body-font);
  --sans: var(--body-font);
  --serif: var(--display-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  font-weight: 450;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, min-height 0.25s ease;
}

.site-header[data-elevated="true"],
body.menu-open .site-header {
  min-height: 70px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(21, 25, 34, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(4, 11, 24, 0.2);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header[data-elevated="true"] .brand-logo-wrap,
body.menu-open .brand-logo-wrap {
  border-color: rgba(7, 63, 151, 0.12);
  box-shadow: 0 10px 24px rgba(21, 25, 34, 0.1);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-copy span {
  margin-top: 4px;
  color: currentColor;
  font-size: 12px;
  opacity: 0.72;
}

.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: currentColor;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  opacity: 0.88;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
  background: var(--signal);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(183, 36, 49, 0.25);
  font-size: 14px;
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 70px 0 auto;
  z-index: 40;
  display: none;
  padding: 18px 22px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(21, 25, 34, 0.1);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(21, 25, 34, 0.08);
  font-weight: 800;
}

.mobile-nav.open {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 35, 0.88) 0%, rgba(6, 17, 35, 0.7) 42%, rgba(6, 17, 35, 0.1) 100%),
    linear-gradient(180deg, rgba(4, 11, 24, 0.42) 0%, rgba(4, 11, 24, 0.18) 48%, rgba(4, 11, 24, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 88svh;
  margin: 0 auto;
  padding: 120px 0 96px;
}

.hero-panel {
  max-width: 860px;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--brass);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1,
.section-heading h2,
.section-copy h2,
.gallery-copy h2,
.exam-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 {
  max-width: 860px;
  font-size: 78px;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.hero-legal {
  max-width: 720px;
  margin: 18px 0 0;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(4, 11, 24, 0.34);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
  backdrop-filter: blur(10px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--signal);
  box-shadow: 0 18px 36px rgba(183, 36, 49, 0.25);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.proof-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 40px));
  margin: -46px auto 0;
  background: var(--white);
  border: 1px solid rgba(21, 25, 34, 0.08);
  box-shadow: var(--shadow);
}

.proof-item {
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid rgba(21, 25, 34, 0.1);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  color: var(--brand);
  font-family: var(--number-font);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: clamp(76px, 10vw, 128px) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.gallery-copy h2,
.exam-copy h2,
.contact-copy h2 {
  font-size: 52px;
}

.section-copy p:not(.section-label),
.section-heading p,
.gallery-copy p,
.exam-copy p,
.contact-copy p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.88;
}

.about-frame {
  position: relative;
}

.about-frame img,
.exam-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 310px;
  padding: 18px;
  color: var(--white);
  background: rgba(7, 63, 151, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.about-note strong,
.about-note span {
  display: block;
}

.about-note strong {
  font-size: 20px;
  line-height: 1.2;
}

.about-note span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.majors-section,
.exam-section {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 40px;
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.major-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  min-height: 100%;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.major-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.major-card:hover img {
  transform: scale(1.04);
}

.major-card div {
  padding: 22px;
}

.major-card span {
  color: var(--brass);
  font-size: 13px;
  font-weight: 900;
}

.major-card h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.22;
}

.major-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.system-card {
  padding: clamp(24px, 4vw, 36px);
  color: var(--white);
  background: var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.system-card:nth-child(2) {
  background: var(--ink);
}

.system-card h3 {
  margin: 0 0 24px;
  font-size: 38px;
  line-height: 1.1;
}

.system-card dl,
.system-card dd {
  margin: 0;
}

.system-card div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.system-card dt {
  color: var(--brass);
  font-weight: 900;
}

.system-card dd {
  color: rgba(255, 255, 255, 0.86);
}

.process-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-item {
  min-height: 128px;
  padding: 20px;
  background: var(--white);
}

.process-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.process-item strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.18;
}

.campus-gallery {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(76px, 10vw, 128px) clamp(20px, 4vw, 54px);
  color: var(--white);
  background: var(--ink);
}

.gallery-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.gallery-copy p:not(.section-label) {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.gallery-grid figure::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 48%;
  content: "";
  background: linear-gradient(180deg, rgba(4, 11, 24, 0), rgba(4, 11, 24, 0.76));
  pointer-events: none;
}

.gallery-grid .gallery-large {
  grid-row: span 2;
  min-height: 676px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.7s ease, opacity 0.3s ease;
}

.gallery-grid figure:hover img {
  opacity: 1;
  transform: scale(1.035);
}

.gallery-grid figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(4, 11, 24, 0.68);
  border-left: 4px solid var(--brass);
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.exam-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--signal);
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 17, 35, 0.94), rgba(6, 17, 35, 0.76)),
    url("./assets/campus-entry.jpg") center / cover fixed;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-style: normal;
  backdrop-filter: blur(18px);
}

.contact-panel div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.contact-panel span {
  display: block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.contact-panel a,
.contact-panel p {
  display: block;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.28;
}

.contact-panel p {
  font-size: 18px;
  font-weight: 800;
}

.site-footer {
  padding: 28px 0;
  background: #090d14;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
}

.footer-inner a {
  color: var(--white);
  font-weight: 900;
}

.mobile-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 45;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 25, 34, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(21, 25, 34, 0.22);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-dock a {
  display: grid;
  min-height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--signal);
  border-radius: 4px;
  font-weight: 900;
}

.mobile-dock a:nth-child(2) {
  background: var(--brand);
}

.reveal {
  opacity: 1;
  transform: none;
}

body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

body.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 66px;
  }

  .section-copy h2,
  .section-heading h2,
  .gallery-copy h2,
  .exam-copy h2,
  .contact-copy h2 {
    font-size: 46px;
  }

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

  .process-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .desktop-nav,
  .header-call {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 86svh;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-lede {
    font-size: 19px;
  }

  .section-copy h2,
  .section-heading h2,
  .gallery-copy h2,
  .exam-copy h2,
  .contact-copy h2 {
    font-size: 40px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 17, 35, 0.88) 0%, rgba(6, 17, 35, 0.62) 48%, rgba(6, 17, 35, 0.8) 100%);
  }

  .proof-strip,
  .split-layout,
  .section-heading,
  .system-grid,
  .campus-gallery,
  .exam-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin-top: 0;
    width: 100%;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .proof-item {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid rgba(21, 25, 34, 0.1);
  }

  .gallery-copy {
    position: static;
  }

  .gallery-grid .gallery-large {
    min-height: 420px;
  }

  .contact-section {
    background-attachment: scroll;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo-wrap {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    max-width: 230px;
    font-size: 15px;
  }

  .brand-copy span {
    display: none;
  }

  .hero-inner {
    align-content: end;
    justify-items: stretch;
    width: 100%;
    padding: 104px 0 72px;
  }

  .hero-panel {
    justify-self: center;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 0;
    overflow: visible;
    padding: 20px 18px 18px;
    background: linear-gradient(180deg, rgba(8, 20, 40, 0.86), rgba(8, 20, 40, 0.74));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--brass);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
  }

  .kicker {
    margin-bottom: 12px;
    color: #f2c86f;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-lede {
    max-width: 100%;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.94);
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero-legal {
    max-width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(4, 11, 24, 0.58);
    font-size: 12px;
    line-height: 1.62;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 18px;
  }

  .section-inner {
    width: calc(100% - 32px);
    max-width: var(--max);
  }

  .section {
    padding: 72px 0;
  }

  .section-copy h2,
  .section-heading h2,
  .gallery-copy h2,
  .exam-copy h2,
  .contact-copy h2 {
    font-size: 31px;
  }

  .proof-item strong {
    font-size: 32px;
  }

  .system-card h3 {
    font-size: 28px;
  }

  .process-item strong {
    font-size: 24px;
  }

  .contact-panel a,
  .contact-panel p {
    font-size: 22px;
  }

  .contact-panel p {
    font-size: 16px;
  }

  .contact-copy {
    padding: 20px 18px;
    background: rgba(4, 11, 24, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 4px solid var(--brass);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(12px);
  }

  .about-note {
    position: static;
    max-width: none;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .about-frame img {
    box-shadow: none;
  }

  .major-grid,
  .gallery-grid,
  .process-row {
    grid-template-columns: 1fr;
  }

  .major-card {
    grid-template-columns: minmax(88px, 30vw) minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 154px;
    background: var(--white);
  }

  .major-card img {
    grid-column: 1;
    width: 100%;
    height: 100%;
    min-height: 154px;
    object-position: center;
  }

  .major-card div {
    grid-column: 2;
    display: flex;
    min-width: 0;
    padding: 16px 14px 16px 16px;
    background: var(--white);
    box-shadow: inset 4px 0 0 rgba(184, 145, 75, 0.24);
    flex-direction: column;
    justify-content: center;
  }

  .major-card span {
    width: fit-content;
    padding: 2px 7px;
    color: var(--brand);
    background: rgba(7, 63, 151, 0.08);
    border: 1px solid rgba(7, 63, 151, 0.14);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
  }

  .major-card h3 {
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .major-card p {
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }

  .system-card div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .campus-gallery {
    padding: 72px 16px;
  }

  .gallery-grid figure,
  .gallery-grid .gallery-large {
    min-height: 310px;
  }

  .gallery-grid figure::after {
    height: 62%;
    background: linear-gradient(180deg, rgba(4, 11, 24, 0), rgba(4, 11, 24, 0.9));
  }

  .mobile-text-backdrop {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.62);
  }

  .gallery-grid figcaption.mobile-text-backdrop {
    right: 12px;
    bottom: 12px;
    left: 12px;
    background: rgba(4, 11, 24, 0.84);
    border-color: #f2c86f;
  }

  .mobile-dock {
    display: grid;
  }

  body.show-mobile-dock .mobile-dock {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 37px;
  }

  .major-card {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 150px;
  }

  .major-card img {
    min-height: 150px;
  }

  .major-card div {
    padding: 14px 12px;
  }

  .major-card h3 {
    font-size: 17px;
  }

  .major-card p {
    font-size: 12.5px;
    line-height: 1.54;
  }
}
