:root {
  --dos-ink: #061f2a;
  --dos-ink-2: #0c3340;
  --dos-muted: #5f737b;
  --dos-line: #dbe5e8;
  --dos-soft: #f4f8f9;
  --dos-soft-2: #eef4f6;
  --dos-paper: #ffffff;
  --dos-magenta: #910048;
  --dos-teal: #6cc6d0;
  --dos-gold: #d8a52d;
  --dos-shadow: 0 22px 58px rgba(6, 31, 42, .12);
  --dos-radius: 30px;
}

.dos-page {
  background:
    radial-gradient(circle at 10% 2%, rgba(108, 198, 208, .16), transparent 27rem),
    radial-gradient(circle at 90% 4%, rgba(145, 0, 72, .10), transparent 25rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 38%, #ffffff 100%);
  color: var(--dos-ink);
}

.dos-subnav {
  background: rgba(247, 251, 252, .96);
}

.dos-subnav .programme-label strong {
  color: var(--dos-magenta);
}

.dos-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.dos-hero {
  min-height: auto;
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 76px) 0 clamp(46px, 6vw, 74px);
  border-bottom: 1px solid rgba(219, 229, 232, .86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(244, 248, 249, .96)),
    radial-gradient(circle at 76% 16%, rgba(108, 198, 208, .24), transparent 28rem),
    radial-gradient(circle at 10% 72%, rgba(145, 0, 72, .10), transparent 24rem);
}

.dos-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,0) 58%),
    repeating-linear-gradient(135deg, rgba(6,31,42,.035) 0 1px, transparent 1px 22px);
  opacity: .62;
}

.dos-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, .72fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.dos-hero-copy {
  color: var(--dos-ink);
}

.dos-kicker,
.dos-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(145, 0, 72, .08);
  border: 1px solid rgba(145, 0, 72, .16);
  color: var(--dos-magenta);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 16px;
}

.dos-hero h1,
.dos-section h2,
.dos-final h2 {
  margin: 0;
  line-height: .98;
  letter-spacing: -.06em;
}

.dos-hero h1 {
  font-size: clamp(3.2rem, 6.3vw, 6.9rem);
  max-width: 870px;
  color: var(--dos-ink);
}

.dos-hero h1 span,
.dos-section h2 span,
.dos-final h2 span {
  color: var(--dos-magenta);
}

.dos-lede {
  color: var(--dos-ink-2);
  font-size: clamp(1.08rem, 1.62vw, 1.36rem);
  line-height: 1.46;
  max-width: 790px;
  margin: 22px 0 0;
}

.dos-lede.secondary {
  color: var(--dos-muted);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  max-width: 740px;
}

.dos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.dos-hero .btn-line,
.dos-hero .btn-soft {
  color: var(--dos-ink) !important;
  border-color: rgba(6, 31, 42, .16) !important;
  background: rgba(255, 255, 255, .72) !important;
}

.dos-hero .btn-line:hover,
.dos-hero .btn-soft:hover,
.dos-hero .btn-line:focus-visible,
.dos-hero .btn-soft:focus-visible {
  background: #fff !important;
  color: var(--dos-magenta) !important;
}

.dos-hero-media {
  display: grid;
  gap: 14px;
}

.dos-video-card {
  border: 1px solid rgba(219, 229, 232, .96);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 64px rgba(6, 31, 42, .18);
}

.dos-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #061f2a;
}

.dos-video-caption {
  padding: 16px 18px 18px;
  display: grid;
  gap: 4px;
}

.dos-video-caption strong {
  color: var(--dos-ink);
  font-size: 1.1rem;
  line-height: 1.1;
}

.dos-video-caption span {
  color: var(--dos-muted);
  font-weight: 740;
  font-size: .95rem;
}

.dos-hero-proof {
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 3vw, 34px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dos-proof {
  border: 1px solid rgba(219, 229, 232, .88);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  padding: 16px;
  box-shadow: 0 14px 34px rgba(6, 31, 42, .07);
}

.dos-proof strong {
  display: block;
  color: var(--dos-magenta);
  font-size: 1.05rem;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.dos-proof span {
  color: var(--dos-muted);
  font-weight: 720;
  line-height: 1.35;
}

.dos-section {
  padding: clamp(58px, 7vw, 96px) 0;
  border-top: 1px solid rgba(219, 229, 232, .82);
}

.dos-section-head {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .55fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.dos-section h2,
.dos-final h2 {
  color: var(--dos-ink);
  font-size: clamp(2.35rem, 4.6vw, 5.35rem);
}

.dos-section-head p {
  margin: 0;
  color: var(--dos-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.dos-role-grid,
.dos-support-grid {
  display: grid;
  gap: 14px;
}

.dos-role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.dos-card,
.dos-role-card,
.dos-support-card,
.dos-quote-card,
.dos-team-card {
  border: 1px solid var(--dos-line);
  border-radius: var(--dos-radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 38px rgba(6, 31, 42, .08);
  padding: clamp(18px, 2vw, 24px);
}

.dos-role-card {
  min-height: 230px;
  display: grid;
  align-content: start;
}

.dos-card-label {
  color: var(--dos-magenta);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
}

.dos-card h3,
.dos-role-card h3,
.dos-support-card h3,
.dos-quote-card h3,
.dos-team-card h3 {
  margin: 10px 0 9px;
  color: var(--dos-ink);
  font-size: clamp(1.3rem, 2vw, 1.82rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.dos-card p,
.dos-role-card p,
.dos-support-card p,
.dos-quote-card p,
.dos-team-card p,
.dos-list li {
  color: var(--dos-muted);
  line-height: 1.5;
  font-weight: 640;
}

.dos-journey {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

.dos-photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.dos-photo-row figure {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(219, 229, 232, .92);
  background: #fff;
  box-shadow: 0 16px 40px rgba(6, 31, 42, .10);
}

.dos-photo-row img {
  width: 100%;
  height: auto;
  max-height: 360px;
  display: block;
  object-fit: contain;
  background: #eef4f6;
}

.dos-quality-panel {
  border: 1px solid rgba(219, 229, 232, .92);
  border-radius: 34px;
  padding: clamp(22px, 3.4vw, 40px);
  background:
    radial-gradient(circle at 90% 8%, rgba(145, 0, 72, .08), transparent 24rem),
    radial-gradient(circle at 12% 16%, rgba(108, 198, 208, .18), transparent 24rem),
    rgba(255, 255, 255, .96);
  box-shadow: var(--dos-shadow);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, .78fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.dos-quality-panel h2 {
  font-size: clamp(2.1rem, 4.1vw, 4.8rem);
}

.dos-quality-panel p {
  color: var(--dos-muted);
  font-size: 1.06rem;
  line-height: 1.58;
  margin: 18px 0 0;
  max-width: 720px;
}

.dos-quality-grid {
  display: grid;
  gap: 12px;
}

.dos-quality-grid div {
  border: 1px solid rgba(219, 229, 232, .92);
  background: rgba(255, 255, 255, .78);
  border-radius: 22px;
  padding: 17px;
}

.dos-quality-grid strong {
  display: block;
  color: var(--dos-magenta);
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.dos-quality-grid span {
  color: var(--dos-muted);
  font-weight: 700;
  line-height: 1.4;
}

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

.dos-team-card {
  padding: 0;
  overflow: hidden;
  display: grid;
}

.dos-team-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--dos-soft-2);
}

.dos-team-copy {
  padding: 18px;
}

.dos-team-copy h3 {
  margin-top: 0;
}

.dos-team-copy p {
  margin: 0 0 8px;
}

.dos-campus-chip {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  color: var(--dos-ink-2);
  background: var(--dos-soft-2);
  border: 1px solid var(--dos-line);
  font-size: .83rem;
}

.dos-voices-head {
  margin-bottom: 24px;
}

.dos-quote-grid {
  columns: 3 280px;
  column-gap: 14px;
}

.dos-quote-card {
  display: inline-block;
  width: 100%;
  min-height: 0;
  margin: 0 0 14px;
  padding: clamp(16px, 1.65vw, 22px);
  break-inside: avoid;
  background: rgba(255, 255, 255, .94);
  border-radius: 26px;
}

.dos-quote-card blockquote {
  margin: 0;
  color: var(--dos-ink-2);
  font-size: clamp(.96rem, 1.05vw, 1.05rem);
  line-height: 1.45;
  font-weight: 700;
}

.dos-quote-card cite {
  display: block;
  margin-top: 14px;
  color: var(--dos-magenta);
  font-style: normal;
  font-weight: 900;
  line-height: 1.3;
}

.dos-quote-featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 248, 249, .96));
  border-color: rgba(145, 0, 72, .18);
  box-shadow: 0 18px 42px rgba(145, 0, 72, .08);
}

.dos-final {
  padding: clamp(62px, 8vw, 104px) 0;
}

.dos-final-card {
  border-radius: 38px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(216, 165, 45, .22), transparent 22rem),
    radial-gradient(circle at 10% 8%, rgba(108, 198, 208, .26), transparent 24rem),
    linear-gradient(135deg, #061f2a, #0c3340 55%, #910048);
  box-shadow: var(--dos-shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.dos-final .dos-kicker {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}

.dos-final h2 {
  color: #fff;
}

.dos-final p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 780px;
}

.dos-final .btn-line {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .38) !important;
  background: rgba(255, 255, 255, .08) !important;
}

.dos-final .btn-line:hover,
.dos-final .btn-line:focus-visible {
  background: rgba(255, 255, 255, .15) !important;
}

@media (max-width: 1120px) {
  .dos-hero-grid,
  .dos-section-head,
  .dos-quality-panel,
  .dos-final-card {
    grid-template-columns: 1fr;
  }

  .dos-role-grid,
  .dos-team-grid,
  .dos-photo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dos-support-grid,
  .dos-hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dos-video-card {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .dos-shell {
    width: min(100% - 28px, 1180px);
  }

  .dos-hero {
    padding-top: 30px;
  }

  .dos-role-grid,
  .dos-support-grid,
  .dos-team-grid,
  .dos-photo-row,
  .dos-hero-proof {
    grid-template-columns: 1fr;
  }

  .dos-section h2,
  .dos-final h2,
  .dos-hero h1 {
    letter-spacing: -.052em;
  }

  .dos-photo-row img {
    max-height: none;
  }

  .dos-quote-grid {
    columns: 1;
  }

  .dos-final-card {
    border-radius: 28px;
  }
}

/* V77 — admissions role refinement */
.dos-hero-proof {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dos-admissions-panel {
  border: 1px solid rgba(219, 229, 232, .92);
  border-radius: 34px;
  padding: clamp(22px, 3.4vw, 42px);
  background:
    radial-gradient(circle at 92% 10%, rgba(216, 165, 45, .12), transparent 22rem),
    radial-gradient(circle at 10% 16%, rgba(108, 198, 208, .16), transparent 23rem),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 251, 252, .96));
  box-shadow: 0 20px 54px rgba(6, 31, 42, .10);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .82fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.dos-admissions-copy h2 {
  margin: 0;
  color: var(--dos-ink);
  font-size: clamp(2.15rem, 4.25vw, 4.95rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.dos-admissions-copy h2 span {
  color: var(--dos-magenta);
}

.dos-admissions-copy p {
  color: var(--dos-muted);
  font-size: 1.06rem;
  line-height: 1.58;
  margin: 18px 0 0;
  max-width: 760px;
  font-weight: 640;
}

.dos-admissions-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dos-admissions-cards div {
  border: 1px solid rgba(219, 229, 232, .92);
  background: rgba(255, 255, 255, .86);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(6, 31, 42, .055);
}

.dos-admissions-cards strong {
  display: block;
  color: var(--dos-magenta);
  margin-bottom: 5px;
  font-size: 1.03rem;
  line-height: 1.12;
}

.dos-admissions-cards span {
  display: block;
  color: var(--dos-muted);
  font-weight: 700;
  line-height: 1.4;
}

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

  .dos-admissions-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dos-hero-proof,
  .dos-admissions-cards {
    grid-template-columns: 1fr;
  }
}


/* V78 — Direction of Studies video staging and docked page navigation support.
   Jennifer's sound-on video follows the same click-to-open modal pattern used
   by the campus and programme sound videos, while the hero remains calm and
   editorial until the visitor chooses to play it. */
.dos-video-opener {
  appearance: none;
  border: 1px solid rgba(219, 229, 232, .96);
  padding: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dos-video-opener:hover,
.dos-video-opener:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(145, 0, 72, .28);
  box-shadow: 0 34px 74px rgba(6, 31, 42, .20);
  outline: none;
}

.dos-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #061f2a;
  aspect-ratio: 16 / 9;
}

.dos-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.dos-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,31,42,.02), rgba(6,31,42,.48));
  pointer-events: none;
}

.dos-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(70px, 8vw, 104px);
  height: clamp(70px, 8vw, 104px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1;
  padding-left: .16em;
  box-shadow: 0 18px 45px rgba(6,31,42,.28);
}

.dos-video-card .video-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  color: var(--dos-ink);
  font-weight: 900;
  font-size: .82rem;
  box-shadow: 0 10px 24px rgba(6,31,42,.16);
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 31, 42, .78);
  cursor: pointer;
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  border-radius: 28px;
  background: #061f2a;
  box-shadow: 0 34px 90px rgba(0,0,0,.36);
  overflow: hidden;
}

.video-modal-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #061f2a;
}

.video-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(6,31,42,.72);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

html.has-video-modal,
html.has-video-modal body {
  overflow: hidden;
}

/* V152 — Direction of Studies translated-content containment and final CTA balance.
   Keeps the established visual style while preventing long EN/FR/ES-MX headings
   and CTA buttons from colliding on 13–14 inch laptop viewports. */
.dos-page {
  overflow-x: hidden;
}

.dos-admissions-panel,
.dos-final-card {
  overflow: hidden;
}

.dos-admissions-copy,
.dos-admissions-cards,
.dos-final-card > div,
.dos-final .dos-actions {
  min-width: 0;
}

.dos-admissions-copy h2 {
  font-size: clamp(2.1rem, 3.72vw, 4.35rem);
  max-width: 100%;
}

.dos-admissions-cards strong,
.dos-admissions-cards span {
  overflow-wrap: anywhere;
}

.dos-final-card {
  grid-template-columns: minmax(0, 1fr) minmax(270px, .34fr);
  gap: clamp(18px, 3vw, 32px);
}

.dos-final h2 {
  font-size: clamp(2.25rem, 4.05vw, 4.85rem);
  max-width: 900px;
}

.dos-final .dos-actions {
  display: grid;
  gap: 10px;
  margin-top: 0;
  align-content: center;
}

.dos-final .dos-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1200px) {
  .dos-admissions-panel,
  .dos-final-card {
    grid-template-columns: 1fr;
  }

  .dos-admissions-copy h2,
  .dos-final h2 {
    max-width: 920px;
  }

  .dos-final .dos-actions {
    max-width: 720px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: stretch;
  }
}

@media (max-width: 760px) {
  .dos-admissions-copy h2,
  .dos-final h2 {
    font-size: clamp(2.1rem, 13.6vw, 3.7rem);
    line-height: 1;
    letter-spacing: -.052em;
  }

  .dos-final .dos-actions {
    grid-template-columns: 1fr;
    max-width: none;
  }
}
