.expertise-overview h2 { font-size: clamp(34px, 4.1vw, 58px); }
.expertise-overview p { max-width: none; font-size: clamp(20px, 1.65vw, 26px); line-height: 1.5; }
.how-work-story { background: var(--midnight-berry); color: var(--section-text); }
.expertise-page { --palette-black-cherry: #3D0417; --portfolio-teal: #009F88; }
.how-work-content { width: 100%; }
.how-work-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: clamp(34px, 5vw, 64px); }
.how-work-heading h2 { max-width: 680px; margin: 0; color: var(--warm-sand); font-size: clamp(34px, 4.7vw, 64px); line-height: 1; letter-spacing: -.065em; }
.how-work-heading > p { max-width: 390px; margin: 0; color: var(--section-text); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; }
.how-work-eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.start-card { display: flex; min-height: 220px; flex-direction: column; align-items: flex-start; padding: clamp(18px, 2vw, 26px); border: 1px solid rgb(220 196 134 / 25%); border-radius: 2px; background: rgb(255 255 255 / 3%); color: var(--warm-sand); text-align: left; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.start-card:hover, .start-card:focus-visible { border-color: transparent; background: var(--gold); color: var(--night-ink); box-shadow: none; transform: translateY(-2px); }
.start-card.is-selected { border: 0; background: var(--gold); color: var(--night-ink); }
.start-card__number { margin-bottom: auto; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.start-card.is-selected .start-card__number { color: var(--garnet); }
.start-card strong { display: block; margin: 32px 0 10px; font-size: clamp(17px, 1.42vw, 21px); line-height: 1.22; letter-spacing: -.035em; }
.start-card > span:not(.start-card__number) { color: var(--section-text); font-size: 13px; line-height: 1.5; }
.start-card.is-selected > span:not(.start-card__number) { color: var(--night-ink); }
.start-card > b { margin-top: 22px; color: var(--gold); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.start-card.is-selected > b { color: var(--garnet); }
.workflow-panel { margin-top: clamp(48px, 7vw, 88px); padding: clamp(24px, 5vw, 64px); border-top: 1px solid rgb(220 196 134 / 35%); background: #21020e; scroll-margin-top: 24px; }
.workflow-panel[hidden] { display: none; }
.workflow-panel__header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.workflow-panel__header h2 { max-width: 850px; margin: 0; color: var(--warm-sand); font-size: clamp(32px, 4.5vw, 60px); line-height: 1.04; letter-spacing: -.06em; }
.workflow-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgb(220 196 134 / 45%); border-radius: 50%; background: transparent; color: var(--warm-sand); font-size: 25px; cursor: pointer; }
.workflow-summary { max-width: 760px; margin: 20px 0 44px; color: var(--section-text); font-size: 17px; line-height: 1.65; }
.workflow-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .7fr); gap: clamp(32px, 6vw, 84px); }
.workflow-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.workflow-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid rgb(220 196 134 / 24%); }
.workflow-step__number { color: var(--gold); font-size: 11px; font-weight: 700; }
.workflow-step h3 { margin: 0 0 8px; color: var(--warm-sand); font-size: 16px; line-height: 1.35; }
.workflow-step p { margin: 0; color: var(--section-text); font-size: 13px; line-height: 1.55; }
.deliverables { align-self: start; padding: 24px; background: var(--warm-sand); color: var(--night-ink); }
.deliverables .how-work-eyebrow { color: var(--garnet); }
.deliverables ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.deliverables li { padding-top: 12px; border-top: 1px solid rgb(23 3 14 / 18%); font-size: 13px; line-height: 1.45; }
.iteration { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); align-items: center; gap: 40px; margin-top: 56px; padding-top: 34px; border-top: 1px solid rgb(220 196 134 / 30%); }
.iteration h3 { margin: 0 0 12px; color: var(--warm-sand); font-size: clamp(24px, 3vw, 38px); letter-spacing: -.05em; }
.iteration p:not(.how-work-eyebrow) { max-width: 620px; margin: 0; color: var(--section-text); font-size: 14px; line-height: 1.65; }
.iteration-loop { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--night-ink); }
.iteration-loop span { display: grid; width: clamp(68px, 8vw, 104px); aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--gold); font-size: 12px; font-weight: 700; }
.iteration-loop b { color: var(--gold); font-size: 20px; }
.bio-endcap { min-height: 470px; }
@media (max-width: 1000px) { .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .how-work-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .how-work-heading > p { max-width: 540px; }
  .start-card { min-height: 200px; padding: 18px; }
  .workflow-layout, .iteration { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .iteration-loop { max-width: 420px; }
}
@media (max-width: 430px) { .start-grid { grid-template-columns: 1fr; } .start-card { min-height: 168px; } }
@media (prefers-reduced-motion: reduce) { .start-card { transition: none; } }

/* Keep the entry points calm and readable; detail appears only after selection. */
.how-work-heading { margin-bottom: 36px; }
.how-work-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
.how-work-heading h2 { font-size: clamp(32px, 4vw, 54px); }
.how-work-heading > p { max-width: 700px; font-size: 14px; }
.start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.start-card { min-height: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; align-items: center; gap: 14px; padding: 22px 4px; border: 0; border-top: 1px solid rgb(220 196 134 / 28%); background: transparent; }
.start-card:hover, .start-card:focus-visible { transform: none; border-color: transparent; background: var(--gold); color: var(--night-ink); }
.start-card.is-selected { border-color: transparent; background: var(--gold); color: var(--night-ink); }
.start-card__number { align-self: start; margin: 4px 0 0; font-size: 11px; }
.start-card__copy { display: grid; gap: 6px; }
.start-card strong { margin: 0; font-size: 16px; line-height: 1.35; }
.start-card > span:not(.start-card__number) { color: var(--section-text); font-size: 12px; line-height: 1.5; }
.start-card.is-selected > span:not(.start-card__number) { color: var(--section-text); }
.start-card > b { justify-self: end; margin: 0; font-size: 17px; }
.start-card.is-selected > b { color: var(--gold); }
.workflow-panel { margin-top: 52px; padding: clamp(24px, 4vw, 48px) 0 0; border-top: 1px solid rgb(220 196 134 / 35%); background: transparent; }
.workflow-panel__header h2 { font-size: clamp(30px, 4vw, 48px); }
.workflow-summary { margin: 14px 0 30px; font-size: 15px; }
.workflow-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.workflow-step { padding: 16px 0; }
.deliverables { padding: 22px 24px; background: rgb(220 196 134 / 10%); color: var(--warm-sand); }
.deliverables .how-work-eyebrow { color: var(--gold); }
.deliverables ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.deliverables li { border-color: rgb(220 196 134 / 20%); color: var(--warm-sand); }
.iteration { margin-top: 32px; padding-top: 26px; }
.iteration-loop { justify-content: flex-start; }
.iteration-loop span { width: 68px; }
@media (max-width: 700px) {
  .start-grid { grid-template-columns: 1fr; gap: 0; }
  .start-card { padding: 18px 2px; }
  .workflow-steps, .deliverables ul { grid-template-columns: 1fr; }
  .iteration-loop { max-width: none; }
}

/* Selected path: show sequence as connected stages, not another text list. */
.workflow-layout { gap: 38px; }
.workflow-steps { display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; }
.workflow-step { position: relative; display: flex; flex: 0 0 146px; flex-direction: column; align-items: center; gap: 14px; padding: 0 0 10px; border: 0; text-align: center; scroll-snap-align: start; }
.workflow-step::after { position: absolute; top: 62px; left: calc(100% + 2px); width: 16px; height: 10px; background: var(--gold); clip-path: polygon(0 40%, 70% 40%, 70% 0, 100% 50%, 70% 100%, 70% 60%, 0 60%); content: ""; }
.workflow-step:last-child::after { display: none; }
.workflow-step__number { position: absolute; z-index: 2; top: 0; left: 15px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: var(--garnet); color: var(--gold); font-size: 10px; }
.workflow-step > div { display: contents; }
.workflow-step h3 { display: grid; width: 124px; aspect-ratio: 1; place-items: center; margin: 0; padding: 18px; border-radius: 50%; background: var(--warm-sand); color: var(--night-ink); font-size: 13px; line-height: 1.3; }
.workflow-step p { max-width: 144px; margin: 0; color: var(--section-text); font-size: 11px; line-height: 1.5; }
.workflow-steps { scrollbar-width: none; -ms-overflow-style: none; }
.workflow-steps::-webkit-scrollbar { display: none; }
.workflow-steps::-webkit-scrollbar-thumb { border-radius: 9px; background: rgb(220 196 134 / 40%); }
.workflow-steps::-webkit-scrollbar-track { background: rgb(220 196 134 / 10%); }
.deliverables ul { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 24px; }
@media (max-width: 700px) { .workflow-steps { display: flex; } .workflow-step { flex-basis: 138px; } }

/* Starting points: eight compact square tiles with short labels. */
.start-grid { grid-template-columns: repeat(8, minmax(116px, 1fr)); gap: 10px; overflow-x: auto; padding: 4px 2px 12px; }
.start-card { position: relative; display: grid; min-width: 116px; aspect-ratio: 1; grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; justify-items: center; gap: 0; padding: 16px; border: 1px solid rgb(220 196 134 / 30%); background: var(--palette-black-cherry); text-align: center; }
.start-card:hover, .start-card:focus-visible { border-color: transparent; background: var(--gold); color: var(--night-ink); }
.start-card.is-selected { border-color: transparent; background: var(--gold); color: var(--night-ink); }
.start-card__number { justify-self: start; align-self: start; margin: 0; color: var(--gold); font-size: 10px; }
.start-card strong { align-self: center; max-width: 130px; margin: 0; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.2; }
.start-card.is-selected .start-card__number { color: var(--garnet); }
.start-card > b { display: none; }
.start-card { min-height: 0; aspect-ratio: auto; height: clamp(76px, 7vw, 100px); grid-template-rows: 1fr; padding: 12px; border: 0; border-radius: 999px; background: var(--warm-sand); color: var(--midnight-berry); }
.start-card strong { max-width: 100%; text-align: center; }
@media (max-width: 1100px) { .start-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow-x: visible; } .start-card { min-width: 0; } }
@media (max-width: 700px) { .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .start-card { min-height: 0; padding: 14px; } }

/* Selected flow sits on a clear gold stage with concise labels. */
.workflow-panel { position: relative; margin-inline: 0; padding: clamp(38px, 6vw, 76px) clamp(22px, 3vw, 44px); border-radius: 28px; background: var(--gold); color: var(--night-ink); text-align: center; }
.workflow-panel__header { justify-content: center; }
.workflow-panel__header h2 { color: var(--night-ink); }
.workflow-panel__header .how-work-eyebrow,
.workflow-layout > div > .how-work-eyebrow,
.iteration .how-work-eyebrow { color: var(--garnet); }
.workflow-close { position: absolute; top: 28px; right: 18px; border-color: rgb(23 3 14 / 30%); color: var(--night-ink); }
.workflow-summary { display: none; }
.workflow-layout { margin-top: 34px; }
.workflow-steps { justify-content: safe center; }
.workflow-step { flex-basis: 132px; }
.workflow-step::after { background: var(--garnet); }
.workflow-step__number { background: var(--gold); color: var(--garnet); box-shadow: 0 0 0 1px rgb(23 3 14 / 18%); }
.workflow-steps { padding-top: 8px; padding-bottom: 4px; }
.workflow-step { position: relative; padding-bottom: 0; }
.workflow-step__trigger { display: grid; width: 124px; padding: 0; place-items: center; border: 0; background: transparent; cursor: pointer; }
.workflow-step__title { display: grid; width: 124px; aspect-ratio: 1; place-items: center; padding: 16px; border-radius: 50%; background: var(--midnight-berry); color: var(--warm-sand); font: 600 13px/1.3 var(--sans); text-align: center; transition: transform 180ms ease, background 180ms ease; }
.workflow-step__trigger:hover .workflow-step__title,
.workflow-step__trigger:focus-visible .workflow-step__title,
.workflow-step.is-open .workflow-step__title { background: var(--garnet); transform: scale(1.04); }
.workflow-step__trigger:focus-visible { outline: 2px solid var(--garnet); outline-offset: 5px; border-radius: 50%; }
.workflow-step-detail { width: fit-content; max-width: min(720px, 100%); margin: 4px auto 20px; padding: 12px 18px; border-radius: 10px; background: var(--midnight-berry); color: var(--warm-sand); font-size: 13px; line-height: 1.55; text-align: center; }
.workflow-step-detail[hidden] { display: none; }
.workflow-step::after { top: 62px; }
.deliverables { padding: 14px 0 0; border-top: 0; background: transparent; text-align: center; }
.deliverables .how-work-eyebrow { color: var(--garnet); }
.deliverables ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.deliverables li { padding: 9px 14px; border: 0; border-radius: 999px; background: rgb(23 3 14 / 8%); color: var(--night-ink); font-size: 13px; }
.workflow-layout > div > .how-work-eyebrow,
.deliverables .how-work-eyebrow { font-size: 11px; }
.iteration { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; border-color: rgb(23 3 14 / 25%); }
.iteration > div:first-child { order: 0; }
.iteration-loop { order: 1; }
.iteration h3 { color: var(--night-ink); }
.iteration-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.iteration-flow b { color: var(--garnet); font-size: .8em; font-weight: 500; }
.iteration-return { display: inline-block; width: 42px; height: 24px; overflow: visible; fill: none; stroke: var(--garnet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.iteration-loop { justify-content: center; }
.iteration-loop span { width: 58px; background: var(--midnight-berry); color: var(--warm-sand); font-size: 10px; }
.iteration-loop b { color: var(--garnet); }
@media (max-width: 700px) {
  .workflow-steps { justify-content: flex-start; }
  .workflow-step-detail { width: 100%; }
  .workflow-close { top: 18px; right: 18px; }
  .deliverables ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-panel { border-radius: 20px; }
}
.workflow-panel { border-top: 0; }
.start-card.is-selected { position: relative; z-index: 1; overflow: visible; }
.start-grid { grid-template-columns: repeat(8, minmax(84px, 1fr)); overflow-x: auto; }
.start-card { min-width: 84px; }
.start-card.is-selected::after { display: none; }
.workflow-panel::before { position: absolute; top: -64px; left: calc(var(--connector-x, 50%) - 6px); width: 12px; height: 64px; border-radius: 0; background: var(--gold); content: ""; }
.start-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; }
.start-card { scroll-snap-align: center; }
.workflow-panel::before { opacity: var(--connector-visible, 1); }
@media (max-width: 1100px) {
  .start-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(168px, 27vw, 240px); }
}
@media (max-width: 700px) {
  .start-grid { grid-auto-columns: clamp(168px, 65vw, 240px); }
}

.start-grid::-webkit-scrollbar { display: none; }

.workflow-layout > div { position: relative; min-width: 0; }
.workflow-step-detail {
  position: absolute;
  z-index: 5;
  top: var(--detail-top, 100%);
  left: var(--detail-left, 50%);
  width: min(320px, 100%);
  max-width: 100%;
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgb(23 3 14 / 20%);
}
