/* How We Work page. Built from the homepage and service-page pieces; these are the parts that are its own. */

/* ---------- Hero showpiece: the four steps as one panel with tabs ---------- */

.hw-steps { position: relative; z-index: 2; max-width: calc(var(--hx-max) - 2 * var(--hx-gutter)); margin: clamp(2.5rem, 5vw, 4.25rem) auto 0; padding: 0 var(--hx-gutter) clamp(3rem, 6vw, 5.5rem); box-sizing: content-box; }
.hw-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.4rem, 0.8vw, 0.75rem); }
.hw-tabs button { position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 60px; padding: 0 clamp(0.9rem, 1.6vw, 1.4rem); overflow: hidden; border: 0; border-radius: 16px 16px 0 0; background: rgba(255, 255, 255, 0.07); font: inherit; font-family: var(--font-heading); font-size: clamp(0.9375rem, 1.2vw, 1.125rem); font-weight: 600; letter-spacing: -0.015em; text-align: left; color: rgba(255, 255, 255, 0.7); cursor: pointer; transition: background 0.4s, color 0.4s; }
.hw-tabs button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hw-tabs b { display: grid; place-items: center; flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: 0.875rem; font-weight: 700; transition: background 0.4s, color 0.4s; }
.hw-tabs button[aria-selected="true"] { background: #fff; color: var(--hx-ink); }
.hw-tabs button[aria-selected="true"] b { background: var(--hx-blue); color: #fff; }
/* while it plays by itself, the open tab fills along its bottom edge */
.hw-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--hx-blue); transform: scaleX(0); transform-origin: left; }
.hw-steps.is-auto .hw-tabs button[aria-selected="true"]::after { transform: scaleX(1); transition: transform 5.6s linear; }

.hw-panes { display: grid; border-radius: 0 0 clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px); background: #fff; box-shadow: 0 70px 130px -50px rgba(0, 0, 0, 0.85); }
.hw-pane { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; gap: 2rem clamp(2rem, 5vw, 5rem); padding: clamp(1.5rem, 3.6vw, 3.5rem); color: var(--hx-text); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; }
.hw-pane.is-on { opacity: 1; visibility: visible; transition: opacity 0.5s 0.1s; }
.hw-pane-text > * { opacity: 0; transform: translateY(16px); }
.hw-pane.is-on .hw-pane-text > * { opacity: 1; transform: none; transition: opacity 0.6s, transform 0.8s var(--hx-ease); }
.hw-pane.is-on .hw-pane-text > :nth-child(2) { transition-delay: 0.08s; }
.hw-pane.is-on .hw-pane-text > :nth-child(3) { transition-delay: 0.16s; }
.hw-pane h2 { font-family: var(--font-heading); font-size: clamp(1.9rem, 3.3vw, 3rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; color: var(--hx-text); }
.hw-pane-text p { max-width: 26rem; margin-top: clamp(0.9rem, 1.6vw, 1.4rem); font-size: clamp(1rem, 1.25vw, 1.1875rem); line-height: 1.6; color: var(--hx-mute); }
.hw-pane-text ul { display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem; margin: clamp(1.25rem, 2.2vw, 1.9rem) 0 0; padding: 0; list-style: none; }
.hw-pane-text li { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.hw .hw-pane .hx-tick, .hw .hw-sheet .hx-tick { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; background: var(--hx-blue); color: #fff; }
.hw-pane-vis { transform: translateY(26px) scale(0.985); opacity: 0; }
.hw-pane.is-on .hw-pane-vis { transform: none; opacity: 1; transition: opacity 0.7s 0.12s, transform 1s var(--hx-ease) 0.12s; }
.hw-shot { display: block; aspect-ratio: 16 / 11.4; overflow: hidden; border-radius: clamp(14px, 1.6vw, 22px); background: #0b1220; box-shadow: 0 0 0 1px var(--hx-line), 0 50px 80px -45px rgba(12, 20, 36, 0.6); }
.hw-shot img { display: block; width: 100%; height: auto; }
.hw-pane-vis .pf-cover { aspect-ratio: 16 / 11.4; }
.hw-sheet { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 16 / 11.4; padding: clamp(1.25rem, 3vw, 2.75rem); border-radius: clamp(14px, 1.6vw, 22px); background: var(--hx-tint); }
.hw-sheet p { font-size: 1rem; font-weight: 500; color: var(--hx-mute); }
.hw-sheet ul { margin: clamp(0.7rem, 1.3vw, 1.1rem) 0 0; padding: 0; list-style: none; }
.hw-sheet li { display: flex; align-items: center; gap: clamp(0.7rem, 1.2vw, 1.1rem); padding: clamp(0.8rem, 1.5vw, 1.3rem) 0; border-top: 1px solid var(--hx-line); font-family: var(--font-heading); font-size: clamp(1.15rem, 2.1vw, 1.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; color: var(--hx-text); }

/* ---------- Promise cards: the jargon card says the term, then says it in English ---------- */

.sd-card .hw-plain .hx-cb:nth-child(3) { display: block; }
.sd-card .hw-plain pre { font-size: clamp(0.8125rem, 1.05vw, 0.9375rem); }

/* ---------- Pricing: the ask, held beside the list ---------- */

.hw-ask { position: sticky; top: 120px; display: grid; justify-items: start; gap: 1.1rem; padding: clamp(1.5rem, 3.4vw, 3.25rem); border-radius: clamp(20px, 2.4vw, 32px); color: #fff; background: radial-gradient(120% 120% at 100% 0%, #3b7bff 0%, #2563eb 42%, #1a45c2 100%); }
.hw-ask h3 { font-family: var(--font-heading); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.038em; color: #fff; }
.hw-ask p { max-width: 28rem; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.hw-ask .hx-btn { margin-top: 0.5rem; }
.hw-ask small { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }

@media (max-width: 860px) {
  .hw-steps { margin-top: 2rem; padding-bottom: 3rem; }
  .hw-tabs { gap: 0.3rem; }
  .hw-tabs button { justify-content: center; min-height: 52px; padding: 0; border-radius: 12px 12px 0 0; }
  .hw-tabs span { display: none; }
  .hw-panes { border-radius: 0 0 20px 20px; }
  .hw-pane { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 1.25rem 1.5rem; }
  .hw-pane h2 { font-size: clamp(1.7rem, 7.8vw, 2.2rem); }
  .hw-shot, .hw-pane-vis .pf-cover, .hw-sheet { aspect-ratio: 4 / 3.2; }
  .hw-ask { position: static; padding: 1.6rem 1.25rem; border-radius: 22px; }
  .hw-ask .hx-btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-pane, .hw-pane-text > *, .hw-pane-vis { transition: none !important; }
}
