:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #f7f7f5;
  --fg: #3f3f3f;
  --editorial-bg: #0a0a0a;
  --muted: #777777;
  --border: #e0e0e0;
  --accent: #f58220;
  --accent-secondary: #ff7f00;
  --button-primary-bg: #ffffff;
  --button-primary-text: var(--fg);
  --button-primary-border: var(--fg);
  --button-secondary-bg: transparent;
  --button-secondary-text: var(--fg);
  --button-secondary-border: var(--fg);
  --button-hover-bg: var(--fg);
  --button-hover-text: var(--bg);
  --button-hover-border: var(--fg);

  --radius: 10px;
  --container: 1410px;
  --font-display: "Lexend", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-enter: 200ms;
  --duration-exit: 140ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform var(--duration-exit) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.header-shell {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow.muted {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* — Unified card system — */
.card,
.unified-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-enter) var(--ease-out), border-color var(--duration-enter) var(--ease-out);
}

.card:hover,
.unified-card:hover {
  transform: translateY(-4px);
  border-color: var(--muted);
}

.card h3,
.unified-card h3 {
  font-size: 20px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card p,
.unified-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Section background variants */
.section--white {
  background: var(--bg);
}
.section--surface {
  background: var(--surface);
}
.section--dark {
  background: var(--fg);
  color: #fff;
}

/* Card color variants by section background */
.section--white .card,
.section--white .unified-card {
  background: var(--surface);
}

.section--surface .card,
.section--surface .unified-card {
  background: var(--bg);
}

.section--dark .card,
.section--dark .unified-card {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
}

.section--dark .card p,
.section--dark .unified-card p {
  color: color-mix(in srgb, var(--fg) 88%, transparent);
}

/* — Conversion section (orange CTA before footer) — */
.conversion {
  background: var(--accent);
  color: var(--fg);
}

.conversion .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 84px 0;
}

.conversion__copy {
  max-width: 580px;
}

.conversion__copy .eyebrow {
  margin-bottom: 10px;
  color: var(--fg);
}

.conversion__copy h2 {
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.conversion__copy .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
  margin-bottom: 0;
}

.conversion__action {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.conversion__action .cta {
  min-width: 220px;
  border-color: var(--button-primary-border);
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
}

.conversion__action .cta:hover {
  border-color: var(--button-hover-border);
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
}

.conversion__action .cta.secondary {
  border-color: var(--button-secondary-border);
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}

.conversion__action .cta.secondary:hover {
  border-color: var(--button-hover-border);
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
}

@media (max-width: 1000px) {
  .conversion .container {
    padding: 72px 0;
  }

  .conversion__copy {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .conversion .container {
    padding: 60px 0;
  }

  .conversion__action {
    width: 100%;
  }

  .conversion__action .cta {
    width: 100%;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--accent);
}

header .brand {
  margin-left: clamp(6px, 0.8vw, 12px) !important;
}

header .brand-mark {
  display: block !important;
  width: clamp(116px, 26vw, 212px) !important;
  height: auto !important;
  margin-right: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}

.button,
.cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--button-secondary-border);
  border-radius: var(--radius);
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    transform var(--duration-enter) var(--ease-out),
    background-color var(--duration-enter) var(--ease-out),
    border-color var(--duration-enter) var(--ease-out),
    color var(--duration-enter) var(--ease-out);
}

.button:hover,
.cta:hover {
  border-color: var(--button-hover-border);
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
  transform: translateY(-2px);
}

.button:active,
.cta:active {
  transform: translateY(0);
  transition-duration: var(--duration-exit);
}

.button.primary,
.cta.primary {
  border-color: var(--button-primary-border);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.button.inverse,
.cta.inverse {
  border-color: var(--button-primary-border);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.text-link {
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 5px;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

header.is-scrolled {
  box-shadow: 0 8px 28px color-mix(in srgb, var(--fg) 10%, transparent);
}

header[data-shell-header] {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

header[data-shell-header].is-scrolled {
  box-shadow: 0 8px 28px color-mix(in srgb, var(--fg) 10%, transparent);
}

.ms-header__utility {
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.ms-header__utility-inner {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ms-header__utility a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-header__bar {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ms-header__brand {
  display: inline-flex;
  align-items: center;
  margin-left: clamp(10px, 0.9vw, 16px);
}

.ms-header__brand-mark {
  display: block;
  height: clamp(48px, 5vw, 58px);
  width: auto;
  margin-right: 0;
  background: none;
  border-radius: 0;
  transform: none;
}

.ms-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
}

.ms-header__campus {
  padding: 8px 0 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 42%, transparent);
  color: var(--muted);
  font-weight: 500;
}

.ms-header__primary {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 13px;
}

.ms-header__menu {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.ms-header__navrow {
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, var(--bg));
}

.ms-header__nav {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.15vw, 38px);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.ms-header__nav-link {
  position: relative;
}

.ms-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--fg);
  transition: right var(--duration-enter) var(--ease-out);
}

.ms-header__nav-link:hover::after {
  right: 0;
}

.ms-header__nav-link[aria-current="page"] {
  font-weight: 600;
}

.ms-header__nav-link[aria-current="page"]::after,
.ms-header__nav-link[aria-current="true"]::after {
  right: 0;
  height: 2px;
  background: var(--accent);
}

.header-shell {
  width: 100%;
  padding: 0 clamp(24px, 3.2vw, 64px);
}

.header-main,
.nav,
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-main {
  min-height: 76px;
}

.header-actions,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.campus,
.campus-link {
  padding: 8px 0;
  border-bottom: 1px solid var(--fg);
  font-weight: 500;
}

.header-actions .button,
.nav-actions .cta {
  min-height: 42px;
  padding: 0 16px !important;
  font-size: 13px;
}

.utility {
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.utility-inner {
  height: 34px;
}

.utility a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-row {
  border-top: 1px solid var(--border);
}

.links,
.nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.35vw, 42px);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.links a,
.nav a {
  position: relative;
}

.links a::after,
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--fg);
  transition: right var(--duration-enter) var(--ease-out);
}

.links a:hover::after,
.nav a:hover::after {
  right: 0;
}

.nav a[aria-current="page"],
.nav a[aria-current="true"] {
  font-weight: 600;
}

.links a[aria-current="page"]::after,
.links a[aria-current="true"]::after,
.nav a[aria-current="page"]::after,
.nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
}

header .header-actions,
header .nav-actions {
  gap: 12px !important;
}

header .campus,
header .campus-link {
  padding-bottom: 5px !important;
  color: var(--muted) !important;
  border-bottom-color: color-mix(in srgb, var(--muted) 42%, transparent) !important;
}

header .header-actions .button,
header .nav-actions .cta {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.menu,
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.breadcrumb {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.section {
  padding: 128px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 3fr 7fr 2fr;
  gap: 24px;
  margin-bottom: 64px;
}

.section-head h2 {
  grid-column: 2;
  max-width: 15ch;
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.section-head p:last-child {
  grid-column: 2;
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.cards,
.program-grid,
.program-track,
.related-grid,
.notes-grid {
  display: grid;
  gap: 24px;
}

.card,
.program-card,
.series-card,
.note,
.community-item,
.outcome,
.fit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.card {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--duration-enter) var(--ease-out), border-color var(--duration-enter) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--muted);
}

.number {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.program-grid {
  grid-template-columns: repeat(12, 1fr);
}

.program-card {
  grid-column: span 4;
  overflow: hidden;
  transition: transform var(--duration-enter) var(--ease-out);
}

.program-card:hover {
  transform: translateY(-4px);
}

.program-media {
  position: relative;
  overflow: hidden;
  background: var(--fg);
}

.program-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.58) contrast(1.1);
  transition: transform 450ms var(--ease-out);
}

.program-card:hover .program-media img {
  transform: scale(1.025);
}

.program-number {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.program-body {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 26px;
}

.program-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-top span:first-child {
  color: var(--accent);
}

.status {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--fg);
}

.program-body h3 {
  margin: 38px 0 14px;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.program-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.program-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.program-meta span:last-child {
  text-align: right;
}

.program-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  font-weight: 550;
}

.format-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.format-guide article {
  min-height: 156px;
  padding: 24px 24px 26px;
  border-right: 1px solid var(--border);
}

.format-guide article:last-child {
  border-right: 0;
}

.format-guide .index {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.format-guide h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.format-guide p {
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

footer {
  padding: 80px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 56px;
  padding-bottom: 72px;
}

.footer-about p {
  max-width: 40ch;
  color: var(--muted);
  font-size: 14px;
}

footer h3 {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1000px) {
  .container,
  .header-shell {
    width: min(900px, calc(100% - 40px));
  }

  .ms-header__utility-inner,
  .ms-header__bar,
  .ms-header__nav {
    width: min(900px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
  }

  .grid12 {
    grid-template-columns: repeat(8, 1fr);
  }

  .program-card {
    grid-column: span 6;
  }

  .section-head {
    grid-template-columns: 2fr 6fr;
  }

  .section-head h2,
  .section-head p:last-child {
    grid-column: 2;
  }

  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-top > nav:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-shell {
    width: 100%;
    padding: 0 16px;
  }

  .ms-header__brand {
    margin-left: 0;
  }

  .ms-header__brand-mark {
    transform: none;
    height: 44px;
  }

  .ms-header__utility-inner,
  .ms-header__bar,
  .ms-header__nav {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .ms-header__utility {
    display: none;
  }

  .ms-header__bar {
    min-height: 72px;
  }

  .ms-header__actions {
    gap: 8px;
  }

  .ms-header__campus {
    display: none;
  }

  .ms-header__primary {
    padding-inline: 12px;
  }

  .ms-header__menu {
    display: inline-grid;
  }

  .ms-header__navrow {
    display: none;
  }

  .ms-header__navrow.open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--fg) 12%, transparent);
  }

  .ms-header__navrow.open .ms-header__nav {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 24px 16px;
  }

  .nav-row,
  .nav-actions .campus-link,
  .utility {
    display: none;
  }

  .menu,
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .header-main {
    min-height: 72px;
  }

  header .brand {
    margin-left: 0 !important;
  }

  .header-actions {
    gap: 8px !important;
  }

  .header-actions .button,
  .nav-actions .cta {
    padding: 0 12px !important;
  }

  .nav-row.open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    box-shadow: 0 12px 24px var(--border);
  }

  .nav-row.open .nav {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 24px 16px;
  }

  .section {
    padding: 80px 0;
  }

  .grid12 {
    display: block;
  }

  .cards,
  .program-grid,
  .format-guide,
  .footer-top {
    display: block;
  }

  .card,
  .program-card,
  .format-guide article {
    margin-bottom: 20px;
  }

  .program-body {
    min-height: 0;
  }

  .footer-top > nav:last-child {
    grid-column: auto;
  }

  .footer-base {
    flex-direction: column;
  }
}

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

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