:root {
  --cy-soft: #e8f0ff;
  --cy-line: #9bbcf0;
  --cy-ink: #235aa6;
  --cy-deep: #153a73;
}

/* MSc in Cyber Security page.
   Based on the MSc programme reference structure, using the programme-
   specific soft blue identity from the MSc chooser palette. */
/* MSc in Cyber Security & Artificial Intelligence page.
   Based on the MSc programme reference structure, using the programme-
   specific soft peach identity from the MSc chooser palette. */
/* MSc in Cyber Security for AI page.
   Based on the MSc in Data Analytics with AI V7 structure, using the
   programme-specific soft green identity from the MSc chooser palette. */
html {
  scroll-padding-top: calc(var(--topbar) + 18px);
}

.msc-cy-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(216,200,255,.28), transparent 28rem),
    radial-gradient(circle at 92% 2%, rgba(145,0,72,.10), transparent 30rem),
    linear-gradient(180deg, #f8fbfc 0%, #fff 40%, #f4f8f9 100%);
}

.msc-cy-subnav .programme-label strong {
  color: var(--cy-ink);
}

.msc-cy-hero {
  min-height: calc(100svh - var(--topbar));
  display: grid;
  align-items: center;
  padding: clamp(46px, 6vw, 92px) 0;
  border-top: 1px solid rgba(219,229,232,.75);
}

.msc-cy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .52fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}

.msc-cy-copy {
  min-width: 0;
}

.msc-cy-hero h1 {
  max-width: 1050px;
}

.msc-cy-hero h1 span {
  color: var(--cy-ink);
}

.msc-cy-hero .lede {
  max-width: 880px;
}

.msc-cy-hero-card {
  border: 1px solid var(--cy-line);
  border-radius: 32px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 22px 54px rgba(6,31,42,.14);
  overflow: hidden;
}

.msc-cy-hero-card img {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  object-fit: cover;
  display: block;
}

.msc-cy-hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--cy-line);
}

.msc-cy-hero-facts span {
  background: rgba(255,255,255,.94);
  padding: 14px;
  display: grid;
  gap: 4px;
}

.msc-cy-hero-facts strong {
  color: var(--cy-ink);
  line-height: 1;
  letter-spacing: -.035em;
}

.msc-cy-hero-facts small {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.18;
}

.cy-identity-grid {
  display: grid;
  grid-template-columns: 1.05fr repeat(2, minmax(0, .72fr));
  gap: 14px;
  align-items: stretch;
}

.cy-core-card {
  background: linear-gradient(135deg, var(--cy-deep), var(--ink));
}

.cy-core-card h2 {
  font-size: clamp(2rem, 3.8vw, 4.3rem);
}

.cy-fit-layout,
.cy-experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cy-fit-card {
  border: 1px solid rgba(219,229,232,.90);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: clamp(18px, 1.7vw, 26px);
}

.cy-fit-card.is-good {
  background: linear-gradient(180deg, var(--cy-soft), rgba(255,255,255,.94));
  border-color: var(--cy-line);
}

.cy-fit-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--cy-line);
  color: var(--cy-ink);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cy-fit-card h3 {
  font-size: clamp(1.55rem, 2.25vw, 2.45rem);
}

.cy-fit-card ul {
  margin: 14px 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-weight: 720;
}

.cy-fit-card li {
  margin: 7px 0;
}

.cy-structure-grid,
.cy-admissions-grid,
.cy-intake-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cy-structure-grid .stat-card strong {
  color: var(--cy-ink);
}

.cy-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cy-curriculum-card {
  border: 1px solid rgba(219,229,232,.90);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: clamp(16px, 1.45vw, 22px);
  min-width: 0;
}

.cy-curriculum-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--cy-soft);
  border: 1px solid var(--cy-line);
  color: var(--cy-ink);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .065em;
  margin-bottom: 10px;
}

.cy-curriculum-card h3 {
  font-size: clamp(1.25rem, 1.75vw, 1.85rem);
}

.cy-curriculum-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 720;
}

.cy-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cy-study-card {
  border: 1px solid rgba(219,229,232,.90);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: clamp(18px, 1.7vw, 26px);
  min-height: 230px;
  display: grid;
  align-content: end;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.cy-study-card::before {
  content: "";
  position: absolute;
  inset: -70px -80px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--cy-soft);
}

.cy-study-card strong,
.cy-study-card span {
  position: relative;
  z-index: 1;
}

.cy-study-card strong {
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--ink);
}

.cy-study-card span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 730;
}

.cy-experience-grid {
  grid-template-columns: 1.1fr repeat(3, minmax(0, .72fr));
}

.cy-experience-main {
  background: linear-gradient(135deg, var(--cy-deep), var(--ink));
}

.cy-experience-main h2 {
  font-size: clamp(1.9rem, 3.1vw, 3.5rem);
}

.cy-admissions-grid {
  margin-bottom: 14px;
}

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

.cy-intake-grid .date-card span {
  color: var(--cy-ink);
}

#meet .cta-band {
  background:
    radial-gradient(circle at 100% 0%, rgba(216,200,255,.24), transparent 30rem),
    linear-gradient(135deg, var(--ink), var(--cy-deep));
}

#meet .cta-band h2,
#meet .cta-band p {
  color: #fff;
}

#meet .cta-band p {
  color: rgba(255,255,255,.80);
}

@media (min-width: 1180px) and (min-height: 700px) {
  .msc-cy-page .viewport-section {
    min-height: calc(100svh - var(--topbar));
    display: grid;
    align-items: center;
  }

  .msc-cy-page .viewport-section > .site-shell {
    width: 100%;
  }
}

@media (min-width: 1600px) and (min-height: 760px) {
  .msc-cy-hero,
  .msc-cy-page .section.viewport-section {
    padding-top: clamp(62px, 6.2vh, 104px);
    padding-bottom: clamp(62px, 6.2vh, 104px);
  }
}

@media (max-width: 1180px) {
  .msc-cy-hero-grid,
  .cy-identity-grid,
  .cy-fit-layout,
  .cy-experience-grid {
    grid-template-columns: 1fr;
  }

  .cy-structure-grid,
  .cy-admissions-grid,
  .cy-curriculum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cy-study-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .msc-cy-hero {
    min-height: auto;
    padding: 30px 0;
  }

  .msc-cy-hero-grid,
  .cy-structure-grid,
  .cy-admissions-grid,
  .cy-curriculum-grid,
  .cy-intake-grid {
    grid-template-columns: 1fr;
  }

  .msc-cy-hero h1 {
    font-size: clamp(2.25rem, 9.3vw, 3.4rem);
  }

  .msc-cy-hero-card img {
    height: 240px;
  }

  .msc-cy-hero-facts {
    grid-template-columns: 1fr;
  }

  .cy-study-card {
    min-height: 190px;
  }
}
/* ================================================================
   V2 Cyber Security page refinements — fuller hero and transparent course view.
================================================================ */
.cy-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  max-width: 980px;
}

.cy-hero-proof span {
  border: 1px solid var(--cy-line);
  background: rgba(255,255,255,.76);
  border-radius: 20px;
  padding: 13px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 28px rgba(6,31,42,.08);
}

.cy-hero-proof strong {
  color: var(--cy-ink);
  font-size: .98rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.cy-hero-proof small {
  color: var(--muted);
  font-weight: 730;
  line-height: 1.22;
}

.msc-cy-hero-intro {
  padding: 18px 18px 4px;
  display: grid;
  gap: 7px;
}

.msc-cy-hero-intro span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--cy-soft);
  border: 1px solid var(--cy-line);
  color: var(--cy-ink);
  font-size: .70rem;
  font-weight: 950;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.msc-cy-hero-intro strong {
  color: var(--ink);
  font-size: clamp(1.2rem, 1.65vw, 1.65rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.msc-cy-hero-intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 730;
  line-height: 1.24;
}

.cy-curriculum-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.cy-module-stack {
  display: grid;
  gap: 14px;
}

.cy-module {
  border: 1px solid rgba(219,229,232,.92);
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  overflow: clip;
}

.cy-module summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216,200,255,.18), transparent 22rem),
    linear-gradient(180deg, rgba(242,236,255,.56), rgba(255,255,255,.88));
}

.cy-module summary::-webkit-details-marker {
  display: none;
}

.cy-module summary span {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.05em;
}

.cy-module summary strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  border: 1px solid var(--cy-line);
  color: var(--cy-ink);
  font-size: .82rem;
  white-space: nowrap;
}

.cy-module summary::after {
  content: "Open";
  justify-self: end;
  display: inline-flex;
  grid-column: 2;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  margin-left: 4px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: .76rem;
}

.cy-module[open] summary::after {
  content: "Close";
  background: var(--cy-ink);
}

.cy-module-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.cy-module-intro {
  display: grid;
  grid-template-columns: minmax(0, .45fr) minmax(0, .55fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(219,229,232,.86);
}

.cy-module-intro h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.052em;
}

.cy-module-intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 730;
  line-height: 1.34;
}

.cy-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cy-course-card {
  border: 1px solid rgba(219,229,232,.92);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  padding: 14px;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
}

.cy-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cy-course-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--cy-soft);
  border: 1px solid var(--cy-line);
  color: var(--cy-ink);
  font-weight: 900;
  font-size: .72rem;
  line-height: 1;
}

.cy-course-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.25vw, 1.26rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.cy-course-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 710;
  line-height: 1.26;
  font-size: .93rem;
}

@media (min-width: 1500px) {
  .cy-course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .cy-hero-proof,
  .cy-curriculum-overview,
  .cy-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cy-module-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cy-hero-proof,
  .cy-curriculum-overview,
  .cy-course-grid {
    grid-template-columns: 1fr;
  }

  .cy-hero-proof {
    margin-top: 14px;
  }

  .msc-cy-hero-intro {
    padding: 15px 15px 3px;
  }

  .cy-module summary {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 15px;
  }

  .cy-module summary strong,
  .cy-module summary::after {
    grid-column: auto;
    justify-self: start;
  }

  .cy-module-body {
    padding: 15px;
  }
}
/* ================================================================
   V3 Cyber Security page refinements — hero vertical position, visible course list,
   structure spacing, study media cards and experience visuals.
================================================================ */

/* The hero was visually too low on desktop. Keep the first fold generous,
   but place the message where users expect it on arrival. */
@media (min-width: 1180px) {
  .msc-cy-hero {
    align-items: start;
    padding-top: clamp(46px, 6vh, 74px);
    padding-bottom: clamp(34px, 4.8vh, 64px);
  }

  .msc-cy-page .msc-cy-hero.viewport-section {
    align-items: start;
  }

  .msc-cy-hero-grid {
    align-items: start;
  }
}

@media (min-width: 1600px) and (min-height: 760px) {
  .msc-cy-hero {
    padding-top: clamp(54px, 6.2vh, 86px);
  }
}

/* Structure: prevent hours/ECTS values from feeling glued to text. */
.cy-structure-grid .stat-card strong,
.cy-admissions-grid .compact-card strong,
.cy-intake-grid .date-card span {
  display: block;
  margin-bottom: 10px;
}

.cy-structure-grid .stat-card span {
  display: block;
  line-height: 1.25;
}

/* Curriculum: all modules are open by default to preserve programme
   transparency. The controls remain available for users who want to collapse. */
.cy-module[open] {
  border-color: var(--cy-line);
}

.cy-module-stack {
  margin-top: 6px;
}

.cy-course-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.cy-course-card:hover {
  transform: translateY(-2px);
  border-color: var(--cy-line);
  box-shadow: 0 12px 26px rgba(6,31,42,.10);
}

/* Study mode cards with the same media/video language used elsewhere. */
.media-study-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cy-media-study-card {
  min-height: 310px;
  color: #fff;
  background: var(--ink);
  border-color: rgba(255,255,255,.12);
  isolation: isolate;
  align-content: end;
}

.cy-media-study-card::before {
  display: none;
}

.cy-media-study-card video,
.cy-media-study-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
}

.cy-study-overlay {
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  margin: 0 !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(216,200,255,.22), transparent 18rem),
    linear-gradient(180deg, rgba(6,31,42,.08), rgba(6,31,42,.84));
}

.cy-media-study-card strong,
.cy-media-study-card > span:not(.cy-study-overlay) {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}

.cy-media-study-card > span:not(.cy-study-overlay) {
  color: rgba(255,255,255,.82);
}

/* Professional experience visuals. */
.cy-exp-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.cy-exp-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cy-ink), var(--ink));
  box-shadow: 0 14px 28px rgba(93,69,168,.20);
  margin-bottom: 6px;
}

.cy-exp-icon svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cy-exp-crcc img {
  width: min(170px, 80%);
  height: auto;
  display: block;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(219,229,232,.9);
  padding: 10px;
  margin-bottom: 6px;
}

.cy-exp-link {
  margin-top: auto;
  width: fit-content;
  display: inline-flex;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: .86rem;
}

.cy-exp-link:hover,
.cy-exp-link:focus-visible {
  background: var(--cy-ink);
  outline: none;
}

@media (max-width: 1180px) {
  .media-study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cy-media-study-card {
    min-height: 260px;
  }
}

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

  .cy-media-study-card {
    min-height: 230px;
  }

  .cy-exp-icon {
    width: 48px;
    height: 48px;
  }

  .cy-exp-icon svg {
    width: 28px;
    height: 28px;
  }
}
/* ================================================================
   V4 Cyber Security page refinements — richer desktop hero, useful structure
   section, Warm Up only open on load and tighter final CTA.
================================================================ */
.cy-hero-sublede {
  max-width: 900px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.06vw, 1.14rem);
  line-height: 1.34;
  font-weight: 720;
}

.cy-hero-essentials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  max-width: 980px;
}

.cy-hero-essentials span {
  border: 1px solid rgba(216,200,255,.92);
  background: linear-gradient(180deg, rgba(242,236,255,.74), rgba(255,255,255,.82));
  border-radius: 18px;
  padding: 11px 12px;
  display: grid;
  gap: 5px;
}

.cy-hero-essentials strong {
  color: var(--cy-ink);
  font-size: clamp(1.15rem, 1.8vw, 1.62rem);
  line-height: .95;
  letter-spacing: -.045em;
}

.cy-hero-essentials small {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.15;
  font-weight: 760;
}

/* Desktop first fold: denser, higher and less empty. */
@media (min-width: 1180px) {
  .msc-cy-hero {
    min-height: calc(100svh - var(--topbar));
    padding-top: clamp(32px, 4.6vh, 58px);
    padding-bottom: clamp(28px, 4vh, 52px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.7rem, 5.2vw, 7.15rem);
    line-height: .94;
  }

  .msc-cy-hero .lede {
    margin-top: 14px;
  }

  .cy-hero-proof {
    margin-top: 16px;
  }

  .msc-cy-hero-card img {
    height: clamp(230px, 27vw, 350px);
  }

  .msc-cy-hero-intro {
    padding: 16px 18px 4px;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.08rem, 1.42vw, 1.45rem);
  }

  .msc-cy-hero-facts span {
    padding: 12px 14px;
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .msc-cy-hero h1 {
    font-size: clamp(5.4rem, 5.6vw, 7.55rem);
  }

  .msc-cy-hero-card img {
    height: clamp(270px, 28vw, 410px);
  }
}

/* Programme structure should no longer behave like a full empty slide. */
.cy-structure-section {
  padding-top: clamp(42px, 5vw, 76px);
  padding-bottom: clamp(42px, 5vw, 76px);
}

.cy-structure-grid-v4 .stat-card {
  min-height: 170px;
  display: grid;
  align-content: start;
}

.cy-structure-grid-v4 .stat-card strong {
  font-size: clamp(2.05rem, 3.6vw, 4rem);
}

.cy-structure-grid-v4 .stat-card span {
  max-width: 95%;
}

/* Curriculum: only the first module is open in the HTML; keep open modules
   visually obvious but not overwhelming. */
.cy-module:not([open]) .cy-module-body {
  display: none;
}

/* Final CTA should sit at normal section rhythm, not low in a viewport frame. */
.cy-final-section {
  padding-top: clamp(42px, 5vw, 76px);
  padding-bottom: clamp(46px, 5.5vw, 84px);
}

.cy-final-section .cta-band {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .cy-hero-essentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cy-hero-sublede {
    font-size: .94rem;
  }

  .cy-hero-essentials {
    grid-template-columns: 1fr;
  }

  .msc-cy-hero h1 {
    font-size: clamp(2.25rem, 9.3vw, 3.4rem);
  }
}
/* V5 Cyber Security hero adjustment: essentials row removed from left hero;
   key 120 ECTS / 720h figures are now back in the side card. */
/* ================================================================
   V6 Cyber Security hero video trigger — keep the image, open video on click.
================================================================ */
.msc-cy-video-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  display: block;
  position: relative;
  cursor: pointer;
  background: var(--ink);
  overflow: hidden;
}

.msc-cy-video-trigger img {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  object-fit: cover;
  display: block;
  transition: transform .22s ease, filter .22s ease;
}

.msc-cy-video-trigger:hover img,
.msc-cy-video-trigger:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.03);
}

.msc-cy-video-trigger:focus-visible {
  outline: 4px solid rgba(93,69,168,.34);
  outline-offset: -4px;
}

.msc-cy-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(6,31,42,.10), rgba(6,31,42,.08) 38%, rgba(6,31,42,.20));
}

.msc-cy-play::before {
  content: "";
  width: clamp(76px, 8vw, 128px);
  height: clamp(76px, 8vw, 128px);
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

.msc-cy-play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: clamp(18px, 2vw, 30px) solid transparent;
  border-bottom: clamp(18px, 2vw, 30px) solid transparent;
  border-left: clamp(28px, 3vw, 46px) solid rgba(255,255,255,.96);
  transform: translateX(16%);
}

.msc-cy-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 42px);
}

.msc-cy-video-modal.is-open {
  display: flex;
}

.msc-cy-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,31,42,.78);
  backdrop-filter: blur(10px);
}

.msc-cy-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
}

.msc-cy-video-modal-dialog video {
  width: 100%;
  max-height: 82vh;
  display: block;
  background: #000;
}

.msc-cy-video-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.msc-cy-video-close:hover,
.msc-cy-video-close:focus-visible {
  background: #fff;
  outline: none;
}

/* Preserve the V4/V5 desktop hero image sizing for the button wrapper. */
@media (min-width: 1180px) {
  .msc-cy-video-trigger img {
    height: clamp(230px, 27vw, 350px);
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .msc-cy-video-trigger img {
    height: clamp(270px, 28vw, 410px);
  }
}

@media (max-width: 760px) {
  .msc-cy-video-trigger img {
    height: 240px;
  }

  .msc-cy-video-modal {
    padding: 10px;
  }

  .msc-cy-video-modal-dialog {
    border-radius: 18px;
    width: 100%;
  }

  .msc-cy-video-close {
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
  }
}


/* Cyber Security page uses a static programme image in the centre-of-gravity card. */
.msc-cy-hero-card > img {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  object-fit: cover;
  display: block;
}

@media (min-width: 1180px) {
  .msc-cy-hero-card > img {
    height: clamp(230px, 27vw, 350px);
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .msc-cy-hero-card > img {
    height: clamp(270px, 28vw, 410px);
  }
}

@media (max-width: 760px) {
  .msc-cy-hero-card > img {
    height: 240px;
  }
}


/* Cyber page uses a static programme image in the centre-of-gravity card. */
.msc-cy-hero-card > img {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  object-fit: cover;
  display: block;
}

@media (min-width: 1180px) {
  .msc-cy-hero-card > img {
    height: clamp(230px, 27vw, 350px);
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .msc-cy-hero-card > img {
    height: clamp(270px, 28vw, 410px);
  }
}

@media (max-width: 760px) {
  .msc-cy-hero-card > img {
    height: 240px;
  }
}
/* ================================================================
   V2 Cyber hero desktop fill.
   The Cyber title is naturally shorter than the other MSc titles; this
   adds a compact programme-block row and slightly scales the first fold
   on desktop so the hero does not feel empty on wide monitors.
================================================================ */
.cy-hero-pathways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  max-width: 980px;
}

.cy-hero-pathways span {
  border: 1px solid rgba(195,211,242,.98);
  background: linear-gradient(180deg, rgba(234,241,255,.82), rgba(255,255,255,.90));
  border-radius: 18px;
  padding: 12px 12px;
  display: grid;
  gap: 5px;
  box-shadow: 0 12px 26px rgba(6,31,42,.055);
}

.cy-hero-pathways strong {
  color: var(--cy-ink);
  font-size: clamp(1.22rem, 1.75vw, 1.72rem);
  line-height: .94;
  letter-spacing: -.045em;
}

.cy-hero-pathways small {
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.12;
  font-weight: 820;
}

@media (min-width: 1180px) {
  .msc-cy-hero {
    padding-top: clamp(34px, 4.6vh, 60px);
    padding-bottom: clamp(28px, 4vh, 52px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(5.25rem, 6.2vw, 8.35rem);
    line-height: .92;
  }

  .msc-cy-hero .lede {
    max-width: 980px;
  }

  .cy-hero-proof {
    margin-top: 16px;
  }

  .msc-cy-hero-card > img {
    height: clamp(270px, 30vw, 390px);
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.45rem, 1.9vw, 2.08rem);
  }

  .msc-cy-hero-intro p {
    font-size: clamp(1rem, 1.08vw, 1.14rem);
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .msc-cy-hero h1 {
    font-size: clamp(5.8rem, 6.45vw, 8.9rem);
  }

  .msc-cy-hero-card > img {
    height: clamp(315px, 30vw, 450px);
  }
}

@media (max-width: 1180px) {
  .cy-hero-pathways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cy-hero-pathways {
    display: none;
  }
}
/* ================================================================
   V3 Cyber hero viewport + video update.
   New Cyber visual, click-to-play video modal, and a slightly lighter
   desktop first fold so it fits better on a 13.6" laptop viewport.
================================================================ */

/* Override the V2 oversized desktop hero just for Cyber Security. */
@media (min-width: 1180px) {
  .msc-cy-hero {
    padding-top: clamp(24px, 3.8vh, 46px);
    padding-bottom: clamp(22px, 3.4vh, 42px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.75rem, 5.45vw, 7.35rem);
    line-height: .93;
  }

  .msc-cy-hero .lede {
    max-width: 940px;
  }

  .cy-hero-sublede {
    margin-top: 8px;
  }

  .cy-hero-proof {
    margin-top: 14px;
  }

  .cy-hero-proof span {
    padding: 11px 13px;
  }

  .cy-hero-pathways {
    margin-top: 10px;
    gap: 7px;
  }

  .cy-hero-pathways span {
    padding: 10px 11px;
    border-radius: 16px;
  }

  .cy-hero-pathways strong {
    font-size: clamp(1.05rem, 1.42vw, 1.46rem);
  }

  .cy-hero-pathways small {
    font-size: .68rem;
  }

  .msc-cy-hero-intro {
    padding: 14px 17px 4px;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.25rem, 1.58vw, 1.76rem);
  }

  .msc-cy-hero-intro p {
    font-size: clamp(.94rem, 1vw, 1.04rem);
  }

  .msc-cy-hero-facts span {
    padding: 11px 14px;
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .msc-cy-hero h1 {
    font-size: clamp(5.1rem, 5.75vw, 7.8rem);
  }
}

/* Clickable hero video image. */
.msc-cy-video-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  display: block;
  position: relative;
  cursor: pointer;
  background: var(--ink);
  overflow: hidden;
}

.msc-cy-video-trigger img {
  width: 100%;
  height: clamp(245px, 28vw, 390px);
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .22s ease, filter .22s ease;
}

.msc-cy-video-trigger:hover img,
.msc-cy-video-trigger:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.03);
}

.msc-cy-video-trigger:focus-visible {
  outline: 4px solid rgba(49,94,159,.28);
  outline-offset: -4px;
}

.msc-cy-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(6,31,42,.06), rgba(6,31,42,.06) 38%, rgba(6,31,42,.16));
}

.msc-cy-play::before {
  content: "";
  width: clamp(72px, 7.2vw, 112px);
  height: clamp(72px, 7.2vw, 112px);
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

.msc-cy-play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: clamp(17px, 1.7vw, 27px) solid transparent;
  border-bottom: clamp(17px, 1.7vw, 27px) solid transparent;
  border-left: clamp(27px, 2.7vw, 42px) solid rgba(255,255,255,.96);
  transform: translateX(16%);
}

/* Replace previous static-image sizing with video-trigger sizing. */
.msc-cy-hero-card > img {
  display: none;
}

@media (min-width: 1180px) {
  .msc-cy-video-trigger img {
    height: clamp(235px, 25vw, 335px);
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .msc-cy-video-trigger img {
    height: clamp(255px, 25vw, 375px);
  }
}

@media (max-width: 760px) {
  .msc-cy-video-trigger img {
    height: 230px;
  }
}

/* Video modal. */
.msc-cy-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 42px);
}

.msc-cy-video-modal.is-open {
  display: flex;
}

.msc-cy-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,31,42,.78);
  backdrop-filter: blur(10px);
}

.msc-cy-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
}

.msc-cy-video-modal-dialog video {
  width: 100%;
  max-height: 82vh;
  display: block;
  background: #000;
}

.msc-cy-video-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.msc-cy-video-close:hover,
.msc-cy-video-close:focus-visible {
  background: #fff;
  outline: none;
}

@media (max-width: 760px) {
  .msc-cy-video-modal {
    padding: 10px;
  }

  .msc-cy-video-modal-dialog {
    border-radius: 18px;
    width: 100%;
  }

  .msc-cy-video-close {
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
  }
}
/* ================================================================
   V4 Cyber middle-desktop readjustment.
   Target: 13.6" / medium desktop screens where the Cyber hero was still
   too tall. Keep the large editorial feeling, but make the proof rows and
   side card more compact in the 1180–1540px band.
================================================================ */
@media (min-width: 1180px) and (max-width: 1540px) {
  .msc-cy-hero {
    padding-top: clamp(18px, 3vh, 34px);
    padding-bottom: clamp(18px, 3vh, 34px);
  }

  .msc-cy-hero-grid {
    gap: clamp(24px, 3.2vw, 54px);
    align-items: start;
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.15rem, 5.05vw, 6.55rem);
    line-height: .91;
    max-width: 920px;
  }

  .msc-cy-hero .lede {
    margin-top: 10px;
    max-width: 910px;
    font-size: clamp(1rem, 1.08vw, 1.12rem);
    line-height: 1.22;
  }

  .cy-hero-sublede {
    margin-top: 7px;
    font-size: clamp(.98rem, 1.03vw, 1.08rem);
    line-height: 1.20;
  }

  .msc-cy-hero .hero-actions {
    margin-top: 12px;
  }

  .cy-hero-proof {
    margin-top: 12px;
    gap: 8px;
  }

  .cy-hero-proof span {
    padding: 10px 12px;
    border-radius: 16px;
    min-height: 82px;
  }

  .cy-hero-proof strong {
    font-size: .98rem;
    line-height: 1.06;
  }

  .cy-hero-proof small {
    font-size: .82rem;
    line-height: 1.13;
  }

  .cy-hero-pathways {
    margin-top: 9px;
    gap: 7px;
  }

  .cy-hero-pathways span {
    padding: 8px 10px;
    min-height: 64px;
    border-radius: 15px;
  }

  .cy-hero-pathways strong {
    font-size: clamp(.98rem, 1.22vw, 1.28rem);
  }

  .cy-hero-pathways small {
    font-size: .63rem;
    line-height: 1.08;
  }

  .msc-cy-video-trigger img {
    height: clamp(225px, 23.5vw, 300px);
  }

  .msc-cy-hero-intro {
    padding: 12px 15px 3px;
    gap: 6px;
  }

  .msc-cy-hero-intro span {
    padding: 5px 9px;
    font-size: .66rem;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.12rem, 1.42vw, 1.48rem);
    line-height: 1.00;
  }

  .msc-cy-hero-intro p {
    font-size: clamp(.86rem, .95vw, .98rem);
    line-height: 1.17;
  }

  .msc-cy-hero-facts span {
    padding: 9px 12px;
  }

  .msc-cy-hero-facts strong {
    font-size: clamp(1.05rem, 1.35vw, 1.36rem);
  }

  .msc-cy-hero-facts small {
    font-size: .70rem;
    line-height: 1.05;
  }
}

/* The MacBook Air / 13.6" viewport needs a final small tightening because
   browser chrome leaves less vertical room than the theoretical viewport. */
@media (min-width: 1180px) and (max-width: 1540px) and (max-height: 920px) {
  .msc-cy-hero {
    min-height: calc(100svh - var(--topbar) - 10px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(3.95rem, 4.75vw, 6.18rem);
  }

  .cy-hero-proof span {
    min-height: 74px;
  }

  .cy-hero-pathways span {
    min-height: 58px;
  }

  .msc-cy-video-trigger img {
    height: clamp(205px, 22vw, 275px);
  }
}
/* ================================================================
   V5 Cyber balanced responsive hero.
   V4 became too small and left the hero visually empty. This override
   restores presence, vertically balances the first fold, and uses
   height-aware fallbacks so medium and large desktop screens stay within
   the viewport.
================================================================ */

/* Base desktop: centre the hero composition inside the first fold instead
   of leaving the lower part visually empty. */
@media (min-width: 1180px) {
  .msc-cy-hero {
    min-height: calc(100svh - var(--topbar));
    display: flex;
    align-items: center;
    padding-top: clamp(28px, 4.2vh, 56px);
    padding-bottom: clamp(28px, 4.2vh, 56px);
  }

  .msc-cy-hero-grid {
    width: 100%;
    align-items: center;
    gap: clamp(34px, 4.2vw, 76px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.9rem, 5.75vw, 8.05rem);
    line-height: .91;
    max-width: 1040px;
  }

  .msc-cy-hero .lede {
    margin-top: clamp(10px, 1.2vh, 16px);
    max-width: 980px;
    font-size: clamp(1.05rem, 1.14vw, 1.22rem);
    line-height: 1.24;
  }

  .cy-hero-sublede {
    margin-top: 9px;
    font-size: clamp(1.02rem, 1.08vw, 1.16rem);
    line-height: 1.22;
  }

  .msc-cy-hero .hero-actions {
    margin-top: clamp(13px, 1.7vh, 18px);
  }

  .cy-hero-proof {
    margin-top: clamp(14px, 1.8vh, 19px);
    gap: 10px;
  }

  .cy-hero-proof span {
    min-height: clamp(88px, 10.2vh, 112px);
    padding: clamp(12px, 1.45vh, 16px) 14px;
    border-radius: 18px;
  }

  .cy-hero-proof strong {
    font-size: clamp(1.02rem, 1.08vw, 1.16rem);
    line-height: 1.05;
  }

  .cy-hero-proof small {
    font-size: clamp(.84rem, .90vw, .96rem);
    line-height: 1.15;
  }

  .cy-hero-pathways {
    margin-top: clamp(11px, 1.45vh, 16px);
    gap: 8px;
  }

  .cy-hero-pathways span {
    min-height: clamp(72px, 8.2vh, 92px);
    padding: clamp(10px, 1.25vh, 14px) 12px;
    border-radius: 17px;
  }

  .cy-hero-pathways strong {
    font-size: clamp(1.15rem, 1.48vw, 1.68rem);
  }

  .cy-hero-pathways small {
    font-size: clamp(.68rem, .72vw, .78rem);
    line-height: 1.1;
  }

  .msc-cy-video-trigger img {
    height: clamp(270px, 27vw, 410px);
  }

  .msc-cy-hero-intro {
    padding: clamp(15px, 1.75vh, 20px) 18px 5px;
    gap: 8px;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.35rem, 1.75vw, 2.12rem);
    line-height: 1.01;
  }

  .msc-cy-hero-intro p {
    font-size: clamp(.98rem, 1.05vw, 1.15rem);
    line-height: 1.19;
  }

  .msc-cy-hero-facts span {
    padding: clamp(12px, 1.35vh, 16px) 15px;
  }

  .msc-cy-hero-facts strong {
    font-size: clamp(1.18rem, 1.55vw, 1.72rem);
  }
}

/* Middle desktop / laptop: keep the hero full, but not overflowing.
   This is the band where 13.6" screens usually land. */
@media (min-width: 1180px) and (max-width: 1540px) {
  .msc-cy-hero {
    padding-top: clamp(24px, 3.7vh, 44px);
    padding-bottom: clamp(24px, 3.7vh, 44px);
  }

  .msc-cy-hero-grid {
    gap: clamp(28px, 3.4vw, 58px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.55rem, 5.55vw, 7.05rem);
  }

  .cy-hero-proof span {
    min-height: clamp(82px, 9.4vh, 100px);
  }

  .cy-hero-pathways span {
    min-height: clamp(66px, 7.5vh, 82px);
  }

  .msc-cy-video-trigger img {
    height: clamp(255px, 25vw, 350px);
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.28rem, 1.62vw, 1.78rem);
  }
}

/* Short browser heights: compress gracefully before anything can go below
   the fold. */
@media (min-width: 1180px) and (max-height: 840px) {
  .msc-cy-hero {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.25rem, 5.15vw, 6.65rem);
  }

  .msc-cy-hero .lede {
    font-size: clamp(1rem, 1.06vw, 1.12rem);
    line-height: 1.18;
  }

  .cy-hero-sublede {
    font-size: clamp(.98rem, 1vw, 1.06rem);
    line-height: 1.17;
  }

  .cy-hero-proof {
    margin-top: 11px;
  }

  .cy-hero-proof span {
    min-height: 74px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cy-hero-pathways {
    margin-top: 8px;
  }

  .cy-hero-pathways span {
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .msc-cy-video-trigger img {
    height: clamp(220px, 22vw, 295px);
  }

  .msc-cy-hero-intro {
    padding-top: 12px;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.14rem, 1.45vw, 1.55rem);
  }

  .msc-cy-hero-intro p {
    font-size: .92rem;
    line-height: 1.15;
  }

  .msc-cy-hero-facts span {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

/* Very short desktop windows: hide only the secondary teaching-block row.
   The core hero remains complete and the page never spills. */
@media (min-width: 1180px) and (max-height: 720px) {
  .cy-hero-pathways {
    display: none;
  }

  .msc-cy-video-trigger img {
    height: clamp(205px, 21vw, 260px);
  }
}

/* Larger monitors: scale back up so the page does not look small or lost. */
@media (min-width: 1541px) and (min-height: 900px) {
  .msc-cy-hero h1 {
    font-size: clamp(5.35rem, 5.95vw, 8.75rem);
  }

  .msc-cy-video-trigger img {
    height: clamp(335px, 26vw, 475px);
  }

  .cy-hero-proof span {
    min-height: clamp(100px, 9.5vh, 126px);
  }

  .cy-hero-pathways span {
    min-height: clamp(82px, 7.8vh, 104px);
  }
}
/* ================================================================
   V6 Cyber hero: match Data Engineering density on laptop screens.
   The Cyber title is shorter, so the first fold must keep the secondary
   225h/200h row visible instead of hiding it on MacBook-size heights.
================================================================ */

/* 13.6" and medium desktop: keep the Cyber hero dense and anchored like
   the Data Engineering hero, with the teaching-block row visible. */
@media (min-width: 1180px) and (max-width: 1540px) {
  .msc-cy-hero {
    min-height: calc(100svh - var(--topbar));
    display: flex;
    align-items: center;
    padding-top: clamp(20px, 3.2vh, 38px);
    padding-bottom: clamp(20px, 3.2vh, 38px);
  }

  .msc-cy-hero-grid {
    width: 100%;
    align-items: center;
    gap: clamp(30px, 3.8vw, 64px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.45rem, 5.35vw, 6.95rem);
    line-height: .91;
  }

  .msc-cy-hero .lede {
    margin-top: 10px;
    line-height: 1.21;
  }

  .cy-hero-sublede {
    margin-top: 8px;
    line-height: 1.18;
  }

  .msc-cy-hero .hero-actions {
    margin-top: 12px;
  }

  .cy-hero-proof {
    margin-top: 12px;
    gap: 8px;
  }

  .cy-hero-proof span {
    min-height: 78px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .cy-hero-proof strong {
    font-size: .98rem;
    line-height: 1.04;
  }

  .cy-hero-proof small {
    font-size: .80rem;
    line-height: 1.11;
  }

  .cy-hero-pathways {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
    gap: 8px;
  }

  .cy-hero-pathways span {
    min-height: 60px;
    padding: 8px 10px;
    border-radius: 15px;
  }

  .cy-hero-pathways strong {
    font-size: clamp(1.02rem, 1.25vw, 1.32rem);
    line-height: .94;
  }

  .cy-hero-pathways small {
    font-size: .62rem;
    line-height: 1.07;
  }

  .msc-cy-video-trigger img {
    height: clamp(225px, 22.8vw, 300px);
  }

  .msc-cy-hero-intro {
    padding: 12px 15px 3px;
    gap: 6px;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.14rem, 1.44vw, 1.52rem);
    line-height: 1.00;
  }

  .msc-cy-hero-intro p {
    font-size: clamp(.86rem, .94vw, .98rem);
    line-height: 1.15;
  }

  .msc-cy-hero-facts span {
    padding: 9px 12px;
  }

  .msc-cy-hero-facts strong {
    font-size: clamp(1.06rem, 1.32vw, 1.38rem);
  }

  .msc-cy-hero-facts small {
    font-size: .70rem;
    line-height: 1.05;
  }
}

/* Short laptop browser viewports: do NOT hide the secondary row; compress
   it. This is the missing density compared with the Data Engineering page. */
@media (min-width: 1180px) and (max-width: 1540px) and (max-height: 760px) {
  .msc-cy-hero {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.08rem, 4.9vw, 6.2rem);
  }

  .msc-cy-hero .lede {
    font-size: clamp(.98rem, 1.02vw, 1.08rem);
    line-height: 1.16;
  }

  .cy-hero-sublede {
    font-size: clamp(.94rem, .98vw, 1.02rem);
    line-height: 1.14;
  }

  .cy-hero-proof {
    margin-top: 9px;
  }

  .cy-hero-proof span {
    min-height: 68px;
    padding: 8px 10px;
  }

  .cy-hero-proof strong {
    font-size: .92rem;
  }

  .cy-hero-proof small {
    font-size: .74rem;
  }

  .cy-hero-pathways {
    display: grid !important;
    margin-top: 7px;
    gap: 7px;
  }

  .cy-hero-pathways span {
    min-height: 48px;
    padding: 7px 9px;
  }

  .cy-hero-pathways strong {
    font-size: clamp(.92rem, 1.06vw, 1.12rem);
  }

  .cy-hero-pathways small {
    font-size: .58rem;
  }

  .msc-cy-video-trigger img {
    height: clamp(190px, 20.5vw, 245px);
  }

  .msc-cy-hero-intro {
    padding: 10px 14px 2px;
  }

  .msc-cy-hero-intro span {
    padding: 4px 8px;
    font-size: .62rem;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.02rem, 1.30vw, 1.34rem);
  }

  .msc-cy-hero-intro p {
    font-size: .84rem;
  }

  .msc-cy-hero-facts span {
    padding: 8px 11px;
  }
}

/* Very short desktop windows: keep the three main cards and metrics row,
   but let the picture shrink first. */
@media (min-width: 1180px) and (max-height: 680px) {
  .cy-hero-pathways {
    display: grid !important;
  }

  .msc-cy-video-trigger img {
    height: clamp(170px, 18vw, 220px);
  }
}

/* Large monitors: scale up again so Cyber does not look smaller than the
   other MSc pages, while preserving proportions. */
@media (min-width: 1541px) and (min-height: 860px) {
  .msc-cy-hero {
    min-height: calc(100svh - var(--topbar));
    display: flex;
    align-items: center;
  }

  .msc-cy-hero-grid {
    align-items: center;
  }

  .msc-cy-hero h1 {
    font-size: clamp(5.65rem, 6.28vw, 9.1rem);
  }

  .cy-hero-proof span {
    min-height: clamp(100px, 9.2vh, 126px);
  }

  .cy-hero-pathways {
    display: grid;
  }

  .cy-hero-pathways span {
    min-height: clamp(78px, 7.4vh, 102px);
  }

  .msc-cy-video-trigger img {
    height: clamp(330px, 25.5vw, 480px);
  }
}
/* ================================================================
   V7 Cyber hero fill, do not shrink.
   The problem was not excess content; it was that "MSc in Cyber Security"
   is much shorter than the other MSc hero titles. This version fills the
   first fold by using an intentional two-line title and restoring a strong
   hero scale, instead of shrinking the whole layout.
================================================================ */
.cy-title-break {
  display: block;
}

@media (min-width: 1180px) {
  .msc-cy-hero {
    min-height: calc(100svh - var(--topbar));
    display: flex;
    align-items: center;
    padding-top: clamp(28px, 4vh, 56px);
    padding-bottom: clamp(28px, 4vh, 56px);
  }

  .msc-cy-hero-grid {
    width: 100%;
    align-items: center;
    gap: clamp(34px, 4.2vw, 80px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.55rem, 5.35vw, 7.65rem);
    line-height: .86;
    max-width: 980px;
  }

  .msc-cy-hero .lede {
    margin-top: clamp(12px, 1.45vh, 18px);
    max-width: 980px;
    font-size: clamp(1.05rem, 1.14vw, 1.22rem);
    line-height: 1.24;
  }

  .cy-hero-sublede {
    margin-top: 9px;
    font-size: clamp(1rem, 1.08vw, 1.16rem);
    line-height: 1.2;
  }

  .msc-cy-hero .hero-actions {
    margin-top: clamp(13px, 1.6vh, 19px);
  }

  .cy-hero-proof {
    margin-top: clamp(14px, 1.75vh, 20px);
    gap: 10px;
  }

  .cy-hero-proof span {
    min-height: clamp(82px, 9vh, 104px);
    padding: clamp(12px, 1.35vh, 16px) 14px;
  }

  .cy-hero-pathways {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(11px, 1.35vh, 16px);
    gap: 8px;
  }

  .cy-hero-pathways span {
    min-height: clamp(64px, 7vh, 84px);
    padding: clamp(9px, 1.1vh, 13px) 12px;
  }

  .cy-hero-pathways strong {
    font-size: clamp(1.08rem, 1.42vw, 1.62rem);
  }

  .msc-cy-video-trigger img {
    height: clamp(285px, 26vw, 420px);
  }

  .msc-cy-hero-intro {
    padding: clamp(15px, 1.65vh, 20px) 18px 5px;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.28rem, 1.68vw, 2.04rem);
  }

  .msc-cy-hero-intro p {
    font-size: clamp(.96rem, 1.03vw, 1.12rem);
  }

  .msc-cy-hero-facts span {
    padding: clamp(11px, 1.25vh, 16px) 15px;
  }
}

/* MacBook / medium desktop: keep density and the two-row title, while
   only compressing enough to remain within the viewport. */
@media (min-width: 1180px) and (max-width: 1540px) {
  .msc-cy-hero {
    padding-top: clamp(22px, 3.35vh, 42px);
    padding-bottom: clamp(22px, 3.35vh, 42px);
  }

  .msc-cy-hero-grid {
    gap: clamp(30px, 3.6vw, 64px);
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.25rem, 5.05vw, 6.6rem);
    line-height: .86;
  }

  .cy-hero-proof span {
    min-height: clamp(76px, 8.2vh, 94px);
  }

  .cy-hero-pathways span {
    min-height: clamp(58px, 6.6vh, 76px);
  }

  .msc-cy-video-trigger img {
    height: clamp(255px, 24vw, 335px);
  }
}

/* Short laptop browser heights: compress cards and image, but keep the
   hero filled and keep the teaching-block row visible. */
@media (min-width: 1180px) and (max-width: 1540px) and (max-height: 760px) {
  .msc-cy-hero {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .msc-cy-hero h1 {
    font-size: clamp(3.85rem, 4.62vw, 6.0rem);
  }

  .msc-cy-hero .lede {
    font-size: clamp(.98rem, 1vw, 1.07rem);
    line-height: 1.15;
  }

  .cy-hero-sublede {
    font-size: clamp(.93rem, .98vw, 1.02rem);
    line-height: 1.13;
  }

  .cy-hero-proof {
    margin-top: 9px;
  }

  .cy-hero-proof span {
    min-height: 64px;
    padding: 8px 10px;
  }

  .cy-hero-proof strong {
    font-size: .91rem;
  }

  .cy-hero-proof small {
    font-size: .73rem;
  }

  .cy-hero-pathways {
    display: grid !important;
    margin-top: 7px;
  }

  .cy-hero-pathways span {
    min-height: 48px;
    padding: 7px 9px;
  }

  .cy-hero-pathways strong {
    font-size: clamp(.92rem, 1.06vw, 1.12rem);
  }

  .cy-hero-pathways small {
    font-size: .58rem;
  }

  .msc-cy-video-trigger img {
    height: clamp(190px, 20vw, 240px);
  }

  .msc-cy-hero-intro {
    padding: 10px 14px 2px;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1rem, 1.28vw, 1.32rem);
  }

  .msc-cy-hero-intro p {
    font-size: .84rem;
    line-height: 1.13;
  }

  .msc-cy-hero-facts span {
    padding: 8px 11px;
  }
}

/* Larger monitors: scale up, like the other MSc pages, so the Cyber hero
   does not look stranded in empty space. */
@media (min-width: 1541px) and (min-height: 860px) {
  .msc-cy-hero {
    min-height: calc(100svh - var(--topbar));
    display: flex;
    align-items: center;
  }

  .msc-cy-hero h1 {
    font-size: clamp(5.2rem, 5.75vw, 8.8rem);
  }

  .msc-cy-video-trigger img {
    height: clamp(340px, 26vw, 500px);
  }

  .cy-hero-proof span {
    min-height: clamp(96px, 8.7vh, 122px);
  }

  .cy-hero-pathways span {
    min-height: clamp(76px, 7vh, 100px);
  }
}
/* ================================================================
   V8 Cyber hero correction — fill properly.
   Stop shrinking: the Cyber hero needs a larger title, larger card scale,
   and a taller visual rhythm to match the perceived density of the Data
   Science & AI / Data Engineering heroes.
================================================================ */

@media (min-width: 1180px) {
  .cy-title-break {
    display: block !important;
  }

  .msc-cy-hero {
    min-height: calc(100svh - var(--topbar)) !important;
    display: flex !important;
    align-items: center !important;
    padding-top: clamp(34px, 4.8vh, 70px) !important;
    padding-bottom: clamp(34px, 4.8vh, 70px) !important;
  }

  .msc-cy-hero-grid {
    width: 100% !important;
    align-items: center !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(400px, .52fr) !important;
    gap: clamp(38px, 4.4vw, 86px) !important;
  }

  .msc-cy-hero h1 {
    font-size: clamp(6.15rem, 7.15vw, 10.2rem) !important;
    line-height: .825 !important;
    letter-spacing: -.085em !important;
    max-width: 1180px !important;
  }

  .msc-cy-hero .lede {
    max-width: 1040px !important;
    margin-top: clamp(14px, 1.7vh, 22px) !important;
    font-size: clamp(1.08rem, 1.20vw, 1.30rem) !important;
    line-height: 1.24 !important;
  }

  .cy-hero-sublede {
    margin-top: clamp(9px, 1.2vh, 13px) !important;
    font-size: clamp(1.04rem, 1.12vw, 1.20rem) !important;
    line-height: 1.20 !important;
  }

  .msc-cy-hero .hero-actions {
    margin-top: clamp(14px, 1.9vh, 22px) !important;
  }

  .cy-hero-proof {
    margin-top: clamp(16px, 2vh, 24px) !important;
    gap: 11px !important;
  }

  .cy-hero-proof span {
    min-height: clamp(102px, 11vh, 132px) !important;
    padding: clamp(14px, 1.6vh, 18px) 16px !important;
    border-radius: 20px !important;
  }

  .cy-hero-proof strong {
    font-size: clamp(1.08rem, 1.16vw, 1.27rem) !important;
    line-height: 1.04 !important;
  }

  .cy-hero-proof small {
    font-size: clamp(.88rem, .94vw, 1rem) !important;
    line-height: 1.15 !important;
  }

  .cy-hero-pathways {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-top: clamp(12px, 1.55vh, 18px) !important;
    gap: 9px !important;
  }

  .cy-hero-pathways span {
    min-height: clamp(78px, 8.1vh, 102px) !important;
    padding: clamp(11px, 1.3vh, 15px) 13px !important;
    border-radius: 18px !important;
  }

  .cy-hero-pathways strong {
    font-size: clamp(1.22rem, 1.55vw, 1.82rem) !important;
    line-height: .94 !important;
  }

  .cy-hero-pathways small {
    font-size: clamp(.70rem, .76vw, .82rem) !important;
    line-height: 1.10 !important;
  }

  .msc-cy-video-trigger img {
    height: clamp(340px, 27.5vw, 500px) !important;
  }

  .msc-cy-hero-intro {
    padding: clamp(18px, 2vh, 24px) 20px 7px !important;
    gap: 9px !important;
  }

  .msc-cy-hero-intro span {
    padding: 7px 11px !important;
    font-size: .70rem !important;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.48rem, 1.9vw, 2.35rem) !important;
    line-height: 1.00 !important;
  }

  .msc-cy-hero-intro p {
    font-size: clamp(1rem, 1.08vw, 1.18rem) !important;
    line-height: 1.19 !important;
  }

  .msc-cy-hero-facts span {
    padding: clamp(14px, 1.55vh, 18px) 16px !important;
  }

  .msc-cy-hero-facts strong {
    font-size: clamp(1.32rem, 1.72vw, 2rem) !important;
  }

  .msc-cy-hero-facts small {
    font-size: clamp(.76rem, .82vw, .88rem) !important;
  }
}

/* MacBook / medium desktop: still large enough to feel designed, but
   constrained enough not to spill. */
@media (min-width: 1180px) and (max-width: 1540px) {
  .msc-cy-hero {
    padding-top: clamp(24px, 3.8vh, 48px) !important;
    padding-bottom: clamp(24px, 3.8vh, 48px) !important;
  }

  .msc-cy-hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .52fr) !important;
    gap: clamp(32px, 3.9vw, 68px) !important;
  }

  .msc-cy-hero h1 {
    font-size: clamp(5.3rem, 6.55vw, 8.45rem) !important;
    line-height: .825 !important;
  }

  .cy-hero-proof span {
    min-height: clamp(92px, 9.8vh, 116px) !important;
    padding: 12px 14px !important;
  }

  .cy-hero-pathways span {
    min-height: clamp(68px, 7.3vh, 86px) !important;
    padding: 10px 11px !important;
  }

  .msc-cy-video-trigger img {
    height: clamp(292px, 25.5vw, 380px) !important;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.32rem, 1.72vw, 1.95rem) !important;
  }
}

/* Short laptop browser chrome: this is the only place where we compress.
   We keep all rows visible, but reduce their vertical footprint. */
@media (min-width: 1180px) and (max-width: 1540px) and (max-height: 780px) {
  .msc-cy-hero {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .msc-cy-hero h1 {
    font-size: clamp(4.75rem, 5.85vw, 7.35rem) !important;
  }

  .msc-cy-hero .lede {
    margin-top: 10px !important;
    font-size: clamp(1rem, 1.05vw, 1.11rem) !important;
    line-height: 1.16 !important;
  }

  .cy-hero-sublede {
    margin-top: 7px !important;
    font-size: clamp(.96rem, 1vw, 1.05rem) !important;
    line-height: 1.14 !important;
  }

  .msc-cy-hero .hero-actions {
    margin-top: 10px !important;
  }

  .cy-hero-proof {
    margin-top: 10px !important;
  }

  .cy-hero-proof span {
    min-height: 76px !important;
    padding: 9px 11px !important;
  }

  .cy-hero-proof strong {
    font-size: .96rem !important;
  }

  .cy-hero-proof small {
    font-size: .76rem !important;
  }

  .cy-hero-pathways {
    display: grid !important;
    margin-top: 8px !important;
  }

  .cy-hero-pathways span {
    min-height: 56px !important;
    padding: 8px 9px !important;
  }

  .cy-hero-pathways strong {
    font-size: clamp(1rem, 1.18vw, 1.18rem) !important;
  }

  .cy-hero-pathways small {
    font-size: .60rem !important;
  }

  .msc-cy-video-trigger img {
    height: clamp(235px, 22.5vw, 300px) !important;
  }

  .msc-cy-hero-intro {
    padding: 11px 14px 3px !important;
  }

  .msc-cy-hero-intro strong {
    font-size: clamp(1.10rem, 1.42vw, 1.42rem) !important;
  }

  .msc-cy-hero-intro p {
    font-size: .86rem !important;
    line-height: 1.14 !important;
  }

  .msc-cy-hero-facts span {
    padding: 8px 11px !important;
  }

  .msc-cy-hero-facts strong {
    font-size: clamp(1.05rem, 1.35vw, 1.42rem) !important;
  }
}

/* Large monitors: scale up like the other MSc hero pages rather than
   floating in empty space. */
@media (min-width: 1541px) and (min-height: 860px) {
  .msc-cy-hero h1 {
    font-size: clamp(7.15rem, 7.45vw, 11.25rem) !important;
  }

  .msc-cy-video-trigger img {
    height: clamp(390px, 27vw, 560px) !important;
  }

  .cy-hero-proof span {
    min-height: clamp(112px, 10vh, 142px) !important;
  }

  .cy-hero-pathways span {
    min-height: clamp(88px, 8vh, 112px) !important;
  }
}


/* V32 — desktop hero alignment: keep Cyber's richer hero content but lift the
   first fold so it aligns visually with the other MSc programme pages. */
@media (min-width: 1180px) {
  .msc-cy-page .msc-cy-hero.viewport-section {
    align-items: start;
  }
  .msc-cy-hero {
    padding-top: clamp(18px, 3.1vh, 38px);
    padding-bottom: clamp(28px, 4vh, 52px);
  }
  .msc-cy-hero-grid {
    align-items: start;
    transform: translateY(clamp(-28px, -2.2vh, -14px));
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .msc-cy-hero {
    padding-top: clamp(24px, 3.4vh, 46px);
  }
  .msc-cy-hero-grid {
    transform: translateY(clamp(-34px, -2.4vh, -18px));
  }
}

@media (max-width: 1179px) {
  .msc-cy-hero-grid {
    transform: none;
  }
}
