.training-card a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course-builds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.course-builds article {
  min-height: 285px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.course-builds article:nth-child(2),
.course-builds article:nth-child(3) {
  background: var(--ivory);
}

.course-builds span,
.course-builds small {
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.course-builds h3 {
  margin: 30px 0 12px;
  font: 500 clamp(32px, 3.5vw, 48px)/1 var(--serif);
  letter-spacing: -.025em;
}

.course-builds p {
  color: var(--muted);
  max-width: 540px;
}

.course-builds small {
  display: block;
  margin-top: 28px;
  color: var(--green);
}

.curriculum-groups {
  display: grid;
  gap: 52px;
}

.curriculum-group {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.curriculum-group-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.curriculum-group-head > span,
.curriculum-group-head p {
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 8px;
}

.curriculum-group-head h2 {
  margin: 0 0 8px;
  font: 500 clamp(30px, 3.2vw, 44px)/1 var(--serif);
}

.curriculum-group-head small {
  color: var(--muted);
  font-size: 14px;
}

.course-home-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.course-home-head h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font: 500 clamp(48px, 5.6vw, 78px)/.96 var(--serif);
  letter-spacing: -.035em;
}

.course-home-head > div:first-child p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.course-progress-panel {
  padding: 26px;
  background: var(--green);
  color: white;
}

.course-progress-panel > span,
.module-action span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.course-progress-panel strong { display: block; margin: 8px 0 18px; font: 500 28px/1.1 var(--serif); }
.course-progress-panel > div { height: 4px; margin-bottom: 20px; background: rgba(255,255,255,.18); }
.course-progress-panel > div i { display: block; height: 100%; background: var(--clay); }
.course-progress-panel .button { width: 100%; }

.course-path {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  margin-bottom: 56px;
  border: 1px solid var(--line);
  color: var(--green);
  overflow-x: auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
.course-path b { color: var(--terracotta); }

.training-card.lesson-complete { background: #f0f5f1; border-color: rgba(18,59,50,.32); }
.training-card.lesson-complete > span { color: #3c795c; }

.module-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 20px 22px;
  background: var(--ivory);
  border-left: 4px solid var(--terracotta);
}
.module-action strong { display: block; margin-top: 5px; }
.module-action.complete { background: #eef4f0; border-left-color: #4f9c75; }
.module-action.complete span { color: #3c795c; }

.lesson-finish { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

@media(max-width:620px){
  .course-builds { grid-template-columns: 1fr; }
  .course-builds article:nth-child(2),
  .course-builds article:nth-child(3) { background: transparent; }
  .course-builds article:nth-child(even) { background: var(--ivory); }
  .curriculum-group-head { grid-template-columns: 38px minmax(0,1fr); }
  .course-home-head { grid-template-columns: 1fr; }
  .course-home-head h1 { font-size: 48px; }
  .course-path { margin-right: -16px; }
  .module-action { align-items: stretch; flex-direction: column; }
  .module-action .button { width: 100%; }
}

@media(min-width:921px){
  .hero {
    padding-top: clamp(52px, 6vw, 86px);
    padding-bottom: clamp(52px, 6vw, 86px);
  }

  .hero h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(56px, 5.2vw, 88px);
  }

  .hero-lede {
    margin-bottom: 28px;
    font-size: clamp(17px, 1.45vw, 22px);
  }

  .promise-row { margin-top: 28px; }
}

.lesson-modal {
  width: min(920px, 100%);
}

.lesson-modal > p:not(.kicker) {
  color: var(--muted);
  max-width: 720px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--green);
  margin: 26px 0 22px;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pipeline-head-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.pipeline-summary { display:grid; grid-template-columns:repeat(7,minmax(105px,1fr)); border:1px solid var(--line); background:white; overflow-x:auto; margin-bottom:28px; }
.pipeline-summary button { min-width:105px; min-height:92px; padding:17px 14px; border:0; border-right:1px solid var(--line); background:transparent; color:var(--graphite); text-align:left; cursor:pointer; }
.pipeline-summary button:last-child { border-right:0; }
.pipeline-summary button:hover,.pipeline-summary button.active { background:var(--green); color:white; }
.pipeline-summary strong { display:block; font:500 34px/1 var(--serif); }
.pipeline-summary span { display:block; margin-top:10px; font-size:10px; font-weight:800; letter-spacing:.08em; }
.pipeline-form { background:var(--ivory); border-top:4px solid var(--terracotta); padding:30px; margin:0 0 28px; }
.pipeline-form h2 { font:500 38px/1.05 var(--serif); margin:0 0 24px; }
.pipeline-form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-bottom:22px; }
.pipeline-form-grid label { font-size:12px; font-weight:800; }
.pipeline-form-grid label.wide { grid-column:1/-1; }
.pipeline-form-grid input,.pipeline-form-grid select { display:block; width:100%; min-height:50px; margin-top:8px; padding:12px 14px; border:1px solid var(--line); border-radius:0; background:white; color:var(--graphite); }
.pipeline-filter-row { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 12px; }
.pipeline-filter-row button { border:0; background:transparent; padding:0 0 4px; font-weight:800; color:var(--green); cursor:pointer; }
.pipeline-filter-row button.active { border-bottom:2px solid var(--terracotta); }
.pipeline-filter-row span { color:var(--muted); font-size:12px; }
.pipeline-table-wrap { overflow-x:auto; border:1px solid var(--line); background:white; }
.pipeline-table { width:100%; min-width:780px; border-collapse:collapse; }
.pipeline-table th { padding:14px 16px; background:var(--green); color:white; text-align:left; font-size:10px; letter-spacing:.09em; }
.pipeline-table td { padding:16px; border-bottom:1px solid var(--line); vertical-align:middle; }
.pipeline-table tr:last-child td { border-bottom:0; }
.pipeline-table strong,.pipeline-table small { display:block; }
.pipeline-table small { margin-top:4px; color:var(--muted); }
.pipeline-table a { color:var(--green); font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.status-select { min-width:142px; padding:9px 10px; border:1px solid var(--line); background:var(--ivory); color:var(--graphite); font-size:12px; font-weight:800; }
.pipeline-empty .button { margin-top:16px; }

.handoff-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr);
  gap: 9vw;
  background: var(--paper);
}

.handoff-intro {
  align-self: start;
  position: sticky;
  top: 125px;
}

.handoff-intro h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
  margin: 0 0 24px;
}

.handoff-intro > p:last-child {
  color: var(--muted);
  font-size: 18px;
}

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

.handoff-map article,
.handoff-guide article {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.handoff-map article > span,
.handoff-guide article > span {
  color: var(--terracotta);
  font-weight: 800;
  font-size: 12px;
}

.handoff-map h3,
.handoff-guide h2 {
  font-family: var(--display);
  margin: 0 0 8px;
}

.handoff-map p,
.handoff-guide p,
.handoff-note {
  color: var(--muted);
  margin: 0;
}

.handoff-callout {
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  margin: 8px 0 42px;
  background: white;
}

.handoff-callout-four {
  grid-template-columns: .7fr 1fr 1fr 1fr;
}

.system-section {
  background: var(--ivory);
}

.system-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
}

.system-flow > b {
  align-self: center;
  color: var(--terracotta);
  font-size: 28px;
}

.system-flow article {
  background: var(--paper);
  border-top: 3px solid var(--terracotta);
  padding: 30px;
  min-height: 260px;
}

.system-flow span,
.connection-card-head span,
.connection-card-head b,
.connection-boundary span {
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.system-flow h3 {
  font-family: var(--display);
  font-size: 25px;
  margin: 28px 0 10px;
}

.system-flow p,
.system-flow small,
.system-note {
  color: var(--muted);
}

.system-flow small {
  display: block;
  margin-top: 22px;
}

.system-note {
  max-width: 900px;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--terracotta);
}

.connection-boundary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: white;
  margin-bottom: 44px;
}

.connection-boundary article {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.connection-boundary article:last-child {
  border-right: 0;
}

.connection-boundary h3 {
  font-family: var(--display);
  margin: 18px 0 8px;
}

.connection-boundary p,
.connection-card p,
.manual-handoff > p:not(.kicker) {
  color: var(--muted);
}

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

.connection-card {
  border: 1px solid var(--line);
  background: white;
  padding: 26px;
}

.connection-card.selected-connection {
  border-color: var(--terracotta);
  box-shadow: inset 4px 0 0 var(--terracotta);
}

.connection-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.connection-card-head b {
  color: var(--green);
}

.connection-card h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  margin: 28px 0 8px;
}

.connection-card > strong {
  font-size: 13px;
}

.connection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.connection-actions button {
  border: 0;
  background: var(--green);
  color: white;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.manual-handoff {
  margin-top: 44px;
  background: var(--green);
  color: white;
  padding: 36px;
}

.manual-handoff h2 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  margin: 0 0 12px;
}

.manual-handoff > p:not(.kicker) {
  color: #bfd0c7;
  max-width: 760px;
}

.manual-handoff .button-primary {
  margin-top: 14px;
}

.handoff-callout > * {
  padding: 24px;
}

.handoff-callout > div {
  border-left: 1px solid var(--line);
}

.handoff-callout span {
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.handoff-callout p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.handoff-guide h2 {
  font-size: 23px;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.platform-links a,
.platform-links button {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}

.platform-links a:first-child,
.platform-links button:first-child {
  background: var(--green);
  color: white;
}

.handoff-done {
  margin-top: 28px;
}

.handoff-note {
  font-size: 13px;
  margin-top: 18px;
  max-width: 720px;
}

.assignment-reminder {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: -18px 0 32px;
  background: var(--green);
  color: white;
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.assignment-reminder strong {
  color: var(--clay);
  margin-right: 8px;
}

.course-library-preview { padding: 0; overflow: hidden; }
.course-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: var(--green);
  color: white;
}
.course-preview-top strong { display: block; margin-top: 5px; font-family: var(--display); }
.course-progress { color: var(--clay); font-size: 11px; font-weight: 800; }
.course-preview-body { padding: 24px; }
.course-preview-body > p { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.course-active-lesson {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--ivory);
  border: 1px solid var(--line);
}
.course-active-lesson > span { color: var(--terracotta); font-weight: 800; }
.course-active-lesson small { color: var(--terracotta); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.course-active-lesson h3 { margin: 4px 0; font-family: var(--display); font-size: 20px; }
.course-active-lesson p { margin: 0; font-size: 12px; }
.course-active-lesson b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--terracotta); color: white; font-size: 11px; }
.course-module-list { margin-top: 14px; border-top: 1px solid var(--line); }
.course-module-list > div { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.course-module-list span { color: var(--terracotta); font-size: 10px; font-weight: 800; }
.course-module-list strong { font-size: 13px; }
.course-module-list small { color: var(--muted); font-size: 10px; }

.twin-showcase {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  background: var(--green);
  color: white;
  overflow: hidden;
}

.twin-showcase-copy h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .94;
  margin: 0 0 26px;
}

.twin-showcase-copy > p:not(.kicker) {
  color: rgba(255, 255, 255, .7);
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 30px;
}

.twin-showcase .kicker {
  color: var(--clay);
}

.twin-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.twin-video-card {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.twin-video-card:nth-child(even) { transform: translateY(34px); }

.twin-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
}

.twin-video-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px 20px 22px;
}

.twin-video-card figcaption span {
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.twin-video-card figcaption strong {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.35;
  color: var(--graphite);
}

@media (max-width: 920px) {
  .pipeline-head-actions { justify-content:flex-start; margin-top:22px; }
  .pipeline-summary { grid-template-columns:repeat(7,112px); margin-right:-20px; }
  .pipeline-table-wrap { margin-right:-20px; }
  .handoff-section {
    grid-template-columns: 1fr;
  }

  .handoff-intro {
    position: static;
  }

  .handoff-callout {
    grid-template-columns: 1fr;
  }

  .system-flow {
    grid-template-columns: 1fr;
  }

  .system-flow > b {
    transform: rotate(90deg);
    justify-self: center;
  }

  .connection-boundary {
    grid-template-columns: 1fr;
  }

  .connection-boundary article,
  .connection-boundary article:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .connection-boundary article:last-child {
    border-bottom: 0;
  }

  .handoff-callout > div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .twin-showcase {
    grid-template-columns: 1fr;
  }

  .twin-video-grid {
    max-width: 640px;
    margin-bottom: 34px;
  }
}

@media (max-width: 620px) {
  .pipeline-head-actions .button { width:auto; }
  .pipeline-form { padding:22px 18px; }
  .pipeline-form-grid { grid-template-columns:1fr; }
  .pipeline-form-grid label.wide { grid-column:auto; }
  .handoff-map article,
  .handoff-guide article {
    grid-template-columns: 38px 1fr;
    gap: 10px;
  }

  .handoff-done {
    width: 100%;
  }

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

  .manual-handoff {
    padding: 28px 22px;
  }

  .manual-handoff h2 {
    font-size: 36px;
  }

  .course-preview-top { align-items: flex-start; }
  .course-active-lesson { grid-template-columns: 30px 1fr; }
  .course-active-lesson b { display: none; }
  .course-module-list > div { grid-template-columns: 28px 1fr; }
  .course-module-list small { grid-column: 2; }

  .twin-showcase-copy h2 {
    font-size: 48px;
  }

  .twin-video-grid {
    grid-template-columns: 1fr;
    width: min(100%, 390px);
    margin: 0 auto;
  }

  .twin-video-card,
  .twin-video-card-primary {
    margin-top: 0;
    transform: none;
  }
}
