/* =====================================================================
   d391.css  ·  D391 site-wide design refresh (29 Oct 2026)
   Load AFTER m3.css and growth.css. Everything is scoped to body.isM3.
   Undo = remove the <link> to this file and the d391_* build passes.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  /* Raju's palette, merged with the m3 tokens */
  --m-night:   #060d22;           /* Raju's dark band, rgb(6,13,34) */
  --m-night-2: #0a1f55;
  --m-indigo:  #1a2a8a;
  --m-royal:   #1452a4;           /* brand royal blue */
  --m-mist:    #f5f7fb;           /* = --m-surface */
  --m-grey:    #f5f5f5;           /* Raju's neutral band */
  --g-hero:  linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
  --g-mist:  linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  --g-night: linear-gradient(135deg, #060d22 0%, #0a1f55 55%, #1a2a8a 100%);
  --on-night:   #ffffff;
  --on-night-2: rgba(232, 238, 252, .80);   /* 12.9:1 on #060d22 */
  --on-night-3: rgba(232, 238, 252, .64);   /* 9.4:1 on #060d22 */
  --night-line: rgba(255, 255, 255, .12);
  --night-card: rgba(255, 255, 255, .055);
  /* type scale (Plus Jakarta Sans, 1.25 ratio) */
  --fs-h1: clamp(34px, 4.4vw, 56px);
  --fs-h2: clamp(28px, 3.1vw, 40px);
  --fs-h3: 19px;
  --fs-body: 17px;
  --fs-small: 14.5px;
  /* rhythm */
  --sec-pad: clamp(56px, 7vw, 96px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Section background rhythm (data-bg is set by the d391_rhythm pass) ---------- */
body.isM3 main > section[data-bg]{ padding-top: var(--sec-pad) !important; padding-bottom: var(--sec-pad) !important; position: relative; isolation: isolate; }
body.isM3 main > section[data-bg="paper"]{ background: #fff !important; }
body.isM3 main > section[data-bg="mist"]{ background: var(--m-mist) !important; }
body.isM3 main > section[data-bg="grey"]{ background: var(--m-grey) !important; }
body.isM3 main > section[data-bg="fade"]{ background: var(--g-mist) !important; }
body.isM3 main > section[data-bg="tint"]{ background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 70%, #fff) 0%, #fff 78%) !important; }
body.isM3 main > section[data-bg="night"]{ background: var(--g-night) !important; color: var(--on-night-2); overflow: hidden; }
body.isM3 main > section[data-bg="night"]::before{   /* glow + dot grid, decorative only */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 320px at 85% 0%, rgba(80, 120, 255, .28), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
body.isM3 main > section[data-bg="night"] :is(h2, h3, .pgTitle){ color: var(--on-night) !important; }
body.isM3 main > section[data-bg="night"] :is(p, .pgSub, .pgLede){ color: var(--on-night-2); }
body.isM3 main > section[data-bg="night"] .pgTitle em{ background-image: none !important; color: #9fc0ff; font-style: normal; }
body.isM3 main > section[data-bg="night"] a:focus-visible{ outline: 3px solid #9fc0ff; outline-offset: 3px; border-radius: 8px; }

/* headings everywhere */
body.isM3 main h2.pgTitle{ font-size: var(--fs-h2) !important; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
body.isM3 main .pgHead{ max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 44px); }
body.isM3 main .pgHead .pgSub{ font-size: 17px; line-height: 1.6; margin-top: 12px; }

/* ---------- 3. Shared "show more" control (native <details>, links stay in the HTML) ---------- */
body.isM3 details.d391More{ margin-top: 18px; }
body.isM3 details.d391More > summary{
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  border: 1px solid var(--m-line); background: #fff; color: var(--m-blue);
  transition: background-color .2s, border-color .2s;
}
body.isM3 details.d391More > summary::-webkit-details-marker{ display: none; }
body.isM3 details.d391More > summary::after{   /* plus that turns into a minus */
  content: ""; width: 12px; height: 12px; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform .25s var(--ease-out);
}
body.isM3 details.d391More[open] > summary::after{ transform: rotate(90deg); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat; }
body.isM3 details.d391More > summary:hover{ border-color: var(--m-blue); background: var(--m-blue-soft); }
body.isM3 details.d391More > summary:focus-visible{ outline: 3px solid var(--m-blue); outline-offset: 3px; }
body.isM3 details.d391More .d391Open{ display: none; }
body.isM3 details.d391More[open] .d391Shut{ display: none; }
body.isM3 details.d391More[open] .d391Open{ display: inline; }
body.isM3 details.d391More[open] > :not(summary){ animation: d391In .35s var(--ease-out) both; }
@keyframes d391In{ from{ opacity: 0; transform: translateY(6px); } to{ opacity: 1; transform: none; } }

/* ---------- 4. Icon chip (sprite icons from msym.svg, coloured by tone) ---------- */
body.isM3 .d391Ic{ width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--c, var(--t-sky)); color: var(--ci, var(--i-sky)); }
body.isM3 .d391Ic svg{ width: 24px; height: 24px; fill: currentColor; }
body.isM3 [data-tone="sky"]{ --c: var(--t-sky); --ci: var(--i-sky); }
body.isM3 [data-tone="mint"]{ --c: var(--t-mint); --ci: var(--i-mint); }
body.isM3 [data-tone="peach"]{ --c: var(--t-peach); --ci: var(--i-peach); }
body.isM3 [data-tone="lavender"]{ --c: var(--t-lavender); --ci: var(--i-lavender); }
body.isM3 [data-tone="butter"]{ --c: var(--t-butter); --ci: var(--i-butter); }
body.isM3 [data-tone="rose"]{ --c: var(--t-rose); --ci: var(--i-rose); }
body.isM3 [data-tone="teal"]{ --c: var(--t-teal); --ci: var(--i-teal); }

/* ---------- 5. "All marketing services" block (night band, 4 group cards) ---------- */
body.isM3 .d391SvcGrid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
body.isM3 .d391Grp{ background: var(--night-card); border: 1px solid var(--night-line); border-radius: 24px; padding: 24px 22px 20px; }
body.isM3 .d391GrpHead{ display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-night); min-height: 44px; }
body.isM3 .d391GrpHead h3{ margin: 0; font-size: var(--fs-h3); line-height: 1.25; font-weight: 800; color: var(--on-night) !important; }
body.isM3 .d391GrpHead:hover h3{ text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
body.isM3 .d391GrpLine{ margin: 12px 0 14px; font-size: 15px; line-height: 1.5; color: var(--on-night-3); }
body.isM3 .d391Links{ list-style: none; margin: 0; padding: 0; }
body.isM3 .d391Links li{ margin: 0; border-top: 1px solid var(--night-line); }
body.isM3 .d391Links li::before{ content: none; }
body.isM3 .d391Links a, body.isM3 .d391Links .isHere{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 8px 2px; font-size: 15px; line-height: 1.35; color: #dfe7f7; text-decoration: none;
}
body.isM3 .d391Links a::after{ content: ""; width: 7px; height: 7px; flex: none; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .45; transition: transform .2s var(--ease-out), opacity .2s; }
body.isM3 .d391Links a:hover{ color: #fff; }
body.isM3 .d391Links a:hover::after, body.isM3 .d391Links a:focus-visible::after{ opacity: 1; transform: rotate(0deg); }   /* D407: points up and right */
body.isM3 .d391Links .isHere{ color: #fff; font-weight: 700; }
body.isM3 .d391Links .isHere::after{ content: "This page"; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(159, 192, 255, .18); color: #cfe0ff; }
body.isM3 [data-bg="night"] details.d391More > summary{ background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); font-size: 14px; }
body.isM3 [data-bg="night"] details.d391More > summary:hover{ background: rgba(255, 255, 255, .08); border-color: #fff; }
body.isM3 [data-bg="night"] details.d391More > summary:focus-visible{ outline-color: #9fc0ff; }
body.isM3 .d391Grp details.d391More{ margin-top: 12px; }
body.isM3 .d391Grp details.d391More > .d391Links{ margin-top: 10px; }
@media (max-width: 1100px){ body.isM3 .d391SvcGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){
  body.isM3 .d391SvcGrid{ grid-template-columns: 1fr; gap: 14px; }
  body.isM3 .d391Grp{ padding: 20px 18px 16px; border-radius: 20px; }
}

/* ---------- 6. Industry tiles (one style site-wide, D381): icon + tone + top 10 + show all ---------- */
body.isM3 .peIndTiles .peIndGrid{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
body.isM3 .peIndTiles .peIndGrid > li.peIndTile{
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 148px; margin: 0; padding: 18px 18px 16px;
  border-radius: 18px; border: 1px solid var(--m-line);
  background: radial-gradient(130% 90% at 100% 0%, color-mix(in srgb, var(--c) 85%, transparent) 0%, transparent 58%), #fff;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
body.isM3 .peIndTiles .peIndGrid li::before{ content: none; }
body.isM3 .peIndTile .d391Ic{ margin-bottom: 8px; }
body.isM3 .peIndTile .peIndName{ font-weight: 800; font-size: 16px; line-height: 1.3; color: var(--m-ink); }
body.isM3 .peIndTile a, body.isM3 .peIndTile .peIndLine{ font-size: 14px; line-height: 1.45; color: var(--m-ink-2); text-decoration: none; }
body.isM3 .peIndTile a::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; }
body.isM3 .peIndTile:hover{ transform: translateY(-3px); box-shadow: var(--m-shadow-up); border-color: color-mix(in srgb, var(--ci) 45%, #fff); }
body.isM3 .peIndTile:hover a{ color: var(--ci); }
body.isM3 .peIndTile:focus-within{ outline: 3px solid var(--m-blue); outline-offset: 3px; }
body.isM3 .peIndTile a:focus-visible{ outline: none; }
body.isM3 .peIndTile.isPlain{ background: #fff; }
body.isM3 .peIndTiles details.d391More{ text-align: center; margin-top: 22px; }
body.isM3 .peIndTiles details.d391More > .peIndGrid{ margin-top: 22px; text-align: left; }
@media (max-width: 1100px){ body.isM3 .peIndTiles .peIndGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px){ body.isM3 .peIndTiles .peIndGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px){
  body.isM3 .peIndTiles .peIndGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.isM3 .peIndTiles .peIndGrid > li.peIndTile{ min-height: 128px; padding: 14px; }
  body.isM3 .peIndTile .d391Ic{ width: 38px; height: 38px; border-radius: 11px; }
  body.isM3 .peIndTile .d391Ic svg{ width: 21px; height: 21px; }
  body.isM3 .peIndTile .peIndName{ font-size: 15px; }
  body.isM3 .peIndTile a{ font-size: 13.5px; }
}

/* ---------- 7. Footer ---------- */
body.isM3 .ftWrap{ background: var(--g-mist) !important; padding-top: 0 !important; }
body.isM3 .ftCta{ padding: clamp(40px, 5vw, 64px) 0 0; }
body.isM3 .ftCtaInner{
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(28px, 4vw, 52px);
  background: var(--g-night) !important; color: var(--on-night-2); box-shadow: 0 30px 60px -30px rgba(6, 13, 34, .55);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 48px; align-items: center;
}
body.isM3 .ftCtaInner::before{ content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 260px at 90% 10%, rgba(80, 120, 255, .35), transparent 70%), radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1.6px) 0 0 / 22px 22px; }
body.isM3 .ftCtaInner :is(h2, .ftCtaT){ color: #fff !important; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 10px; }
body.isM3 .ftCtaInner .ftPlanBtn{ display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: #fff !important; color: var(--m-night) !important; font-weight: 800; text-decoration: none; }
body.isM3 .ftCtaInner .ftPlanBtn:hover{ background: #e5f0ff !important; }
body.isM3 .ftCtaInner .ftPlanBtn:focus-visible{ outline: 3px solid #9fc0ff; outline-offset: 3px; }
body.isM3 .ftCtaInner .ftTalk{ display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; }
body.isM3 .ftCtaInner .ftTalk a{ display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
body.isM3 .ftCtaInner .ftFacts{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.isM3 .ftCtaInner .ftFacts li{ display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--night-card); border: 1px solid var(--night-line); color: var(--on-night-2); font-size: 15px; }
body.isM3 .ftCtaInner .ftFacts li::before{ content: none; }

body.isM3 .ftSitemap{ padding: clamp(44px, 5vw, 64px) 0 8px; }
body.isM3 .ftSiteGrid.isAll{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 36px 28px; }
body.isM3 .ftSiteGrid.isAll .ftSiteCol.isWide{ grid-column: auto; padding-top: 0; border-top: 0; }
body.isM3 .ftSiteCol > h2, body.isM3 .ftSiteCol > .ftColT{ font-size: 15px !important; font-weight: 800; color: var(--m-ink); margin: 0 0 16px; padding-bottom: 12px; position: relative; letter-spacing: 0; text-transform: none; }
body.isM3 .ftSiteCol > h2::after, body.isM3 .ftSiteCol > .ftColT::after{ content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--ci, var(--m-blue)); }
body.isM3 .ftSiteCol ul{ list-style: none; margin: 0; padding: 0; columns: auto !important; }
body.isM3 .ftSiteCol li{ margin: 0 !important; }
body.isM3 .ftSiteCol li::before{ content: none; }
body.isM3 .ftSiteCol .ftLink{ display: inline-flex; align-items: center; min-height: 34px; font-size: 14.5px; color: var(--m-ink-2) !important; text-decoration: none; }
body.isM3 .ftSiteCol .ftLink:hover{ color: var(--m-blue) !important; text-decoration: underline; text-underline-offset: 3px; }
body.isM3 .ftSiteCol .ftAll{ margin-top: 10px !important; }
body.isM3 .ftSiteCol .ftAll .ftLink{ min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--m-blue-soft); color: var(--m-blue) !important; font-weight: 700; font-size: 13.5px; }
body.isM3 .ftSiteCol details.d391More{ margin-top: 8px; }
body.isM3 .ftSiteCol details.d391More > summary{ min-height: 36px; padding: 0 14px; font-size: 13.5px; background: var(--m-blue-soft); border-color: transparent; }
body.isM3 .ftSiteCol details.d391More .ftCityT{ font-size: 13px; font-weight: 800; color: var(--m-ink); margin: 14px 0 4px; }

body.isM3 .ftBrandRow{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 56px; padding: 40px 0; margin-top: 32px; border-top: 1px solid var(--m-line); }
body.isM3 .ftAbout{ font-size: 14.5px; line-height: 1.65; color: var(--m-ink-2); max-width: 42ch; }
body.isM3 .ftSocials{ display: flex; gap: 8px; margin-top: 16px; }   /* 02: the live footer's classes (.ftSocials > a.ftSocial) */
body.isM3 .ftSocials a.ftSocial{ width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--m-line); color: var(--m-ink); }
body.isM3 .ftSocials a.ftSocial:hover{ background: var(--m-blue); border-color: var(--m-blue); color: #fff; }
body.isM3 .ftOffice{ background: #fff; border: 1px solid var(--m-line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 14px; }
body.isM3 .ftChips{ display: flex; flex-wrap: wrap; gap: 8px; }
body.isM3 .ftChips a{ display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--m-mist); color: var(--m-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
body.isM3 .ftChips a:hover{ background: var(--m-blue-soft); color: var(--m-blue); }
body.isM3 .ftLegal{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid var(--m-line); font-size: 13.5px; color: var(--m-ink-3); }
body.isM3 .ftLegal a{ color: var(--m-ink-2); }
@media (max-width: 1100px){ body.isM3 .ftSiteGrid.isAll{ grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 860px){
  body.isM3 .ftCtaInner{ grid-template-columns: 1fr; }
  body.isM3 .ftBrandRow{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  body.isM3 .ftSiteGrid.isAll{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 16px; }
  body.isM3 .ftSiteCol .ftLink{ min-height: 44px; }
  body.isM3 .ftCtaInner{ border-radius: 22px; }
  body.isM3 .ftCtaInner .ftPlanBtn{ width: 100%; justify-content: center; }
}

/* ---------- 8. Header (visual only; same links) ---------- */
body.isM3 header.pgHeader, body.isM3 .navWrap{ background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(227, 232, 240, .8); }

/* ---------- 9. Motion: one reveal per section, CSS only, off under reduced motion ---------- */
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    body.isM3 main > section[data-bg] .pgHead{ animation: d391In linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@media (prefers-reduced-motion: reduce){
  body.isM3 .peIndTile, body.isM3 .d391Links a::after, body.isM3 details.d391More > summary::after{ transition: none !important; }
  body.isM3 .peIndTile:hover{ transform: none; }
  body.isM3 details.d391More[open] > :not(summary){ animation: none !important; }
}

/* ---------- 10. 02 build additions (30 Oct, D392) ---------- */
/* home directory: the same group cards on a light band (spec 3.4) */
body.isM3 .d391Svc.isLight .d391Grp{ background: #fff; border-color: var(--m-line); box-shadow: 0 1px 2px rgb(27 35 51 / 4%); }
body.isM3 .d391Svc.isLight .d391GrpHead, body.isM3 .d391Svc.isLight .d391GrpHead h3{ color: var(--m-ink) !important; }
body.isM3 .d391Svc.isLight .d391GrpLine{ color: var(--m-ink-2); }
body.isM3 .d391Svc.isLight .d391Links li{ border-top-color: var(--m-line); }
body.isM3 .d391Svc.isLight .d391Links a{ color: var(--m-ink); }
body.isM3 .d391Svc.isLight .d391Links a:hover{ color: var(--m-blue); }
body.isM3 .d391Svc.isLight .d391Links .isHere{ color: var(--m-ink); }
body.isM3 .d391Svc.isLight .d391Links .isHere::after{ background: var(--m-blue-soft); color: var(--m-blue); }
body.isM3 .d391Links .d391Desc{ display: none; }   /* the home directory's one-line descriptions stay in the HTML */
body.isM3 .d391Links .d391AllRow a{ font-weight: 700; }
body.isM3 .d391Svc .pgWrap{ max-width: 1240px; }
/* guides: Sources and method as a quiet footnote (spec 3.1) */
body.isM3 main > section[data-d354="sources"] .pgTitle{ font-size: 20px !important; }
body.isM3 main > section[data-d354="sources"] :is(li, p){ font-size: 14.5px; }
/* footer CTA text and the folded city groups */
body.isM3 .ftCtaInner .ftCtaText p{ color: var(--on-night-2); font-size: 17px; margin: 0 0 22px; }
body.isM3 .ftCtaInner .ftCtaText{ min-width: 0; }
body.isM3 .ftSiteCol details.d391More ul{ list-style: none; margin: 6px 0 0; padding: 0; }
body.isM3 .ftSiteCol .ftCityGroups{ display: block; }
body.isM3 .ftSiteCol .ftCityGroup{ margin: 0 !important; }
@media (max-width: 640px){ body.isM3 .ftCtaInner .ftTalk a{ min-height: 44px; } }
/* Industries menu: the tiles' icon chips at 28px (spec 3.6) */
body.isM3 .hxIndList a{ display: flex; align-items: center; gap: 10px; }
body.isM3 .hxIndList .d391Ic.isSm{ width: 28px; height: 28px; border-radius: 9px; }
body.isM3 .hxIndList .d391Ic.isSm svg{ width: 17px; height: 17px; }
/* A2: the closing call-back form (03's copy): two fields and the button in one row on desktop, stacked on phones */
body.isM3 .ctaWrap .peCloseForm{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; max-width: 760px; margin: 18px 0 14px; }
body.isM3 .ctaWrap .peCloseForm label{ display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--m-ink); text-align: left; }
body.isM3 .ctaWrap .peCloseForm input{ min-height: 48px; padding: 0 14px; border: 1px solid var(--m-line); border-radius: 12px; font: 500 16px/1.2 var(--m-font); background: #fff; color: var(--m-ink); }
body.isM3 .ctaWrap .peCloseForm .peHint{ font-weight: 500; font-size: 12.5px; color: var(--m-ink-3); }
body.isM3 .ctaWrap .peCloseForm .pgBtn{ min-height: 48px; }
body.isM3 .ctaWrap .peCloseForm .m3QuickNote, body.isM3 .ctaWrap .peCloseForm .peFormDone{ grid-column: 1 / -1; margin: 0; font-size: 13.5px; }
body.isM3 .ctaWrap .peCloseForm .peHp{ position: absolute; left: -9999px; }
/* 30 Oct: ".ctaWrap .ctaSide *" is white with !important for the blue band; inside this white card that hid the labels and the typed text */
body.isM3 .ctaWrap form.peCloseForm, body.isM3 .ctaWrap form.peCloseForm *{ color: var(--m-ink) !important; }
body.isM3 .ctaWrap form.peCloseForm .peHint{ color: var(--m-ink-3) !important; }
body.isM3 .ctaWrap form.peCloseForm #peCloseHint ~ .peHint{ display: none; }   /* growth.js adds the same hint a second time */
body.isM3 .ctaWrap form.peCloseForm .m3QuickNote{ color: var(--m-ink-2) !important; }
body.isM3 .ctaWrap form.peCloseForm .m3QuickNote a{ color: #0b5fd9 !important; text-decoration: underline; }
body.isM3 .ctaWrap form.peCloseForm button[type="submit"]{ color: #fff !important; }
@media (max-width: 760px){ body.isM3 .ctaWrap .peCloseForm{ grid-template-columns: 1fr; } body.isM3 .ctaWrap .peCloseForm .pgBtn{ width: 100%; } }
/* footer CTA card: the old footer rules (flex row, ink-2 links) lose to these (30 Oct check: talk links were ink-2 on navy) */
body.isM3 .ftWrap .ftCtaInner .ftCtaText{ display: block !important; }
body.isM3 .ftWrap .ftCtaInner .ftTalk{ display: flex !important; flex-wrap: wrap; gap: 6px 22px; }
body.isM3 .ftWrap .ftCtaInner .ftTalk a{ color: #fff !important; font-size: 16px !important; font-weight: 700; }
body.isM3 .ftWrap .ftCtaInner .ftFacts{ display: grid !important; grid-template-columns: 1fr !important; gap: 10px; }
body.isM3 .ftWrap .ftCtaInner .ftFacts li{ color: var(--on-night-2) !important; width: auto !important; max-width: none !important; }
body.isM3 .ftWrap .ftCtaInner .ftFacts{ margin: 0 !important; padding: 0 !important; border: 0 !important; }
/* night band: the "In your city" spoke row (city versions of the service) as light pills; any other link or list text stays readable */
body.isM3 main > section[data-bg="night"] .d373Spokes{ margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--night-line); }
body.isM3 main > section[data-bg="night"] .d373Spokes .d373H{ color: #fff !important; font-size: 17px; margin: 0 0 12px; }
body.isM3 main > section[data-bg="night"] .d373Spokes .d373Links{ display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; columns: auto; }
body.isM3 main > section[data-bg="night"] .d373Spokes li{ margin: 0; }
body.isM3 main > section[data-bg="night"] .d373Spokes li::before{ content: none; }
body.isM3 main > section[data-bg="night"] .d373Spokes a{ display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #dfe7f7 !important; text-decoration: none; font-size: 14px; }
body.isM3 main > section[data-bg="night"] .d373Spokes a[href]:hover{ border-color: #fff; color: #fff !important; }
body.isM3 main > section[data-bg="night"] a:not(.pgBtn):not(.d391GrpHead){ color: #dfe7f7; }
body.isM3 main > section[data-bg="night"] :is(li, small, span:not(.d391Ic)){ color: inherit; }
body.isM3 main > section[data-bg="night"] .pgBtn.primary{ background: #fff; color: var(--m-night); }
body.isM3 .d391Links a:not([href]){ cursor: default; }   /* Boss 30 Oct: held pages in the same colour, just no arrow */
body.isM3 .d391Links a:not([href])::after{ content: none; }
/* Boss 30 Oct: a "Show all" pill never runs past its card; long labels wrap */
body.isM3 details.d391More > summary{ max-width: 100%; box-sizing: border-box; white-space: normal; text-align: left; height: auto; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; }
body.isM3 .d391Grp details.d391More > summary{ width: auto; }
/* Boss 30 Oct: the footer sits in the header's centred width (left edges line up at 1366); the card's line is light */
body.isM3 .ftWrap .container-max{ max-width: 1260px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 30px !important; padding-right: 30px !important; box-sizing: border-box; }
@media (max-width: 640px){ body.isM3 .ftWrap .container-max{ padding-left: 16px !important; padding-right: 16px !important; } }
body.isM3 .ftWrap .ftCtaInner .ftCtaText p{ color: var(--on-night-2) !important; font-size: 17px !important; }
/* Boss 30 Oct: the Services menu matches the services band: every group shows its coloured icon chip (the quiet second row too) */
body.isM3 .hxNav .hxCol[data-t="sky"]{ --hxT: var(--t-sky); --hxI: var(--i-sky); }
body.isM3 .hxNav .hxCol[data-t="mint"]{ --hxT: var(--t-mint); --hxI: var(--i-mint); }
body.isM3 .hxNav .hxCol[data-t="peach"]{ --hxT: var(--t-peach); --hxI: var(--i-peach); }
body.isM3 .hxNav .hxCol[data-t="lavender"]{ --hxT: var(--t-lavender); --hxI: var(--i-lavender); }
body.isM3 .hxNav .hxCol[data-t="butter"]{ --hxT: var(--t-butter); --hxI: var(--i-butter); }
body.isM3 .hxNav .hxCol[data-t="rose"]{ --hxT: var(--t-rose); --hxI: var(--i-rose); }
body.isM3 .hxNav .hxCol .hxTile, body.isM3 .hxNav .hxCol.isQuiet .hxTile{ display: inline-flex !important; width: 40px; height: 40px; border-radius: 12px; background: var(--hxT) !important; color: var(--hxI) !important; }
body.isM3 .hxNav .hxCol.isQuiet .hxGHead{ display: flex; align-items: center; gap: 12px; }
body.isM3 .hxIndList li{ border-radius: 12px; }
body.isM3 .hxIndList a:hover .d391Ic{ filter: saturate(1.2); }
/* Boss 30 Oct (D395, the user's /mumbai/ screenshot) */
/* (a) a held (not yet released) page in a link list reads as normal text, never faint grey; no arrow on a held card */
body.isM3 .d373Links a:not([href]), body.isM3 .pgCard .peCardLink:not([href]){ color: var(--m-ink) !important; opacity: 1 !important; text-decoration: none !important; cursor: default; }
body.isM3 .pgCard:has(.peCardLink:not([href])) .pgCardGo{ display: none; }
/* (b) a last row of cards sits left, like the rows above (was centred) */
body.isM3 .pgGrid.m3Bal{ justify-content: flex-start !important; }
/* (c) hover looks only on devices that really hover: a tap on a phone left the border and top line on */
@media (hover: none){
  body.isM3 .pgCard.isLink:hover, body.isM3 a.pgCard:hover, body.isM3 .peSvcCard:hover, body.isM3 .peIndTile:hover{ transform: none !important; box-shadow: none !important; border-color: var(--m-line) !important; }
  body.isM3 .pgCard.isLink:hover::before, body.isM3 .peSvcCard:hover::before{ opacity: 0 !important; transform: none !important; }
}
body.isM3 .pgCard:has(.peCardLink:not([href])):hover{ transform: none !important; box-shadow: none !important; border-color: var(--m-line) !important; }

/* ---- D399 header (the user via Boss, 30 Oct: "simple, direct"): Services = 4 goal columns x 3 services with a hint, one strip;
   Industries = 8 icon tiles (icon in a fixed 32 px box, 8 px gap, the text wraps beside it, never under it) */
body.isM3 .hxNav .hxPanel.hxGoals{ width: min(1120px, calc(100vw - 48px)); }
body.isM3 .hxGoals .hxLead{ display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.isM3 .hxGoals .hxCol.hxGoal{ padding: 16px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--m-line); }
body.isM3 .hxGoals .hxGHead{ display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
body.isM3 .hxGoals .hxGName{ font-size: 15px; font-weight: 700; color: var(--m-ink); line-height: 1.3; }
body.isM3 .hxGoalList{ list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
body.isM3 .hxGoalList a{ display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
body.isM3 .hxGoalList a b{ display: block; font-size: 15px; font-weight: 600; color: var(--m-ink); line-height: 1.35; }
body.isM3 .hxGoalList a small{ display: block; margin-top: 2px; font-size: 13px; color: var(--m-ink-2); line-height: 1.4; }
body.isM3 .hxGoalList a:hover, body.isM3 .hxGoalList a:focus-visible{ background: var(--hxT); }
body.isM3 .hxStrip{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 16px 30px 18px; padding-top: 14px; border-top: 1px solid var(--m-line); font-size: 14px; }
body.isM3 .hxStrip > a{ font-weight: 600; color: var(--m-blue); text-decoration: none; }
body.isM3 .hxStrip .hxHelp{ margin-left: auto; color: var(--m-ink-2); }
body.isM3 .hxStrip .hxHelp a{ font-weight: 600; color: var(--m-blue); }
body.isM3 .hxNav .hxPanel.hxInd{ width: min(860px, calc(100vw - 48px)); }
body.isM3 .hxNav .hxInd .hxIndList{ display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 16px; }
body.isM3 .hxNav .hxIndList a{ display: flex; align-items: center; gap: 8px; }
body.isM3 .hxIndList .d391Ic.isSm{ flex: 0 0 32px; width: 32px; height: 32px; }
/* phone drawer: goal rows show the service and its hint */
body.isM3 .hxMob .mnPil li a, body.isM3 .hxMob .mnPil li:last-child a{ display: block !important; color: var(--m-ink) !important; font-weight: 600; }
body.isM3 .hxMob .mnPil li a small{ display: block; margin-top: 2px; font-size: 13px; color: var(--m-ink-2); font-weight: 400; }

/* ---- equal service boxes (the user, 30 Oct: "these box could be of the same size, should look clean"): the grid stretches the
   cards, each card is a column, the "All ... services" control sits at the bottom so the four line up; rows stay one line */
body.isM3 .d391SvcGrid{ align-items: stretch; }
body.isM3 .d391Grp{ display: flex; flex-direction: column; }
body.isM3 .d391Grp > details.d391More, body.isM3 .d391Grp > ul.d391Links + ul.d391Links{ margin-top: auto; padding-top: 12px; }

/* ---- footer: 24 px under each fold pill on phones (Boss 30 Oct: the pill touched the next heading); the short card on pages that
   already end in a form (one line + the button) */
@media (max-width: 640px){
  body.d391 .ftSiteCol details.d391More{ margin-bottom: 24px; }
  body.d391 .ftSiteGrid{ grid-template-columns: 1fr !important; gap: 0 !important; }   /* §6: one full-width accordion per column */
  body.d391 .ftSiteGrid .ftSiteCol{ grid-column: 1 / -1 !important; padding-top: 0 !important; border-top: 0 !important; }
  body.d391 .ftSiteTitle.ftFoldH::after{ display: none; }
  body.d391 .ftSiteGrid .ftSiteTitle.ftFoldH{ margin: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--m-line); }
  body.d391 .ftSiteGrid .ftSiteCol{ margin: 0 !important; }
  body.d391 .ftColBody{ padding: 8px 0 16px; }
}
body.d391 .ftCtaInner.isShort{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.d391 .ftCtaText.isShort{ display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
body.d391 .ftCta .ftCtaText.isShort p{ margin: 0 0 14px; font-size: 17px; font-weight: 600; color: #fff !important; }
@media (min-width: 641px){ body.d391 .ftCta .ftCtaText.isShort p{ margin-bottom: 0; } }

/* ---- the cookie choice never covers the open growth-plan sheet (its button): it moves to the top while the sheet is open */
html.peSheetOn .peConsent{ top: 8px !important; bottom: auto !important; }

/* ---- regional saying inside the lesson box (03, 30 Oct): the saying in its own script, larger; the meaning and the source below */
body.isM3 .peLessonSaying{ margin: 0 0 6px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; line-height: 1.4; color: var(--m-ink); }

/* ---- home hero facts (Boss 30 Oct): the dot belongs to the item after it; a dot that lands at the start of a wrapped line is clipped,
   so no line ends or starts with a hanging dot */
body.isM3 .d354HeroFacts{ display: flex; flex-wrap: wrap; row-gap: 2px; position: relative; left: -18px; width: calc(100% + 18px); clip-path: inset(0 0 0 18px); }
body.isM3 .d354HeroFacts .nw{ position: relative; margin: 0; padding-left: 18px; }
body.isM3 .d354HeroFacts .nw::before{ content: "\00B7"; position: absolute; left: 7px; }

/* ---- D407 (the user, 30 Oct): "arrows on hover should always be upwards": every arrow turns to point up and right on hover and focus */
body.isM3 a span[aria-hidden="true"]:not([class]), body.isM3 a.pgRow > b[aria-hidden="true"]{ display: inline-block; transition: transform .18s ease; }
body.isM3 a:focus-visible span[aria-hidden="true"]:not([class]), body.isM3 a.pgRow:focus-visible > b[aria-hidden="true"]{ transform: rotate(-45deg); }
@media (hover: hover){
  body.isM3 a:hover span[aria-hidden="true"]:not([class]), body.isM3 a.pgRow:hover > b[aria-hidden="true"]{ transform: rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce){ body.isM3 a span[aria-hidden="true"]:not([class]), body.isM3 a.pgRow > b[aria-hidden="true"]{ transition: none; } }

/* ---- D407: the FAQ block runs the full width: heading and note on the left third, questions on the right two-thirds */
@media (min-width: 901px){
  body.isM3 section.m3FaqSec > .pgWrap{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 56px; align-items: start; }
  body.isM3 section.m3FaqSec > .pgWrap > .pgHead{ position: sticky; top: 110px; margin: 0; }
  body.isM3 section.m3FaqSec .faqSide{ max-width: none !important; }
  body.isM3 section.m3FaqSec .faqA p{ max-width: none; }
}
body.isM3 .d407Note{ margin-top: 10px; color: var(--m-ink-2); }

/* ---- D407: the short footer card keeps call, WhatsApp and email next to the button */
body.d391 .ftCtaText.isShort .ftTalk{ display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; margin: 12px 0 0; }
body.d391 .ftCtaText.isShort .ftTalk a{ color: #fff !important; font-weight: 600; font-size: 15px; }
@media (min-width: 901px){   /* the line on top, the contacts beside the button */
  body.isM3 .ftWrap .ftCtaInner .ftCtaText.isShort{ display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 12px 28px; flex: 1 1 100%; width: 100%; }
  body.isM3 .ftWrap .ftCtaInner .ftCtaText.isShort p:not(.ftTalk){ flex: 1 1 100%; margin: 0; }
  body.isM3 .ftWrap .ftCtaInner .ftCtaText.isShort .ftTalk{ width: auto; margin: 0; }
}

/* ---- D407: the work carousel on home (a scroll-snap row: works and swipes without JS; heights reserved, so nothing jumps) */
body.isM3 .peCar{ position: relative; }
body.isM3 .peCarTrack{ display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; outline-offset: 3px; }
body.isM3 .peCarTrack::-webkit-scrollbar{ display: none; }
body.isM3 .peCarSlide{ flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
body.isM3 .peCarSlide img{ display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; background: #fff; border-radius: 18px; }
body.isM3 .peCarCap{ margin: 10px 2px 0; font-size: 14px; line-height: 1.4; color: var(--m-ink-2); }
body.isM3 .peCarNav{ display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
body.isM3 .peCarNav button{ width: 40px; height: 40px; padding: 0; border: 1px solid var(--m-line); border-radius: 50%; background: #fff; color: var(--m-ink); font-size: 16px; line-height: 1; cursor: pointer; }
body.isM3 .peCarDots{ display: flex; gap: 2px; }
body.isM3 .peCarDots button{ width: 24px; height: 24px; border: 0; background: none; position: relative; }
body.isM3 .peCarDots button::after{ content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--m-line); }
body.isM3 .peCarDots button[aria-current="true"]::after{ background: var(--m-blue); }
