:root {
  --pearl: #eae6de;
  --ivory: var(--pearl);
  --ink: #1b263b;
  --charcoal: #36454f;
  --copy: var(--charcoal);
  --jade: #2d6a4f;
  --cinnabar: #a3262a;
  --gold: #cc9902;
  --line: rgba(27, 38, 59, 0.12);
  --shadow: 0 24px 60px rgba(27, 38, 59, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--pearl); }
body {
  font-family: "Montserrat", sans-serif;
  color: var(--copy);
  background: var(--pearl);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  padding-bottom: 80px;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--pearl);
  padding: 8px 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 5vw;
  background: var(--pearl);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--copy);
}
.brand-mark {
  height: 48px;
  width: auto;
  display: block;
}
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  color: inherit;
}
.wm-primary,
.wm-secondary {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  color: inherit;
}
.wm-primary {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
}
.wm-secondary {
  font-weight: 400;
  font-size: 7.5px;
  letter-spacing: 0.35em;
  margin-top: 5px;
  margin-right: -0.35em;
}
.nav-links {
  display: none;
  gap: 28px;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 5vw;
  top: 64px;
  background: var(--pearl);
  padding: 16px 22px;
  border: 1px solid var(--line);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--jade); }
.nav-item { position: relative; }
.nav-sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}
.nav-links.open .nav-sub {
  display: block;
  padding: 8px 0 4px 14px;
}
.nav-sub a {
  display: block;
  padding: 8px 0;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
  min-width: max-content;
}
.langs {
  display: flex;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.langs button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0.5;
  padding: 0;
}
.langs button.active {
  opacity: 1;
  color: var(--jade);
}
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--cinnabar);
  color: var(--ivory);
  padding: 12px 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
}
.btn-large { padding: 16px 32px; font-size: 12px; }
.btn-secondary {
  background: transparent;
  color: var(--copy);
  border: 1px solid var(--jade);
}
.menu-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--copy);
}

.hero-inner { min-height: 78svh; }
.card .role, .pillar .role {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.form-grid .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--copy);
}
.form-grid .check input { width: auto; margin-top: 4px; }
.card .form-grid input,
.card .form-grid select,
.card .form-grid textarea {
  background: var(--pearl);
  color: var(--copy);
  border-color: var(--line);
}
.card .form-grid .check { color: var(--copy); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  color: var(--ivory);
  overflow: hidden;
  background: var(--ink);
}
.hero-media, .hero-media video, .hero-fallback, .hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-still { z-index: 0; }
[data-page="gallery"] .hero-still {
  object-position: center 12%;
}
.hero-fallback {
  background:
    radial-gradient(1200px 500px at 70% 20%, rgba(204, 153, 2, 0.12), transparent 55%),
    var(--ink);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 38, 59, 0.12) 0%, rgba(27, 38, 59, 0.36) 48%, rgba(27, 38, 59, 0.78) 100%);
}
.hero-inner .hero-media::after {
  background: linear-gradient(180deg, rgba(27, 38, 59, 0.14) 0%, rgba(27, 38, 59, 0.34) 48%, rgba(27, 38, 59, 0.78) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 32px 5vw 72px;
  max-width: 920px;
}
.kicker {
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 16px;
}
.hero .kicker,
.hero-actions .text-link { color: var(--gold); }
.hero .lede { color: rgba(248, 249, 250, 0.88); }
h1, h2, h3 { font-family: "Playfair Display", serif; font-weight: 500; line-height: 1.15; color: var(--gold); }
h1 { font-size: clamp(36px, 7vw, 72px); margin-bottom: 14px; }
h2 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 16px; }
.subhead {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: 14px;
}
.lede {
  font-size: clamp(16px, 2vw, 18px);
  max-width: 52ch;
  color: rgba(248, 249, 250, 0.88);
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero-actions .text-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
}
.hero-actions .text-link-lg {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section { padding: 72px 5vw; background: var(--pearl); }
.section.narrow { max-width: 820px; margin: 0 auto; text-align: center; }
.partners-logos {
  min-height: calc(100svh - 220px);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
  justify-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}
.logo-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 720 / 400;
  width: 100%;
  background: var(--pearl);
  border: 1px solid rgba(204, 153, 2, 0.4);
  text-decoration: none;
  color: inherit;
}
.logo-cell img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto 22px;
}
.jade-rule {
  width: 48px;
  height: 1px;
  background: var(--jade);
  margin: 0 0 28px;
}
.section,
.section p,
.section li,
.faq-item .answer {
  color: var(--copy);
}
.sub { margin-bottom: 28px; }
.hero,
.hero p,
.hero .subhead,
.footer,
.footer p,
.tile {
  color: var(--ivory);
}

.pillars { display: grid; gap: 28px; }
.pillar {
  padding: 8px 0 24px;
  border-top: 1px solid var(--jade);
}
.pillar svg { width: 36px; height: 36px; margin-bottom: 14px; }
.pillar h2, .pillar h3 { font-size: 24px; margin-bottom: 10px; }
.pillar ul { margin: 14px 0 0; padding-left: 18px; }
.pillar li { margin: 8px 0; }

.phases { display: grid; gap: 12px; }
.phase {
  width: 100%;
  text-align: left;
  background: var(--pearl);
  border: 1px solid var(--line);
  padding: 22px;
  cursor: pointer;
  color: inherit;
}
.phase h3 { font-size: 22px; }
.phase p { display: none; margin-top: 12px; }
.phase[aria-expanded="true"] { border-color: var(--gold); }
.phase[aria-expanded="true"] p { display: block; }

.masonry { display: grid; gap: 10px; }
.tile {
  min-height: 220px;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile span {
  position: relative;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(27, 38, 59, 0.72));
}
.masonry.gallery {
  display: block;
  column-count: 1;
  column-gap: 10px;
}
.masonry.gallery .tile {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 0 10px;
  padding: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.masonry.gallery .tile img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: top;
}
.masonry.gallery .tile span {
  position: absolute;
  left: 16px;
  bottom: 14px;
}
@media (min-width: 640px) {
  .masonry.gallery { column-count: 2; }
}
.then-story { max-width: 68ch; margin: 0 0 8px; }
.then-story p { margin: 0 0 14px; }
.then-label {
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 16px;
}
.archive-block { padding-top: 56px; padding-bottom: 24px; }
.archive-block + .archive-block { padding-top: 40px; }
.archive-block .sub { max-width: 62ch; }

.cards { display: grid; gap: 16px; }
.cards.course-stack {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}
.cards.course-stack .card {
  padding: 36px 32px 40px;
  border: 2px solid var(--gold);
}
.course-tagline {
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--gold);
  line-height: 1.3;
  margin: 0 0 18px;
}
.card h4 {
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 22px 0 10px;
}
.cards.course-stack .card p { margin: 0 0 14px; }
.cards.course-stack .card ul { margin: 0 0 8px; }
.card {
  background: var(--pearl);
  color: var(--copy);
  padding: 32px 28px;
  border: 1px solid rgba(204, 153, 2, 0.4);
}
.card .portrait,
.card .portrait-pending {
  display: block;
  width: 50%;
  max-width: 50%;
  margin: 0 0 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.cards.compact-row { margin-top: 16px; }
.card-copy p + p { margin-top: 10px; }
.portrait-pending {
  display: grid;
  place-items: center;
  background: rgba(27, 38, 59, 0.06);
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.card.featured { border-width: 2px; border-color: var(--gold); }
.contact-panels .card {
  border: 2px solid var(--gold);
}
.card h3 { margin: 0 0 12px; color: var(--gold); }
.card .price {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1.4;
  margin: 8px 0 18px;
}
.card .price span { display: block; }
.card ul { padding-left: 18px; margin-bottom: 24px; }
.card li { margin: 8px 0; }
.fine { font-size: 13px; margin-top: 18px; }

.faq-item { border-bottom: 1px solid var(--jade); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 0;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  cursor: pointer;
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item .answer { display: none; padding: 0 0 20px; }
.faq-item[aria-expanded="true"] .answer { display: block; }

.convert {
  background: var(--pearl);
  color: var(--copy);
  text-align: center;
}
.convert,
.convert p,
.convert li { color: var(--copy); }
.convert h2 { color: var(--gold); }
.steps {
  list-style: none;
  max-width: 560px;
  margin: 24px auto 32px;
  text-align: left;
}
.steps li { margin: 10px 0; }
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer {
  background: var(--ink);
  color: rgba(248, 249, 250, 0.82);
  padding: 48px 5vw 28px;
  font-size: 14px;
  text-align: center;
}
.footer .brand {
  display: flex;
  width: 100%;
  justify-content: center;
  justify-self: center;
  margin: 0 auto 10px;
  color: #cc9902;
}
.footer > span {
  display: block;
}
.footer .brand-mark { height: 56px; }
.footer .wm-primary { font-size: 18px; }
.footer .wm-secondary { font-size: 9px; }
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 18px;
  align-items: center;
}
.footer-accredit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 28px auto 0;
  max-width: 520px;
}
.footer-accredit-mark {
  display: block;
  width: min(220px, 42vw);
  background: var(--pearl);
  border: 1px solid var(--gold);
}
.footer-accredit-mark img {
  display: block;
  width: 100%;
  height: auto;
}
.footer a { color: var(--gold); text-decoration: none; }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}
.footer .legal a {
  color: #fff;
  text-decoration: none;
}
.footer .legal a:hover { color: #fff; text-decoration: underline; }
.certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.certs figure {
  margin: 0;
  padding: 16px;
  background: var(--pearl);
  border: 1px solid rgba(27, 38, 59, 0.12);
}
.certs img { width: 100%; height: auto; background: var(--pearl); }
.certs figcaption { margin-top: 12px; font-size: 13px; }
.legal-doc h2 { margin-top: 28px; }
.legal-doc p { margin-top: 12px; }
@media (max-width: 800px) {
  .certs { grid-template-columns: 1fr; }
  .footer { padding-bottom: 96px; }
}
.mobile-apply {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 14px;
  box-shadow: var(--shadow);
}
.nav-cta { display: none; }

dialog {
  border: 0;
  width: min(640px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 18px 20px 16px;
  background: var(--pearl);
  color: var(--copy);
  box-shadow: var(--shadow);
}
#apply h2 { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.15; margin-bottom: 4px; }
#apply > p { font-size: 13px; }
#apply .form-grid { gap: 8px 12px; margin: 10px 0 0; }
#apply .form-grid input,
#apply .form-grid select,
#apply .form-grid textarea { padding: 7px 10px; margin-top: 3px; }
.video-block {
  border: 1px solid var(--line);
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}
.video-block-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.video-note { font-size: 12px; line-height: 1.4; margin: 0; opacity: 0.82; }
@media (min-width: 560px) {
  #apply .form-grid { grid-template-columns: 1fr 1fr; }
  #apply .video-block,
  #apply .dialog-actions { grid-column: 1 / -1; }
}
dialog::backdrop { background: rgba(27, 38, 59, 0.62); }
.form-grid { display: grid; gap: 12px; margin: 18px 0; }
.form-grid label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--pearl);
  color: var(--copy);
  padding: 10px 12px;
  margin-top: 6px;
}
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--jade);
}
.form-status[data-kind="error"] { color: var(--cinnabar); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .menu-toggle, .mobile-apply { display: none; }
  .nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) max-content;
    align-items: center;
  }
  .brand { justify-self: start; }
  .nav-links, .nav-cta { display: flex; }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    min-width: 0;
    gap: 16px;
    justify-self: center;
  }
  .nav-item.has-sub:hover > .nav-sub,
  .nav-item.has-sub:focus-within > .nav-sub {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: max-content;
    padding: 10px 0 0;
    z-index: 50;
  }
  .nav-sub a {
    background: var(--pearl);
    border: 1px solid var(--line);
    padding: 10px 16px;
    white-space: nowrap;
    box-shadow: var(--shadow);
  }
  .nav-end {
    justify-self: end;
    margin-left: 0;
    min-width: max-content;
  }
  .pillars { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .pillars.three { grid-template-columns: repeat(3, 1fr); }
  .pillar { border-top: 0; border-right: 1px solid var(--jade); padding: 0 18px 0 0; }
  .pillar:last-child { border-right: 0; }
  .masonry { grid-template-columns: 1.2fr 1fr; grid-template-rows: 240px 240px; }
  .masonry.gallery,
  .masonry.gallery.archive {
    display: block;
    column-count: 3;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-rows: auto;
  }
  .tile.wide { grid-row: span 2; min-height: 490px; }
  .masonry.gallery .tile.wide,
  .masonry.gallery.archive .tile.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards.triple { grid-template-columns: 1fr 1fr 1fr; }
  .cards.course-stack { grid-template-columns: 1fr; }
  .section { padding: 96px 8vw; }
}

@media (min-width: 1100px) {
  .phases {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
  .phase { min-height: 100%; }
}
