.how-work-page {
  --text-primary: var(--thistle-900);
  --text-secondary: var(--thistle-800);
  --work-plum: #3a3046;
  --work-plum-soft: #51445f;
  --work-lavender: #f1eafa;
  --work-lavender-deep: #e6dcf1;
  --work-rule: color-mix(in srgb, var(--border-default) 82%, transparent);
  overflow: hidden;
}
[data-theme="dark"] .how-work-page {
  --text-primary: var(--thistle-50);
  --text-secondary: var(--thistle-300);
}
.how-work-page .work-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, .96fr);
  align-items: center;
  gap: clamp(38px, 7vw, 96px);
  padding-block: 82px 96px;
}
.work-hero-copy { max-width: 650px; padding-block: 10px; }
.work-hero-copy .eyebrow { margin-bottom: 23px; }
.work-hero h1 {
  max-width: 650px;
  margin: 0 0 25px;
  padding-block: 12px;
  color: var(--text-primary);
}
.work-hero h1 em { color: var(--primary-text); font-style: normal; }
.work-hero-lead {
  max-width: 570px;
  margin: 0 0 15px;
  color: var(--text-primary);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}
.work-hero-support {
  max-width: 535px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}
.work-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 31px; }
.team-figure {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 424px;
  justify-self: end;
  margin: 0;
  padding: 27px 25px 22px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 3px 34px 3px 34px;
  background:
    radial-gradient(ellipse at 56% 42%, color-mix(in srgb, var(--thistle-200) 58%, transparent), transparent 52%),
    var(--surface-cool);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .team-figure {
  background:
    radial-gradient(ellipse at 56% 42%, color-mix(in srgb, var(--thistle-800) 65%, transparent), transparent 55%),
    var(--surface-cool);
}
.team-figure-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
}
.team-diagram {
  position: relative;
  height: 314px;
  margin-top: 18px;
}
.team-diagram::before {
  content: "";
  position: absolute;
  inset: 7px -25px 12px;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--border-default) 40%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--border-default) 40%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(transparent, #000 15%, #000 84%, transparent);
  opacity: .5;
}
.team-connectors { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.team-connectors path { fill: none; stroke: var(--primary-text); stroke-width: 1.35; stroke-dasharray: 4 5; opacity: .62; }
.team-connectors circle { fill: var(--primary); }
.team-node, .team-specialists {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.team-node {
  width: 152px;
  min-height: 87px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}
.team-node strong, .team-specialists strong { color: var(--text-primary); font-size: 13px; line-height: 1.35; }
.team-node small, .team-specialists small { margin-top: 4px; color: var(--text-secondary); font-size: 11px; line-height: 1.35; }
.team-client { left: 1%; top: 15%; }
.team-client .node-index { align-self: flex-start; margin: -3px 0 4px; color: var(--primary-text); font-size: 9px; letter-spacing: .1em; }
.team-pm {
  left: 50%;
  top: 60%;
  width: 176px;
  min-height: 100px;
  transform: translate(-50%, -50%);
  border-color: color-mix(in srgb, var(--primary-text) 30%, var(--border-subtle));
}
.pm-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 50%;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  font: 400 18px/.9 var(--font-display);
}
.team-specialists { right: 0; top: 15%; width: 140px; }
.specialist-dot {
  position: relative;
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 8px;
  border: 2px solid var(--surface-cool);
  border-radius: 50%;
  background: var(--thistle-300);
  color: var(--work-plum);
  font-size: 10px;
  font-weight: 600;
}
.specialist-dot-two { margin-left: -8px; background: var(--tea-rose-300); }
.specialist-dot-three { margin-left: -8px; background: var(--vista-blue-300); }
.team-specialists strong { margin-top: 1px; }
.alignment-note {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1%;
  width: min(100%, 300px);
  min-height: 54px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  transform: translateX(-50%);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  box-shadow: var(--shadow-sm);
}
.alignment-check {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--on-primary);
  background: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.alignment-note strong, .alignment-note small { display: block; }
.alignment-note strong { color: var(--text-primary); font-size: 12px; line-height: 1.4; }
.alignment-note small { margin-top: 2px; color: var(--text-secondary); font-size: 10px; line-height: 1.3; }
.team-figure figcaption { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 12px; }
.team-figure .caption-line { width: 20px; height: 1px; flex: 0 0 20px; background: var(--primary); }

.communication {
  position: relative;
  padding-block: 60px 66px;
  background: var(--surface-sunken);
}
.communication-inner {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 1.35fr) minmax(220px, .82fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}
.communication-intro .eyebrow { margin-bottom: 12px; }
.communication-intro h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.05; }
.communication-promise { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.tools-label { margin: 0 0 19px; color: var(--text-secondary); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tool-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tool-list li {
  min-width: 62px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.tool-list img { width: 36px; height: 36px; padding: 5px; border-radius: 7px; background: #fff; object-fit: contain; }
.tools-disclaimer { max-width: 410px; margin: 12px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.weekly-sync {
  min-height: 112px;
  padding: 19px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-left: 1px solid var(--border-default);
}
.sync-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 7px;
  border: 1px solid var(--border-default);
  border-radius: 50%;
}
.sync-mark span { width: 2px; border-radius: 2px; background: var(--primary-text); }
.sync-mark span:nth-child(1) { height: 6px; }
.sync-mark span:nth-child(2) { height: 11px; }
.sync-mark span:nth-child(3) { height: 8px; }
.sync-kicker { margin: 0 0 4px; color: var(--text-secondary); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.weekly-sync h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.weekly-sync div > p:last-child { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }

.delivery { padding-block: 120px 132px; }
.delivery-heading {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 360px);
  align-items: end;
  gap: 40px;
  margin-bottom: 47px;
}
.delivery-heading .eyebrow { margin-bottom: 13px; }
.delivery-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 58px); line-height: 1.04; }
.delivery-heading > p { max-width: 345px; margin: 0 0 4px; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.delivery-list {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--work-rule);
}
.delivery-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 47px;
  bottom: 47px;
  left: 103px;
  width: 1px;
  background: linear-gradient(var(--border-default), var(--primary), var(--border-default));
}
.delivery-step {
  position: relative;
  z-index: 1;
  min-height: 169px;
  padding: 34px 0 35px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(140px, 190px);
  align-items: start;
  gap: 27px;
  border-bottom: 1px solid var(--work-rule);
  transition: background-color .2s ease;
}
.delivery-number {
  position: relative;
  z-index: 1;
  width: 108px;
  display: flex;
  align-items: center;
  color: var(--primary-text);
  font-family: var(--font-display);
  font-size: 53px;
  line-height: 1;
  letter-spacing: -.03em;
}
.delivery-number::after {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  top: 20px;
  right: 0;
  border: 2px solid var(--surface-page);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.step-copy { max-width: 650px; }
.step-kicker { margin: 0 0 9px; color: var(--primary-text); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.step-copy h3 { margin: 0 0 11px; color: var(--text-primary); font-size: clamp(25px, 2.7vw, 32px); line-height: 1.16; }
.step-copy > p:last-of-type { max-width: 650px; margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.step-copy a { color: var(--text-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.step-copy a:hover { color: var(--text-link-hover); }
.step-link, .step-aside {
  justify-self: end;
  align-self: center;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}
.step-link { color: var(--text-link); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.step-link span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.step-link:hover span { transform: translate(2px, -2px); }
.delivery-step-onboarding {
  min-height: 270px;
  padding: 39px 28px 40px 0;
  margin-inline: -28px;
  padding-left: 28px;
  background:
    linear-gradient(90deg, transparent 0 107px, color-mix(in srgb, var(--thistle-200) 58%, transparent) 107px, color-mix(in srgb, var(--thistle-200) 58%, transparent) 100%);
}
[data-theme="dark"] .delivery-step-onboarding {
  background: linear-gradient(90deg, transparent 0 107px, color-mix(in srgb, var(--thistle-800) 38%, transparent) 107px, color-mix(in srgb, var(--thistle-800) 38%, transparent) 100%);
}
.delivery-step-onboarding .delivery-number { font-size: 66px; }
.delivery-step-onboarding .delivery-number::after { right: -1px; top: 26px; width: 11px; height: 11px; }
.delivery-step-onboarding .step-copy h3 { font-size: clamp(28px, 3vw, 37px); }
.onboarding-focus { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.onboarding-focus span {
  min-height: 35px;
  padding: 7px 12px 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--border-default) 78%, transparent);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface-page) 73%, transparent);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
}
.onboarding-focus i { color: var(--primary-text); font-size: 9px; font-style: normal; letter-spacing: .06em; }
.onboarding-aside { color: var(--primary-text); font-weight: 600; }

.work-cta {
  position: relative;
  min-height: 300px;
  margin-bottom: 94px;
  padding: 48px 60px 48px 174px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  overflow: hidden;
  border-radius: 3px 34px 3px 34px;
  background: var(--surface-inverse);
  color: var(--text-inverse);
}
.cta-index {
  position: absolute;
  top: 37px;
  left: 38px;
  width: 93px;
  height: 93px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--vista-blue-300) 48%, transparent);
  border-radius: 50%;
  color: var(--thistle-200);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .11em;
  transform: rotate(-9deg);
}
.cta-index i { width: 18px; height: 1px; background: var(--vista-blue-300); }
.work-cta-copy { max-width: 560px; }
.work-cta .eyebrow { margin-bottom: 12px; color: var(--thistle-300); }
.work-cta-copy h2 { margin: 0 0 12px; color: var(--text-inverse); font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.work-cta-copy > p:last-child { max-width: 480px; margin: 0; color: var(--thistle-200); font-size: 15px; line-height: 1.6; }
.work-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.work-cta .button-light { white-space: nowrap; }
.cta-contact { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-inverse); font-size: 13px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cta-contact:hover { color: var(--vista-blue-300); }
[data-theme="dark"] .work-cta .eyebrow,
[data-theme="dark"] .work-cta-copy > p:last-child,
[data-theme="dark"] .cta-index { color: var(--brunswick-700); }
.work-cta a:focus-visible { outline-color: var(--focus-ring-inverse); }
.how-work-page :focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: 4px; }

@media (max-width: 1000px) {
  .how-work-page .work-hero { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); gap: 42px; }
  .communication-inner { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 30px; }
  .weekly-sync { grid-column: 2; min-height: auto; padding: 15px 0 0; border-top: 1px solid var(--border-default); border-left: 0; }
  .delivery-step { grid-template-columns: 88px minmax(0, 1fr) minmax(110px, 145px); gap: 20px; }
  .delivery-list::before { left: 83px; }
  .delivery-number { width: 88px; font-size: 48px; }
  .delivery-number::after, .delivery-step-onboarding .delivery-number::after { right: 0; }
  .delivery-step-onboarding { background: linear-gradient(90deg, transparent 0 87px, color-mix(in srgb, var(--thistle-200) 58%, transparent) 87px, color-mix(in srgb, var(--thistle-200) 58%, transparent) 100%); }
  [data-theme="dark"] .delivery-step-onboarding { background: linear-gradient(90deg, transparent 0 87px, color-mix(in srgb, var(--thistle-800) 38%, transparent) 87px, color-mix(in srgb, var(--thistle-800) 38%, transparent) 100%); }
}
@media (max-width: 767px) {
  .how-work-page .work-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 61px 63px;
  }
  .work-hero-copy .eyebrow { margin-bottom: 17px; }
  .work-hero h1 { margin-bottom: 20px; }
  .work-hero-lead { font-size: 18px; line-height: 1.55; }
  .work-hero-support { font-size: 15px; line-height: 1.7; }
  .work-hero-actions { gap: 16px 22px; margin-top: 25px; }
  .team-figure { justify-self: stretch; max-width: none; min-height: 382px; padding: 22px 18px 19px; border-top-right-radius: 27px; border-bottom-left-radius: 27px; }
  .team-diagram { height: 280px; margin-top: 17px; }
  .team-diagram::before { inset-inline: -18px; background-size: 30px 30px; }
  .team-client { left: -1%; top: 13%; }
  .team-specialists { right: -4%; top: 13%; }
  .team-node { width: 132px; min-height: 79px; padding: 9px; }
  .team-pm { left: 50%; top: 60%; width: 162px; min-height: 96px; }
  .team-node strong, .team-specialists strong { font-size: 12px; }
  .team-node small, .team-specialists small { font-size: 10px; }
  .alignment-note { bottom: 0; width: min(100%, 282px); }
  .team-figure figcaption { font-size: 11px; }
  .communication { padding-block: 55px 56px; }
  .communication-inner { grid-template-columns: 1fr; gap: 28px; }
  .communication-intro h2 { font-size: 32px; }
  .communication-tools { min-width: 0; }
  .tools-label { margin-bottom: 13px; }
  .tool-list { justify-content: flex-start; gap: clamp(10px, 4vw, 21px); }
  .tool-list li { min-width: 53px; font-size: 10px; }
  .tool-list img { width: 36px; height: 36px; }
  .tools-disclaimer { font-size: 11px; }
  .weekly-sync { grid-column: auto; padding-top: 22px; }
  .delivery { padding-block: 77px 82px; }
  .delivery-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 30px; }
  .delivery-heading h2 { font-size: 40px; line-height: 1.03; }
  .delivery-heading > p { max-width: 480px; font-size: 14px; line-height: 1.65; }
  .delivery-list::before { top: 36px; bottom: 36px; left: 44px; }
  .delivery-step,
  .delivery-step-onboarding {
    min-height: auto;
    padding: 30px 0 31px;
    margin: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    background: none;
  }
  .delivery-step-onboarding {
    padding: 29px 17px 31px 0;
    margin-right: -17px;
    background: color-mix(in srgb, var(--thistle-200) 55%, transparent);
  }
  [data-theme="dark"] .delivery-step-onboarding { background: color-mix(in srgb, var(--thistle-800) 42%, transparent); }
  .delivery-number, .delivery-step-onboarding .delivery-number {
    width: 46px;
    padding-top: 2px;
    align-items: flex-start;
    font-size: 32px;
  }
  .delivery-number::after, .delivery-step-onboarding .delivery-number::after {
    top: 10px;
    right: -2px;
    width: 8px;
    height: 8px;
  }
  .step-copy { min-width: 0; }
  .step-kicker { margin-bottom: 7px; font-size: 9px; }
  .step-copy h3, .delivery-step-onboarding .step-copy h3 { margin-bottom: 8px; font-size: 24px; line-height: 1.14; }
  .step-copy > p:last-of-type { font-size: 14px; line-height: 1.65; }
  .step-link, .step-aside { grid-column: 2; justify-self: start; align-self: start; margin-top: 14px; text-align: left; }
  .step-aside { font-size: 11px; }
  .onboarding-focus { gap: 7px; margin-top: 16px; }
  .onboarding-focus span { min-height: 33px; padding: 6px 10px 6px 8px; font-size: 10px; }
  .work-cta {
    min-height: auto;
    margin-bottom: 59px;
    padding: 116px 25px 28px;
    grid-template-columns: 1fr;
    gap: 25px;
    border-top-right-radius: 27px;
    border-bottom-left-radius: 27px;
  }
  .cta-index { top: 25px; left: auto; right: 23px; width: 68px; height: 68px; font-size: 7px; }
  .work-cta-copy h2 { font-size: 35px; line-height: 1.08; }
  .work-cta-copy > p:last-child { font-size: 14px; }
  .work-cta-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 19px; }
  .work-cta-actions .button { min-height: 48px; }
  .cta-contact { min-height: 48px; }
}
@media (max-width: 380px) {
  .team-figure { padding-inline: 13px; }
  .team-diagram::before { inset-inline: -13px; }
  .team-node { width: 119px; }
  .team-pm { width: 148px; }
  .team-specialists { width: 121px; right: -5%; }
  .team-connectors path { stroke-dasharray: 3 5; }
  .tool-list { gap: 7px; justify-content: space-between; }
  .tool-list li { min-width: 48px; font-size: 9px; }
  .delivery-heading h2 { font-size: 36px; }
}
