@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; color: white; background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: white; }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; color: var(--navy); background: var(--gold); border-radius: 50%; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .text-link { color: rgba(255,255,255,.82); font-size: var(--type-ui); font-weight: 650; text-decoration: none; }
.nav a:hover, .text-link:hover { color: white; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-toggle { display: flex; padding: 3px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; backdrop-filter: blur(12px); }
.language-toggle button { min-width: 39px; min-height: 36px; padding: 6px 8px; color: rgba(255,255,255,.7); background: transparent; border: 0; border-radius: 7px; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 850; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.language-toggle button:hover { color: white; background: rgba(255,255,255,.08); }
.language-toggle button[aria-pressed="true"] { color: var(--navy); background: var(--gold); box-shadow: 0 4px 14px rgba(225,184,76,.28); }

.hero { position: relative; min-height: 700px; display: grid; align-items: center; overflow: hidden; color: white; background: radial-gradient(circle at 66% 48%, #174f89 0, #0b315e 26%, var(--navy) 64%); }
.hero-inner { position: relative; z-index: 2; padding-top: 70px; }
.hero-content { max-width: 800px; }
.eyebrow { margin: 0 0 22px; color: var(--blue); font-size: var(--type-eyebrow); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { margin: 0 0 18px; color: var(--gold); }
.hero h1 { max-width: 760px; margin: 0; font-size: var(--type-hero); font-weight: 650; line-height: 1.12; letter-spacing: -.04em; }
.hero h1 em { display: inline-block; margin-top: 0.06em; color: var(--gold); font-family: var(--serif); font-weight: 400; font-style: italic; }
.hero-copy { max-width: 34rem; margin: 28px 0 0; color: rgba(255,255,255,.74); font-size: var(--type-lead); line-height: 1.65; letter-spacing: -.01em; }
.button { display: inline-flex; min-height: 50px; align-items: center; gap: 22px; justify-content: space-between; padding: 0 19px; border-radius: 8px; font-size: var(--type-ui); font-weight: 750; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { margin-top: 36px; color: var(--navy); background: var(--gold); }
.button-primary:hover { background: #efca68; }
.hero-campus-background { position: absolute; inset: 0 0 0 auto; z-index: 0; width: min(64vw, 860px); overflow: hidden; opacity: .24; -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.25) 22%, #000 58%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.25) 22%, #000 58%); }
.hero-campus-background img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 36% center; filter: saturate(.78) contrast(1.04); }
.hero-orbit { position: absolute; z-index: 1; width: min(40vw, 540px); aspect-ratio: 1; right: 9%; top: 50%; transform: translateY(-47%); opacity: .92; }
.orbit { position: absolute; inset: 8%; border: 2px solid rgba(255,255,255,.4); border-radius: 50%; box-shadow: 0 0 30px rgba(255,255,255,.06); }
.orbit-two { inset: 27%; border-color: rgba(225,184,76,.72); box-shadow: 0 0 34px rgba(225,184,76,.12); }
.orbit-dot { position: absolute; width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 9px rgba(225,184,76,.22), 0 0 24px rgba(225,184,76,.75); }
.dot-one { top: 14.6%; right: 14.6%; transform: translate(50%, -50%); }
.dot-two { left: 6.7%; bottom: 25%; width: 11px; height: 11px; transform: translate(-50%, 50%); }

.course-section { padding: 120px 0 132px; }
.section-heading { margin-bottom: 52px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .about-grid h2 { margin: 0; font-size: var(--type-display); line-height: 1.12; letter-spacing: -.04em; }
.online-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; }
.online-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 1.7; }
.about-grid h2 { color: var(--cream); }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.course-card { position: relative; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: color 180ms ease, background 180ms ease; }
.course-card:hover { color: white; background: var(--navy); }
.course-card-featured { background: white; }
.course-icon { color: var(--blue); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.course-card:hover .course-icon { color: var(--gold); }
.course-card h3 { max-width: 390px; margin: 0 0 12px; font-size: var(--type-card); letter-spacing: -.025em; line-height: 1.25; }
.catalog-status { display: inline-flex; margin-bottom: 13px; color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.catalog-status-open { color: var(--blue); }
.course-card:hover .catalog-status { color: var(--gold); }
.course-card p { max-width: 390px; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.course-card:hover p { color: rgba(255,255,255,.65); }
.card-arrow { position: absolute; top: 32px; right: 34px; font-size: 1.2rem; }

.in-person-section { padding: 118px 0 126px; color: white; background: #0d2d58; }
.in-person-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; }
.in-person-heading .eyebrow { color: var(--gold); }
.in-person-heading h2 { color: white; }
.in-person-heading > p { max-width: 520px; margin: 0; color: rgba(255,255,255,.68); line-height: 1.7; }
.format-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 42px; border: 1px solid rgba(255,255,255,.15); }
.format-strip div { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; border-right: 1px solid rgba(255,255,255,.15); }
.format-strip div:last-child { border-right: 0; }
.format-strip strong { color: var(--gold); font-size: 1.4rem; }
.format-strip span { margin-top: 5px; color: rgba(255,255,255,.58); font-size: .76rem; }
.offline-groups { display: grid; gap: 56px; }
.offline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.offline-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; background: #0d2d58; text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.offline-card:hover { position: relative; z-index: 1; color: var(--ink); background: #e9e4d8; transform: translateY(-2px); }
.offline-card:hover .offline-card-top { color: var(--blue); }
.offline-card:hover p, .offline-card:hover .offline-audience span { color: var(--muted); }
.offline-card:hover .offline-audience { border-top-color: var(--line); }
.offline-card:hover .offline-audience strong { color: var(--blue); }
.offline-card-top, .offline-audience { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.offline-card-top { color: var(--gold); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.offline-card h3 { max-width: 500px; margin: 26px 0 12px; font-size: var(--type-card); line-height: 1.22; letter-spacing: -.025em; }
.offline-card p { max-width: 500px; margin: 0; color: rgba(255,255,255,.62); line-height: 1.55; }
.offline-audience { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.offline-audience span { max-width: 62%; color: rgba(255,255,255,.56); font-size: .73rem; line-height: 1.4; }
.offline-audience strong { color: white; font-size: .76rem; }

.about-section { padding: 110px 0; color: white; background: var(--blue); }
.about-grid { display: grid; grid-template-columns: .7fr 2fr .65fr; align-items: end; gap: 48px; }
.about-grid .eyebrow { align-self: start; color: rgba(255,255,255,.72); }
.about-grid p:not(.eyebrow) { max-width: 610px; margin: 22px 0 0; color: rgba(255,255,255,.82); font-size: var(--type-lead); }
.button-light { color: var(--navy); background: white; }

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 28, 59, 0.55);
  backdrop-filter: blur(6px);
}

.contact-modal.hidden { display: none; }

.contact-modal-card {
  position: relative;
  width: min(100%, 440px);
  padding: 36px 32px 28px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(7, 28, 59, 0.28);
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.contact-modal-close:hover { background: rgba(16, 33, 58, 0.06); color: var(--ink); }

.contact-modal-card .eyebrow { color: var(--blue); }
.contact-modal-card h2 { margin: 0 0 10px; font-size: var(--type-card); letter-spacing: -.02em; line-height: 1.3; }
.contact-modal-card > p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form .form-group {
  display: grid;
  gap: 6px;
}

.contact-form label {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(225, 184, 76, 0.45);
  border-color: var(--gold);
}

.contact-submit {
  margin: 4px 0 0;
  justify-content: center;
  width: 100%;
  border: 0;
  cursor: pointer;
}

.contact-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.contact-error {
  margin: 0;
  color: #a93226;
  font-size: .86rem;
  font-weight: 650;
}

.contact-toast {
  margin: 0;
  color: #1f7250;
  font-size: .86rem;
  font-weight: 700;
}

.site-footer { color: rgba(255,255,255,.62); background: var(--navy); }
.footer-inner { min-height: 100px; display: flex; align-items: center; gap: 30px; font-size: .78rem; }
.footer-inner a { margin-left: auto; text-decoration: none; }
.footer-inner a + a { margin-left: 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-left: auto; }
.footer-social a { margin: 0; color: rgba(255,255,255,.58); text-decoration: none; }
.footer-social a:hover { color: var(--gold); }
.footer-social + a { margin-left: 10px; }

@media (max-width: 780px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 72px; }
  .brand span:last-child, .nav { display: none; }
  .header-actions { margin-left: auto; gap: 12px; }
  .language-toggle button { min-width: 36px; padding-inline: 6px; }
  .hero { min-height: 640px; }
  .hero-copy { margin-top: 24px; }
  .button-primary { margin-top: 30px; }
  .hero-campus-background { inset: 0; width: 100%; opacity: .17; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 100%); }
  .hero-campus-background img { object-position: 40% center; }
  .hero-orbit { width: min(82vw, 400px); right: -8%; opacity: .55; }
  .course-section { padding: 86px 0; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 230px; padding: 28px; }
  .in-person-section { padding: 82px 0; }
  .online-heading, .in-person-heading { grid-template-columns: 1fr; gap: 24px; }
  .format-strip { grid-template-columns: repeat(2, 1fr); }
  .format-strip div:nth-child(2) { border-right: 0; }
  .format-strip div { border-bottom: 1px solid rgba(255,255,255,.15); }
  .offline-groups { gap: 40px; }
  .offline-grid { grid-template-columns: 1fr; }
  .offline-card { min-height: 270px; padding: 26px; }
  .about-grid { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .button-light { width: max-content; }
  .footer-inner { min-height: 130px; flex-wrap: wrap; align-content: center; gap: 16px 24px; }
  .footer-inner a { margin-left: 0; }
  .footer-inner span { flex-basis: 100%; }
  .footer-social { flex-basis: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
