#wwd-services {
  /* Brand tokens, sampled from the live page */
  --wwd-bg: #262626;                  /* page background (used for masks and fades) */
  --wwd-text: #eeeeee;
  --wwd-muted: #bdbdbd;
  --wwd-faint: #8c8c8c;
  --wwd-dim-title: #777777;           /* inactive chapter title: large text, 3.4:1 */
  --wwd-dim-text: #8f8f8f;            /* inactive chapter text: 4.7:1 */
  --wwd-accent: #f05b56;
  --wwd-accent-soft: #ff8f8a;
  --wwd-accent-ink: #1a1a1a;          /* text on the accent: 5.2:1 */
  --wwd-live: #5bd08a;
  --wwd-line: rgba(255, 255, 255, 0.08);

  /* Device surfaces */
  --wwd-chrome: #2a2a2a;
  --wwd-canvas: #171717;
  --wwd-ui: #262626;
  --wwd-ui-2: #303030;
  --wwd-ui-3: #3a3a3a;

  /* Mock-UI accents */
  --wwd-link: #8ec7ff;                /* search-result title */
  --wwd-violet: #c9a2ff;              /* "corners" token icon */

  /* Type */
  --wwd-font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wwd-sticky-top: 0px;              /* set to your fixed header height if the site has one */
  --wwd-device-h: min(70vh, 580px);
  --wwd-art-scale: 1;                 /* refined by JS to fit the preview pane */

  position: relative;
  display: block;
  width: 100%;
  color: var(--wwd-text);
}

#wwd-services *,
#wwd-services *::before,
#wwd-services *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   THEME SHIELD
   Site-wide tag rules must never reach this block. Example that broke v5:
   a transparent-header rule such as "header { position: absolute; z-index: 999 }"
   lifted the section's header out of the flow, so the story slid underneath it.
   The wrappers are now plain divs; these resets also protect pages that still
   carry the older header/article markup. (No transform reset on .wwd-index:
   GSAP animates it.)
   ========================================================================== */

#wwd-services {
  position: relative !important;
  display: block !important;
  float: none !important;
  height: auto !important;
  overflow: visible !important;       /* the sticky device needs a visible-overflow ancestor */
}

#wwd-services .wwd-head,
#wwd-services .wwd-story,
#wwd-services .wwd-outro {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: auto !important;
}

#wwd-services .wwd-head {
  display: block !important;
}

#wwd-services .wwd-index {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  background: none !important;
  box-shadow: none !important;
  z-index: auto !important;
}

#wwd-services .wwd-ch {
  position: relative !important;      /* also the offset parent the JS measures the text against */
  inset: auto !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Shared: masked line reveal (JS slides .wwd-mask__in up from below) */
#wwd-services .wwd-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.02em 0.1em;
  margin: -0.04em -0.02em -0.1em;
}

#wwd-services .wwd-mask__in {
  display: inline-block;
}

/* Shared: neutral placeholder bars inside the mock UIs */
#wwd-services .wwd-ghost {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #3e3e3e;
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */

#wwd-services .wwd-head {
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
}

#wwd-services .wwd-head__title {
  margin: 0 !important;
  font-family: var(--wwd-font-display) !important;
  font-size: clamp(3.25rem, 10vw, 9rem) !important;
  font-weight: 900 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
  color: var(--wwd-text) !important;
}

#wwd-services .wwd-head__rule {
  display: block;
  width: 96px;
  height: 3px;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--wwd-accent);
  transform-origin: 0 50%;
}

#wwd-services .wwd-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

#wwd-services .wwd-head__intro {
  max-width: 52ch;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem) !important;
  line-height: 1.7 !important;
  color: var(--wwd-muted) !important;
}

/* Jump-to index */
#wwd-services .wwd-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--wwd-line);
}

#wwd-services .wwd-index__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 0.95rem 0 !important;
  border-bottom: 1px solid var(--wwd-line);
  font-family: inherit !important;
  color: var(--wwd-text) !important;
  text-decoration: none !important;
}

#wwd-services .wwd-index__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--wwd-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#wwd-services .wwd-index__num {
  font-family: var(--wwd-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wwd-faint);
  transition: color 0.3s ease;
}

#wwd-services .wwd-index__name {
  font-family: var(--wwd-font-display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  font-weight: 700;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#wwd-services .wwd-index__link:focus-visible {
  outline: 2px solid var(--wwd-accent);
  outline-offset: 4px;
}

/* ==========================================================================
   2. STORY LAYOUT (desktop: chapters left, sticky device right)
   ========================================================================== */

#wwd-services .wwd-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(2.5rem, 6vw, 6rem);
}

#wwd-services .wwd-story__stage {
  position: sticky;                   /* CSS sticky instead of GSAP pin: immune to Thrive's transformed ancestors */
  top: calc(var(--wwd-sticky-top) + max(1rem, (100vh - var(--wwd-device-h)) / 2));
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

/* Soft accent glow behind the device (static, rendered once) */
#wwd-services .wwd-story__stage::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 91, 86, 0.22), transparent);
  filter: blur(40px);
  pointer-events: none;
}

#wwd-services .wwd-story__chapters {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  padding-left: 2.25rem;
}

/* Progress rail beside the chapters */
#wwd-services .wwd-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.4rem;
  width: 2px;
  background: var(--wwd-line);
}

#wwd-services .wwd-rail__fill {
  position: absolute;
  inset: 0;
  background: var(--wwd-accent);
  transform-origin: 50% 0;
}

/* Chapters */
#wwd-services .wwd-ch {
  position: relative;                 /* offset parent for its own text, so the JS can find the text block's centre */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  padding: 3rem 0;
  scroll-margin-top: 10vh;
}

#wwd-services .wwd-ch:focus {
  outline: none;
}

#wwd-services .wwd-ch__num {
  margin-bottom: 1.1rem;
  font-family: var(--wwd-font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(238, 238, 238, 0.12);  /* solid fill: Montserrat's overlapping contours show through text-stroke */
  transition: color 0.45s ease;
}

#wwd-services .wwd-ch.is-active .wwd-ch__num {
  color: var(--wwd-accent);
}

#wwd-services .wwd-ch__title {
  margin: 0 0 1rem !important;
  font-family: var(--wwd-font-display) !important;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--wwd-text) !important;
  transition: color 0.45s ease;
}

#wwd-services .wwd-ch__desc {
  max-width: 44ch;
  margin: 0 0 1.5rem !important;
  font-family: inherit !important;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem) !important;
  line-height: 1.7 !important;
  color: var(--wwd-muted) !important;
  transition: color 0.45s ease;
}

#wwd-services .wwd-ch__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#wwd-services .wwd-ch__tags li {
  margin: 0 !important;
  padding: 0.4rem 0.85rem !important;
  border: 1px solid var(--wwd-line);
  border-radius: 999px;
  font-family: inherit !important;
  font-size: 0.8125rem !important;
  line-height: 1.2 !important;
  color: var(--wwd-muted) !important;
}

/* Dimming applies only once the script is running (it adds .wwd-js), so no-JS visitors see everything at full strength */
#wwd-services.wwd-js .wwd-ch:not(.is-active) .wwd-ch__title { color: var(--wwd-dim-title) !important; }
#wwd-services.wwd-js .wwd-ch:not(.is-active) .wwd-ch__desc { color: var(--wwd-dim-text) !important; }

/* ==========================================================================
   DEVICE: editor on top, live preview below
   ========================================================================== */

#wwd-services .wwd-device {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--wwd-device-h);
  overflow: hidden;
  border: 1px solid var(--wwd-line);
  border-radius: 18px;
  background: var(--wwd-canvas);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.85);
  isolation: isolate;
  --mx: -999;
  --my: -999;
  --spot: 0;
}

/* Cursor spotlight: a glowing edge (masked ring) plus a faint inner wash, both driven by --mx / --my */
#wwd-services .wwd-device::before,
#wwd-services .wwd-device::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: inherit;
  opacity: var(--spot);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#wwd-services .wwd-device::before {
  padding: 1px;
  background: radial-gradient(260px circle at calc(var(--mx) * 1px) calc(var(--my) * 1px), rgba(240, 91, 86, 0.95), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

#wwd-services .wwd-device::after {
  background: radial-gradient(420px circle at calc(var(--mx) * 1px) calc(var(--my) * 1px), rgba(240, 91, 86, 0.07), transparent 60%);
}

#wwd-services .wwd-device__bar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 0 0 14px;
  border-bottom: 1px solid var(--wwd-line);
  background: var(--wwd-chrome);
}

#wwd-services .wwd-device__lights {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

#wwd-services .wwd-device__lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4a4a;
}

#wwd-services .wwd-device__lights span:first-child {
  background: var(--wwd-accent);
}

#wwd-services .wwd-tabs {
  position: relative;
  display: flex;
  flex: 1;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
}

/* Browser-style tabs: the active tab always shows its full section title,
   the others shrink with an ellipsis (hover shows the full name). Clicking a tab jumps to its chapter. */
#wwd-services .wwd-tab {
  display: flex;
  flex: 1 1 0;                        /* inactive tabs share the leftover space equally... */
  align-items: center;
  min-width: 44px;
  max-width: max-content;             /* ...but never grow wider than their own title */
  padding: 0 12px;
  border-right: 1px solid var(--wwd-line);
  font-size: 12px;
  font-weight: 600;
  color: #8a8a8a;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
}

#wwd-services .wwd-tab.is-active {
  flex: 0 0 auto;
  max-width: none;
  padding: 0 14px;
  background: var(--wwd-canvas);      /* merges with the page below, like a real browser tab */
  color: var(--wwd-text);
  cursor: default;
}

#wwd-services .wwd-tab__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wwd-services .wwd-tabs__ink {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;                         /* JS scales it to the active tab's width */
  height: 2px;
  background: var(--wwd-accent);
  transform-origin: 0 50%;
}

#wwd-services:not(.wwd-js) .wwd-tabs__ink {
  display: none;
}

#wwd-services .wwd-device__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

/* ---------- Preview pane + artboard ---------- */

#wwd-services .wwd-preview {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-color: var(--wwd-canvas);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 18px 18px;
}

#wwd-services .wwd-preview__label {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #8a8a8a;
}

#wwd-services .wwd-preview__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wwd-live);
}

/* Scenes are designed on a fixed 440 x 330 artboard that scales to fit the pane */
#wwd-services .wwd-art {
  position: absolute;
  top: calc(50% + 10px);
  left: 50%;
  width: 440px;
  height: 330px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--wwd-text);
  text-align: left;
  transform: translate(-50%, -50%) scale(var(--wwd-art-scale));
  user-select: none;
}

#wwd-services .wwd-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

#wwd-services .wwd-scene:first-child {
  opacity: 1;
  visibility: visible;
}

/* ---------- Status bar ---------- */

#wwd-services .wwd-device__status {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 14px;
  border-top: 1px solid var(--wwd-line);
  background: var(--wwd-chrome);
  font-size: 11px;
  color: #9a9a9a;
}

#wwd-services .wwd-device__progress {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
}

#wwd-services .wwd-device__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--wwd-accent);
  transform-origin: 0 50%;
}

#wwd-services .wwd-build {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#wwd-services .wwd-build__icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wwd-live);
}

#wwd-services .wwd-build.is-building .wwd-build__icon {
  border: 2px solid rgba(240, 91, 86, 0.3);
  border-top-color: var(--wwd-accent);
  background: transparent;
  animation: wwd-spin 0.7s linear infinite;
}

#wwd-services .wwd-device__step {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   SCENES (artboard coordinates: 440 x 330)
   ========================================================================== */

#wwd-services .wwd-win {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--wwd-line);
  border-radius: 14px;
  background: var(--wwd-ui);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

#wwd-services .wwd-float {
  position: absolute;
  border: 1px solid var(--wwd-line);
  border-radius: 12px;
  background: var(--wwd-ui);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}

#wwd-services .wwd-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(91, 208, 138, 0.1);
  font-size: 10.5px;
  font-weight: 600;
  color: #8fe0b0;
  white-space: nowrap;
}

#wwd-services .wwd-pill-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wwd-live);
}

/* Neutral bubbles = the customer, coral bubbles = your automation speaking */
#wwd-services .wwd-msg {
  display: block;
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.4;
}

#wwd-services .wwd-msg--in,
#wwd-services .wwd-msg--user {
  background: var(--wwd-ui-3);
  color: var(--wwd-text);
}

#wwd-services .wwd-msg--out,
#wwd-services .wwd-msg--bot {
  background: var(--wwd-accent);
  color: var(--wwd-accent-ink);
  font-weight: 500;
}

#wwd-services .wwd-msg--in,
#wwd-services .wwd-msg--bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  transform-origin: 0 100%;
}

#wwd-services .wwd-msg--out,
#wwd-services .wwd-msg--user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  transform-origin: 100% 100%;
}

/* ---------- Scene: Meta DM ---------- */

#wwd-services .wwd-s-dm__win {
  top: 24px;
  left: 22px;
  width: 282px;
}

#wwd-services .wwd-s-dm__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wwd-line);
}

#wwd-services .wwd-s-dm__avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wwd-accent);
  font-size: 10px;
  font-weight: 800;
  color: var(--wwd-accent-ink);
}

#wwd-services .wwd-s-dm__who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

#wwd-services .wwd-s-dm__who b { font-size: 12.5px; }
#wwd-services .wwd-s-dm__who span { font-size: 10.5px; color: var(--wwd-faint); }

#wwd-services .wwd-s-dm__thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

#wwd-services .wwd-s-dm__slot {
  position: relative;                 /* the typing indicator sits where the reply lands */
  display: flex;
  align-self: flex-end;
  justify-content: flex-end;
  max-width: 90%;
}

#wwd-services .wwd-s-dm__slot .wwd-msg {
  max-width: 100%;
}

#wwd-services .wwd-s-dm__product {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  padding: 6px;
  border-radius: 9px;
  background: rgba(26, 26, 26, 0.14);
}

#wwd-services .wwd-s-dm__thumb {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #ffc4bf;
}

#wwd-services .wwd-s-dm__pinfo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

#wwd-services .wwd-s-dm__pinfo b { font-size: 11.5px; }
#wwd-services .wwd-s-dm__pinfo span { font-size: 10.5px; text-decoration: underline; }

#wwd-services .wwd-typing {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--wwd-accent);
  opacity: 0;                         /* finished state: hidden (it only shows mid-animation) */
}

#wwd-services .wwd-typing__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wwd-accent-ink);
  opacity: 0.75;
}

#wwd-services .wwd-s-dm__note {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 5px;
  font-size: 10.5px;
  color: var(--wwd-faint);
}

#wwd-services .wwd-s-dm__note svg,
#wwd-services .wwd-s-wp__toast svg {
  fill: none;
  stroke: var(--wwd-live);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#wwd-services .wwd-s-dm__stat {
  top: 104px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 104px;
  padding: 12px 14px;
}

#wwd-services .wwd-s-dm__stat span {
  font-size: 10.5px;
  color: var(--wwd-faint);
}

#wwd-services .wwd-s-dm__stat b {
  font-family: var(--wwd-font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: var(--wwd-accent);
}

/* ---------- Scene: AI assistant ---------- */

#wwd-services .wwd-s-ai__win {
  top: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 270px;
  padding: 10px 12px 12px;
}

#wwd-services .wwd-s-ai__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--wwd-line);
  font-size: 12.5px;
}

#wwd-services .wwd-s-ai__badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(240, 91, 86, 0.16);
  color: var(--wwd-accent);
}

#wwd-services .wwd-s-ai__badge svg,
#wwd-services .wwd-s-seo__ai-head svg,
#wwd-services .wwd-marquee__star svg {
  fill: currentColor;
}

#wwd-services .wwd-s-ai__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

#wwd-services .wwd-s-ai__chips span {
  padding: 5px 10px;
  border: 1px solid rgba(240, 91, 86, 0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wwd-accent-soft);
}

#wwd-services .wwd-s-ai__cfg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--wwd-text);
}

#wwd-services .wwd-s-ai__cfg span {
  font-size: 10px;
  font-weight: 600;
  color: var(--wwd-faint);
}

#wwd-services .wwd-s-ai__cfg--kb { top: 70px; right: 20px; }
#wwd-services .wwd-s-ai__cfg--tone { top: 136px; right: 38px; }

/* ---------- Scene: SEO ---------- */

#wwd-services .wwd-s-seo__bar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--wwd-line);
  border-radius: 999px;
  background: var(--wwd-ui);
  font-size: 12.5px;
}

#wwd-services .wwd-s-seo__bar svg {
  flex-shrink: 0;
  fill: none;
  stroke: var(--wwd-faint);
  stroke-width: 2.2;
  stroke-linecap: round;
}

#wwd-services .wwd-s-seo__results {
  position: absolute;
  top: 70px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

#wwd-services .wwd-s-seo__ranks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#wwd-services .wwd-s-seo__ranks span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 44px;
  font-size: 11px;
  font-weight: 700;
  color: var(--wwd-faint);
}

#wwd-services .wwd-s-seo__rows {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;                           /* row 44 + gap 8 = the 52px rank step the JS measures */
  min-width: 0;
}

#wwd-services .wwd-s-seo__row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--wwd-line);
  border-radius: 9px;
  background: var(--wwd-ui);
}

#wwd-services .wwd-s-seo__row--you {
  z-index: 1;                         /* slides over the other results while climbing */
  gap: 3px;
  background: #2e2e2e;
}

#wwd-services .wwd-s-seo__row--you b {
  overflow: hidden;
  font-size: 12px;
  color: var(--wwd-link);
  white-space: nowrap;
  text-overflow: ellipsis;
}

#wwd-services .wwd-s-seo__row--you span {
  font-size: 10.5px;
  color: #8fe0b0;
}

#wwd-services .wwd-s-seo__glow {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(240, 91, 86, 0.6);
  border-radius: inherit;
  box-shadow: inset 3px 0 0 var(--wwd-accent);
  pointer-events: none;
}

#wwd-services .wwd-ghost--title { width: 52%; height: 6px; background: #4a4a4a; }
#wwd-services .wwd-s-seo__row .wwd-ghost:not(.wwd-ghost--title) { width: 78%; }

#wwd-services .wwd-s-seo__ai {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border: 1px solid rgba(240, 91, 86, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(240, 91, 86, 0.1), rgba(240, 91, 86, 0.02));
}

#wwd-services .wwd-s-seo__ai-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--wwd-accent-soft);
}

#wwd-services .wwd-s-seo__ai-text { font-size: 12.5px; }
#wwd-services .wwd-s-seo__ai-src { font-size: 10.5px; color: var(--wwd-faint); }

/* ---------- Scene: website styled live by brand.css ---------- */

#wwd-services .wwd-s-web__win {
  top: 16px;
  left: 20px;
  width: 400px;
  height: 236px;
}

#wwd-services .wwd-s-web__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-bottom: 1px solid var(--wwd-line);
  background: #2a2a2a;
}

#wwd-services .wwd-s-web__bar > span:not(.wwd-s-web__url) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a4a4a;
}

#wwd-services .wwd-s-web__url {
  margin-left: 10px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--wwd-canvas);
  font-size: 9.5px;
  line-height: 15px;
  color: var(--wwd-faint);
}

#wwd-services .wwd-s-web__page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 16px;
}

#wwd-services .wwd-s-web__nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

#wwd-services .wwd-s-web__nav .wwd-ghost { width: 26px; }

#wwd-services .wwd-s-web__logo {
  width: 16px;
  height: 16px;
  margin-right: auto;
  border-radius: 5px;
  background: var(--wwd-accent);
}

#wwd-services .wwd-s-web__hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 16px;
}

#wwd-services .wwd-s-web__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#wwd-services .wwd-s-web__copy > .wwd-ghost { width: 100%; }
#wwd-services .wwd-s-web__copy > .wwd-ghost--short { width: 70%; }

#wwd-services .wwd-s-web__headline {
  position: relative;
  display: block;
  min-height: 44px;
}

#wwd-services .wwd-s-web__h-ph {
  position: absolute;
  inset: 4px 0 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0;                         /* finished state: the real headline is showing */
}

#wwd-services .wwd-ghost--h { width: 92%; height: 11px; background: #555555; }
#wwd-services .wwd-ghost--h.wwd-ghost--short { width: 60%; }

#wwd-services .wwd-s-web__h {
  display: block;
  font-family: var(--wwd-font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#wwd-services .wwd-s-web__btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--wwd-accent);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--wwd-accent-ink);
}

#wwd-services .wwd-s-web__img {
  display: grid;
  place-items: center;
  height: 118px;
  border-radius: 14px;
  background: #333333;
}

#wwd-services .wwd-s-web__img svg {
  fill: none;
  stroke: #5e5e5e;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#wwd-services .wwd-s-web__tokens {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

#wwd-services .wwd-token {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  border: 1px solid var(--wwd-line);
  border-radius: 999px;
  background: var(--wwd-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--wwd-muted);
}

#wwd-services .wwd-token__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wwd-accent);
}

#wwd-services .wwd-token__radius {
  width: 14px;
  height: 14px;
  border: 2px solid var(--wwd-violet);
  border-radius: 5px;
}

#wwd-services .wwd-token__font {
  font-family: var(--wwd-font-display);
  font-size: 11px;
  font-weight: 900;
  color: var(--wwd-text);
}

/* ---------- Scene: WordPress plugin ---------- */

#wwd-services .wwd-s-wp__plugin {
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 14px;
}

#wwd-services .wwd-s-wp__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(240, 91, 86, 0.14);
}

#wwd-services .wwd-s-wp__icon svg {
  fill: none;
  stroke: var(--wwd-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#wwd-services .wwd-s-wp__name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

#wwd-services .wwd-s-wp__name b { font-size: 12.5px; }
#wwd-services .wwd-s-wp__name span { font-size: 10.5px; color: var(--wwd-faint); }

#wwd-services .wwd-switch {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 20px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 999px;
  background: #474747;
}

#wwd-services .wwd-switch__on {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--wwd-accent);
}

/* Finished state = ON (knob on the right). The JS starts it 14px to the left. */
#wwd-services .wwd-switch__knob {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

#wwd-services .wwd-s-wp__form,
#wwd-services .wwd-s-wp__chart {
  top: 86px;
  display: flex;
  flex-direction: column;
  height: 160px;
  padding: 12px 14px;
}

#wwd-services .wwd-s-wp__form {
  left: 20px;
  gap: 8px;
  width: 200px;
}

#wwd-services .wwd-s-wp__chart {
  right: 20px;
  width: 192px;
}

#wwd-services .wwd-s-wp__label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--wwd-faint);
}

#wwd-services .wwd-s-wp__input {
  padding: 6px 9px;
  border: 1px solid var(--wwd-line);
  border-radius: 7px;
  background: var(--wwd-canvas);
  font-size: 11px;
}

#wwd-services .wwd-s-wp__submit {
  align-self: flex-start;
  margin-top: 2px;
  padding: 6px 16px;
  border-radius: 7px;
  background: var(--wwd-accent);
  font-size: 11px;
  font-weight: 700;
  color: var(--wwd-accent-ink);
}

#wwd-services .wwd-s-wp__bars {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 7px;
  padding-top: 12px;
}

#wwd-services .wwd-s-wp__bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: rgba(240, 91, 86, 0.35);
  transform-origin: 50% 100%;
}

#wwd-services .wwd-s-wp__bar:nth-child(1) { height: 30%; }
#wwd-services .wwd-s-wp__bar:nth-child(2) { height: 45%; }
#wwd-services .wwd-s-wp__bar:nth-child(3) { height: 38%; }
#wwd-services .wwd-s-wp__bar:nth-child(4) { height: 62%; }
#wwd-services .wwd-s-wp__bar:nth-child(5) { height: 55%; }
#wwd-services .wwd-s-wp__bar:nth-child(6) { height: 78%; }
#wwd-services .wwd-s-wp__bar:nth-child(7) { height: 100%; background: var(--wwd-accent); }

#wwd-services .wwd-s-wp__toast {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  margin: 0 auto;                     /* centred without a transform, so GSAP's y never merges with translateX */
  padding: 8px 14px;
  border: 1px solid rgba(91, 208, 138, 0.35);
  border-radius: 999px;
  background: #1f2a23;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   3. OUTRO: marquee + magnetic CTA
   ========================================================================== */

#wwd-services .wwd-outro {
  margin-top: clamp(4rem, 10vw, 9rem);
}

#wwd-services .wwd-marquee {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid var(--wwd-line);
  border-bottom: 1px solid var(--wwd-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

#wwd-services .wwd-marquee__track {
  display: flex;
  width: max-content;
}

#wwd-services .wwd-marquee__set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

#wwd-services .wwd-marquee__item {
  padding: 0 0.3em;
  font-family: var(--wwd-font-display);
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: rgba(238, 238, 238, 0.13);   /* ghost fill rather than text-stroke (see chapter numbers) */
  transition: color 0.35s ease;
}

#wwd-services .wwd-marquee__star {
  display: inline-flex;
  flex-shrink: 0;
  width: clamp(1.25rem, 2.6vw, 2.4rem);
  height: clamp(1.25rem, 2.6vw, 2.4rem);
  margin: 0 0.4rem;
  color: var(--wwd-accent);
}

#wwd-services .wwd-marquee__star svg {
  width: 100%;
  height: 100%;
}

#wwd-services .wwd-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

#wwd-services .wwd-cta__title {
  margin: 0 !important;
  font-family: var(--wwd-font-display) !important;
  font-size: clamp(2.5rem, 6.5vw, 6rem) !important;
  font-weight: 900 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
  color: var(--wwd-text) !important;
}

#wwd-services .wwd-cta__side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

#wwd-services .wwd-cta__text {
  max-width: 30ch;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 1.0625rem !important;
  line-height: 1.65 !important;
  color: var(--wwd-muted) !important;
}

/* The magnet is a padded hit-area around the button, so the pull starts before the cursor touches it */
#wwd-services .wwd-magnet {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  margin: -32px;
  padding: 32px;
}

#wwd-services .wwd-cta__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(120px, 11vw, 148px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wwd-accent);
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--wwd-accent-ink) !important;
  text-align: center;
  text-decoration: none !important;
  isolation: isolate;
}

/* Hover fill: a light disc grows from the centre behind the label */
#wwd-services .wwd-cta__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--wwd-text);
  transform: scale(0);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#wwd-services .wwd-cta__btn:focus-visible {
  outline: 2px solid var(--wwd-accent);
  outline-offset: 6px;
}

#wwd-services .wwd-cta__label {
  display: block;
  padding: 0 14px;
}

/* ==========================================================================
   HOVER (real pointers only, so touch screens never get stuck states)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  #wwd-services .wwd-index__link:hover::after { transform: scaleX(1); }
  #wwd-services .wwd-index__link:hover .wwd-index__num { color: var(--wwd-accent); }
  #wwd-services .wwd-index__link:hover .wwd-index__name { transform: translateX(10px); }
  #wwd-services .wwd-marquee__item:hover { color: var(--wwd-accent); }
  #wwd-services .wwd-cta__btn:hover::before { transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet and below: the device sticks to the top, chapters scroll underneath */
@media (max-width: 1023px) {
  #wwd-services {
    --wwd-device-h: clamp(360px, 50vh, 520px);
    --wwd-art-scale: 1.1;
  }

  #wwd-services .wwd-head__row {
    grid-template-columns: minmax(0, 1fr);
  }

  #wwd-services .wwd-story {
    grid-template-columns: minmax(0, 1fr);
  }

  #wwd-services .wwd-story__stage {
    top: var(--wwd-sticky-top);
    grid-column: 1;
    grid-row: 1;
    padding: 12px 0 10px;
    background: var(--wwd-bg);
  }

  /* Fade under the device so chapter text slides in softly */
  #wwd-services .wwd-story__stage::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(var(--wwd-bg), transparent);
    pointer-events: none;
  }

  #wwd-services .wwd-story__stage::before {
    display: none;
  }

  #wwd-services .wwd-story__chapters {
    grid-column: 1;
    grid-row: 2;
    padding-left: 1.75rem;
  }

  #wwd-services .wwd-ch {
    justify-content: flex-start;
    min-height: 68vh;
    padding: 3rem 0 2rem;
    scroll-margin-top: calc(var(--wwd-sticky-top) + var(--wwd-device-h) + 24px);
  }

  #wwd-services .wwd-cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

/* Mobile: one tab label, stacked CTA */
@media (max-width: 767px) {
  #wwd-services {
    --wwd-device-h: clamp(300px, 46vh, 400px);
    --wwd-art-scale: 0.74;
  }

  #wwd-services .wwd-tabs__ink {
    display: none;
  }

  /* One tab on phones: the active section title (it may ellipsize on very narrow screens) */
  #wwd-services .wwd-tab:not(.is-active) {
    display: none;
  }

  #wwd-services .wwd-tab.is-active {
    flex: 0 1 auto;
  }

  #wwd-services .wwd-tab {
    border-right: 0;
  }

  #wwd-services .wwd-ch {
    min-height: 62vh;
  }

  #wwd-services .wwd-ch__num {
    font-size: 2.5rem;
  }

  #wwd-services .wwd-cta__side {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes wwd-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #wwd-services .wwd-build.is-building .wwd-build__icon {
    animation: none;
  }

  #wwd-services .wwd-index__name,
  #wwd-services .wwd-index__link::after,
  #wwd-services .wwd-cta__btn::before {
    transition: none;
  }
}