:root {
  --indigo: #2B2D6B;
  --indigo-deep: #1C1D4A;
  --teal: #0E8C8C;
  --ochre: #D9A21B;
  --terra: #C8553D;
  --sage: #7FA36B;
  --cream: #FAF6EE;
  --ink: #2F3340;
  --muted: #5B6270;
  --rule: #E3DED2;
  --tint: #F3EDE0;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); color: var(--indigo); }
h3 { font-size: 1.15rem; color: var(--indigo); }
p { margin: 0 0 1.1em; }
.label { font-weight: 600; color: var(--indigo); }

.kicker {
  font: 600 .8rem/1 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--ochre);
}
.kicker.teal { color: var(--teal); }
.kicker.terra { color: var(--terra); }
.kicker.sage { color: #5E8550; }
.kicker.indigo { color: var(--indigo); }

/* hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  background: var(--indigo-deep);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,21,56,.88) 0%, rgba(20,21,56,.6) 45%, rgba(20,21,56,0) 75%),
              linear-gradient(0deg, rgba(20,21,56,.55) 0%, rgba(20,21,56,0) 40%);
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 1.25rem 1.5rem;
}
.brand { font: 700 1.05rem/1 var(--head); color: #fff; text-decoration: none; margin: 0; }
.brand span { color: var(--ochre); }
.nav-links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font: 500 .92rem/1 var(--body); }
.nav-links a:hover { color: var(--ochre); }
.hero-text {
  position: relative;
  margin: auto auto 0; width: 100%; max-width: var(--max);
  padding: 2rem 1.5rem 5rem;
}
.hero-text h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); max-width: 14ch; color: #fff; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 38rem; color: rgba(255,255,255,.9); }

/* sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.inner.narrow { max-width: 820px; }
.intro { font-size: 1.15rem; max-width: 46rem; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; max-width: var(--max); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem;
}
.split .text { max-width: 36rem; }
.art { margin: 0; }
.art img { border-radius: 14px; box-shadow: 0 18px 40px rgba(43,45,107,.18); }
.art figcaption { font-size: .9rem; color: var(--muted); margin-top: .8rem; }

/* artefacts band */
.dark { background: var(--indigo-deep); color: rgba(255,255,255,.9); overflow: hidden; }
.dark h2, .dark h3 { color: #fff; }
.band-img { position: absolute; inset: 0; }
.band-img img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.dark .inner { position: relative; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: rgba(28,29,74,.72);
  border: 1px solid rgba(217,162,27,.35);
  border-top: 4px solid var(--ochre);
  border-radius: 12px; padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.card:nth-child(2) { border-top-color: var(--teal); }
.card:nth-child(3) { border-top-color: var(--terra); }
.card:nth-child(4) { border-top-color: var(--sage); }
.card p { margin: 0; font-size: .98rem; }

/* process */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.steps {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: s;
}
.steps li { border-top: 3px solid var(--teal); padding-top: 1rem; }
.steps li:nth-child(even) { border-top-color: var(--ochre); }
.steps span { font: 700 1.6rem/1 var(--head); color: var(--teal); display: block; margin-bottom: .6rem; }
.steps li:nth-child(even) span { color: var(--ochre); }
.steps h3 { font-size: 1rem; }
.steps p { font-size: .94rem; color: var(--muted); margin: 0; }
.wide-art { margin: clamp(3rem, 6vw, 5rem) 0 0; }
.wide-art img { width: 100%; max-height: 520px; object-fit: cover; }

/* evaluation */
.tint { background: var(--tint); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0; }
.quad { background: #fff; border-radius: 12px; padding: 1.6rem; border-left: 5px solid var(--terra); }
.quad:nth-child(2) { border-left-color: var(--teal); }
.quad p { margin: 0; }

/* reading */
.refs { padding-left: 1.2rem; margin: 0; }
.refs li { margin-bottom: .9rem; padding-left: .3rem; }

/* footer */
.footer { background: var(--indigo-deep); color: rgba(255,255,255,.75); padding: 2.5rem 0; }
.footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.small { font-size: .88rem; }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .split, .two-col, .grid2 { grid-template-columns: 1fr; }
  .split.reverse .art { order: 2; }
  .hero-shade { background: linear-gradient(0deg, rgba(20,21,56,.92) 0%, rgba(20,21,56,.55) 60%, rgba(20,21,56,.25) 100%); }
  .hero-img { object-position: 78% 40%; }
  .hero-text { padding-left: 1rem; padding-right: 1rem; }
  .nav, .inner, .split { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---- interest page additions ---- */
.hero-text h1 { max-width: 16ch; }
.button {
  display: inline-block; margin-top: .6rem; padding: .85rem 1.5rem;
  background: var(--ochre); color: var(--indigo-deep); border: 0; border-radius: 999px;
  font: 700 1rem/1 var(--head); text-decoration: none; cursor: pointer;
}
.button:hover { background: #E8B536; }
.button:disabled { opacity: .6; cursor: wait; }
.footer a { color: #fff; text-decoration: none; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: -3rem auto 0; position: relative; z-index: 2;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(43,45,107,.14);
}
.fact { padding: 1.3rem 1.4rem; border-right: 1px solid var(--rule); }
.fact:last-child { border-right: 0; }
.fact-k { display: block; font: 600 .75rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.fact-v { display: block; font-size: .98rem; line-height: 1.45; color: var(--indigo); font-weight: 500; }

.panel { background: #fff; border-radius: 14px; padding: 1.8rem; border-top: 5px solid var(--sage); box-shadow: 0 12px 30px rgba(43,45,107,.08); }
.panel p { font-size: .98rem; }
.note { color: var(--muted); font-size: .92rem; margin-bottom: 0; }

.objectives { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: o; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
.objectives li { counter-increment: o; position: relative; padding-left: 3rem; font-size: .98rem; }
.objectives li::before { content: counter(o); position: absolute; left: 0; top: -.1rem; font: 700 1.5rem/1 var(--head); color: var(--ochre); }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.phase { border-top: 4px solid var(--teal); background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 10px 26px rgba(43,45,107,.07); }
.phase:nth-child(2) { border-top-color: var(--ochre); }
.phase:nth-child(3) { border-top-color: var(--terra); }
.phase p { font-size: .97rem; margin: 0; }
.phase .phase-when { font: 600 .78rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.assess { margin-top: 2.5rem; }
.bars { display: grid; gap: .6rem; }
.bar { position: relative; padding: .7rem 1rem .7rem calc(var(--w) + 1rem); min-height: 2.6rem; font-size: .97rem; }
.bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--terra); border-radius: 6px; }
.bar.teal::before { background: var(--teal); }
.bar.ochre::before { background: var(--ochre); }
.bar span { position: absolute; left: .7rem; top: .7rem; color: #fff; font: 700 .95rem/1.2 var(--head); }

.form { display: grid; gap: 1.1rem; margin-top: 2rem; background: #fff; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 14px; box-shadow: 0 12px 30px rgba(43,45,107,.08); }
.form label { display: grid; gap: .4rem; font-weight: 500; font-size: .95rem; color: var(--indigo); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink);
  padding: .7rem .8rem; border: 1px solid #CFC8B8; border-radius: 8px; background: var(--cream);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form [aria-invalid=true] { border-color: var(--terra) !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
legend { font-weight: 500; font-size: .95rem; color: var(--indigo); margin-bottom: .4rem; }
.form label.inline, .form label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--ink); }
.form label.inline input, .form label.check input { margin-top: .3rem; accent-color: var(--teal); width: 1.05rem; height: 1.05rem; flex: none; }
.form .button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-weight: 500; }
.status.ok { color: #2F6B3A; }
.status.err { color: var(--terra); }
.small-print p { font-size: .95rem; }
.small-print h2 { font-size: 1.5rem; }

@media (max-width: 980px) {
  .facts { grid-template-columns: 1fr 1fr; margin-left: 1rem; margin-right: 1rem; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .phases { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .objectives, .row2 { grid-template-columns: 1fr; }
  .bar { padding-left: 1rem; padding-top: 2.6rem; }
  .bar::before { height: 2rem; bottom: auto; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--rule); }
  .fact:last-child { border-bottom: 0; }
}
.form .hint { font-weight: 400; font-size: .9rem; color: var(--muted); }
/* the course art: mirrored so the figure stands clear of the heading */
.hero-img { transform: scaleX(-1); object-position: 25% 40%; }
@media (max-width: 820px) { .hero-img { object-position: 15% 40%; } }
.cf-turnstile { min-height: 65px; }
