/* ===================================================================
   What We Do — capability index, category, and subpage templates
   Light directory grid at the index level; a dark, editorial
   "capability showcase" language (accent dash, sticky sub-nav, stat
   bands, paired capability rows) for category + subpage detail views,
   built from the homepage's own tokens — sage/teal/ink + the orange
   accent already used for the About spotlight labels.
   =================================================================== */

.wwd-page {
  background: var(--base-bg);
  padding-bottom: 96px;
}

:root {
  --wwd-accent: #ec652b;
  --wwd-ink-deep: #20282b;
  --wwd-ink: #2a3438;
}

/* ── Theme tokens (cycled across categories/cards) ── */
.wwd-theme--teal     { --wwd-a: #154d42; --wwd-b: #1b6b58; --wwd-c: #2a3438; --wwd-ink: #fff; }
.wwd-theme--charcoal { --wwd-a: #2a3438; --wwd-b: #3d4f4a; --wwd-c: #5f7872; --wwd-ink: #fff; }
.wwd-theme--sage      { --wwd-a: #1b6b58; --wwd-b: #3a7a6e; --wwd-c: #7a9690; --wwd-ink: #fff; }
.wwd-theme--slate     { --wwd-a: #4d585c; --wwd-b: #5f7872; --wwd-c: #8fa39d; --wwd-ink: #fff; }
.wwd-theme--mist      { --wwd-a: #e8eeec; --wwd-b: #d4d9dc; --wwd-c: #b8c5c0; --wwd-ink: #2a3438; }
.wwd-theme--amber     { --wwd-a: #7a3a1a; --wwd-b: #ec652b; --wwd-c: #f2a878; --wwd-ink: #fff; }

.wwd-swatch {
  background: linear-gradient(155deg, var(--wwd-a) 0%, var(--wwd-b) 52%, var(--wwd-c) 100%);
  color: var(--wwd-ink);
}

/* ── Dynamic contour-line "swatch" pattern ──
   A seeded color blob + topographic contour-line texture (see
   partials/_wwd-pattern.ejs), layered on top of any .wwd-swatch surface.
   Every practice area / capability gets a different pattern (different
   feTurbulence seed + blob position), and every color in it is pulled from
   the surrounding theme tokens, so it always reads as "the same design,
   different pattern, different shade" rather than a fixed illustration. */
.wwd-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.wwd-pattern::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at var(--wwd-pattern-x, 50%) var(--wwd-pattern-y, 50%), var(--wwd-accent) 0%, var(--wwd-c) 45%, transparent 72%);
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.wwd-pattern-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: soft-light;
  opacity: 0.85;
  color: var(--wwd-ink);
}

.wwd-pattern-lines rect {
  fill: currentColor;
}

.wwd-theme--mist .wwd-pattern::before { opacity: 0.28; mix-blend-mode: multiply; }
.wwd-theme--mist .wwd-pattern-lines { opacity: 0.4; mix-blend-mode: multiply; }

/* Subtle variant — for swatches with real text sitting on top (e.g. the
   sidebar rail card), where the pattern should read as a faint texture
   rather than compete with the copy for attention. */
.wwd-pattern--subtle::before { opacity: 0.28; }
.wwd-pattern--subtle .wwd-pattern-lines { opacity: 0.3; }
.wwd-theme--mist .wwd-pattern--subtle::before { opacity: 0.16; }
.wwd-theme--mist .wwd-pattern--subtle .wwd-pattern-lines { opacity: 0.22; }

/* ── Shared: accent dash + kicker (mirrors the small colored dash used
   throughout dark editorial sections) ── */
.wwd-dash {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--wwd-accent);
  margin-bottom: 16px;
}

.wwd-kicker {
  display: block;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.wwd-kicker--dark { color: var(--color-2); }

/* Reusable chevron-circle link (mirrors .about-spotlight-link/.about-spotlight-cta on the homepage) */
.wwd-chevron-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
}

.wwd-chevron-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform .3s var(--transition-ease-1), background .3s var(--transition-ease-1);
}

.wwd-chevron-link-icon svg { width: 13px; height: 13px; }

/* Reusable solid pill CTA (mirrors the existing .wwd-cta-band button) */
.wwd-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--wwd-ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

.wwd-pill-btn:hover {
  transform: translateY(-2px);
  background: #eef0f1;
}

/* ── Hero ── */
.wwd-hero {
  padding: 10px;
  background: #ffffff;
}

@media (min-width: 769px) { .wwd-hero { padding: 12px 14px 0; } }
@media (min-width: 1281px) { .wwd-hero { padding: 14px 18px 0; } }

.wwd-hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(32px, 6vw, 64px);
  padding: clamp(96px, 16vw, 148px) clamp(24px, 5vw, 64px) clamp(48px, 8vw, 72px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 24px 80px rgba(17, 26, 74, 0.14);
}

.wwd-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 10%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(0, 0, 0, 0.14), transparent 55%);
}

.wwd-hero-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.wwd-hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.wwd-hero-lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.wwd-theme--mist .wwd-hero-lead { color: rgba(42, 52, 56, 0.72); }

.wwd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.wwd-hero-pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.wwd-theme--mist .wwd-hero-pill { border-color: rgba(42, 52, 56, 0.22); color: rgba(42, 52, 56, 0.75); }

/* Decorative mark cluster — image placeholder motif */
.wwd-hero-marks {
  position: absolute;
  right: clamp(20px, 6vw, 72px);
  bottom: clamp(20px, 6vw, 56px);
  z-index: 1;
  display: none;
  gap: 14px;
}

@media (min-width: 900px) {
  .wwd-hero-marks { display: flex; }
}

.wwd-hero-mark {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wwd-float 5.5s ease-in-out infinite;
}

.wwd-hero-mark svg { width: 34px; height: 34px; stroke: rgba(255, 255, 255, 0.85); }
.wwd-theme--mist .wwd-hero-mark { background: rgba(42, 52, 56, 0.06); border-color: rgba(42, 52, 56, 0.14); }
.wwd-theme--mist .wwd-hero-mark svg { stroke: rgba(42, 52, 56, 0.65); }

.wwd-hero-mark:nth-child(2) { animation-delay: .6s; margin-top: 22px; }
.wwd-hero-mark:nth-child(3) { animation-delay: 1.2s; margin-top: -14px; }

@keyframes wwd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .wwd-hero-mark { animation: none; }
}

/* Decorative line-art (radar/orbit motif) behind the hero content, echoing
   the thin line-illustration language used elsewhere in Alphasol's brand
   without touching the green/teal palette. */
.wwd-hero-lines {
  position: absolute;
  top: 50%;
  right: clamp(-30px, 1vw, 10px);
  z-index: 0;
  display: none;
  width: clamp(320px, 40vw, 560px);
  height: clamp(320px, 40vw, 560px);
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}

@media (min-width: 900px) {
  .wwd-hero-lines { display: block; }
}

.wwd-theme--mist .wwd-hero-lines { opacity: 0.32; }

/* ── Body shell ── */
.wwd-body {
  padding-top: clamp(28px, 4vw, 40px);
}

.wwd-section {
  scroll-margin-top: 96px;
}

.wwd-section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.wwd-section-kicker {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-2);
}

.wwd-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-7);
}

.wwd-section-head p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Index grid (19 categories) ── */
.wwd-index-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .wwd-index-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .wwd-index-grid { grid-template-columns: repeat(3, 1fr); }
}

.wwd-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e3e6e5;
  text-decoration: none;
  transition: transform .35s var(--transition-ease-1), box-shadow .35s var(--transition-ease-1), border-color .35s var(--transition-ease-1);
}

.wwd-cat-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 20px 44px rgba(42, 52, 56, 0.14);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.wwd-cat-card.is-placeholder {
  opacity: 0.68;
}

.wwd-cat-card.is-placeholder:hover {
  transform: none;
  box-shadow: none;
}

.wwd-cat-swatch {
  position: relative;
  isolation: isolate;
  height: 108px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  overflow: hidden;
}

.wwd-cat-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22), transparent 60%);
}

.wwd-cat-num {
  position: relative;
  z-index: 1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.wwd-cat-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wwd-cat-icon svg { width: 16px; height: 16px; stroke: currentColor; }

.wwd-cat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 24px;
}

.wwd-cat-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-7);
}

.wwd-cat-body p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.wwd-cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-2);
}

.wwd-cat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  transition: transform .3s var(--transition-ease-1), background .3s var(--transition-ease-1);
}

.wwd-cat-card:hover .wwd-cat-arrow {
  background: var(--color-2);
  color: #fff;
  transform: translateX(3px);
}

.wwd-cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-2);
  text-decoration: none;
}

.wwd-cat-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--color-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Statement panel (bridge between hero and capabilities, dark + grainy) ── */
.wwd-statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--wwd-ink) 0%, #24413b 55%, #2a3438 100%);
  color: #ffffff;
}

@media (min-width: 860px) {
  .wwd-statement {
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr);
  }
}

.wwd-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 15% 15%, rgba(122, 150, 144, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 50% at 90% 85%, rgba(236, 101, 43, 0.14), transparent 55%);
}

.wwd-statement-copy {
  position: relative;
  z-index: 1;
}

.wwd-statement-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.wwd-statement-copy p {
  margin: 0 0 24px;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.wwd-statement-visual {
  position: relative;
  z-index: 1;
  display: none;
}

@media (min-width: 860px) {
  .wwd-statement-visual { display: block; }
}

/* Light variant — breaks up three consecutive dark panels (hero, statement,
   stat band) by flipping this one to an outlined, paper-toned card. */
.wwd-statement--light {
  background: linear-gradient(160deg, #ffffff 0%, #eef2f1 100%);
  color: var(--wwd-ink-deep);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.wwd-statement--light::before {
  background:
    radial-gradient(ellipse 60% 55% at 15% 15%, rgba(var(--accent-rgb), 0.14), transparent 55%),
    radial-gradient(ellipse 55% 50% at 90% 85%, rgba(236, 101, 43, 0.08), transparent 55%);
}

.wwd-statement--light .wwd-statement-copy p,
.wwd-statement--light .wwd-do-list li {
  color: var(--text-secondary);
}

/* Small tag pill for lists like "sectors served" — reuses the same visual
   language as .wwd-cat-badge but usable as a standalone row of tags. */
.wwd-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(20px, 3vw, 28px) 0 0;
}

.wwd-chevron-link--dark {
  color: var(--color-7);
}

.wwd-chevron-link--dark .wwd-chevron-link-icon {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--color-2);
}

/* Line-illustration "flow" diagram — three connected nodes standing in for
   the capabilities inside this practice area, in place of the old rotated
   card so the section reads differently from the hero and stat band. */
.wwd-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.wwd-flow-node {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 10px 24px rgba(42, 52, 56, 0.08);
  color: var(--color-2);
}

.wwd-flow-node svg { width: 22px; height: 22px; }

.wwd-flow-node--accent {
  background: var(--wwd-accent);
  border-color: var(--wwd-accent);
  color: #ffffff;
}

.wwd-flow-line {
  flex: 1;
  min-width: 18px;
  height: 0;
  margin: 0 6px;
  border-top: 2px dashed rgba(var(--accent-rgb), 0.35);
}

.wwd-flow-caption {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Stat band (dark, editorial pull-quote treatment — a radial gradient,
   dot-grid texture, and pull-quote mark keep it visually distinct from the
   diagonal hero and the light statement panel above it) ── */
.wwd-stat-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 60px);
  margin-bottom: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: radial-gradient(135% 130% at 100% 0%, #1b6b58 0%, var(--wwd-ink) 62%);
  color: #ffffff;
}

.wwd-stat-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.6px);
  background-size: 26px 26px;
}

.wwd-stat-band-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.wwd-quote-mark {
  display: block;
  margin-bottom: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.6rem;
  line-height: 0.5;
  color: var(--wwd-accent);
}

.wwd-stat-band p {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
}

.wwd-stat-band p strong {
  font-weight: 700;
  color: #ffffff;
}

.wwd-stat-band-icon {
  position: absolute;
  z-index: 0;
  right: clamp(20px, 5vw, 52px);
  bottom: clamp(16px, 4vw, 36px);
  width: clamp(90px, 12vw, 140px);
  height: clamp(90px, 12vw, 140px);
  opacity: 0.14;
}

.wwd-stat-band-icon svg { width: 100%; height: 100%; stroke-width: 1; }

@media (max-width: 700px) {
  .wwd-stat-band-icon { display: none; }
}

/* ── Capability rows (paired dark card + gradient visual) ── */
.wwd-capability-list {
  display: grid;
  gap: 16px;
}

.wwd-capability-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 800px) {
  .wwd-capability-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .wwd-capability-row.is-reversed {
    direction: rtl;
  }

  .wwd-capability-row.is-reversed > * {
    direction: ltr;
  }
}

.wwd-capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--wwd-ink);
  color: #ffffff;
  text-decoration: none;
  transition: transform .3s var(--transition-ease-1), box-shadow .3s var(--transition-ease-1);
}

.wwd-capability-card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 20px 44px rgba(20, 26, 28, 0.28);
}

.wwd-capability-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.wwd-capability-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #ffffff;
  flex: 1;
}

.wwd-capability-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.wwd-capability-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.2), transparent 55%);
}

.wwd-capability-visual-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wwd-capability-visual-icon svg { width: 20px; height: 20px; }

/* ── Cross-reference notes ── */
.wwd-crossrefs {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: #f3f5f4;
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
}

.wwd-crossrefs p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.wwd-crossrefs p:last-child { margin-bottom: 0; }

.wwd-crossrefs a {
  color: var(--color-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Subpage detail ── */
.wwd-sub-layout {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .wwd-sub-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  }
}

.wwd-sub-copy p {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 68ch;
}

.wwd-sub-copy p:last-of-type { margin-bottom: 0; }

.wwd-do-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(28px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--wwd-ink);
  color: #ffffff;
}

.wwd-do-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 60% 60% at 90% 0%, rgba(122, 150, 144, 0.24), transparent 55%);
}

.wwd-do-panel-inner { position: relative; z-index: 1; }

.wwd-do-panel h3 {
  margin: 0 0 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.wwd-do-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.wwd-do-list li {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.wwd-do-list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--wwd-accent);
}

.wwd-sub-stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(24px, 4vw, 32px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: radial-gradient(130% 130% at 100% 0%, #1b6b58 0%, var(--wwd-ink) 65%);
  color: #ffffff;
}

.wwd-sub-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.6px);
  background-size: 26px 26px;
}

.wwd-sub-stat-inner { position: relative; z-index: 1; max-width: 560px; }

.wwd-sub-stat p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

/* Sidebar rail */
.wwd-rail {
  position: relative;
}

@media (min-width: 1024px) {
  .wwd-rail { position: sticky; top: 148px; align-self: flex-start; }
}

.wwd-rail-card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  margin-bottom: 20px;
}

.wwd-rail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 90% 70% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
}

.wwd-rail-card-inner { position: relative; z-index: 1; }

.wwd-rail-card .wwd-rail-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.wwd-rail-card .wwd-rail-icon svg { width: 20px; height: 20px; }

.wwd-rail-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.wwd-rail-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0.85;
}

.wwd-rail-list {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #e3e6e5;
}

.wwd-rail-list h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wwd-rail-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.wwd-rail-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--base-text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

.wwd-rail-list a:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--color-2);
}

.wwd-rail-list a.is-current {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--color-2);
  font-weight: 600;
}

/* ── CTA band ── */
.wwd-cta-band {
  margin-top: clamp(48px, 7vw, 72px);
  padding: clamp(36px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #1b6b58 0%, #2a3438 100%);
  color: #fff;
  text-align: center;
}

.wwd-cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wwd-cta-band p {
  margin: 0 auto 26px;
  max-width: 52ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.wwd-cta-band a {
  display: inline-flex;
  padding: 13px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #1b6b58;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

.wwd-cta-band a:hover {
  transform: translateY(-2px);
  background: #eef0f1;
}

/* ── Placeholder state (Partners) ── */
.wwd-placeholder-panel {
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  text-align: center;
}

.wwd-placeholder-panel p {
  max-width: 52ch;
  margin: 0 auto 22px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .wwd-hero-panel { padding-top: 116px; }
  .wwd-sub-layout { gap: 32px; }
  .wwd-statement { text-align: left; }
}
