:root {
  color-scheme: light;
  --black: #101014;
  --dark: #1b1b21;
  --light: #f8f7f3;
  --white: #fff;
  --ink: #19191e;
  --muted: #55555e;
  --rule: #deddd8;
  --gold: #ffcc32;
  --gold-light: #ffe18b;
  --footer-muted: #d2d1d6;
  --radius: 22px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--light);
  font: 400 1rem/1.65 Inter, system-ui, sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
}

h2 { font-size: clamp(2.05rem, 4.2vw, 3.65rem); }
h3 { font-size: 1.24rem; }
em { font-style: normal; }

:focus-visible {
  outline: 3px solid #725400;
  outline-offset: 4px;
}

.hdr :focus-visible, .hero :focus-visible, .capstone :focus-visible,
.signup :focus-visible, .foot :focus-visible { outline-color: var(--gold); }
.signup .form-card :focus-visible { outline-color: #725400; }

.wrap {
  width: min(100% - 3rem, 74rem);
  margin-inline: auto;
}

.section { padding-block: clamp(3.6rem, 7vw, 6.8rem); }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--gold);
  color: var(--black);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: none; }

.hdr {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid #ffffff27;
}

.hdr-in {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: 122px;
  height: auto;
}

.hdr-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.3rem); }
.hdr-links a { text-decoration: none; font-size: .9rem; font-weight: 600; color: #e2e1e5; }
.hdr-links a:hover { color: var(--gold-light); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: .68rem 1.3rem;
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--black); background: var(--gold); }
.button-gold:hover { background: var(--gold-light); }
.button-outline { color: var(--white); border-color: #ffffff70; }
.button-outline:hover { border-color: var(--white); background: #ffffff14; }

.hero {
  color: var(--white);
  background: radial-gradient(ellipse at 83% 24%, #29242b 0%, var(--black) 57%);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.8rem, 5.7vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 6.5vw, 6.55rem);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.065em;
}

.hero h1 em { display: block; text-wrap: balance; }
.hero h1 em, .hero .eyebrow, .capstone em, .capstone .eyebrow { color: var(--gold); }

.hero-lead {
  max-width: 43ch;
  margin-top: 1.4rem;
  color: var(--footer-muted);
  font-size: clamp(1.04rem, 1.55vw, 1.23rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }

.hero-media, .capstone-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: #242228;
}

.hero-media {
  aspect-ratio: 1 / 1.06;
  border: 1px solid #ffffff26;
}

.hero-media img, .capstone-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hero-media.hero-media--team { aspect-ratio: 4 / 3; }
.hero-media--team img { object-position: center; }

.hero-media::after, .capstone-media::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 62%, #0004);
  pointer-events: none;
  content: "";
}

.course-facts {
  display: grid;
  grid-template-columns: .84fr .84fr 1.18fr 1.38fr;
  border-top: 1px solid #ffffff30;
}

.course-facts div { padding: 1.15rem .9rem 1.35rem; }
.course-facts div:first-child { padding-left: 0; }
.course-facts div + div { border-left: 1px solid #ffffff30; }
.course-facts dt { color: var(--footer-muted); font-size: .78rem; }
.course-facts dd { font-size: clamp(.9rem, 1.45vw, 1.05rem); font-weight: 700; line-height: 1.4; }

.section-heading { max-width: 48rem; }
.section-heading > p:not(.eyebrow) { max-width: 60ch; margin-top: 1rem; color: var(--muted); font-size: 1.04rem; }

.outcome-grid, .credential-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

.outcome, .credential-card, .instructor-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}

.outcome { padding: clamp(1.2rem, 3vw, 2rem); }
.outcome p, .instructor-card p { margin-top: .6rem; color: var(--muted); }

.outcome-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #ffe9a6;
  color: #341f00;
  font-size: 1.27rem;
  font-weight: 850;
}

.audience { max-width: 83ch; margin-top: 1.4rem; color: var(--muted); }
.audience strong { color: var(--ink); }

.curriculum {
  background: #efede6;
  border-block: 1px solid var(--rule);
}

.course-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: start;
  gap: clamp(1.7rem, 6vw, 5rem);
}

.module-list { display: grid; gap: .6rem; min-width: 0; }

.module {
  border: 1px solid #d8d6cf;
  border-radius: 16px;
  background: var(--white);
  transition: border-color .22s ease, background-color .22s ease;
}

.module[open] { border-color: #a88822; }
.module:hover { border-color: #a88822; }
.module[open] > summary { background: #fff8e2; }

.module summary {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto 1.15rem;
  align-items: center;
  gap: .7rem;
  min-height: 64px;
  padding: .8rem .95rem;
  border-radius: 15px;
}

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.module[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.module-count { color: #694d00; font-size: .78rem; font-weight: 850; }
.module-title { font-size: .98rem; font-weight: 750; line-height: 1.35; }
.module-time { color: var(--muted); font-size: .82rem; white-space: nowrap; }

.toggle {
  position: relative;
  width: .65rem;
  height: .65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
  transition: transform .22s ease;
}

.module[open] .toggle { transform: translateY(20%) rotate(225deg); }

.module-content { padding: .9rem 1.25rem 1.1rem 3.75rem; color: var(--muted); font-size: .93rem; }
.module-content p + p { margin-top: .62rem; }
.module-content strong { color: var(--ink); margin-right: .25rem; }

.capstone { color: var(--white); background: var(--black); }
.capstone-layout { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(1.6rem, 7vw, 7rem); }

.capstone-media {
  aspect-ratio: 1 / 1;
  border: 1px solid #ffffff26;
}

.capstone-copy > p:not(.eyebrow) { color: var(--footer-muted); margin-top: 1rem; }
.capstone-copy h3 { margin-top: 1.65rem; }

.check-list { list-style: none; margin: .7rem 0 0; padding: 0; }
.check-list li, .assure > div { display: flex; gap: .65rem; align-items: flex-start; }
.check-list li + li { margin-top: .38rem; }
.check-list li::before, .assure > div::before { color: var(--gold); font-weight: 800; content: "✓"; }

.credential-grid { grid-template-columns: 1fr 1fr; }
.credential-card { padding: clamp(1.2rem, 3vw, 1.8rem); }

.credential-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-block: 1rem;
}

.credential-card dt { color: var(--muted); font-size: .83rem; }
.credential-card dd { font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 850; line-height: 1.25; }

.text-link {
  display: inline-flex;
  gap: .4rem;
  align-items: baseline;
  color: #573f00;
  font-weight: 750;
  text-underline-offset: .22em;
}

.instructor-card {
  display: grid;
  grid-template-columns: minmax(100px, .6fr) 1.4fr;
  overflow: hidden;
}

.instructor-card img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.instructor-card > div { padding: clamp(1rem, 3vw, 1.8rem); }

.signup {
  padding-block: clamp(3.6rem, 7vw, 6.8rem);
  background: radial-gradient(ellipse at 1% 4%, #302819, var(--dark) 42%, var(--black));
  color: var(--white);
}

.signup-in {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.8rem, 6vw, 5rem);
  align-items: start;
}

.signup-copy > p { margin-top: 1rem; color: var(--footer-muted); }
.signup-copy .eyebrow { color: var(--gold); }
.assure { display: grid; gap: .5rem; margin-top: 1.25rem; }
.signup-in > div, .form-card { min-width: 0; }

.form-card {
  padding: clamp(1.2rem, 4vw, 2rem);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

.form-card h3 { font-size: 1.44rem; }
.fsub { margin: .35rem 0 1.15rem; color: var(--muted); }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.fld { margin-bottom: .84rem; }
.fld label { display: block; margin-bottom: .26rem; font-size: .83rem; font-weight: 750; }

.fld input, .fld select, .fld textarea {
  width: 100%;
  min-height: 44px;
  padding: .58rem .7rem;
  border: 1px solid #a5a39b;
  border-radius: 8px;
  background: #fbfaf8;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}

.fld input::placeholder, .fld textarea::placeholder { color: #65636a; }
.fld textarea { min-height: 80px; resize: vertical; }

.fcheck {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .3rem 0 .9rem;
  color: var(--muted);
  font-size: .86rem;
}

.fcheck input { flex: 0 0 auto; width: 18px; height: 18px; margin: .15rem 0 0; accent-color: #6b4e00; }

.form-submit {
  width: 100%;
  min-height: 48px;
  margin-top: .75rem;
  padding: .55rem 1rem;
  border: 0;
  border-radius: 8px;
  color: var(--black);
  background: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease;
}

.form-submit:hover { background: var(--gold-light); }
.form-submit:disabled { opacity: .65; cursor: wait; }
.form-note { margin-top: .65rem; color: var(--muted); font-size: .78rem; }
.course-form-status { margin-top: .85rem; padding: .75rem; border: 1px solid #795e21; border-radius: 8px; background: #fff9e8; color: #463310; }

.form-thanks { padding: 1.2rem .3rem; text-align: center; }
.form-thanks p { margin-top: .5rem; color: var(--muted); }
.form-thanks .tick { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto .8rem; border-radius: 50%; color: #154d3f; background: #ddf4eb; font-size: 1.4rem; }
.form-thanks[hidden], .course-form-status[hidden] { display: none; }

.faq-section { background: var(--white); }
.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child { border-top: 1px solid var(--rule); }

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  min-height: 48px;
  padding: .85rem 0;
  font-weight: 750;
  line-height: 1.4;
}

.qa summary::after { color: #664c00; content: "+" / ""; }
.qa[open] summary::after { content: "−" / ""; }
.qa p { padding: 0 1.5rem 1rem 0; color: var(--muted); }
.qa a { color: #573f00; text-underline-offset: .2em; }

.foot { padding: 2rem 0 1.25rem; color: var(--footer-muted); background: var(--black); }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; }
.foot p { font-size: .9rem; }
.foot p a { color: var(--gold-light); text-underline-offset: .2em; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in .65s cubic-bezier(.2,.72,.3,1) both; }
  .hero-media { animation: portrait-in .82s cubic-bezier(.2,.72,.3,1) both; }
  .reveal.entered { animation: rise-in .55s cubic-bezier(.2,.72,.3,1) both; }
  .module[open] .module-content, .qa[open] p { animation: rise-in .23s ease-out both; }
}

@keyframes rise-in {
  from { opacity: .55; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

@keyframes portrait-in {
  from { opacity: .65; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .hero-in { gap: 2rem; }
  .hdr-links { gap: .9rem; }
  .signup-in { grid-template-columns: 1fr; }
}

@media (max-width: 690px) {
  :root { --header-height: 62px; }
  .wrap { width: calc(100% - 2rem); }
  .hdr-links { display: none; }
  .hero-in, .capstone-layout, .course-layout { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 12ch; font-size: clamp(2.85rem, 10.3vw, 4.95rem); }
  .hero-media { aspect-ratio: 1.16 / 1; }
  .course-facts { grid-template-columns: 1fr 1fr; }
  .course-facts div { padding: .75rem .7rem .85rem; }
  .course-facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .course-facts div:nth-child(n+3) { border-top: 1px solid #ffffff30; }
  .outcome-grid, .credential-grid { grid-template-columns: 1fr; }
  .capstone-copy { order: -1; }
  .capstone-media { aspect-ratio: 1.25 / 1; }
}

@media (max-width: 420px) {
  .frow { grid-template-columns: 1fr; gap: 0; }
  .brand img { width: 108px; }
  .hdr-cta { padding-inline: .8rem; }
  .module summary { grid-template-columns: 1.3rem minmax(0, 1fr) auto .8rem; gap: .52rem; padding-inline: .68rem; }
  .module-content { padding-left: .85rem; }
}

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