/* Site-wide editorial rhythm: varied heading choreography and fewer boxed modules. */

/* Shared heading variations ------------------------------------------------ */
.four-skills > .section-heading-row,
.capacity-heading,
.feedback-title-wrap,
.curriculum > .section-heading-row,
.career > .section-heading-row,
.voices-heading,
.pricing-heading,
.faq-title-wrap {
  display: block;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.four-skills > .section-heading-row .section-label,
.capacity-heading .section-label,
.feedback-title-wrap .section-label,
.curriculum > .section-heading-row .section-label,
.career > .section-heading-row .section-label,
.voices-heading .section-label,
.pricing-heading .section-label,
.faq-title-wrap .section-label {
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

.capacity-heading .section-heading-lead,
.voices-heading .section-heading-lead,
.pricing-heading .section-heading-lead {
  max-width: 760px;
  margin: 28px auto 0;
}

.flow-intro,
.space-heading,
.works-heading,
.small-work-title,
.timeline > .section-heading-row,
.flexible-heading {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  align-items: end;
}

.flow-intro .section-heading-main,
.space-heading .section-heading-main,
.works-heading .section-heading-main,
.small-work-title .section-heading-main,
.timeline > .section-heading-row .section-heading-main,
.flexible-heading .section-heading-main {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.flow-intro .section-label,
.space-heading .section-label,
.works-heading .section-label,
.small-work-title .section-label,
.timeline > .section-heading-row .section-label,
.flexible-heading .section-label {
  justify-content: flex-end;
  margin-left: auto;
}

.flow-intro .section-heading-lead,
.space-heading .section-heading-lead,
.works-heading .section-heading-lead,
.small-work-title .section-heading-lead,
.flexible-heading .section-heading-lead {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  max-width: 560px;
  margin: 0;
}

.feedback-title-wrap h2,
.curriculum > .section-heading-row h2,
.career > .section-heading-row h2,
.faq-title-wrap h2 {
  margin-right: auto;
  margin-left: auto;
}

.works-heading h2,
.small-work-title h2,
.timeline > .section-heading-row h2,
.flexible-heading h2 {
  margin-left: auto;
}

/* FOUR SKILLS — one continuous learning rail, not four cards. */
.skill-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.skill-card,
.skill-card:nth-child(n),
.skill-b {
  min-height: 520px;
  margin: 0;
  padding: 34px clamp(22px, 2.2vw, 40px) 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.skill-card:last-child {
  border-right: 0;
}

.skill-card:hover,
.skill-card:nth-child(n):hover {
  background: var(--accent-panel);
  color: var(--white);
  transform: none;
}

.skill-card:hover li {
  border-color: rgba(255, 255, 255, .48);
}

.skill-card:hover p {
  color: var(--white);
}

.skill-card:hover .skill-no {
  color: var(--white);
}

.skill-no {
  position: static;
  display: block;
  margin-bottom: clamp(70px, 8vw, 126px);
  color: var(--accent-panel);
  font-size: clamp(44px, 4.8vw, 76px);
  line-height: .8;
}

.skill-en {
  margin-bottom: 16px;
}

.skill-card h3 {
  margin: 0 0 22px;
  font-size: clamp(28px, 2.5vw, 42px);
  line-height: 1.35;
}

.skill-card h3 span {
  display: block;
}

.skill-card p {
  color: #62625f;
}

/* HOW IT WORKS — a single connected route. */
.flow-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.flow-track article,
.flow-track .flow-featured {
  min-height: 360px;
  padding: 30px clamp(22px, 2.4vw, 42px) 38px;
  border: 0;
  border-right: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.flow-track article:last-of-type {
  border-right: 0;
}

.flow-track article:hover,
.flow-track .flow-featured:hover {
  background: transparent;
  color: var(--ink);
}

.flow-track article p,
.flow-track article:hover p,
.flow-track .flow-featured p,
.flow-track .flow-featured:hover p {
  color: #62625f;
}

.flow-track .flow-arrow {
  display: none;
}

/* CAPACITY — four facts on one information band. */
.capacity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
  border-top: 1px solid rgba(255,255,255,.62);
  border-bottom: 1px solid rgba(255,255,255,.62);
}

.capacity-card,
.capacity-card-dark,
.capacity-card-lined,
.capacity-card-open,
.capacity-card:nth-child(n) {
  min-height: 340px;
  padding: 30px clamp(20px, 2.2vw, 38px) 36px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.42);
  background: transparent;
  color: var(--white);
  box-shadow: none;
  transform: none;
}

.capacity-card:last-child {
  border-right: 0;
}

.capacity-card:hover,
.capacity-card-dark:hover,
.capacity-card-lined:hover,
.capacity-card-open:hover {
  background: transparent;
  color: var(--white);
}

.capacity-card > strong {
  margin: 50px 0 auto;
}

.capacity-card-open strong {
  color: transparent;
  -webkit-text-stroke-color: var(--white);
}

.capacity-note {
  max-width: 100%;
  margin-top: 36px;
  padding: 22px 0 0;
  border: 0;
}

/* MENTOR EXPERIENCE — a chronological rule instead of mini cards. */
.mentor-principles {
  display: block;
  margin-top: 44px;
  border: 0;
  border-top: 1px solid var(--line-dark);
}

.mentor-principles article,
.mentor-principles article:nth-child(n) {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(200px, .75fr) minmax(0, 1.7fr);
  gap: 24px;
  align-items: baseline;
  min-height: 0;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink);
}

.mentor-principles article:hover {
  background: transparent;
  color: var(--ink);
}

.mentor-principles h3 {
  margin: 0;
}

.mentor-principles p,
.mentor-principles article:hover p {
  margin: 0;
  color: #62625f;
}

/* CURRICULUM — an indexed syllabus, not six boxes. */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(48px, 8vw, 140px);
  border: 0;
  border-top: 2px solid var(--ink);
}

.curriculum-grid article,
.curriculum-grid article:nth-child(n) {
  display: grid;
  grid-template-columns: minmax(170px, .75fr) minmax(0, 1.25fr);
  gap: 20px;
  align-content: start;
  min-height: 0;
  padding: 30px 0 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.curriculum-grid article:hover,
.curriculum-grid article:nth-child(n):hover {
  background: transparent;
  color: var(--ink);
}

.curriculum-grid article > .mono {
  grid-column: 1 / -1;
}

.curriculum-grid h3 {
  margin: 12px 0 0;
  font-size: clamp(24px, 2.2vw, 34px);
}

.curriculum-grid ul {
  margin: 12px 0 0;
}

/* OUTPUTS — a large typographic index. */
.output-stack {
  display: block;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.62);
}

.output-card,
.output-card:nth-child(n),
.output-card:last-child {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) minmax(280px, 1.55fr) minmax(180px, .7fr);
  gap: 24px;
  align-items: baseline;
  min-height: 0;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.48);
  background: transparent;
  color: var(--white);
  box-shadow: none;
  transform: none;
}

.output-card strong {
  margin: 0;
  font-size: clamp(26px, 3vw, 46px);
}

.output-card small {
  justify-self: end;
  font-size: 13px;
}

/* POSSIBLE PATHS — an open numbered directory. */
.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(50px, 8vw, 140px);
  border: 0;
  border-top: 2px solid var(--ink);
  counter-reset: career-item;
}

.career-grid article,
.career-grid article:nth-child(n),
.career-grid .career-dark {
  grid-column: auto;
  min-height: 0;
  margin: 0;
  padding: 58px 0 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
  counter-increment: career-item;
}

.career-grid article::before,
.career-grid article:nth-child(n)::before {
  top: 22px;
  left: 0;
  color: var(--accent-panel);
  content: "PATH 0" counter(career-item);
}

.career-grid article::after,
.career-grid article:nth-child(n)::after {
  top: 18px;
  right: 0;
  color: var(--ink);
}

.career-grid article p,
.career-grid article:nth-child(n) p {
  color: #62625f;
}

.career-grid article:hover,
.career-grid article:nth-child(n):hover {
  background: transparent;
  color: var(--ink);
}

.career-grid article:hover p {
  color: #62625f;
}

.lifestyle-row {
  border-left: 0;
}

/* COME & GO — one shared split field. */
.flexible-grid {
  gap: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.62);
  border-bottom: 1px solid rgba(255,255,255,.62);
}

.flexible-grid article,
.flexible-grid article:first-child,
.flexible-grid article:last-child {
  min-height: 280px;
  padding: 30px clamp(22px, 3vw, 52px) 38px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: var(--white);
  box-shadow: none;
  transform: none;
}

.flexible-grid article:last-child {
  border-right: 0;
}

.flexible-grid h3 {
  margin-top: 64px;
}

.flexible-grid p,
.flexible-grid article:first-child p,
.flexible-grid article:last-child p {
  color: rgba(255,255,255,.8);
}

.flexible-note {
  max-width: 100%;
  margin-top: 34px;
  padding-left: 0;
  border: 0;
}

/* Medium layouts ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .flow-intro,
  .space-heading,
  .works-heading,
  .small-work-title,
  .timeline > .section-heading-row,
  .flexible-heading {
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  }

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

  .skill-card:nth-child(2n),
  .capacity-card:nth-child(2n) {
    border-right: 0;
  }

  .skill-card:nth-child(-n+2),
  .capacity-card:nth-child(-n+2) {
    border-bottom: 1px solid currentColor;
  }

  .curriculum-grid,
  .career-grid {
    gap: 0 44px;
  }

  .curriculum-grid article {
    display: block;
  }

  .mentor-principles article {
    grid-template-columns: 150px minmax(180px, .8fr) minmax(0, 1.2fr);
  }
}

/* Mobile keeps contrast while protecting reading order. */
@media (max-width: 760px) {
  .four-skills > .section-heading-row,
  .capacity-heading,
  .feedback-title-wrap,
  .curriculum > .section-heading-row,
  .career > .section-heading-row,
  .voices-heading,
  .pricing-heading,
  .faq-title-wrap {
    text-align: left;
  }

  .four-skills > .section-heading-row .section-label,
  .capacity-heading .section-label,
  .feedback-title-wrap .section-label,
  .curriculum > .section-heading-row .section-label,
  .career > .section-heading-row .section-label,
  .voices-heading .section-label,
  .pricing-heading .section-label,
  .faq-title-wrap .section-label {
    justify-content: flex-start;
    margin-left: 0;
  }

  .capacity-heading .section-heading-lead,
  .voices-heading .section-heading-lead,
  .pricing-heading .section-heading-lead {
    margin-top: 24px;
    margin-left: 0;
  }

  .flow-intro,
  .space-heading,
  .works-heading,
  .small-work-title,
  .timeline > .section-heading-row,
  .flexible-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .flow-intro .section-heading-main,
  .space-heading .section-heading-main,
  .works-heading .section-heading-main,
  .small-work-title .section-heading-main,
  .timeline > .section-heading-row .section-heading-main,
  .flexible-heading .section-heading-main {
    order: 0;
    text-align: right;
  }

  .flow-intro .section-heading-lead,
  .space-heading .section-heading-lead,
  .works-heading .section-heading-lead,
  .small-work-title .section-heading-lead,
  .flexible-heading .section-heading-lead {
    order: 1;
    margin-top: 26px;
  }

  .skill-grid,
  .capacity-grid,
  .flow-track,
  .curriculum-grid,
  .career-grid,
  .flexible-grid {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .skill-card:nth-child(n),
  .capacity-card,
  .capacity-card:nth-child(n) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid currentColor;
  }

  .skill-card:last-child,
  .capacity-card:last-child {
    border-bottom: 0;
  }

  .skill-no {
    margin-bottom: 54px;
  }

  .flow-track article,
  .flow-track .flow-featured {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .flow-track article:last-of-type {
    border-bottom: 0;
  }

  .mentor-principles article,
  .mentor-principles article:nth-child(n) {
    display: block;
  }

  .mentor-principles h3 {
    margin: 18px 0 10px;
  }

  .curriculum-grid,
  .career-grid {
    gap: 0;
  }

  .output-card,
  .output-card:nth-child(n),
  .output-card:last-child {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .output-card small {
    justify-self: start;
  }

  .flexible-grid article,
  .flexible-grid article:first-child,
  .flexible-grid article:last-child {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.45);
  }

  .flexible-grid article:last-child {
    border-bottom: 0;
  }
}

/* Final editorial pass ---------------------------------------------------
   These rules are intentionally last: the page has several historical
   component layers, so the final rhythm and non-card surfaces must be
   explicit at the point where the complete cascade is known. */

/* Only actionable button surfaces use pill-shaped ends. */
.header-cta,
.button,
.faq-more-button {
  border-radius: 999px;
}

.mobile-heading-break {
  display: none;
}

/* Heading choreography: centered statements. */
.four-skills > .section-heading-row,
.capacity-heading,
.feedback-title-wrap,
.curriculum > .section-heading-row,
.career > .section-heading-row,
.voices-heading,
.pricing-heading,
.faq-title-wrap {
  display: block;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.four-skills > .section-heading-row .section-heading-main,
.capacity-heading .section-heading-main,
.feedback-title-wrap .section-heading-main,
.curriculum > .section-heading-row .section-heading-main,
.career > .section-heading-row .section-heading-main,
.voices-heading .section-heading-main,
.pricing-heading .section-heading-main,
.faq-title-wrap .section-heading-main {
  width: min(100%, 760px);
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.four-skills > .section-heading-row .section-heading-main {
  width: min(100%, 88vw, 1240px);
}

.four-skills > .section-heading-row .section-label,
.capacity-heading .section-label,
.feedback-title-wrap .section-label,
.curriculum > .section-heading-row .section-label,
.career > .section-heading-row .section-label,
.voices-heading .section-label,
.pricing-heading .section-label,
.faq-title-wrap .section-label {
  justify-content: flex-start;
  margin-right: auto;
  margin-left: 0;
}

.four-skills > .section-heading-row h2,
.capacity-heading h2,
.feedback-title-wrap h2,
.curriculum > .section-heading-row h2,
.career > .section-heading-row h2,
.voices-heading h2,
.pricing-heading h2,
.faq-title-wrap h2 {
  margin-right: auto;
  margin-left: auto;
}

.four-skills > .section-heading-row .section-heading-lead,
.capacity-heading .section-heading-lead,
.feedback-title-wrap .section-heading-lead,
.curriculum > .section-heading-row .section-heading-lead,
.career > .section-heading-row .section-heading-lead,
.voices-heading .section-heading-lead,
.pricing-heading .section-heading-lead,
.faq-title-wrap .section-heading-lead {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: left;
}

/* Heading choreography: right/reversed editorial spreads. */
.flow-intro,
.space-heading,
.works-heading,
.small-work-title,
.timeline > .section-heading-row,
.flexible-heading {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.flow-intro .section-heading-main,
.space-heading .section-heading-main,
.works-heading .section-heading-main,
.small-work-title .section-heading-main,
.timeline > .section-heading-row .section-heading-main,
.flexible-heading .section-heading-main {
  grid-column: 2;
  grid-row: 1;
  text-align: left;
}

.flow-intro .section-label,
.space-heading .section-label,
.works-heading .section-label,
.small-work-title .section-label,
.timeline > .section-heading-row .section-label,
.flexible-heading .section-label {
  justify-content: flex-start;
  margin-right: auto;
  margin-left: 0;
}

.flow-intro .section-heading-lead,
.space-heading .section-heading-lead,
.works-heading .section-heading-lead,
.small-work-title .section-heading-lead,
.flexible-heading .section-heading-lead {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  max-width: 560px;
  margin: 0;
  text-align: left;
}

.timeline > .section-heading-row .section-heading-lead {
  grid-column: 1;
  grid-row: 1;
}

/* Heading choreography: left/asymmetric and integrated relationship units. */
.support-heading,
.mentor-heading,
.outputs-heading,
.day-title-wrap,
.message-grid,
.entry-heading {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.support-heading .section-heading-main,
.mentor-heading .section-heading-main,
.outputs-heading .section-heading-main,
.day-title-wrap .section-heading-main,
.message-grid .section-heading-main,
.entry-heading .section-heading-main {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

.support-heading .section-heading-lead,
.mentor-heading .section-heading-lead,
.outputs-heading .section-heading-lead,
.message-grid .section-heading-lead,
.entry-heading .section-heading-lead {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  max-width: 680px;
  margin: 0;
  text-align: left;
}

.promise-title-wrap {
  display: block;
  max-width: 1180px;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.promise-title-wrap .section-heading-main,
.relationship-compact-heading {
  text-align: left;
}

.promise-title-wrap .section-label,
.relationship-compact-heading .section-label {
  justify-content: flex-start;
  margin-left: 0;
}

.relationship-compact-heading h2 {
  text-align: left;
}

/* Connected learning route: no hover-dependent contrast or tile lift. */
.flow-track {
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}

.flow-track article,
.flow-track .flow-featured,
.flow-track article.flow-featured,
.flow-track article:hover,
.flow-track .flow-featured:hover {
  border-right-color: var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
  transition: none;
}

.flow-track article p,
.flow-track article:hover p,
.flow-track .flow-featured p,
.flow-track .flow-featured:hover p {
  color: #62625f;
}

.flow-track article .flow-day,
.flow-track article:hover .flow-day,
.flow-track article.flow-featured .flow-day,
.flow-track .flow-featured:hover .flow-day {
  display: block;
  color: var(--accent-panel);
}

.feedback-title-wrap .section-label::before {
  background: currentColor;
}

@media (min-width: 1101px) {
  .flow-track {
    grid-template-rows: repeat(4, auto);
  }

  .flow-track article {
    display: grid;
    grid-row: 1 / span 4;
    grid-template-rows: subgrid;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .flow-track {
    grid-template-columns: 1fr;
  }

  .flow-track article,
  .flow-track .flow-featured {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-track article:last-of-type {
    border-bottom: 0;
  }
}

/* Numbered support ledger. */
.support-list {
  display: block;
  border-top: 2px solid var(--line);
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
}

.support-list article,
.support-list article:hover {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transform: none;
  transition: none;
}

.support-list article:last-child {
  border-bottom: 0;
}

.support-list article > span {
  color: var(--accent);
}

/* Checklist board: one shared outer field and ruled checkpoints. */
.feedback-board,
.feedback-board:hover {
  max-width: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.feedback-board ul {
  border-left: 0;
}

.feedback-board li,
.feedback-board li:nth-child(2n) {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: none;
}

.feedback-board li:nth-child(2n) {
  border-right: 0;
}

.feedback-board li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.feedback-board li span,
.board-top span:last-child {
  color: var(--accent);
}

/* Mentor credentials ledger: dark text on the active light mentor surface. */
.mentor-principles {
  display: block;
  border-top-color: var(--line);
  border-left: 0;
}

.mentor-principles article,
.mentor-principles article:nth-child(n),
.mentor-principles article:hover {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(200px, .75fr) minmax(0, 1.7fr);
  gap: 24px;
  align-items: baseline;
  min-height: 0;
  padding: 24px 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transform: none;
  transition: none;
}

.mentor-principles article:last-child {
  border-bottom: 0;
}

.mentor-principles p,
.mentor-principles article:hover p {
  color: #62625f;
}

/* Indexed syllabus and typographic output directory. */
.curriculum-grid {
  border-top-color: var(--line);
  border-left: 0;
}

.curriculum-grid article,
.curriculum-grid article:nth-child(n),
.curriculum-grid article:hover,
.curriculum-grid article:nth-child(n):hover {
  min-height: 0;
  padding: 30px 0 34px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transform: none;
  transition: none;
}

.curriculum-grid article:hover,
.curriculum-grid article:nth-child(n):hover,
.curriculum-grid article:active,
.curriculum-grid article:nth-child(n):active {
  background: var(--accent-panel) !important;
  color: var(--white) !important;
}

.curriculum-grid article:hover > *,
.curriculum-grid article:active > * {
  color: var(--white) !important;
}

.curriculum-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.output-stack {
  border-top-color: rgba(255,255,255,.62);
  border-left: 0;
}

.output-card,
.output-card:nth-child(n),
.output-card:last-child {
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(255,255,255,.48);
  background: transparent;
  color: var(--white);
  box-shadow: none;
  transform: none;
  transition: none;
}

.output-card:nth-child(3n) {
  border-right: 0;
}

.output-card:last-child {
  border-bottom: 0;
}

/* Open numbered career directory. */
.career-grid {
  border-top: 2px solid var(--line);
  border-left: 0;
}

.career-grid article,
.career-grid article:nth-child(n),
.career-grid .career-dark,
.career-grid article:hover,
.career-grid article:nth-child(n):hover {
  min-height: 0;
  margin: 0;
  padding: 58px 0 30px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
  transition: none;
}

.career-grid article::before,
.career-grid article:nth-child(n)::before {
  top: 22px;
  left: 0;
  color: var(--accent-panel);
}

.career-grid article::after,
.career-grid article:nth-child(n)::after {
  top: 18px;
  right: 0;
  color: var(--ink);
}

.career-grid article p,
.career-grid article:hover p,
.career-grid article:nth-child(n):hover p {
  color: #62625f;
}

.career-grid article:hover,
.career-grid article:nth-child(n):hover,
.career-grid article:hover h3,
.career-grid article:nth-child(n):hover h3,
.career-grid article:hover p,
.career-grid article:nth-child(n):hover p,
.career-grid article:hover::before,
.career-grid article:nth-child(n):hover::before,
.career-grid article:hover::after,
.career-grid article:nth-child(n):hover::after {
  color: var(--white);
}

.career-grid article:last-child,
.career-grid article:nth-last-child(2) {
  border-bottom: 0;
}

/* Timeline rail. */
.timeline-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 0;
}

.timeline-list article,
.timeline-list article + article {
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
}

.timeline-list article:last-child {
  border-right: 0;
}

/* Desktop keeps the rail boundary on the container and one rule per join. */
@media (min-width: 1101px) {
  .timeline-list article,
  .timeline-list article + article {
    border-top: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-left: 0;
  }

  .timeline-list article:last-child {
    border-right: 0;
  }

  .timeline .timeline-list > article:last-child {
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
}

/* The ordinary skill rail is full-width only at the section background level. */
@media (min-width: 761px) {
  .skill-grid {
    width: min(calc(100% - var(--content-inset) - var(--content-inset)), calc(var(--max) - var(--pad) - var(--pad)));
    margin-right: auto;
    margin-left: auto;
  }
}

/* Keep testimonial records as a real full-bleed horizontal rail at wide sizes. */
.voices-track .voice-card,
.voices-track .voice-card-dark {
  flex: 0 0 clamp(320px, 32vw, 1240px);
}

/* Four-stage session timeline and its continuation row. */
.day-session {
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.day-session-head {
  border-bottom: 1px solid var(--line);
}

.day-schedule {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
}

.day-schedule li,
.day-schedule li:nth-child(2),
.day-schedule li:nth-child(3),
.day-schedule li:last-child {
  min-height: 280px;
  border-top: 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: transparent;
  color: var(--ink);
}

.day-schedule li:last-child {
  border-right: 0;
}

.day-schedule li:not(:last-child)::after {
  color: var(--accent);
}

.day-schedule time,
.day-schedule li:nth-child(3) time {
  color: var(--accent);
}

.day-schedule p,
.day-schedule li:nth-child(3) p {
  color: #62625f;
}

.day-after {
  margin-top: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.day-after time,
.day-after .mono,
.day-after p {
  color: #62625f;
}

.day-after-arrow {
  color: var(--accent);
}

/* Promise comparison: a single shared split field. */
.promise-columns {
  border-top: 2px solid var(--line);
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
}

.promise-columns article,
.promise-columns article:first-child,
.promise-columns article:last-child {
  min-height: 0;
  padding: clamp(28px, 4vw, 52px) 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.promise-columns article + article {
  border-left: 1px solid var(--line);
}

.promise-columns article::after,
.promise-columns article:last-child::after {
  display: none;
}

.promise-columns h3,
.promise-columns ul {
  padding-right: clamp(20px, 4vw, 58px);
  padding-left: clamp(20px, 4vw, 58px);
}

.promise-columns li {
  border-color: var(--line);
}

.promise-columns article:first-child li {
  border-color: var(--line);
  color: var(--ink);
}

/* FAQ and modal lists remain native ruled disclosures. */
.faq .faq-list,
.faq-modal .faq-list--modal {
  border-top: 2px solid currentColor;
  border-right: 0;
  border-bottom: 1px solid currentColor;
  border-left: 0;
  background: transparent;
}

.faq .faq-list details,
.faq-modal .faq-list--modal details {
  border-right: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
}

.faq .faq-list details:last-child,
.faq-modal .faq-list--modal details:last-child {
  border-bottom: 0;
}

/* Converted rails/lists have no legacy hover motion. */
.skill-card,
.capacity-card,
.support-list article,
.feedback-board li,
.mentor-principles article,
.curriculum-grid article,
.output-card,
.career-grid article,
.timeline-list article,
.day-schedule li,
.day-after,
.flexible-grid article,
.promise-columns article,
.faq-list details {
  transition: none;
}

/* Intermediate widths use shared two-column fields, never detached tiles. */
@media (max-width: 1100px) and (min-width: 761px) {
  .support-list article {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .mentor-principles article,
  .mentor-principles article:nth-child(n) {
    grid-template-columns: 150px minmax(180px, .8fr) minmax(0, 1.2fr);
  }

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

  .timeline-list article,
  .timeline-list article + article {
    padding: 60px 22px 22px;
    border-top: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .timeline-list article:nth-child(2n) {
    border-right: 0;
  }

  .timeline-list article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .day-schedule li,
  .day-schedule li:nth-child(2),
  .day-schedule li:nth-child(3),
  .day-schedule li:last-child {
    min-height: 280px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .day-schedule li:nth-child(2n) {
    border-right: 0;
  }

  .day-schedule li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  /* Full-bleed sections still keep their headings on the shared mobile gutter. */
  .four-skills > .section-heading-row,
  .voices-heading {
    width: auto;
    margin-right: var(--content-inset);
    margin-left: var(--content-inset);
  }

  /* Stacking follows the DOM: label, title, then lead/content. */
  .four-skills > .section-heading-row,
  .capacity-heading,
  .feedback-title-wrap,
  .curriculum > .section-heading-row,
  .career > .section-heading-row,
  .voices-heading,
  .pricing-heading,
  .faq-title-wrap {
    display: block;
    text-align: left;
  }

  .four-skills > .section-heading-row .section-heading-main,
  .capacity-heading .section-heading-main,
  .feedback-title-wrap .section-heading-main,
  .curriculum > .section-heading-row .section-heading-main,
  .career > .section-heading-row .section-heading-main,
  .voices-heading .section-heading-main,
  .pricing-heading .section-heading-main,
  .faq-title-wrap .section-heading-main {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .four-skills > .section-heading-row .section-label,
  .capacity-heading .section-label,
  .feedback-title-wrap .section-label,
  .curriculum > .section-heading-row .section-label,
  .career > .section-heading-row .section-label,
  .voices-heading .section-label,
  .pricing-heading .section-label,
  .faq-title-wrap .section-label {
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 0;
  }

  .four-skills > .section-heading-row .section-heading-lead,
  .capacity-heading .section-heading-lead,
  .feedback-title-wrap .section-heading-lead,
  .curriculum > .section-heading-row .section-heading-lead,
  .career > .section-heading-row .section-heading-lead,
  .voices-heading .section-heading-lead,
  .pricing-heading .section-heading-lead,
  .faq-title-wrap .section-heading-lead {
    margin-top: 24px;
    text-align: left;
  }

  .flow-intro,
  .space-heading,
  .works-heading,
  .small-work-title,
  .timeline > .section-heading-row,
  .flexible-heading,
  .support-heading,
  .mentor-heading,
  .outputs-heading,
  .day-title-wrap,
  .message-grid,
  .entry-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .flow-intro .section-heading-main,
  .space-heading .section-heading-main,
  .works-heading .section-heading-main,
  .small-work-title .section-heading-main,
  .timeline > .section-heading-row .section-heading-main,
  .flexible-heading .section-heading-main {
    order: 0;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .flow-intro .section-heading-lead,
  .space-heading .section-heading-lead,
  .works-heading .section-heading-lead,
  .small-work-title .section-heading-lead,
  .flexible-heading .section-heading-lead {
    order: 1;
    width: 100%;
    max-width: none;
    margin-top: 24px;
    text-align: left;
  }

  .support-heading .section-heading-main,
  .mentor-heading .section-heading-main,
  .outputs-heading .section-heading-main,
  .day-title-wrap .section-heading-main,
  .message-grid .section-heading-main,
  .entry-heading .section-heading-main {
    order: 0;
    text-align: left;
  }

  .entry-heading h2 {
    text-align: left;
  }

  .support-heading .section-heading-lead,
  .mentor-heading .section-heading-lead,
  .outputs-heading .section-heading-lead,
  .message-grid .section-heading-lead,
  .entry-heading .section-heading-lead {
    order: 1;
    width: 100%;
    max-width: none;
    margin-top: 24px;
    text-align: left;
  }

  .promise-title-wrap {
    display: block;
    margin-left: 0;
    text-align: left;
  }

  .promise-title-wrap h2 span,
  .relationship-compact-heading h2 span {
    margin-left: 0;
  }

  .relationship-compact-heading,
  .relationship-compact-heading h2 {
    text-align: left;
  }

  /* Keep long Japanese display headings readable without orphaned endings. */
  .message-grid h2,
  .promise-title-wrap h2 {
    font-size: clamp(36px, 9.8vw, 48px);
    line-height: 1.12;
    letter-spacing: -.035em;
  }

  .mentor-heading h2,
  .flexible-heading h2,
  .pricing-heading h2 {
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.14;
    letter-spacing: -.035em;
  }

  .intro-title h2,
  .flow-intro h2 {
    font-size: clamp(28px, 9vw, 46px);
    line-height: 1.14;
    letter-spacing: -.035em;
  }

  .relationship-compact-heading h2 {
    font-size: clamp(29px, 9.8vw, 48px);
    line-height: 1.12;
    letter-spacing: -.035em;
  }

  /* Keep the learning route compact and prevent the first step's copy from
     inheriting the former dark-card white text on the light background. */
  .flow-track article,
  .flow-track .flow-featured {
    padding: 24px 0 28px;
  }

  .flow-track article h3 {
    margin: 14px 0 10px;
  }

  .flow-track article p {
    margin-bottom: 12px;
  }

  .flow-track article ul {
    margin-top: 12px;
  }

  .flow-track article.flow-featured .flow-day {
    color: var(--accent-panel);
  }

  .flow-track article.flow-featured p {
    color: #62625f;
  }

  .support-list article,
  .support-list article:hover {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .feedback-board li,
  .feedback-board li:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feedback-board li:last-child {
    border-bottom: 0;
  }

  .mentor-principles article,
  .mentor-principles article:nth-child(n),
  .mentor-principles article:hover {
    display: block;
    padding: 22px 0;
  }

  .mentor-principles h3 {
    margin: 14px 0 8px;
  }

  .curriculum-grid article,
  .curriculum-grid article:nth-child(n),
  .curriculum-grid article:hover,
  .curriculum-grid article:nth-child(n):hover {
    display: block;
    padding: 24px 0 26px;
  }

  .curriculum-grid article:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .curriculum-grid article:last-child {
    border-bottom: 0;
  }

  .output-stack {
    display: block;
  }

  .output-card,
  .output-card:nth-child(n),
  .output-card:last-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.48);
  }

  .output-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255,255,255,.48);
  }

  .output-card:last-child {
    border-bottom: 0;
  }

  .career-grid article,
  .career-grid article:nth-child(n),
  .career-grid .career-dark,
  .career-grid article:hover,
  .career-grid article:nth-child(n):hover {
    padding: 58px 0 24px;
  }

  .career-grid article:last-child,
  .career-grid article:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .career-grid article:last-child {
    border-bottom: 0;
  }

  .timeline-list {
    display: block;
    padding-left: 14px;
  }

  /* 14px list inset + 17px outer-circle radius - 1.5px rail radius. */
  .timeline-list::before {
    left: 29.5px;
  }

  .timeline-list article,
  .timeline-list article + article {
    padding: 20px 0 42px 60px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-list article:last-child {
    border-bottom: 0;
  }

  .day-session {
    border-top: 0;
  }

  .day-schedule {
    display: block;
  }

  .day-schedule li,
  .day-schedule li:nth-child(2),
  .day-schedule li:nth-child(3),
  .day-schedule li:last-child {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 0;
    padding: 24px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .day-schedule li:last-child {
    border-bottom: 0;
  }

  .day-after {
    grid-template-columns: 1fr auto;
    padding-right: 0;
    padding-left: 0;
  }

  /* Stacked mobile blocks share one separator instead of drawing both edges. */
  .pricing-grid,
  .day-note,
  .capacity-note {
    border-top: 0;
  }

  .promise-columns {
    display: block;
  }

  .promise-columns article,
  .promise-columns article:first-child,
  .promise-columns article:last-child {
    padding: 28px 0;
  }

  .promise-columns article:last-child {
    margin: 0;
  }

  .promise-columns article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .promise-columns h3,
  .promise-columns ul {
    padding-right: 0;
    padding-left: 0;
  }

  .faq .faq-list,
  .faq-modal .faq-list--modal {
    border-bottom-width: 1px;
  }
}

/* THE BASE follows the shared heading contract instead of the reversed spread. */
@media (min-width: 761px) {
  .space-heading {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .5fr);
    gap: clamp(32px, 3.5vw, 64px);
    align-items: start;
  }

  .space-heading .section-heading-main {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .space-heading .section-label {
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 0;
  }

  .space-heading .section-heading-lead {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    max-width: none;
    margin: clamp(0px, 1vw, 14px) 0 0;
    text-align: left;
  }

  .space-heading h2 {
    width: auto;
    text-align: left;
  }

  /* FROM SKILL TO WORK: align the heading's final glyph with the content edge. */
  .small-work-title h2 {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    text-align: right;
  }

  /* POSSIBLE PATHS: anchor the heading block to the section's left content edge. */
  .career > .section-heading-row {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .career > .section-heading-row .section-heading-main,
  .career > .section-heading-row h2 {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .mobile-heading-break {
    display: block;
  }
}

/* Centered heading groups keep every text element on the same center axis. */
.four-skills > .section-heading-row,
.capacity-heading,
.feedback-title-wrap,
.curriculum > .section-heading-row,
.voices-heading,
.pricing-heading,
.faq-title-wrap,
.four-skills > .section-heading-row .section-heading-main,
.capacity-heading .section-heading-main,
.feedback-title-wrap .section-heading-main,
.curriculum > .section-heading-row .section-heading-main,
.voices-heading .section-heading-main,
.pricing-heading .section-heading-main,
.faq-title-wrap .section-heading-main,
.four-skills > .section-heading-row h2,
.capacity-heading h2,
.feedback-title-wrap h2,
.curriculum > .section-heading-row h2,
.voices-heading h2,
.pricing-heading h2,
.faq-title-wrap h2,
.four-skills > .section-heading-row .section-heading-lead,
.capacity-heading .section-heading-lead,
.feedback-title-wrap .section-heading-lead,
.curriculum > .section-heading-row .section-heading-lead,
.voices-heading .section-heading-lead,
.pricing-heading .section-heading-lead,
.faq-title-wrap .section-heading-lead {
  text-align: center;
}

.four-skills > .section-heading-row .section-label,
.capacity-heading .section-label,
.feedback-title-wrap .section-label,
.curriculum > .section-heading-row .section-label,
.voices-heading .section-label,
.pricing-heading .section-label,
.faq-title-wrap .section-label {
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

.four-skills > .section-heading-row .section-label::before,
.capacity-heading .section-label::before,
.feedback-title-wrap .section-label::before,
.curriculum > .section-heading-row .section-label::before,
.voices-heading .section-label::before,
.pricing-heading .section-label::before,
.faq-title-wrap .section-label::before {
  display: none;
}

/* The first learning-route lead stays readable on its permanent light surface. */
.flow-track article.flow-featured p,
.flow-track article.flow-featured:hover p {
  color: #62625f;
}

/* The skills formula reads as an unboxed statement. */
.formula {
  border-top: 0;
  border-bottom: 0;
}
