.how-page .site-header-shell:not(.is-scrolled):not(:has(.nav-toggle[aria-expanded="true"])) {
  color: var(--white);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .38), transparent);
}
.how-page .site-header-shell:not(.is-scrolled):not(:has(.nav-toggle[aria-expanded="true"])) .language :is(a, span) {
  color: var(--white);
}
.how-page .site-header-shell:not(.is-scrolled) .nav-cta {
  background: var(--white);
  border-color: var(--white);
  color: var(--forest);
}
.how-page .site-header-shell .nav-cta:hover { background: var(--sage-tint); border-color: var(--sage-tint); }
.how-page .site-header-shell .nav-cta:active { background: var(--canvas); border-color: var(--forest); }
.how-page .site-header-shell .nav-cta:focus-visible { outline-color: var(--sage); }
.how-page [aria-current="page"] { font-weight: 600; }

.how-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--forest); }
.how-hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(to right, #081613bd, #08161355 55%, transparent),
    url("../../assets/how-it-works/hero.jpg") 9% 40.65% / 132.43% auto no-repeat;
}
.how-hero-contours { position: absolute; z-index: -1; top: 0; left: 50%; width: 50%; height: auto; pointer-events: none; }
.how-hero-copy {
  min-height: calc(var(--hero-height) - var(--map-height));
  padding-block: calc(var(--header-height) + var(--hero-inset)) var(--hero-inset);
}
.how-hero-copy .section-label { background: var(--canvas); color: var(--forest); }
.how-hero .page-title { margin-top: 30px; }
.how-hero-edge { height: var(--map-height); }
.how-hero-edge img { width: 100%; height: 100%; object-fit: fill; }

.how-introduction, .how-process { background: var(--white); }
.how-intro-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: var(--section-gap);
  padding-block: 24px;
}
.how-intro-next { display: grid; align-content: start; }
.how-intro-next > p { color: var(--muted); }
.how-actions { align-items: flex-start; flex-wrap: wrap; }

.how-process { overflow: hidden; padding-block: var(--process-section-inset); }
.how-process-layout { display: grid; grid-template-columns: minmax(230px, 30%) minmax(0, 1fr); gap: var(--section-gap); }
.how-process-aside { display: flex; flex-direction: column; align-items: flex-end; gap: var(--section-gap); }
.how-process-aside h2 { align-self: stretch; }
.how-process h2 strong { font-weight: 600; }
.how-process-photo { width: 638px; flex: 0 0 auto; }
.how-process-photo svg, .how-mission-photo svg { width: 100%; height: auto; }
.how-steps { --number-column: 150px; }
.how-week { display: flex; flex-direction: column; gap: 6px; }
.how-week > span:first-child { color: var(--muted); }
.how-steps p + p { margin-top: 20px; }

.how-reviews { background: var(--canvas); padding-block: 90px 120px; }
.how-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 571fr) minmax(0, 569fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "copy card" "notes card" ". participation";
  gap: 24px var(--section-gap);
  align-items: start;
}
.how-review-copy { grid-area: copy; }
.how-review-notes { grid-area: notes; }
.how-review-notes p { color: var(--muted); }
.how-review-link { grid-area: participation; }
.how-time-card { grid-area: card; }
.how-time-card table { width: 100%; border-collapse: collapse; text-align: left; }
.how-time-card th, .how-time-card td { border-block: 1px solid var(--line); padding: 24px 8px 24px 0; }
.how-time-card th:first-child { width: 52%; }
.how-time-card tbody th { font-weight: inherit; }

.how-mission { overflow: hidden; background: var(--sage-tint); padding-block: 90px; }
.how-mission-layout {
  --how-mission-copy-width: min(777px, 66%);
  --how-mission-photo-width: max(705px, 50vw - 115px);
  position: relative;
  min-height: calc(var(--how-mission-photo-width) * 808 / 705 + 30px);
  padding-bottom: 30px;
}
.how-mission-intro, .how-position { width: var(--how-mission-copy-width); }
.how-mission-lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--section-gap);
  border-top: 1px solid var(--forest);
  margin-top: 30px;
  padding-top: 61px;
}
.how-position { margin-top: 90px; }
.how-mission-subtitle {
  font-size: 32px;
  font-weight: 500;
  line-height: 36px;
}
.how-position-copy {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}
.how-position-copy p + p { margin-top: 1lh; }
.how-examples { display: grid; gap: 32px; margin-top: 32px; }
.how-ai, .how-mission-pricing { width: min(100%, 787px); }
.how-example-flow h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 32px;
}
.how-example-with-ai { border-top: 1px solid var(--forest); padding-top: 60px; }
.how-example-steps {
  --flow-gap: 56px;
  --flow-arrow: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--flow-gap);
  padding: 0;
  list-style: none;
}
.how-example-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  overflow-wrap: anywhere;
}
.how-example-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  width: var(--flow-arrow);
  height: var(--flow-arrow);
  top: 50%;
  left: calc(100% + var(--flow-gap) / 2);
  transform: translate(-50%, -50%);
  background: url("../../assets/how-it-works/examples-arrow-right.svg") center / contain no-repeat;
}
.how-example-changed { background: rgb(255 255 255 / 24%); border-radius: 12px; }
.how-mission-pricing { margin-top: 60px; }
.how-mission-pricing .subsection-copy, .how-mission-pricing .button { margin-top: 24px; }
.how-mission-photo {
  position: absolute;
  top: 0;
  left: calc(var(--how-mission-copy-width) + 30px);
  width: var(--how-mission-photo-width);
}

@media (768px <= width < 1280px) {
  .how-process-layout { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.7fr); }
  .how-process-photo { width: 100%; }
  .how-steps { --number-column: 116px; }
  .how-review-layout { column-gap: 48px; }
  .how-mission { padding-block: var(--section-gap); }
  .how-mission-layout { --how-mission-photo-width: clamp(520px, 55vw, 705px); }
  .how-mission-lead { gap: 28px; }
}

@media (width < 768px) {
  .how-hero-art { background: linear-gradient(to bottom, #08161312, #08161324 39%, #081613ed), url("../../assets/how-it-works/hero.jpg") center / cover no-repeat; }
  .how-page .site-header-shell:not(.is-scrolled):not(:has(.nav-toggle[aria-expanded="true"])) { background: transparent; }
  .how-hero-copy { min-height: 0; }
  .how-hero .page-title { margin-top: var(--section-gap); }
  .how-hero-edge img { object-fit: cover; }
  .how-intro-layout { grid-template-columns: minmax(0, 1fr); padding-block: var(--mobile-section-padding); }
  .how-intro-next { gap: var(--section-gap); }
  .how-intro-next > p { color: var(--forest); }
  .how-introduction .button-secondary, .how-mission .button-secondary { border-color: var(--forest); }
  .how-introduction .button-secondary:hover, .how-mission .button-secondary:hover { border-color: var(--sage-tint); }
  .how-mission { padding-block: var(--mobile-section-padding); }
  .how-process-layout { display: flex; flex-direction: column; }
  .how-process h2 strong { font-weight: 700; }
  .how-photo-band { --photo-offset: 0px; width: calc(100% + 2 * var(--gutter)); background: transparent; }
  .how-week { flex-direction: row; align-items: baseline; gap: 12px; }
  .how-steps p + p { margin-top: 22px; }
  .how-reviews { padding-block: 32px; }
  .how-review-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "copy" "card" "notes" "participation";
    gap: 24px;
  }
  .how-time-card { padding: 20px; }
  .how-time-card th, .how-time-card td { padding: 12px 4px 12px 0; }
  .how-time-card th:first-child { width: 45%; }
  .how-review-link { min-height: 0; padding: 0; border: 0; border-radius: 0; font-size: 14px; line-height: 22px; }
  .how-review-link:is(:hover, :active) { background: transparent; text-decoration: underline; }
  .how-mission-layout { min-height: 0; padding-bottom: 0; }
  .how-mission-intro, .how-position { width: auto; }
  .how-mission-lead { grid-template-columns: minmax(0, 1fr); padding: 0; border: 0; margin-block: var(--section-gap); }
  .how-position { margin-top: 32px; }
  .how-mission-subtitle { font-size: 24px; line-height: 32px; }
  .how-position-copy { font-size: 16px; line-height: 26px; }
  .how-example-with-ai { padding-top: 24px; }
  .how-example-steps { --flow-gap: 12px; --flow-arrow: 14px; }
  .how-example-steps li { padding-block: 16px; gap: 8px; font-size: clamp(11px, 3vw, 14px); line-height: 18px; }
  .how-example-steps li:not(:last-child)::after { top: 36px; }
  .how-example-steps img { width: 40px; height: 40px; }
  .how-example-steps br { display: none; }
  .how-mission-pricing { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 0; }
}
