:root {
  --page: #ffffff;
  --page-alt: #f4f4f4;
  --text: #161616;
  --muted: #525252;
  --line: #e0e0e0;
  --line-strong: #c6c6c6;
  --blue: #0f62fe;
  --blue-dark: #0043ce;
  --shell: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

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

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.masthead-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a.active,
.nav a:hover,
.nav a:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.contact-line a:hover,
.contact-line a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--blue);
}

.hero,
.page-hero {
  padding: 40px 0 72px;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
}

.hero-main {
  max-width: 860px;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.eyebrow,
.row-number {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aside-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 6.1rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 300;
}

.page-title {
  max-width: 14ch;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 300;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.lead,
.hero-aside p,
.copy-stack p,
.rail-row p,
.program-row p,
.section-intro,
.contact-line,
.footer {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.lead {
  max-width: 62ch;
  margin-bottom: 30px;
}

.actions,
.section-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.action,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.action:hover,
.action:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  border-color: var(--blue);
}

.action-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.action-primary:hover,
.action-primary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #ffffff;
}

.band,
.section {
  padding: 56px 0;
}

.band {
  background: var(--page-alt);
}

.band-white {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  padding-bottom: 24px;
}

.rail,
.program-rows,
.contact-block {
  border-top: 1px solid var(--line);
}

.contact-layout {
  align-items: start;
}

.rail-row,
.program-row,
.contact-line {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.rail-row h3,
.program-row h3 {
  margin-bottom: 0;
}

.copy-stack p:last-child,
.program-row p:last-child {
  margin-bottom: 0;
}

.program-intro {
  margin-bottom: 10px;
}

.contact-line span {
  color: var(--text);
}

.contact-form-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--page);
}

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

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

.form-field label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: var(--page);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-button {
  justify-content: center;
  width: 100%;
}

.form-status {
  min-height: 1.65em;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.thank-you-panel {
  width: min(100%, 720px);
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--page);
}

.thank-you-title {
  max-width: 100%;
  margin-bottom: 16px;
}

.thank-you-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 72px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .rail-row,
  .program-row,
  .contact-line {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .masthead-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav {
    gap: 14px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }
}
