:root { --content-max-width: 1440px; }

.hero-frame {
  --frame-gutters: clamp(2rem, 5vw, 6rem);
  width: min(calc(100% - var(--frame-gutters)), 120rem);
  margin-inline: auto;
}

.hero-bottom {
  position: relative;
  margin-top: auto;
  /* Measure both insets from the image edge to the intro text column. */
  --copy-width: calc(min(100cqw + var(--frame-gutters), var(--content-max-width)) - 2 * var(--page-gutter));
  --copy-inset: calc((100cqw - var(--copy-width)) / 2);
  margin-inline: var(--copy-inset);
  padding-block: max(3rem, 12cqw) var(--copy-inset);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.hero-copy {
  flex: 1 1 25rem;
  max-width: 39rem;
  color: white;
}
.hero-copy p { margin: 0; }
.hero-brand, .hero-tracks { color: #d5e4db; line-height: 1.55; }
.hero-brand { font-size: .8125rem; font-weight: 650; }
.hero-headline {
  padding-block: .65rem .5rem;
  font-size: clamp(1.625rem, 3.15cqw, 2.625rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.035em;
}
.hero-description { font-size: clamp(1rem, 1.45cqw, 1.1875rem); line-height: 1.55; }
.hero-tracks { margin-top: .625rem !important; font-size: .875rem; }

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max-width);
  padding-inline: var(--page-gutter);
  margin-inline: auto;
}

.wrap h2, .wrap h3, .wrap p, .wrap figure, .wrap dl, .wrap dd {
  margin: 0;
}

.wrap h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.045em;
}

.wrap h3 {
  font-size: clamp(1.18rem, 1.85vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: -.033em;
}

.wrap p, .wrap td, .wrap dd, .wrap figcaption {
  color: #365247;
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.section-intro, .faq, .scholarship {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 5vw, 5rem);
}

main {
  --program-section-gap: clamp(4.5rem, 11vw, 9.5rem);
  --program-group-gap: clamp(2.5rem, 5.5vw, 5rem);
}

.reason {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: var(--program-section-gap);
}

.reason-intro .reason-explanation {
  margin-top: .75rem;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.55;
  word-break: keep-all;
}

.reason-process h3 {
  margin-bottom: .75rem;
  font-size: clamp(1.25rem, 1.65vw, 1.45rem);
}

.reason-process dl {
  --step-gap: clamp(2rem, 3vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--step-gap);
}

.reason-process dl > div {
  position: relative;
  padding: clamp(1.25rem, 2.3vw, 2rem);
  border-radius: .5rem;
  background: #f1f5ef;
}

.reason-process dl > div:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + var(--step-gap) / 2);
  top: 50%;
  width: 1.125rem;
  height: .875rem;
  transform: translate(-50%, -50%);
  background: var(--ink);
  clip-path: polygon(0 43%, 79% 43%, 51% 9%, 59% 0, 100% 50%, 59% 100%, 51% 91%, 79% 57%, 0 57%);
}

.reason-process dt {
  margin-bottom: .65rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.4;
}

.process-icon {
  display: block;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  padding: .625rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.program {
  margin-bottom: var(--program-section-gap);
}

.faq, #compare-title {
  border-top: 1.5px solid var(--ink);
  padding-top: clamp(1.3rem, 2.7vw, 2.5rem);
}

/* The six inclusions share the alternating photo and type treatment of the open page. */
.package-heading {
  background: var(--ink);
  color: var(--paper);
}
.package-heading .wrap {
  padding-block: clamp(1.75rem, 4vw, 3.75rem);
}
.package-heading h2 {
  font-size: clamp(2.2rem, 5.1vw, 4.6rem);
}
.package-heading p {
  margin-top: .7rem;
  color: #dae8df;
}
.package-index {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.6rem;
  margin-top: 1.3rem;
  padding-top: .55rem;
  border-top: 1px solid #728d7f;
}
.package-index a {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding-block: .55rem;
  color: inherit;
  font-weight: 650;
}
.package-index a:hover { text-decoration: underline; }
.package-index span { font-size: .78rem; color: #b8d1c1; }
.package-components {
  display: grid;
  gap: clamp(1.75rem, 3.6vw, 3.25rem);
  margin-top: var(--program-group-gap);
}
.package-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.package-copy {
  padding: clamp(1.25rem, 3.3vw, 3rem);
  align-self: center;
}
.package-item:nth-child(even) { background: var(--ink); color: white; }
.package-item:nth-child(even) .package-image { grid-area: 1 / 1; }
.package-item:nth-child(even) .package-copy { grid-column: 2; }
.package-item:nth-child(even) :is(p, dd) { color: inherit; }
.package-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 26rem;
  object-fit: cover;
  align-self: center;
}
.package-mode {
  display: flex;
  gap: .7rem;
  align-items: center;
  font-weight: 650;
}
.package-mode::before {
  content: '';
  order: -1;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}
.package-mode { font-size: .9rem !important; }
.package-mode b { order: -2; font-size: 1.15rem; }
.package-copy h3 {
  font-size: clamp(1.65rem, 3.2vw, 3rem);
  line-height: 1.2;
  margin: .7rem 0 1rem;
}
.coaching-group {
  padding: clamp(1rem, 1.8vw, 1.5rem);
  border-radius: .4rem;
  background: var(--paper);
  color: var(--ink);
  word-break: keep-all;
}
#online-vod .coaching-group { background: #edf1ea; }
.coaching-group + .coaching-group { margin-top: .75rem; }
.coaching-group h4 { margin: 0 0 .45rem; font-size: 1.2rem; }
.coaching-group small, .coaching-group li span {
  display: inline-block;
  font-size: .92em;
  font-weight: 500;
}
.coaching-group p { margin: 0; }
.coaching-group ul { margin: 0; padding-inline-start: 1.15rem; list-style: disc; }
.coaching-group li { line-height: 1.65; }
.coaching-group li span { margin-inline-start: .35em; }
@media (min-width: 651px) {
  #online-coaching .package-image { max-height: none; }
}
.package-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.35rem;
  border-top: 1px solid currentColor;
  margin-top: 1.25rem !important;
  padding-top: .75rem;
}
.package-facts dt { font-size: .83rem; opacity: .85; }
.package-facts dd { font-weight: 750; color: inherit; }
@media (max-width: 650px) {
  .package-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .8rem; }
  .package-item { grid-template-columns: minmax(0, 1fr); }
  .package-item .package-copy { padding: 1rem; }
  .package-item .package-image, .package-item:nth-child(even) .package-image {
    grid-area: 1 / 1; height: clamp(8rem, 33vw, 13rem);
  }
  .package-item:nth-child(even) .package-copy { grid-column: 1; }
}
.mentor-examples {
  margin-top: var(--program-section-gap);
  scroll-margin-top: 6rem;
}
.mentor-examples h3 {
  margin-bottom: clamp(1.6rem, 3vw, 2.75rem);
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.18;
}
.mentor-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}
.mentor-example {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2rem) 0;
  background: #edf2eb;
  border-radius: 10px;
}
.mentor-example header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem .8rem;
}
.mentor-example h4 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -.035em;
}
.mentor-example header strong { font-size: .9rem; }
.mentor-example > p { margin: .5rem 0 1.3rem; }
.case-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  height: clamp(12rem, 18vw, 16rem);
  overflow: hidden;
  margin-top: auto;
  border-radius: 5px 5px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}
.case-preview img { display: block; width: 100%; height: auto; }
.case-preview .chat-crop { overflow: hidden; min-width: 0; }
/* The scrollbar is part of these screenshots. Crop the right edge inside each grid cell. */
.case-preview .chat-crop img { width: 106.4%; max-width: none; }
.case-preview.coaching-chat {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .7rem .85rem;
  box-sizing: border-box;
  background: #bacfe0;
  color: #17222a;
  font-size: 1rem;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.chat-question, .chat-reply > div {
  padding: .45rem .7rem;
  border-radius: .45rem;
}
.chat-question { align-self: flex-end; max-width: 88%; background: #ffe02e; }
.chat-reply { width: 92%; }
.chat-reply strong { display: block; margin-bottom: .3rem; font-size: .875rem; }
.chat-reply > div { background: #fff; }
.case-preview.coaching-qa {
  height: auto;
  padding-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(to bottom, black calc(100% - 1.5rem), transparent);
}
.coaching-qa .chat-reply:last-child > div { max-height: 3.9em; overflow: hidden; }
.case-preview.paired { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 681px) {
  .mentor-example {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .case-preview { margin-top: 0; align-self: start; }
  .case-preview.paired { height: auto; align-self: stretch; contain: size; }
}
@media (max-width: 680px) {
  .mentor-cases { grid-template-columns: minmax(0, 1fr); }
  .case-preview { height: clamp(11rem, 48vw, 15rem); }
}

.comparison {
  margin-top: 1.8rem;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.comparison th, .comparison td {
  padding: .9rem clamp(.4rem, 1.5vw, 1.4rem);
  border-bottom: 1px solid #c3cfc6;
  vertical-align: top;
}

.comparison thead {
  background: #e6eee5;
}

.comparison thead th {
  font-size: clamp(.98rem, 1.4vw, 1.25rem);
}

.comparison tr > :first-child {
  width: 19%;
}

.scholarship {
  background: var(--ink);
  color: white;
  border-radius: 22px;
  padding: clamp(1.5rem, 4.7vw, 4rem);
}

.scholarship .award {
  color: #d2e8d8;
  margin-top: .8rem;
  font-size: clamp(3.6rem, 6.5vw, 6rem);
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -.05em;
}

.award span {
  font-size: .45em;
  margin-left: .18em;
}

.rules {
  margin-top: .85rem !important;
}

.rules > div {
  border-top: 1px solid #819c8b;
  padding-block: .7rem;
  display: grid;
  grid-template-columns: 5.8rem 1fr;
  gap: 1rem;
}

.rules dt { font-weight: 650; line-height: 1.7; }
.rules dd { color: #edf5ee; }

.faq {
  border-top: 0;
  padding-top: 0;
}

.faq details {
  padding-block: 1rem;
  border-top: 1px solid #b9c9be;
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 680;
  line-height: 1.5;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .7rem; }
summary:focus-visible { outline: 2px solid #348f65; outline-offset: 2px; }

@media (max-width: 720px) {
  .reason-process dl, .scholarship, .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .reason-process dl > div:not(:last-child)::after {
    left: 50%;
    top: calc(100% + var(--step-gap) / 2);
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .comparison th, .comparison td { padding: .7rem .4rem; line-height: 1.5; }
  .comparison tbody { font-size: .92rem; }
  .comparison td { font-size: .92rem; }
  .rules > div { gap: .6rem; }
}
