:root {
  --bg: #f6f7f3;
  --paper: #ffffff;
  --ink: #121513;
  --muted: #555f5a;
  --subtle: #eef2ed;
  --line: rgba(18, 21, 19, 0.14);
  --line-strong: rgba(18, 21, 19, 0.24);
  --green: #0d6b50;
  --green-dark: #064f3a;
  --blue: #245d91;
  --gold: #b46b1a;
  --shadow: 0 18px 44px rgba(18, 21, 19, 0.08);
  --radius: 8px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 21, 19, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 19, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}

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

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 243, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
  background: var(--paper);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

.site-nav a,
.footer-nav a {
  border-radius: var(--radius);
  padding: 0.62rem 0.75rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink);
  background: var(--subtle);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.82rem 1.1rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(13, 107, 80, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 5.5rem 0;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(650px, calc(100svh - 5rem));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: -1.5rem;
  z-index: -2;
  content: "";
  background-image: url("assets/ai-engineer-roadmap.png");
  background-position: center;
  background-size: cover;
  filter: blur(5px);
  opacity: 0.18;
  transform: scale(1.03);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at center, rgba(246, 247, 243, 0.98), rgba(246, 247, 243, 0.9) 58%, rgba(246, 247, 243, 1) 100%),
    linear-gradient(180deg, rgba(246, 247, 243, 0.78), rgba(246, 247, 243, 1));
}

.hero-inner {
  display: grid;
  min-height: min(650px, calc(100svh - 5rem));
  place-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-copy {
  max-width: 62rem;
  text-align: center;
}

.eyebrow,
.proof-number,
.course-row > span,
.process-list article > span,
.fact-item span,
.outcome-stat span,
.stat-row span,
.tier-label {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 58rem;
  margin: 0.9rem auto 0;
  font-size: 5.1rem;
  line-height: 0.98;
}

.hero-text,
.hero-subtext {
  max-width: 48rem;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  margin-top: 1.55rem;
  font-size: 1.25rem;
}

.hero-subtext {
  margin-top: 0.9rem;
  font-size: 1.04rem;
}

.hero-actions,
.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.facts-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.fact-item {
  padding: 1.15rem 1.3rem;
  border-left: 1px solid var(--line);
}

.fact-item:first-child {
  border-left: 0;
}

.fact-item strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.page-directory {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.directory-card {
  display: grid;
  min-height: 15.5rem;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.directory-card:hover,
.directory-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 48px rgba(18, 21, 19, 0.12);
}

.directory-card span {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.directory-card h3 {
  margin: 2.4rem 0 0.55rem;
  font-size: 1.45rem;
}

.directory-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.directory-card-primary {
  border-top: 5px solid var(--green);
}

.split-section,
.stats-section,
.two-column,
.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.section-heading-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.subpage-hero h1,
.callout-panel h2,
.panel h2,
.application-intro h1 {
  margin-bottom: 1rem;
  font-size: 3.35rem;
  line-height: 1;
}

.copy-stack {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.inline-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-bottom: 2px solid var(--green);
  color: var(--green-dark);
  font-weight: 800;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card,
.panel,
.callout-panel,
.stats-panel,
.outcome-stat,
.course-row,
.process-list article,
.application-form,
.admissions-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.proof-card {
  padding: 1.55rem;
}

.proof-number {
  margin-bottom: 3.3rem;
}

.proof-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.1;
}

.proof-card p:last-child,
.panel p,
.callout-panel p,
.outcome-stat p,
.course-row p,
.process-list p,
.application-intro p,
.application-intro p {
  color: var(--muted);
  line-height: 1.65;
}

.stats-panel {
  padding: 1.45rem;
}

.stat-row {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.stat-row:first-child {
  padding-top: 0;
}

.stat-row strong {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.45rem;
}

.stats-panel > p {
  margin: 1.1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.admissions-callout {
  padding-top: 4rem;
}

.callout-panel {
  padding: 2.2rem;
  border-top: 5px solid var(--green);
}

.callout-panel h2 {
  max-width: 48rem;
}

.callout-panel p {
  max-width: 62rem;
  font-size: 1.06rem;
}

.subpage-hero {
  padding-top: 6rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.subpage-hero h1 {
  max-width: 52rem;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.subpage-hero .button {
  margin-top: 1rem;
}

.vsl-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}

.vsl-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.2rem;
  align-items: stretch;
}

.vsl-intro {
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.vsl-intro h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 1;
}

.vsl-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.65;
}

.vsl-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.vsl-chapters article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
}

.vsl-chapters span {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.vsl-chapters h3 {
  margin: 1.7rem 0 0.55rem;
  font-size: 1.35rem;
}

.vsl-chapters p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.course-list,
.process-list {
  display: grid;
  gap: 0.85rem;
}

.course-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.3rem;
}

.course-row h3,
.process-list h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.course-row p,
.process-list p {
  margin-bottom: 0;
}

.two-column {
  gap: 1rem;
}

.panel {
  padding: 1.8rem;
}

.panel-accent {
  border-top: 5px solid var(--blue);
}

.check-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.6;
}

.check-list li + li {
  margin-top: 0.72rem;
}

.check-list li::before {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  content: "";
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(13, 107, 80, 0.12);
}

.outcome-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 3.5rem;
}

.outcome-stat {
  padding: 1.6rem;
}

.outcome-stat strong {
  display: block;
  margin: 1.6rem 0 0.9rem;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 2.35rem;
  line-height: 1;
}

.process-section {
  padding-bottom: 3.5rem;
}

.process-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-list article {
  padding: 1.35rem;
}

.process-list article > span {
  display: block;
  margin-bottom: 3rem;
}

.application-layout {
  padding-top: 5.5rem;
}

.application-intro {
  position: sticky;
  top: 7.5rem;
}

.application-intro h1 {
  max-width: 28rem;
}

.admissions-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 5px solid var(--green);
}

.admissions-note span {
  color: var(--muted);
  line-height: 1.55;
}

.pre-apply-nav {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.pre-apply-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-dark);
  font-weight: 800;
}

.pre-apply-nav a::after {
  content: "View";
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pre-apply-nav a:hover,
.pre-apply-nav a:focus-visible {
  border-color: var(--line-strong);
  background: var(--paper);
}

.application-form {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(13, 107, 80, 0.18);
  border-color: var(--green);
}

.application-form .button {
  width: 100%;
  margin-top: 0.5rem;
}

.application-embed {
  min-height: 760px;
}

.application-embed iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
}

.thank-you-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1rem;
  align-items: start;
  padding-top: 5.5rem;
}

.thank-you-panel,
.next-step-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.thank-you-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.next-step-panel {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.thank-you-panel h1,
.next-step-panel h2 {
  margin-top: 0;
}

.thank-you-panel > p,
.next-step-panel > p {
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3rem;
}

.site-footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer-title {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
}

.reveal {
  animation: rise 700ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal {
    animation: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .facts-band,
  .directory-grid,
  .proof-grid,
  .outcome-board,
  .process-list,
  .vsl-panel,
  .split-section,
  .stats-section,
  .two-column,
  .application-layout,
  .thank-you-layout {
    grid-template-columns: 1fr;
  }

  .fact-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .fact-item:first-child {
    border-top: 0;
  }

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

  .vsl-intro h2 {
    font-size: 2.65rem;
  }

  .application-intro {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .site-header {
    align-items: start;
  }

  .brand-copy span {
    display: none;
  }

  .header-cta {
    min-height: 2.7rem;
    padding: 0.7rem 0.85rem;
  }

  .site-nav {
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.52rem 0.55rem;
    font-size: 0.88rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 3rem;
    padding-bottom: 3.2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .hero-actions,
  .callout-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .callout-actions .button {
    width: 100%;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-card {
    min-height: 12rem;
  }

  .vsl-chapters {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .subpage-hero h1,
  .vsl-intro h2,
  .callout-panel h2,
  .panel h2,
  .application-intro h1 {
    font-size: 2.35rem;
  }

  .subpage-hero {
    padding-top: 4rem;
  }

  .course-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .proof-number,
  .process-list article > span {
    margin-bottom: 2rem;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
