/* ==========================================================================
   How We Work — process page
   ========================================================================== */

.how-we-work {
  background-color: var(--paper);
  padding-top: 0;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* Hero — full-bleed animated panel with editorial content on the left
   ========================================================================== */

.how-we-work__hero {
  position: relative;
  /* Top: clearance for the fixed nav (nav_position="absolute" on every page
     that uses this hero). Bottom: generous breathing room before the next
     section. */
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(7rem, 13vw, 12rem);
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed visual layer: spans the entire hero, sitting behind content
   and bleeding to the viewport edges (no border-radius, no inset). */

.how-we-work__hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Soft fade so left-side content stays legible against the panel */
.how-we-work__hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--paper) 0%,
    rgba(247, 253, 252, 0.92) 25%,
    rgba(247, 253, 252, 0.55) 45%,
    rgba(247, 253, 252, 0) 65%
  );
  pointer-events: none;
}

.how-we-work__hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .how-we-work__hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.how-we-work__hero-content {
  max-width: 36rem;
}

/* ==========================================================================
   Per-page hero variations
   Process    — left-anchored (default, matches the base grid)
   Proficiencies — content block centered horizontally, pill centered above
                   a left-aligned heading + lede
   Projects   — content right-anchored at desktop (mirrors Process)
   Professions — fully centered poster: pill, heading, lede, CTAs all centered
   ========================================================================== */

/* Proficiencies — centered block, left-aligned text, centered pill */
@media (min-width: 900px) {
  .how-we-work__hero--proficiencies .how-we-work__hero-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
}

.how-we-work__hero--proficiencies .how-we-work__hero-content {
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Projects — right-anchored at desktop */
@media (min-width: 900px) {
  .how-we-work__hero--projects .how-we-work__hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .how-we-work__hero--projects .how-we-work__hero-content {
    grid-column: 2;
    justify-self: end;
  }
}

/* Professions — fully centered poster */
@media (min-width: 900px) {
  .how-we-work__hero--professions .how-we-work__hero-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
}

.how-we-work__hero--professions .how-we-work__hero-content {
  max-width: 44rem;
  text-align: center;
}

.how-we-work__hero--professions .how-we-work__lede {
  margin-left: auto;
  margin-right: auto;
}

.how-we-work__hero--professions .how-we-work__ctas {
  justify-content: center;
}

.how-we-work__hero--professions .how-we-work__stats .how-we-work__stat {
  justify-content: center;
}

.how-we-work__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 1.75rem 0 1.75rem;
}

.how-we-work__heading-line {
  display: block;
}

.how-we-work__lede {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

/* CTAs */

.how-we-work__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.how-we-work__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.how-we-work__cta--primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.how-we-work__cta--primary:hover {
  background: var(--brand-gradient);
  border-color: transparent;
  transform: translateY(-1px);
}

.how-we-work__cta--primary svg {
  width: 14px;
  height: 14px;
}

.how-we-work__cta--ghost {
  background: transparent;
  color: var(--brand-purple-deep);
  border: 1px solid rgba(160, 100, 169, 0.45);
}

.how-we-work__cta--ghost:hover {
  background: rgba(160, 100, 169, 0.06);
  color: var(--brand-purple-deep);
  border-color: var(--brand-purple);
}

/* Stats */

.how-we-work__stats {
  list-style: none;
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .how-we-work__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.how-we-work__stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.how-we-work__stat-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(160, 100, 169, 0.08);
  color: var(--brand-purple);
}

.how-we-work__stat-icon svg {
  width: 18px;
  height: 18px;
}

.how-we-work__stat-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.15rem;
}

.how-we-work__stat-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin: 0;
}

/* ------------------------------------------------------------------
   Aurora blobs — How We Work hero panel
   Large radial gradients that float around with translate + scale.
   ------------------------------------------------------------------ */

.hww-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper-deep) 100%);
}

.hww-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.9;
  will-change: transform;
}

.hww-aurora__blob--1 {
  top: -15%;
  right: 10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(57, 194, 216, 0.85) 0%, rgba(57, 194, 216, 0) 70%);
  animation: hww-aurora-drift-1 11s ease-in-out infinite;
}

.hww-aurora__blob--2 {
  bottom: -10%;
  right: 20%;
  width: 55%;
  height: 60%;
  background: radial-gradient(circle, rgba(160, 100, 169, 0.85) 0%, rgba(160, 100, 169, 0) 70%);
  animation: hww-aurora-drift-2 13s ease-in-out infinite;
}

.hww-aurora__blob--3 {
  top: 15%;
  right: 35%;
  width: 45%;
  height: 50%;
  background: radial-gradient(circle, rgba(126, 72, 137, 0.75) 0%, rgba(126, 72, 137, 0) 70%);
  animation: hww-aurora-drift-3 9s ease-in-out infinite;
}

.hww-aurora__blob--4 {
  top: 30%;
  right: -5%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(31, 166, 189, 0.7) 0%, rgba(31, 166, 189, 0) 70%);
  animation: hww-aurora-drift-4 15s ease-in-out infinite;
}

@keyframes hww-aurora-drift-1 {
  0%   { transform: translate(0%, 0%) scale(1); }
  25%  { transform: translate(-25%, 20%) scale(1.2); }
  50%  { transform: translate(-40%, 35%) scale(1.05); }
  75%  { transform: translate(-15%, 50%) scale(1.25); }
  100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes hww-aurora-drift-2 {
  0%   { transform: translate(0%, 0%) scale(1.1); }
  25%  { transform: translate(-30%, -25%) scale(0.95); }
  50%  { transform: translate(-50%, -40%) scale(1.15); }
  75%  { transform: translate(-20%, -15%) scale(1.05); }
  100% { transform: translate(0%, 0%) scale(1.1); }
}
@keyframes hww-aurora-drift-3 {
  0%   { transform: translate(0%, 0%) scale(0.95); }
  25%  { transform: translate(35%, 20%) scale(1.25); }
  50%  { transform: translate(20%, 40%) scale(1.05); }
  75%  { transform: translate(-10%, 25%) scale(1.3); }
  100% { transform: translate(0%, 0%) scale(0.95); }
}
@keyframes hww-aurora-drift-4 {
  0%   { transform: translate(0%, 0%) scale(1); }
  25%  { transform: translate(-25%, -30%) scale(1.2); }
  50%  { transform: translate(-45%, -10%) scale(0.95); }
  75%  { transform: translate(-20%, 20%) scale(1.15); }
  100% { transform: translate(0%, 0%) scale(1); }
}

/* ------------------------------------------------------------------
   Mesh shimmer — Capabilities hero panel
   A very large multi-stop radial mesh that slowly pans.
   ------------------------------------------------------------------ */

.hww-mesh {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 40% at 80% 20%, rgba(57, 194, 216, 0.65) 0%, transparent 60%),
    radial-gradient(45% 45% at 60% 70%, rgba(160, 100, 169, 0.7) 0%, transparent 60%),
    radial-gradient(35% 35% at 90% 90%, rgba(126, 72, 137, 0.6) 0%, transparent 60%),
    radial-gradient(50% 50% at 30% 30%, rgba(31, 166, 189, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper-deep) 100%);
  filter: blur(40px) saturate(1.1);
  will-change: transform;
  animation: hww-mesh-pan 24s linear infinite;
}

@keyframes hww-mesh-pan {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-4%, 3%) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hww-aurora__blob,
  .hww-mesh {
    animation: none;
  }
}

/* Intro band between hero and steps */

.how-we-work__intro {
  display: grid;
  gap: 1rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 64ch;
}

.how-we-work__intro-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* Steps
   ========================================================================== */

.how-we-work__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.how-we-work__step {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--rule);
}

/* Topical line-art motif sitting behind the body content */

.how-we-work__step-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(42%, 400px);
  z-index: -1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(20, 21, 42, 0.18);
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 100%);
  mask-image: linear-gradient(to left, #000 50%, transparent 100%);
}

.how-we-work__step-art svg {
  width: 100%;
  height: auto;
  max-height: 80%;
  display: block;
}

@media (max-width: 1099px) {
  .how-we-work__step-art {
    display: none;
  }
}

/* Slight tint variation per chapter keeps the rhythm but stays subtle */

.how-we-work__step--strategy .how-we-work__step-art,
.how-we-work__step--optimize .how-we-work__step-art,
.how-we-work__step--cap-design .how-we-work__step-art,
.how-we-work__step--cap-social .how-we-work__step-art,
.how-we-work__step--cap-ai .how-we-work__step-art {
  color: rgba(126, 72, 137, 0.20);
}

/* Step art — ambient motion per chapter
   Slow, low-amplitude loops that hint at the topic without distracting.
   Disabled for users who prefer reduced motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* ----------------------------------------------------------------
     01 Discover — radar dish: rings breathe, sweep arm rotates,
     blips fade in/out, sonar wave emanates from center.
     ---------------------------------------------------------------- */

  .hww-art-discover__ring {
    animation: hww-sonar 9s ease-in-out infinite;
  }
  .hww-art-discover__ring:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-discover__ring:nth-of-type(2) { animation-delay: -2.2s; }
  .hww-art-discover__ring:nth-of-type(3) { animation-delay: -4.5s; }
  .hww-art-discover__ring:nth-of-type(4) { animation-delay: -6.8s; }

  @keyframes hww-sonar {
    0%, 100% { stroke-opacity: 0.4; }
    50%      { stroke-opacity: 1;   }
  }

  .hww-art-discover__sweep {
    transform-origin: 0 0;
    animation: hww-radar-rotate 14s linear infinite;
  }

  @keyframes hww-radar-rotate {
    to { transform: rotate(360deg); }
  }

  .hww-art-discover__pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-sonar-emit 4s ease-out infinite;
  }

  @keyframes hww-sonar-emit {
    0%   { transform: scale(0.2); stroke-opacity: 1;   }
    80%  { transform: scale(14);  stroke-opacity: 0;   }
    100% { transform: scale(14);  stroke-opacity: 0;   }
  }

  .hww-art-discover__blip {
    animation: hww-discover-blip 4s ease-in-out infinite;
  }
  .hww-art-discover__blip:nth-of-type(1) { animation-delay: -0.5s; }
  .hww-art-discover__blip:nth-of-type(2) { animation-delay: -1.8s; }
  .hww-art-discover__blip:nth-of-type(3) { animation-delay: -2.7s; }
  .hww-art-discover__blip:nth-of-type(4) { animation-delay: -3.3s; }

  @keyframes hww-discover-blip {
    0%, 70%, 100% { fill-opacity: 0.15; }
    20%, 45%      { fill-opacity: 1;    }
  }

  .hww-art-discover__core {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-discover-core 3s ease-in-out infinite;
  }

  @keyframes hww-discover-core {
    0%, 100% { transform: scale(1);   fill-opacity: 1;   }
    50%      { transform: scale(1.5); fill-opacity: 0.7; }
  }

  /* ----------------------------------------------------------------
     02 Strategy — Strategy matrix: dots twinkle in quadrants,
     halo indicator drifts between strategic positions.
     ---------------------------------------------------------------- */

  .hww-art-matrix__dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-matrix-twinkle 6s ease-in-out infinite;
  }
  .hww-art-matrix__dot:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-matrix__dot:nth-of-type(2) { animation-delay: -0.7s; }
  .hww-art-matrix__dot:nth-of-type(3) { animation-delay: -1.4s; }
  .hww-art-matrix__dot:nth-of-type(4) { animation-delay: -2.1s; }
  .hww-art-matrix__dot:nth-of-type(5) { animation-delay: -2.8s; }
  .hww-art-matrix__dot:nth-of-type(6) { animation-delay: -3.5s; }
  .hww-art-matrix__dot:nth-of-type(7) { animation-delay: -4.2s; }

  @keyframes hww-matrix-twinkle {
    0%, 100% { transform: scale(0.85); fill-opacity: 0.4; }
    50%      { transform: scale(1.15); fill-opacity: 1;   }
  }

  .hww-art-matrix__indicator {
    animation: hww-matrix-drift 12s ease-in-out infinite;
  }

  @keyframes hww-matrix-drift {
    0%   { transform: translate(100px, 95px);  }
    25%  { transform: translate(240px, 80px);  }
    50%  { transform: translate(220px, 220px); }
    75%  { transform: translate(90px,  200px); }
    100% { transform: translate(100px, 95px);  }
  }

  .hww-art-matrix__halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-matrix-halo 2.6s ease-out infinite;
  }

  @keyframes hww-matrix-halo {
    0%   { transform: scale(0.6); stroke-opacity: 1; }
    100% { transform: scale(2.4); stroke-opacity: 0; }
  }

  .hww-art-matrix__core {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-matrix-core 2.6s ease-in-out infinite;
  }

  @keyframes hww-matrix-core {
    0%, 100% { transform: scale(1);    fill-opacity: 1;   }
    50%      { transform: scale(1.25); fill-opacity: 0.7; }
  }

  /* ----------------------------------------------------------------
     03 Production — Kanban pipeline: an active card travels
     left-to-right column-by-column through To Do / Doing / Done.
     ---------------------------------------------------------------- */

  .hww-art-kanban__active {
    animation: hww-kanban-travel 12s ease-in-out infinite;
  }

  @keyframes hww-kanban-travel {
    0%        { transform: translate(73px,  106px); }
    25%       { transform: translate(73px,  158px); }
    33%, 41%  { transform: translate(167px, 158px); }
    50%, 58%  { transform: translate(167px, 106px); }
    66%, 74%  { transform: translate(261px, 106px); }
    83%, 100% { transform: translate(261px, 158px); }
  }

  /* ----------------------------------------------------------------
     04 Optimise — live dashboard: bars grow visibly from base,
     trend line redraws, data points appear in sequence,
     end-marker pulses with a halo ring.
     ---------------------------------------------------------------- */

  .hww-art-optimize__bar {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: hww-optimize-grow 6s ease-in-out infinite;
  }
  .hww-art-optimize__bar:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-optimize__bar:nth-of-type(2) { animation-delay: -0.4s; }
  .hww-art-optimize__bar:nth-of-type(3) { animation-delay: -0.8s; }
  .hww-art-optimize__bar:nth-of-type(4) { animation-delay: -1.2s; }
  .hww-art-optimize__bar:nth-of-type(5) { animation-delay: -1.6s; }

  @keyframes hww-optimize-grow {
    0%, 100% { transform: scaleY(1);    }
    50%      { transform: scaleY(1.10); }
  }

  .hww-art-optimize__trend {
    animation: hww-optimize-trace 8s ease-in-out infinite;
  }

  @keyframes hww-optimize-trace {
    0%        { stroke-dashoffset: 100; }
    35%, 65%  { stroke-dashoffset: 0;   }
    100%      { stroke-dashoffset: -100;}
  }

  .hww-art-optimize__point {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-optimize-point 8s ease-in-out infinite;
    fill-opacity: 0;
  }
  .hww-art-optimize__point:nth-of-type(1) { animation-delay: -0.4s; }
  .hww-art-optimize__point:nth-of-type(2) { animation-delay: -0.9s; }
  .hww-art-optimize__point:nth-of-type(3) { animation-delay: -1.5s; }
  .hww-art-optimize__point:nth-of-type(4) { animation-delay: -2.1s; }

  @keyframes hww-optimize-point {
    0%, 70%, 100% { fill-opacity: 0;   transform: scale(0.6); }
    25%, 50%      { fill-opacity: 1;   transform: scale(1);   }
  }

  .hww-art-optimize__pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-optimize-halo 2.8s ease-out infinite;
  }

  @keyframes hww-optimize-halo {
    0%   { transform: scale(0.5); stroke-opacity: 1; }
    100% { transform: scale(3.6); stroke-opacity: 0; }
  }

  .hww-art-optimize__dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-optimize-dot 2.8s ease-in-out infinite;
  }

  @keyframes hww-optimize-dot {
    0%, 100% { transform: scale(1);    fill-opacity: 1;   }
    50%      { transform: scale(1.25); fill-opacity: 0.7; }
  }

  /* ================================================================
     Capabilities motifs — six services on /capabilities
     Strategy reuses .hww-art-matrix (already animated above).
     ================================================================ */

  /* ----------------------------------------------------------------
     Cap 02 Design — layered wireframe panels: panels float in
     counterpoint, content lines type out, annotation dots pulse,
     connector draws between corner dots.
     ---------------------------------------------------------------- */

  .hww-art-design__panel {
    animation: hww-design-float 11s ease-in-out infinite;
  }
  .hww-art-design__panel:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-design__panel:nth-of-type(2) { animation-delay: -3.7s; }
  .hww-art-design__panel:nth-of-type(3) { animation-delay: -7.4s; }

  @keyframes hww-design-float {
    0%, 100% { transform: translate(0, 0);     }
    50%      { transform: translate(4px, -4px);}
  }

  .hww-art-design__lines path {
    pathLength: 100;
    stroke-dasharray: 100 100;
    animation: hww-design-type 9s ease-in-out infinite;
  }
  .hww-art-design__lines path:nth-of-type(1) { animation-delay: -0.0s; }
  .hww-art-design__lines path:nth-of-type(2) { animation-delay: -0.4s; }
  .hww-art-design__lines path:nth-of-type(3) { animation-delay: -0.8s; }
  .hww-art-design__lines path:nth-of-type(4) { animation-delay: -1.2s; }
  .hww-art-design__lines path:nth-of-type(5) { animation-delay: -1.6s; }
  .hww-art-design__lines path:nth-of-type(6) { animation-delay: -2.0s; }

  @keyframes hww-design-type {
    0%        { stroke-dashoffset: 100; }
    25%, 75%  { stroke-dashoffset: 0;   }
    100%      { stroke-dashoffset: -100;}
  }

  .hww-art-design__dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-design-dot 3.5s ease-in-out infinite;
  }
  .hww-art-design__dot:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-design__dot:nth-of-type(2) { animation-delay: -0.6s; }
  .hww-art-design__dot:nth-of-type(3) { animation-delay: -1.4s; }
  .hww-art-design__dot:nth-of-type(4) { animation-delay: -2.0s; }
  .hww-art-design__dot:nth-of-type(5) { animation-delay: -2.7s; }

  @keyframes hww-design-dot {
    0%, 100% { transform: scale(1);   fill-opacity: 0.5; }
    50%      { transform: scale(1.5); fill-opacity: 1;   }
  }

  .hww-art-design__connector {
    pathLength: 100;
    stroke-dasharray: 100 100;
    animation: hww-design-connect 7s ease-in-out infinite;
  }

  @keyframes hww-design-connect {
    0%   { stroke-dashoffset: 100; }
    50%  { stroke-dashoffset: 0;   }
    100% { stroke-dashoffset: -100;}
  }

  /* ----------------------------------------------------------------
     Cap 03 Development — build pipeline: dashed flow lines stream
     through the pipes, process nodes light up in sequence,
     source/sink endpoints pulse alternately.
     ---------------------------------------------------------------- */

  .hww-art-pipeline__flow {
    animation: hww-pipeline-flow 1.6s linear infinite;
  }

  @keyframes hww-pipeline-flow {
    to { stroke-dashoffset: -20; }
  }

  .hww-art-pipeline__processes rect {
    animation: hww-pipeline-node 6s ease-in-out infinite;
  }
  .hww-art-pipeline__processes rect:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-pipeline__processes rect:nth-of-type(2) { animation-delay: -2.0s; }
  .hww-art-pipeline__processes rect:nth-of-type(3) { animation-delay: -4.0s; }

  @keyframes hww-pipeline-node {
    0%, 100% { stroke-opacity: 0.4; }
    25%, 45% { stroke-opacity: 1;   }
  }

  .hww-art-pipeline__node--source,
  .hww-art-pipeline__node--sink {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-pipeline-endpoint 3.2s ease-in-out infinite;
  }
  .hww-art-pipeline__node--sink {
    animation-delay: -1.6s;
  }

  @keyframes hww-pipeline-endpoint {
    0%, 100% { fill-opacity: 0.3;  transform: scale(1);    }
    50%      { fill-opacity: 0.65; transform: scale(1.05); }
  }

  /* ----------------------------------------------------------------
     Cap 04 Social — content grid: featured tile breathes,
     engagement dots flash sequentially around the grid.
     ---------------------------------------------------------------- */

  .hww-art-grid__tile--feature {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-grid-feature 5s ease-in-out infinite;
  }

  @keyframes hww-grid-feature {
    0%, 100% { fill-opacity: 0.22; transform: scale(1);    }
    50%      { fill-opacity: 0.45; transform: scale(1.04); }
  }

  .hww-art-grid__like {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-grid-like 4.5s ease-in-out infinite;
    fill-opacity: 0;
  }
  .hww-art-grid__like:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-grid__like:nth-of-type(2) { animation-delay: -1.2s; }
  .hww-art-grid__like:nth-of-type(3) { animation-delay: -2.4s; }
  .hww-art-grid__like:nth-of-type(4) { animation-delay: -3.6s; }

  @keyframes hww-grid-like {
    0%, 70%, 100% { fill-opacity: 0;   transform: scale(0.5); }
    20%, 45%      { fill-opacity: 1;   transform: scale(1);   }
  }

  /* ----------------------------------------------------------------
     Cap 05 Community — chat thread: bubbles arrive in sequence,
     typing-indicator dots bounce as the next reply is composed.
     ---------------------------------------------------------------- */

  .hww-art-chat__bubble {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-chat-arrive 9s ease-in-out infinite;
  }
  .hww-art-chat__bubble:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-chat__bubble:nth-of-type(2) { animation-delay: -3.0s; }
  .hww-art-chat__bubble:nth-of-type(3) { animation-delay: -6.0s; }

  @keyframes hww-chat-arrive {
    0%, 100% { opacity: 0.3; transform: translateY(4px); }
    20%, 80% { opacity: 1;   transform: translateY(0);   }
  }

  .hww-art-chat__dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-chat-typing 1.4s ease-in-out infinite;
  }
  .hww-art-chat__dot:nth-of-type(1) { animation-delay: 0s;    }
  .hww-art-chat__dot:nth-of-type(2) { animation-delay: 0.18s; }
  .hww-art-chat__dot:nth-of-type(3) { animation-delay: 0.36s; }

  @keyframes hww-chat-typing {
    0%, 60%, 100% { transform: translateY(0);    fill-opacity: 0.4; }
    30%           { transform: translateY(-4px); fill-opacity: 1;   }
  }

  /* ----------------------------------------------------------------
     Cap 06 AI adoption — neural network: signal wave propagates
     through the layers (input → hidden → output) and back.
     ---------------------------------------------------------------- */

  .hww-art-neural__layer--in .hww-art-neural__node,
  .hww-art-neural__layer--hidden .hww-art-neural__node,
  .hww-art-neural__layer--out .hww-art-neural__node {
    transform-box: fill-box;
    transform-origin: center;
    animation: hww-neural-fire 4s ease-in-out infinite;
  }

  .hww-art-neural__layer--in .hww-art-neural__node     { animation-delay: 0s;    }
  .hww-art-neural__layer--hidden .hww-art-neural__node { animation-delay: -1.0s; }
  .hww-art-neural__layer--out .hww-art-neural__node    { animation-delay: -2.0s; }

  /* Slight stagger across nodes within the input layer */
  .hww-art-neural__layer--in .hww-art-neural__node:nth-of-type(2)     { animation-delay: -0.15s; }
  .hww-art-neural__layer--in .hww-art-neural__node:nth-of-type(3)     { animation-delay: -0.30s; }
  .hww-art-neural__layer--hidden .hww-art-neural__node:nth-of-type(2) { animation-delay: -1.15s; }
  .hww-art-neural__layer--hidden .hww-art-neural__node:nth-of-type(3) { animation-delay: -1.30s; }
  .hww-art-neural__layer--hidden .hww-art-neural__node:nth-of-type(4) { animation-delay: -1.45s; }
  .hww-art-neural__layer--out .hww-art-neural__node:nth-of-type(2)    { animation-delay: -2.15s; }

  @keyframes hww-neural-fire {
    0%, 100% { fill-opacity: 0.35; transform: scale(1);    }
    18%, 30% { fill-opacity: 1;    transform: scale(1.25); }
  }

  .hww-art-neural__edges path {
    animation: hww-neural-edge 4s ease-in-out infinite;
  }
  .hww-art-neural__edges path:nth-of-type(n+1):nth-of-type(-n+12) { animation-delay: -0.4s; }
  .hww-art-neural__edges path:nth-of-type(n+13)                   { animation-delay: -1.4s; }

  @keyframes hww-neural-edge {
    0%, 100% { stroke-opacity: 0.3; }
    25%      { stroke-opacity: 0.85;}
  }
}

.how-we-work__step:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .how-we-work__step {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.how-we-work__step-index {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: start;
}

.how-we-work__step-index span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.how-we-work__step-index p {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.how-we-work__step-body {
  max-width: 64ch;
}

.how-we-work__step-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.how-we-work__step-lede {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.25rem;
  max-width: 56ch;
}

.how-we-work__step-body > p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  max-width: 64ch;
}

.how-we-work__deliverables {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border-top: 1px dashed var(--rule);
}

@media (min-width: 600px) {
  .how-we-work__deliverables {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.how-we-work__deliverables li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}

.how-we-work__deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--brand-purple);
}

/* ==========================================================================
   Dark mode — used by /how-we-work AND /capabilities
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  .how-we-work {
    background-color: #0A0B1B;
  }

  .how-we-work__hero-fade {
    background: linear-gradient(
      100deg,
      #0A0B1B 0%,
      rgba(10, 11, 27, 0.92) 25%,
      rgba(10, 11, 27, 0.55) 45%,
      rgba(10, 11, 27, 0) 65%
    );
  }

  /* Hero copy */
  .how-we-work__heading {
    color: var(--paper);
  }

  .how-we-work__lede {
    color: rgba(245, 241, 232, 0.72);
  }

  .how-we-work__cta--primary {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
  }
  .how-we-work__cta--primary:hover {
    background: var(--brand-gradient);
    color: var(--white);
    border-color: transparent;
  }

  .how-we-work__cta--ghost {
    background: rgba(245, 241, 232, 0.04);
    color: var(--paper);
    border-color: rgba(245, 241, 232, 0.22);
  }
  .how-we-work__cta--ghost:hover {
    background: rgba(245, 241, 232, 0.1);
    border-color: rgba(245, 241, 232, 0.5);
    color: var(--paper);
  }

  .how-we-work__stats {
    border-top-color: rgba(245, 241, 232, 0.14);
  }

  .how-we-work__stat-icon {
    background: rgba(160, 100, 169, 0.12);
    color: var(--brand-blue);
  }

  .how-we-work__stat-title { color: var(--paper); }
  .how-we-work__stat-meta { color: rgba(245, 241, 232, 0.6); }

  /* Intro band */
  .how-we-work__intro-text {
    color: var(--paper);
  }

  /* Step rows */
  .how-we-work__step {
    border-top-color: rgba(245, 241, 232, 0.12);
  }
  .how-we-work__step:last-child {
    border-bottom-color: rgba(245, 241, 232, 0.12);
  }

  .how-we-work__step-index span {
    color: rgba(245, 241, 232, 0.45);
  }
  .how-we-work__step-index p {
    color: var(--paper);
  }

  .how-we-work__step-body h2 {
    color: var(--paper);
  }
  .how-we-work__step-lede {
    color: var(--paper);
  }
  .how-we-work__step-body > p {
    color: rgba(245, 241, 232, 0.7);
  }

  .how-we-work__deliverables {
    border-top-color: rgba(245, 241, 232, 0.18);
  }
  .how-we-work__deliverables li {
    color: var(--paper);
  }
  .how-we-work__deliverables li::before {
    background: var(--brand-blue);
  }

  /* Step art — bumped brand-blue tint for the richer textured motif on deep navy */
  .how-we-work__step-art {
    color: rgba(57, 194, 216, 0.32);
  }
  .how-we-work__step--strategy .how-we-work__step-art,
  .how-we-work__step--optimize .how-we-work__step-art {
    color: rgba(160, 100, 169, 0.40);
  }

  /* Capabilities hero: aurora blobs on dark, mesh hidden */
  .hww-aurora--cap {
    background: linear-gradient(180deg, #0A0B1B 0%, #14152A 100%);
  }

  .hww-mesh--cap-light {
    display: none;
  }
}

/* Capabilities hero — light mode hides the aurora, only mesh shows */
.hww-aurora--cap {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .hww-aurora--cap {
    display: block;
  }
}

/* ==========================================================================
   Hero dark-mode variants
   /how-we-work uses --wash (editorial), /projects uses --grid (constellation).
   Light mode is unchanged (white→paper-deep gradient + brand-color blobs);
   each variant only redresses the panel in dark mode where the bare
   .hww-aurora has no override and would otherwise render as a bright
   white panel inside a dark page.
   ========================================================================== */

/* Variant-only layers: hidden by default; activated in dark mode below. */
.hww-aurora__grid-layer,
.hww-aurora__corner-glow,
.hww-aurora__streak {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {

  /* Constellation grid — /projects: quiet dot grid + single brand-blue corner glow. */
  .hww-aurora--grid {
    background: linear-gradient(180deg, #0A0B1B 0%, #14152A 100%);
  }
  .hww-aurora--grid .hww-aurora__blob {
    display: none;
  }
  .hww-aurora--grid .hww-aurora__grid-layer {
    display: block;
    background-image: radial-gradient(circle at 1px 1px, rgba(245, 241, 232, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.85), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.85), transparent 75%);
  }
  .hww-aurora--grid .hww-aurora__corner-glow {
    display: block;
    inset: auto;
    top: -10%;
    right: -5%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(57, 194, 216, 0.45) 0%, transparent 65%);
    filter: blur(70px);
    animation: hww-aurora-drift-1 14s ease-in-out infinite;
  }

  /* Editorial wash — /how-we-work: purple-tinted vertical wash + diagonal light streak. */
  .hww-aurora--wash {
    background: linear-gradient(180deg, #0A0B1B 0%, #1A1230 100%);
  }
  .hww-aurora--wash .hww-aurora__blob {
    display: none;
  }
  .hww-aurora--wash .hww-aurora__streak {
    display: block;
    background: linear-gradient(125deg,
      transparent 30%,
      rgba(57, 194, 216, 0.10) 45%,
      rgba(160, 100, 169, 0.14) 55%,
      transparent 70%
    );
    animation: hww-streak-drift 20s ease-in-out infinite;
  }

  @keyframes hww-streak-drift {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(4%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hww-aurora__corner-glow,
  .hww-aurora__streak {
    animation: none;
  }
}

