:root {
  --bg: #000;
  --card: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  --accent: #850d27;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

main {
  padding-bottom: 40px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px);
}

.site-title-block {
  min-width: 0;
}

.site-title-block h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1rem, 2.15vw, 1.65rem);
  line-height: 1.05;
  white-space: nowrap;
}

.site-kicker {
  margin: 0 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  color: var(--muted);
}

.title-amp {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 0.9rem;
}

.site-nav a {
  color: var(--muted);
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.hamburger i {
  font-size: 24px;
  color: currentColor;
}

/* DRAWER */

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: none;
  width: 100vw;
  height: 100vh;
  padding: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.drawer-open {
  overflow: hidden;
}

.drawer-open .drawer {
  display: flex;
}

.drawer-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.drawer-close i {
  font-size: 28px;
}

.drawer-close:hover,
.drawer-close:focus-visible {
  opacity: 0.7;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.drawer-nav a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 1.25rem;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

/* SOCIAL LINKS */

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  text-decoration: none;
  transition: color 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
}

.social-link i {
  font-size: 16px;
  color: currentColor;
}

.follow-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.follow-socials span {
  font-weight: 600;
}

.follow-socials a {
  color: inherit;
  text-decoration: none;
  font-size: 1.2rem;
  transition: opacity 0.2s ease;
}

.follow-socials a:hover {
  opacity: 0.7;
}

/* HOMEPAGE INTRO */

.show-intro {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.show-intro-text h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase;
}

.show-intro-text p {
  max-width: 68ch;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.show-intro-poster {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.show-intro-poster img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* SHOWCASE GRID */

.showcase-heading {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 2rem 0 0.75rem;
}

.showcase-heading h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.showcase-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 1rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.tile {
  grid-column: span 4;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
}

.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.95;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.tile:hover img,
.tile:focus-visible img {
  filter: grayscale(100%);
  opacity: 0.72;
  transform: scale(1.01);
}

.tile .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 160ms ease;
}

.tile:hover .overlay,
.tile:focus-visible .overlay {
  opacity: 1;
}

.tile h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
}

.tile p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* GENERIC CONTENT PAGES */

.content-page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.content-hero {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.content-hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text);
}

.content-band {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.035);
}

.content-band h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.content-band p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
}

/* STUDY WITH US PAGE */

.study-hero {
  padding: clamp(2rem, 4vw, 3.25rem) 0;
}

.study-hero h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-transform: uppercase;
}

.study-hero .lead {
  max-width: none;
}

.study-hero-media {
  margin-top: 2rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.study-hero-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.study-overview,
.broad-education,
.graduate-pathways,
.student-quotes,
.study-cta {
  padding: clamp(1.5rem, 3vw, 2.75rem) 0;
}

.programme-overview {
  max-width: none;
}

.programme-overview p {
  color: var(--muted);
}

.what-youll-explore {
  margin-top: 2.5rem;
}

.what-youll-explore p {
  margin: 1rem 0 0;
  line-height: 1.9;
  color: var(--muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* BROAD EDUCATION */

.broad-education-content {
  width: 100%;
}

.broad-education-content h2 {
  margin: 0 0 1rem;
}

.broad-education-content p {
  max-width: none;
  color: var(--muted);
}

/* DISCIPLINE ROWS */

.discipline-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.75rem) 0;
}

.discipline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.discipline-row:last-of-type {
  margin-bottom: 0;
}

.discipline-row-reverse .discipline-image {
  order: 2;
}

.discipline-row-reverse .discipline-text {
  order: 1;
}

.discipline-image {
  width: 100%;
}

.discipline-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.discipline-text {
  padding: 0;
}

.discipline-text h2,
.discipline-text h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  text-transform: uppercase;
}

.discipline-text p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

/* GRADUATE PATHWAYS */

.pathways-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 1.5rem;
  line-height: 1.9;
}

.pathways-grid span {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
}

.pathways-grid span:not(:last-child)::after {
  content: " | ";
  color: var(--accent);
  margin: 0 0.35rem;
}

/* QUOTES */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 1.25rem;
}

.quote-grid blockquote {
  margin: 0;
  padding: 0;
}

.quote-grid p {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
}

.quote-grid cite {
  color: var(--muted);
  font-style: normal;
}

/* STUDY CTA */

.study-cta {
  border-top: 1px solid var(--line);
}

.study-cta a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text);
}

/* CONTACT PAGE */

.contact-page {
  padding: 4rem 0 5rem;
}

.contact-page .page-header {
  max-width: 850px;
}

.contact-page .page-header h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase;
}
.contact-page .page-header p {
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 4rem;
}

.contact-panel h2 {
  margin: 0 0 1rem;
}

.contact-panel p {
  max-width: 40rem;
}

.contact-email {
  margin-top: 2rem;
}

.contact-email a {
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  text-decoration: none;
}

.contact-socials a:hover {
  opacity: 0.7;
}

.contact-socials i {
  width: 1.25rem;
  text-align: center;
}

/* FOOTER */

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 3rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-footer p {
  margin: 0;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-logos img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-title-block {
    flex: 1;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .tile {
    grid-column: span 6;
  }
}

@media (max-width: 800px) {
  .show-intro,
  .overview-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .show-intro-poster {
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }

  .show-intro-poster img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .study-hero-media {
    margin-top: 1.5rem;
  }

  .discipline-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .discipline-row-reverse .discipline-image,
  .discipline-row-reverse .discipline-text {
    order: initial;
  }

  .discipline-image img {
    aspect-ratio: 16 / 9;
  }

  .discipline-text {
    padding: 0;
  }

  .contact-page {
    padding: 2.5rem 0 4rem;
  }

  .contact-grid {
    gap: 3rem;
    margin-top: 3rem;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .footer-logos {
    flex-shrink: 0;
  }
}

@media (max-width: 700px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-title-block h1 {
    max-width: 20ch;
    font-size: 1rem;
    white-space: nowrap;
  }

  .tile {
    grid-column: span 12;
  }

  .footer-logos img {
    height: 36px;
  }
}

.inline-socials {
  display: inline;
}

.inline-socials a {
  text-decoration: none;
}

.inline-socials a:hover {
  opacity: 0.7;
}

.pipe {
  color: var(--accent);
  margin: 0 0.35rem;
}