/* =========================================================================
   HOW WE WORK  (class prefix: hw-)
   Loaded after customstyle.css and service-detail.css and builds on their
   tokens (--primary, --body-font, --sd-*). The page body is
   ".sd-page.hw-page", so the shared buttons, eyebrow, section title and
   scroll reveal (assets/js/service-detail.js) apply unchanged. Everything
   here is scoped to .hw-page / .hw-* so no other page is affected.
   Motion: assets/js/how-we-work.js (timeline progress, hero parallax).
   ========================================================================= */

.hw-page {
  --hw-navy: #101d38;
  --hw-navy-2: #16284d;
  --hw-blue: var(--primary);          /* #1B5BA7 */
  --hw-blue-light: #338bf2;           /* .btn-primary gradient top */
  --hw-grad: linear-gradient(135deg, #338bf2 0%, #175aa8 100%);
  --hw-ice: #eff6ff;                  /* light blue tile, as the industry pages */
  --hw-section-y: 112px;
}

/* Smooth anchor scrolling for the "On this page" links. Offsets clear the
   fixed 92px navbar. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.hw-page) {
    scroll-behavior: smooth;
  }
}

.hw-page main section[id] {
  scroll-margin-top: 92px;
}

/* ---------------------------------------------------------------- shared */
.hw-section {
  position: relative;
  padding: var(--hw-section-y) 0;
}

.hw-section--muted {
  background-color: var(--sd-surface);
}

.hw-head {
  margin-bottom: 56px;
}

.hw-head--split {
  display: grid;
  gap: 20px 64px;
  align-items: end;
}

@media (min-width: 992px) {
  .hw-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.hw-head .sd-section-title {
  max-width: 15em;
}

.hw-head__lead {
  max-width: 34rem;
  margin: 0;
  font-size: 1rem;
  line-height: var(--body-lh);
  color: var(--sd-text);
}

/* ---------------------------------------------------------------- hero */
.hw-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
}

/* Faint engineering grid, fading out toward the copy */
.hw-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(27, 91, 167, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 91, 167, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 90% at 85% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(75% 90% at 85% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hw-hero .container {
  position: relative;
}

/* Hero heading: a little more air between lines; the primary-blue
   phrase always starts its own line */
.hw-hero .sd-hero__title {
  font-size: 3rem;           /* 48px; the shared service hero stays at 40px */
  line-height: 1.25;
  text-wrap: balance;        /* no lone word on the first line */
}

.hw-hero .sd-hero__desc {
  max-width: 40rem;
  font-size: 1.125rem;       /* 18px */
}

@media (max-width: 575.98px) {
  .hw-hero .sd-hero__title {
    font-size: 2.125rem;     /* 34px on phones */
  }
}

.hw-hero__accent {
  display: block;
}

.hw-hero__actions {
  margin-top: 32px;
}

/* "On this page" links */
.hw-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--sd-line);
}

.hw-jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sd-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hw-jump a span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(27, 91, 167, 0.55);
}

.hw-jump a:hover {
  color: var(--primary);
}

/* Hero visual: photo + layered cards */
.hw-visual {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 40px 56px 56px;
}

.hw-visual__glow {
  position: absolute;
  top: 6%;
  right: 0;
  width: 78%;
  height: 82%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(51, 139, 242, 0.28), rgba(51, 139, 242, 0));
  filter: blur(8px);
}

.hw-visual__dots {
  position: absolute;
  bottom: 18px;
  right: 6px;
  width: 168px;
  height: 168px;
  background-image: radial-gradient(rgba(27, 91, 167, 0.35) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, transparent 10%, #000 70%);
  mask-image: linear-gradient(135deg, transparent 10%, #000 70%);
}

.hw-visual__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 4.6;
  background-color: var(--hw-ice);
  box-shadow:
    0 40px 80px -40px rgba(16, 29, 56, 0.55),
    0 0 0 1px rgba(16, 29, 56, 0.06);
}

.hw-visual__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
  transform: scale(1.06); /* room for the parallax shift */
}

/* Navy tint at the bottom so the floating card reads on top of it */
.hw-visual__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 29, 56, 0) 55%, rgba(16, 29, 56, 0.35) 100%);
}

.hw-float {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 48px -24px rgba(16, 29, 56, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  color: var(--hw-navy);
}

.hw-float__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.hw-float__label .material-icons-round {
  font-size: 16px;
  color: var(--primary);
}

/* Delivery plan card (bottom left) */
.hw-float--plan {
  bottom: 12px;
  left: 0;
  width: 236px;
  padding: 16px 18px 14px;
}

.hw-plan {
  position: relative;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rail between the dots */
.hw-plan::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--hw-blue-light) 0%, var(--hw-blue) 62%, var(--sd-line) 62%);
}

.hw-plan li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sd-muted);
}

.hw-plan i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--sd-line-strong);
  border-radius: 50%;
  background-color: var(--white);
}

.hw-plan .is-done,
.hw-plan .is-now {
  color: var(--hw-navy);
}

.hw-plan .is-done i {
  border-color: transparent;
  background: var(--hw-grad);
}

.hw-plan .is-now i {
  border-color: var(--primary);
}

.hw-plan .is-now i::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Location chip (top right) */
.hw-float--team {
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
}

.hw-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--hw-grad);
  font-size: 20px;
  color: var(--white);
}

.hw-float__text {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--sd-muted);
}

.hw-float__text b {
  font-size: 0.8125rem;
  color: var(--hw-navy);
}

/* Scope chip (right edge) */
.hw-float--scope {
  right: 0;
  bottom: 104px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hw-float--scope .material-icons-round {
  font-size: 16px;
  color: #16a34a;
}

/* ---------------------------------------------------------------- engagement models
   The selector itself is the homepage one (customstyle.css .eng-*,
   assets/js/engagement-selector.js, bullet lists included); only the note
   below it is page-specific. */

.hw-eng__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 28px 0 0;
  font-size: 0.9375rem;
  color: var(--sd-text);
}

/* ---------------------------------------------------------------- process timeline */
.hw-steps {
  position: relative;
  --hw-progress: 0;
}

.hw-steps__list {
  position: relative;
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Track: vertical on phones and tablets, horizontal from 992px */
.hw-steps__track {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  border-radius: 2px;
  background-color: var(--sd-line);
}

.hw-steps__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--hw-blue-light), var(--hw-blue));
  transform: scaleY(var(--hw-progress));
  transform-origin: top center;
}

.hw-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 24px;
  align-content: start;
}

.hw-step__node {
  grid-row: 1 / span 3;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--sd-line-strong);
  border-radius: 50%;
  background-color: var(--white);
  color: var(--sd-muted);
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.hw-step__node .material-icons-round {
  font-size: 24px;
}

.hw-step__num {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: rgba(27, 91, 167, 0.5);
}

.hw-step__title {
  margin: 4px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hw-navy);
}

.hw-step__desc {
  max-width: 22rem;
  margin: 0;
  font-size: 0.9875rem;
  line-height: 1.65;
  color: var(--sd-text);
  transition: opacity 0.6s ease, transform 0.6s var(--sd-ease);
}

/* Reached step (how-we-work.js) */
.hw-step.is-active .hw-step__node {
  border-color: transparent;
  background: var(--hw-grad);
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(51, 139, 242, 0.14), 0 14px 28px -14px rgba(27, 91, 167, 0.9);
}

/* With the timeline script running, a step's description shows once the
   progress line reaches it, or on hover. Without it, all are shown. */
.hw-timeline-on .hw-step:not(.is-active):not(:hover) .hw-step__desc {
  opacity: 0.45;
  transform: translateY(6px);
}

@media (min-width: 992px) {
  .hw-steps__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  /* First node centre to last node centre: 4 columns, 32px gaps, 56px nodes.
     how-we-work.js re-measures it from the nodes. */
  .hw-steps__track {
    top: 27px;
    right: calc(25% - 52px);
    bottom: auto;
    left: 28px;
    width: auto;
    height: 2px;
  }

  .hw-steps__fill {
    background: linear-gradient(90deg, var(--hw-blue-light), var(--hw-blue));
    transform: scaleX(var(--hw-progress));
    transform-origin: left center;
  }

  .hw-step {
    grid-template-columns: none;
    padding-right: 8px;
  }

  .hw-step__node {
    grid-row: auto;
    margin-bottom: 28px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hw-step:hover .hw-step__node {
    border-color: var(--primary);
    color: var(--primary);
  }

  .hw-step.is-active:hover .hw-step__node {
    color: var(--white);
  }
}

/* ---------------------------------------------------------------- delivery model */
@media (min-width: 992px) {
  .hw-model__intro {
    position: sticky;
    top: 124px;
  }
}

.hw-model__lead {
  max-width: 30rem;
  margin: 20px 0 0;
  font-size: 1rem;
  line-height: var(--body-lh);
  color: var(--sd-text);
}

/* Two locations joined by an arc. The stage has the SVG's 400 x 320
   proportions (the SVG is never stretched), and the tag and labels are
   placed in % of the stage, so they stay on the arc and under the nodes at
   every width. Node centres: (90, 210) and (310, 210); arc apex (200, 67.5). */
.hw-bridge {
  margin-top: 40px;
  padding: 36px 24px 32px;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  background-color: var(--white);
}

.hw-bridge__stage {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 400 / 320;
}

/* Faint dotted backdrop, fading out toward the edges */
.hw-bridge__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 91, 167, 0.18) 1px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(60% 58% at 50% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 58% at 50% 45%, #000 0%, transparent 100%);
}

.hw-bridge__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hw-bridge__orbit,
.hw-bridge__path,
.hw-bridge__pulse {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.hw-bridge__orbit {
  stroke: rgba(27, 91, 167, 0.12);
  stroke-width: 1;
}

.hw-bridge__orbit--inner {
  stroke-dasharray: 2 5;
}

.hw-bridge__path {
  stroke: rgba(27, 91, 167, 0.38);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.hw-bridge__pulse {
  stroke: var(--hw-blue-light);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 14 86;
  stroke-dashoffset: 0;
}

/* Nodes: gradient core, soft halo, pulsing outer ring */
.hw-bridge__core {
  fill: url(#hwBridgeGrad);
}

.hw-bridge__halo {
  fill: rgba(51, 139, 242, 0.15);
}

.hw-bridge__ring {
  fill: none;
  stroke: rgba(51, 139, 242, 0.35);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
}

.hw-bridge__tag {
  position: absolute;
  top: 21.09%; /* arc apex: 67.5 / 320 */
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 5px 12px;
  border: 1px solid var(--sd-tint-line);
  border-radius: 999px;
  background-color: var(--hw-ice);
  box-shadow: 0 6px 16px -10px rgba(27, 91, 167, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
}

/* Labels centred under each node (node x = 22.5% / 77.5%; top = 244 / 320) */
.hw-bridge__label {
  position: absolute;
  top: 76.25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  color: var(--sd-muted);
  transform: translateX(-50%);
}

.hw-bridge__label b {
  font-size: 0.9375rem;
  color: var(--hw-navy);
}

.hw-bridge__label--us  { left: 22.5%; }
.hw-bridge__label--hyd { left: 77.5%; }

@keyframes hw-bridge-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Principles: editorial 2-column grid with hairlines */
.hw-principles {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--sd-line-strong);
}

@media (min-width: 768px) {
  .hw-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

.hw-principle {
  position: relative;
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--sd-line-strong);
}

.hw-principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--hw-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--sd-ease);
}

.hw-principle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background-color: var(--white);
  box-shadow: inset 0 0 0 1px var(--sd-tint-line);
  font-size: 21px;
  color: var(--primary);
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.hw-principle__title {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hw-navy);
}

.hw-principle__desc {
  max-width: 26rem;
  margin: 0;
  font-size: 0.9875rem;
  line-height: 1.65;
  color: var(--sd-text);
}

@media (hover: hover) and (pointer: fine) {
  .hw-principle:hover::before {
    transform: scaleX(1);
  }

  .hw-principle:hover .hw-principle__icon {
    background-color: var(--primary);
    box-shadow: 0 10px 20px -12px rgba(27, 91, 167, 0.8);
    color: var(--white);
  }
}

/* ---------------------------------------------------------------- accountability
   Full-width header, then a full-width navy diagram of the delivery
   relationship, then the five principles in one row.
   Diagram: nodes and link labels are HTML placed in % of the canvas; the
   links are SVG paths in a 0-100 viewBox stretched to the canvas
   (non-scaling strokes). Each link has three layers: a faint track, a row
   of flowing particles and a bright comet. Wide layout from 768px
   (leadership | your team | engineering); tall layout on phones. */
.hw-net {
  --hw-net-h: 460px;
  position: relative;
  overflow: hidden;
  height: var(--hw-net-h);
  background:
    radial-gradient(42% 70% at 50% 36%, rgba(51, 139, 242, 0.22), rgba(51, 139, 242, 0) 70%),
    radial-gradient(30% 50% at 12% 100%, rgba(51, 139, 242, 0.14), rgba(51, 139, 242, 0) 70%),
    linear-gradient(160deg, var(--hw-navy-2) 0%, var(--hw-navy) 55%, #0b1530 100%);
  color: var(--white);
  isolation: isolate;
}

/* Node and label positions: wide layout */
.hw-net__node--lead { --nx: 24%; --ny: 50%; }
.hw-net__node--you  { --nx: 50%; --ny: 32%; } /* top centre */
.hw-net__node--eng  { --nx: 76%; --ny: 50%; }
/* Labels sit just outside the midpoint of their arc (see the ellipse in how-we-work.html) */
.hw-net__label.is-a { --nx: 33.556%; --ny: 37.026%; --lt: translate(calc(-100% - 6px), calc(-100% - 6px)); }
.hw-net__label.is-b { --nx: 66.444%; --ny: 37.026%; --lt: translate(6px, calc(-100% - 6px)); }
.hw-net__label.is-c { --nx: 50%;     --ny: 80%;     --lt: translate(-50%, 10px); }

.hw-net__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 0%, transparent 85%);
  mask-image: radial-gradient(70% 80% at 50% 50%, #000 0%, transparent 85%);
}

/* Soft light that follows the cursor (how-we-work.js sets --mx / --my) */
.hw-net__spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(108, 182, 255, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hw-net:hover .hw-net__spot {
  opacity: 1;
}

/* Ambient particles drifting upward */
.hw-net__motes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hw-net__motes i {
  position: absolute;
  bottom: -8px;
  left: var(--x);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #9fd0ff;
  box-shadow: 0 0 6px 1px rgba(108, 182, 255, 0.7);
  opacity: 0;
}

.hw-net__motes i:nth-child(3n) {
  width: 2px;
  height: 2px;
}

.hw-net__caption {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

/* Links */
.hw-net__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hw-net__svg--tall {
  display: none;
}

.hw-net__link {
  transition: opacity 0.4s ease;
}

.hw-net__glow,
.hw-net__track,
.hw-net__flow,
.hw-net__comet {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

/* Soft halo under each link */
.hw-net__glow {
  stroke-width: 7;
  opacity: 0.22;
  filter: blur(4px);
}

/* Blue gradient track: brighter across the middle, deeper at the sides */
.hw-net__track {
  stroke-width: 1.5;
}

.hw-net__svg--wide :is(.hw-net__glow, .hw-net__track) { stroke: url(#hwNetGradWide); }
.hw-net__svg--tall :is(.hw-net__glow, .hw-net__track) { stroke: url(#hwNetGradTall); }

/* Particles: round dots every 3% of the path */
.hw-net__flow {
  stroke: #8cc8ff;
  stroke-width: 3;
  stroke-dasharray: 0 3;
  opacity: 0.55;
}

/* Comet: a short bright streak (same length and speed on every arc; the
   long bottom arc has pathLength 234, so its dash values scale with it) */
.hw-net__comet {
  stroke: #d6ecff;
  stroke-width: 2.5;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 5px rgba(108, 182, 255, 0.95));
  opacity: 0;
}

.hw-net__comet--long {
  stroke-dasharray: 7 227;
  stroke-dashoffset: 234;
}

/* Node circles fully opaque so the links end cleanly at their edge */
.hw-net__node:not(.hw-net__node--you) .hw-net__dot {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.16), transparent 60%),
    #16284d;
}

/* Link labels */
.hw-net__label {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(159, 208, 255, 0.28);
  border-radius: 999px;
  background-color: rgba(16, 29, 56, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  transform: var(--lt, translate(-50%, -50%));
  transition: filter 0.4s ease, border-color 0.4s ease;
}

/* Glowing connection point on each label */
.hw-net__label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #6cb6ff;
  box-shadow: 0 0 0 3px rgba(108, 182, 255, 0.18), 0 0 10px rgba(108, 182, 255, 0.9);
}

/* Nodes: the element is the circle; the name sits underneath */
.hw-net__node {
  --size: 76px;
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  z-index: 3;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

.hw-net__node--you {
  --size: 104px;
}

.hw-net__dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(159, 208, 255, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.16), transparent 60%),
    rgba(22, 40, 77, 0.92);
  box-shadow: 0 0 0 8px rgba(108, 182, 255, 0.05), 0 18px 36px -16px rgba(0, 0, 0, 0.8);
  color: #bfe0ff;
  transition: transform 0.4s var(--sd-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hw-net__dot .material-icons-round {
  font-size: 30px;
}

.hw-net__node--you .hw-net__dot {
  border-color: transparent;
  background: var(--hw-grad);
  box-shadow:
    0 0 0 10px rgba(51, 139, 242, 0.14),
    0 0 48px 4px rgba(51, 139, 242, 0.45),
    0 24px 48px -18px rgba(0, 0, 0, 0.8);
  color: var(--white);
}

.hw-net__node--you .hw-net__dot .material-icons-round {
  font-size: 40px;
}

/* Pulse rings */
.hw-net__dot::before,
.hw-net__dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(108, 182, 255, 0.55);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Slow dashed orbit around your team */
.hw-net__orbit {
  position: absolute;
  inset: -34px;
  border: 1px dashed rgba(159, 208, 255, 0.25);
  border-radius: 50%;
}

.hw-net__orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background-color: #9fd0ff;
  box-shadow: 0 0 10px 2px rgba(108, 182, 255, 0.9);
}

.hw-net__name {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 200px;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  transform: translateX(-50%);
}

.hw-net__name b {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
}

.hw-net__node--you .hw-net__name {
  top: calc(100% + 44px); /* clears the orbit */
}

/* Leadership and engineering: name on the outer side, away from the links */
.hw-net__node--lead .hw-net__name,
.hw-net__node--eng .hw-net__name {
  top: 50%;
  max-width: 190px;
  transform: translateY(-50%);
}

.hw-net__node--lead .hw-net__name {
  right: calc(100% + 18px);
  left: auto;
  align-items: flex-end;
  text-align: right;
}

.hw-net__node--eng .hw-net__name {
  left: calc(100% + 18px);
  align-items: flex-start;
  text-align: left;
}

/* Hover a node: its own links stay lit, the rest dim */
@media (hover: hover) and (pointer: fine) {
  .hw-net__node:hover .hw-net__dot {
    transform: scale(1.06);
    border-color: rgba(159, 208, 255, 0.7);
  }

  .hw-net:has(.hw-net__node--lead:hover) .hw-net__link:not(.is-a, .is-c),
  .hw-net:has(.hw-net__node--you:hover) .hw-net__link:not(.is-a, .is-b),
  .hw-net:has(.hw-net__node--eng:hover) .hw-net__link:not(.is-b, .is-c) {
    opacity: 0.15;
  }

  /* labels dim through filter, so the reveal's delayed opacity never lags the hover */
  .hw-net:has(.hw-net__node--lead:hover) .hw-net__label:not(.is-a, .is-c),
  .hw-net:has(.hw-net__node--you:hover) .hw-net__label:not(.is-a, .is-b),
  .hw-net:has(.hw-net__node--eng:hover) .hw-net__label:not(.is-b, .is-c) {
    filter: opacity(0.25);
  }

  .hw-net__label:hover {
    border-color: rgba(159, 208, 255, 0.7);
  }
}

/* One module: the diagram on top and the five principles in a slightly
   lighter navy band underneath, sharing one rounded frame and one shadow. */
.hw-module {
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--hw-navy);
  box-shadow:
    0 50px 90px -60px rgba(16, 29, 56, 0.9),
    0 0 0 1px rgba(16, 29, 56, 0.08);
}

/* Five principles in one row */
.hw-acc {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(159, 208, 255, 0.12);
  background-color: #182744;
}

/* Divider accent: a soft light along the seam with the diagram */
.hw-acc::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 182, 255, 0), rgba(108, 182, 255, 0.55), rgba(108, 182, 255, 0));
  pointer-events: none;
}

.hw-acc__item {
  position: relative;
  padding: 28px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.35s ease;
}

.hw-acc__item:first-child {
  border-top: 0;
}

/* Hover: a blue line draws along the top edge */
.hw-acc__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--hw-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--sd-ease);
}

.hw-acc__num {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: rgba(108, 182, 255, 0.75);
  transition: color 0.35s ease;
}

.hw-acc__num::after {
  content: "";
  width: 24px;
  height: 1px;
  background-color: currentColor;
  transition: width 0.5s var(--sd-ease);
}

.hw-acc__title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

.hw-acc__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

@media (hover: hover) and (pointer: fine) {
  .hw-acc__item:hover {
    background-color: rgba(255, 255, 255, 0.035);
  }

  .hw-acc__item:hover::before {
    transform: scaleX(1);
  }

  .hw-acc__item:hover .hw-acc__num {
    color: #9fd0ff;
  }

  .hw-acc__item:hover .hw-acc__num::after {
    width: 40px;
  }
}

/* Tablet: two columns, the fifth across the full width */
@media (min-width: 768px) {
  .hw-acc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-acc__item {
    padding: 32px 32px 36px;
  }

  .hw-acc__item:nth-child(2) {
    border-top: 0;
  }

  .hw-acc__item:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hw-acc__item:nth-child(5):last-child {
    grid-column: 1 / -1;
  }
}

/* Desktop: five equal columns with hairline separators */
@media (min-width: 1200px) {
  .hw-acc {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hw-acc__item,
  .hw-acc__item:nth-child(5):last-child {
    grid-column: auto;
    padding: 34px 28px 38px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hw-acc__item:first-child {
    border-left: 0;
  }
}

/* Tablet: shorter canvas */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hw-net {
    --hw-net-h: 420px;
  }

  .hw-net__node {
    --size: 64px;
  }

  .hw-net__node--you {
    --size: 88px;
  }

  .hw-net__orbit {
    inset: -18px; /* keeps clear of the link labels */
  }

  .hw-net__node--you .hw-net__name {
    top: calc(100% + 26px);
  }

  .hw-net__node--lead .hw-net__name,
  .hw-net__node--eng .hw-net__name {
    max-width: 112px;
  }

  .hw-net__node--lead .hw-net__name { right: calc(100% + 12px); }
  .hw-net__node--eng .hw-net__name  { left: calc(100% + 12px); }
}

/* Phones: tall layout */
@media (max-width: 767.98px) {
  .hw-net {
    --hw-net-h: 560px;
  }

  .hw-module {
    border-radius: 20px;
  }

  .hw-net__svg--wide {
    display: none;
  }

  .hw-net {
    background:
      radial-gradient(60% 40% at 50% 72%, rgba(51, 139, 242, 0.24), rgba(51, 139, 242, 0) 70%),
      linear-gradient(160deg, var(--hw-navy-2) 0%, var(--hw-navy) 55%, #0b1530 100%);
  }

  .hw-net__svg--tall {
    display: block;
  }

  /* Inverted triangle: leadership and engineering on top, your team below */
  .hw-net__node--lead { --nx: 22%; --ny: 37%; }
  .hw-net__node--eng  { --nx: 78%; --ny: 37%; }
  .hw-net__node--you  { --nx: 50%; --ny: 72%; }
  .hw-net__label.is-a { --nx: 36%; --ny: 54.5%; --lt: translate(calc(-100% - 10px), -50%); }
  .hw-net__label.is-b { --nx: 64%; --ny: 54.5%; --lt: translate(10px, -50%); }
  .hw-net__label.is-c { --nx: 50%; --ny: 37%;   --lt: translate(-50%, 10px); }

  .hw-net__caption {
    top: 20px;
    font-size: 0.6875rem;
  }

  .hw-net__node {
    --size: 58px;
  }

  .hw-net__node--you {
    --size: 78px;
  }

  .hw-net__dot .material-icons-round {
    font-size: 26px;
  }

  .hw-net__node--you .hw-net__dot .material-icons-round {
    font-size: 34px;
  }

  .hw-net__orbit {
    inset: -18px;
  }

  /* leadership and engineering names above their nodes, your team below */
  .hw-net__node--lead .hw-net__name,
  .hw-net__node--eng .hw-net__name {
    top: auto;
    right: auto;
    bottom: calc(100% + 12px);
    left: 50%;
    align-items: center;
    max-width: 130px;
    text-align: center;
    transform: translateX(-50%);
  }

  .hw-net__node--you .hw-net__name {
    top: calc(100% + 28px);
  }

  .hw-net__name b {
    font-size: 0.8125rem;
  }

  .hw-net__label {
    gap: 6px;
    padding: 4px 9px 4px 7px;
    font-size: 0.6875rem;
  }

}

/* ---- motion */
@keyframes hw-net-flow {
  to { stroke-dashoffset: -30; }
}

@keyframes hw-net-comet {
  0% { stroke-dashoffset: 100; opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: -7; opacity: 0; }
}

@keyframes hw-net-comet-long {
  0% { stroke-dashoffset: 234; opacity: 0; }
  5% { opacity: 1; }
  92% { opacity: 1; }
  100% { stroke-dashoffset: -7; opacity: 0; }
}

@keyframes hw-net-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes hw-net-orbit {
  to { transform: rotate(360deg); }
}

@keyframes hw-net-mote {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.5; }
  100% { transform: translateY(calc(var(--hw-net-h) * -1 - 16px)); opacity: 0; }
}

@keyframes hw-net-label {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes hw-net-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(108, 182, 255, 0.18), 0 0 10px rgba(108, 182, 255, 0.9); }
  50% { box-shadow: 0 0 0 6px rgba(108, 182, 255, 0.06), 0 0 16px rgba(108, 182, 255, 1); }
}

@media (prefers-reduced-motion: no-preference) {
  .hw-net__flow {
    animation: hw-net-flow 2.4s linear infinite;
  }

  .hw-net__comet {
    animation: hw-net-comet 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  .hw-net__link.is-b .hw-net__comet { animation-delay: 1.6s; }
  .hw-net__comet--long {
    animation-name: hw-net-comet-long;
    animation-duration: 7.5s; /* 3.2s x 234/100: same speed as the upper arcs */
    animation-delay: 0.8s;
  }

  .hw-net__dot::before {
    animation: hw-net-pulse 3.2s ease-out infinite;
  }

  .hw-net__dot::after {
    animation: hw-net-pulse 3.2s ease-out 1.6s infinite;
  }

  .hw-net__node--lead .hw-net__dot::before,
  .hw-net__node--eng .hw-net__dot::before { animation-duration: 4.4s; }

  .hw-net__node--lead .hw-net__dot::after,
  .hw-net__node--eng .hw-net__dot::after { animation: none; }

  .hw-net__orbit {
    animation: hw-net-orbit 24s linear infinite;
  }

  .hw-net__motes i {
    animation: hw-net-mote var(--t) linear var(--d) infinite;
  }

  .hw-net__label {
    animation: hw-net-label 5s ease-in-out infinite;
  }

  .hw-net__label.is-b { animation-delay: -1.6s; }
  .hw-net__label.is-c { animation-delay: -3.2s; }

  .hw-net__label i {
    animation: hw-net-glow 2.4s ease-in-out infinite;
  }

  /* Reveal (service-detail.js adds .is-revealed): tracks draw in, then
     the nodes and labels appear in turn */
  .sd-js .hw-net :is(.hw-net__track, .hw-net__glow) {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.4s var(--sd-ease) 0.3s;
  }

  .sd-js .hw-net.is-revealed :is(.hw-net__track, .hw-net__glow) {
    stroke-dashoffset: 0;
  }

  .sd-js .hw-net :is(.hw-net__node, .hw-net__label, .hw-net__caption) {
    opacity: 0;
    transition: opacity 0.6s ease, scale 0.7s var(--sd-ease), filter 0.4s ease, border-color 0.4s ease;
    scale: 0.9;
  }

  .sd-js .hw-net.is-revealed :is(.hw-net__node, .hw-net__label, .hw-net__caption) {
    opacity: 1;
    scale: 1;
  }

  .sd-js .hw-net.is-revealed .hw-net__node--you { transition: opacity 0.6s ease 0.2s, scale 0.7s var(--sd-ease) 0.2s, filter 0.4s ease, border-color 0.4s ease; }
  .sd-js .hw-net.is-revealed .hw-net__node--lead { transition: opacity 0.6s ease 0.5s, scale 0.7s var(--sd-ease) 0.5s, filter 0.4s ease, border-color 0.4s ease; }
  .sd-js .hw-net.is-revealed .hw-net__node--eng { transition: opacity 0.6s ease 0.65s, scale 0.7s var(--sd-ease) 0.65s, filter 0.4s ease, border-color 0.4s ease; }
  .sd-js .hw-net.is-revealed .hw-net__label.is-a { transition: opacity 0.6s ease 1s, scale 0.7s var(--sd-ease) 1s, filter 0.4s ease, border-color 0.4s ease; }
  .sd-js .hw-net.is-revealed .hw-net__label.is-b { transition: opacity 0.6s ease 1.15s, scale 0.7s var(--sd-ease) 1.15s, filter 0.4s ease, border-color 0.4s ease; }
  .sd-js .hw-net.is-revealed .hw-net__label.is-c { transition: opacity 0.6s ease 1.3s, scale 0.7s var(--sd-ease) 1.3s, filter 0.4s ease, border-color 0.4s ease; }
}

/* ---------------------------------------------------------------- final CTA
   The homepage "Get in touch" band (customstyle.css .getintouch), unchanged,
   except that it may grow taller than 320px when the buttons stack on phones. */
.hw-page .getintouch {
  height: auto;
  min-height: 320px;
  padding: 56px 0;
}

/* ---------------------------------------------------------------- motion */
@keyframes hw-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes hw-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 91, 167, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(27, 91, 167, 0); }
}

@keyframes hw-dash {
  to { stroke-dashoffset: -100; }
}

@media (prefers-reduced-motion: no-preference) {
  .hw-float--plan  { animation: hw-float 7s ease-in-out infinite; }
  .hw-float--team  { animation: hw-float 8s ease-in-out -2s infinite; }
  .hw-float--scope { animation: hw-float 6s ease-in-out -4s infinite; }

  .hw-plan .is-now i {
    animation: hw-pulse-dot 2.2s ease-in-out infinite;
  }

  .hw-bridge__pulse {
    animation: hw-dash 4.5s linear infinite;
  }

  .hw-bridge__ring {
    animation: hw-bridge-ring 2.8s ease-out infinite;
  }

  .hw-bridge__node--end .hw-bridge__ring {
    animation-delay: 1.4s;
  }


  /* Hero copy on load (the reveal script only handles scrolled-in elements) */
  .sd-js .hw-hero .col-lg-6:first-child > * {
    animation: sd-rise 0.8s var(--sd-ease) both;
  }

  .sd-js .hw-hero .col-lg-6:first-child > :nth-child(2) { animation-delay: 0.05s; }
  .sd-js .hw-hero .col-lg-6:first-child > :nth-child(3) { animation-delay: 0.1s; }
  .sd-js .hw-hero .col-lg-6:first-child > :nth-child(4) { animation-delay: 0.18s; }
  .sd-js .hw-hero .col-lg-6:first-child > :nth-child(5) { animation-delay: 0.26s; }
  .sd-js .hw-hero .col-lg-6:first-child > :nth-child(6) { animation-delay: 0.34s; }

  .sd-js .hw-visual {
    animation: hw-visual-in 1.1s var(--sd-ease) 0.15s both;
  }
}

@keyframes hw-visual-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

/* Parallax layers (how-we-work.js sets --hw-shift on .hw-visual) */
[data-hw-depth] {
  will-change: transform;
}

.hw-visual__photo img {
  transform: scale(1.06) translateY(calc(var(--hw-shift, 0) * -0.04px));
}

.hw-float--plan  { transform: translateY(calc(var(--hw-shift, 0) * 0.05px)); }
.hw-float--team  { transform: translateY(calc(var(--hw-shift, 0) * 0.08px)); }
.hw-float--scope { transform: translateY(calc(var(--hw-shift, 0) * 0.03px)); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
  .hw-page {
    --hw-section-y: 96px;
  }
}

@media (max-width: 991.98px) {

  .hw-visual {
    max-width: 480px;
  }

  .hw-head {
    margin-bottom: 40px;
  }
}

@media (max-width: 767.98px) {
  .hw-page {
    --hw-section-y: 64px;
  }

  .hw-hero {
    padding: 36px 0 40px;
  }



  .hw-jump {
    margin-top: 36px;
    gap: 10px 20px;
  }



}

@media (max-width: 575.98px) {
  .hw-visual {
    padding: 16px 12px 48px 24px;
  }

  .hw-float--plan {
    width: 200px;
    padding: 14px 14px 12px;
  }

  .hw-plan li {
    font-size: 0.75rem;
  }

  .hw-float--scope {
    display: none;
  }

  .hw-float--team {
    padding: 8px 12px 8px 8px;
  }


  .hw-bridge {
    padding: 20px 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-step__node,
  .hw-step__desc,
  .hw-principle::before,
  .hw-principle__icon,
  .hw-acc__item::before,
  .hw-acc__num,
  .hw-acc__num::after,
  .hw-net__dot,
  .hw-net__link,
  .hw-net__label {
    transition: none;
  }
}
