/* ============================================================
   Diligent - performance marketing agency homepage
   Design tokens
   ============================================================ */
:root {
  /* Warm neutral base */
  --bone:      #F6F1E8;  /* unslop-ignore: deliberate warm-cream brand bg (see design-reference/BRAND-DECISION.md), not the generic cream+sage default */
  --bone-2:    #EFE7D9;
  --bone-card: #FBF8F2;
  --paper:     #FFFFFF;

  /* Deep ink navy */
  --ink:       #15203B;
  --ink-2:     #0E1730;
  --ink-3:     #1D2A48;

  /* Warm accent - coral -> amber, one accent, used with discipline */
  --coral:     #EC6A4C;
  --coral-deep:#D8502F;
  --coral-ink: #B8411F;
  --amber:     #F4A23C;
  --accent-grad: linear-gradient(105deg, var(--coral) 0%, var(--amber) 100%);

  /* Text */
  --text:      #18223C;
  --muted:     #586079;
  --muted-2:   #7C8294;
  --on-dark:   #F2EFE8;
  --on-dark-mut:#A7AEC0;

  /* Lines / shadows */
  --line:      #E2D9C9;
  --line-ink:  rgba(255,255,255,.12);
  --shadow-sm: 0 2px 8px rgba(20,28,52,.06);
  --shadow-md: 0 14px 34px -12px rgba(20,28,52,.18);
  --shadow-lg: 0 40px 80px -28px rgba(20,28,52,.34);
  --shadow-warm: 0 30px 70px -24px rgba(216,80,47,.40);

  /* Type */
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;  /* unslop-ignore: Fraunces is the chosen brand display serif, paired with coral - a deliberate identity */
  --display: "Montserrat", system-ui, "Segoe UI", Arial, sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono:    "IBM Plex Mono", "PlexMono Fallback", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 20px;
}

/* ============================================================
   Reset / base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--coral); color: var(--on-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Numerals: tie type to the analytics identity */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: -0.02em; }

/* ============================================================
   Type scale
   ============================================================ */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.04; color: var(--ink); text-wrap: balance; }
/* Big display headlines in the editorial serif (Fraunces, optical sizing on). unslop-ignore: deliberate brand */
h1,h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-optical-sizing: auto; line-height: 1.06; }
/* Subheads / UI stay in the geometric Montserrat, tightened slightly. */
h3,h4 { font-family: var(--display); letter-spacing: -0.028em; }
.eyebrow {
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-ink);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--coral); display: inline-block; }
.eyebrow.on-dark { color: var(--amber); }
.eyebrow.on-dark::before { background: var(--amber); }

p.lead { font-size: 1.18rem; color: var(--muted); line-height: 1.62; max-width: 60ch; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 100px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  white-space: nowrap; line-height: 1;
}
/* Ink text on warm accent - premium + AA contrast on amber/coral */
.btn-primary { background: var(--accent-grad); color: var(--ink); box-shadow: var(--shadow-warm); font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 38px 80px -22px rgba(216,80,47,.5); }
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { transform: translateY(-2px); background: var(--ink-3); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 18px 32px; font-size: 1.06rem; }

/* Quiet link */
.qlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.qlink .arrow { color: var(--coral-deep); transition: transform .2s ease; }
.qlink:hover .arrow { transform: translateX(4px); }
.qlink.on-dark { color: var(--on-dark); }
.qlink.on-dark .arrow { color: var(--amber); }
.qlink u { text-decoration-color: var(--coral); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ============================================================
   Nav
   ============================================================ */
header.nav { position: sticky; top: 0; z-index: 60; background: rgba(246,241,232,.82); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
header.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.03em; color: var(--ink); }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--coral); display: grid; place-items: center; color: var(--ink); font-size: 16px; box-shadow: var(--shadow-sm); }
/* real brand logo (SVG) replaces the CSS wordmark lockup */
.logo img { height: 30px; width: auto; display: block; }
.ft .logo img { height: 34px; }
/* margin-left:auto pushes the links to the right so Services + Team sit next to the
   Case Stories / CTA group (logo stays left). On mobile .nav-links is hidden, so the
   nav-inner space-between keeps logo left / CTA right as before. */
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; margin-right: 26px; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink); opacity: .82; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
/* Quiet secondary button persistent in the fixed header */
.nav-case { padding: 11px 20px; font-size: .94rem; font-weight: 600; color: var(--ink); border: 1.5px solid var(--line); background: transparent; }
.nav-case:hover { border-color: var(--coral); color: var(--coral-deep); transform: translateY(-2px); }
.nav-cta .btn-primary { padding: 12px 22px; font-size: .94rem; box-shadow: var(--shadow-sm); }
.nav-cta .btn-primary:hover { box-shadow: var(--shadow-lg); }
.nav-toggle { display: none; }

/* ============================================================
   Section rhythm
   ============================================================ */
section { position: relative; }
.band { padding: 96px 0; }
.band-sm { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 16px; }
.section-head p { margin-top: 18px; }

/* Dark band */
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1,.dark h2,.dark h3,.dark h4 { color: var(--on-dark); }
.dark p.lead, .dark .muted { color: var(--on-dark-mut); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.7,.3,1), transform .7s cubic-bezier(.22,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none}
  .gap-viz .bar i{transition:none;transform:scaleX(1)}
}

/* ============================================================
   Top announcement bar
   ============================================================ */
.topbar { background: var(--ink); color: var(--on-dark); font-size: .92rem; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; flex-wrap: wrap; padding: 8px 0; text-align: center; }
.topbar .dot { color: var(--amber); }
.topbar .num { color: var(--amber); font-weight: 600; }
.topbar a { color: var(--on-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1.5px solid var(--coral); padding-bottom: 1px; }
/* announcement copy swap: full copy on desktop, condensed on mobile so the bar stays
   1-2 lines (was wrapping to 3). BOTH visibility rules live inside media queries, so
   desktop (>=561px) renders byte-identical (tb-short hidden, tb-long shown as before);
   the .tb-short span + .tb-long class are purely additive markup. */
@media (max-width: 560px) { .tb-long { display: none; } }
@media (min-width: 561px) { .tb-short { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 48px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 660px; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -0.03em; }
.hero h1 .frag { white-space: nowrap; }
.hero h1 .hl { color: var(--coral-deep); }
.hero .sub { font-size: 1.17rem; color: var(--muted); margin-top: 24px; line-height: 1.62; max-width: 56ch; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.badges { display: flex; align-items: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.badge-chip { display: flex; align-items: center; gap: 10px; background: var(--bone-card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; box-shadow: var(--shadow-sm); }
/* partner badges that link out to the official partner profile */
a.badge-chip, a.ft-badge, a.fr-badge { text-decoration: none; color: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
a.badge-chip:hover, a.ft-badge:hover, a.fr-badge:hover { border-color: var(--coral); transform: translateY(-1px); }
.badge-chip .g { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--on-dark); display: grid; place-items: center; font-size: 13px; font-weight: 700; font-family: var(--display); }
.badge-chip .t { font-size: .8rem; line-height: 1.25; }
.badge-chip .t b { display: block; font-weight: 700; color: var(--ink); white-space: nowrap; }
.badge-chip .t span { display: block; color: var(--muted-2); font-size: .74rem; }

/* Hero visual composition */
.hero-stage { position: relative; min-height: 560px; }
.hero-block {
  position: absolute; inset: 8% 5% 6% 7%;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 80% 10%, var(--amber) 0%, var(--coral) 45%, var(--coral-deep) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Cutout people slots */
.cutout { position: absolute; z-index: 3; filter: drop-shadow(0 20px 30px rgba(20,28,52,.28)); }
.cutout image-slot { display: block; }
/* Cutout people - the dominant element; cards are the accent.
   People stand bottom-anchored; faces sit high, cards tuck into the lower corners. */
.cut-1 { width: 202px; height: 302px; left: 2%;  bottom: 0; }
.cut-2 { width: 234px; height: 346px; left: 35%; bottom: 0; z-index: 4; }
.cut-3 { width: 198px; height: 290px; right: 3%; bottom: 0; z-index: 3; }

/* Metric card */
.metric-card {
  position: absolute; z-index: 6; left: -9%; bottom: 6%;
  width: 234px; background: var(--bone-card);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
}
.metric-card .mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.metric-card .mc-label { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.metric-card .mc-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: #1f8a5b; }
.metric-card .mc-live .pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #22a76a; }
.metric-card .mc-value { font-family: var(--mono); font-size: 2.5rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.metric-card .mc-value .x { font-size: 1.3rem; color: var(--coral-deep); }
.metric-card .mc-delta { font-family: var(--mono); font-size: 12px; color: #1f8a5b; margin-top: 8px; display:flex; align-items:center; gap:6px; }
.metric-card .spark { margin-top: 14px; height: 46px; width: 100%; }
.metric-card .spark path.area { fill: rgba(236,106,76,.12); }
.metric-card .spark path.line { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; }

/* second mini card - lower-right corner, pushed outward, clear of faces */
.mini-card { position: absolute; z-index: 5; right: -6%; bottom: 11%; background: var(--ink); color:var(--on-dark); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); width: 160px; }
.mini-card .mc-label { color: var(--on-dark-mut); font-family: var(--mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.mini-card .v { font-family: var(--mono); font-size: 1.6rem; font-weight:600; letter-spacing:-.03em; margin-top:4px; }
.mini-card .v small { color: var(--amber); font-size:.9rem; }

/* ============================================================
   PROOF BAR
   ============================================================ */
.proof { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof h3 { text-align: center; font-family: var(--display); font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 34px; }
.logo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: center; margin-bottom: 48px; }
.logo-ph { height: 40px; border-radius: 9px; background: linear-gradient(var(--bone-2),var(--bone-2)); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 1.05rem; letter-spacing: -.02em; opacity:.8; }
.metric-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.metric-strip .ms { text-align: center; padding: 8px; }
.metric-strip .ms .v { font-family: var(--mono); font-size: clamp(2.2rem,4vw,3.1rem); font-weight: 600; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.metric-strip .ms .v .u { color: var(--coral-deep); }
.metric-strip .ms .l { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.metric-strip .ms:not(:last-child) { border-right: 1px solid var(--line); }

/* ============================================================
   TEAM BAND
   ============================================================ */
/* ============================================================
   TEAM - member grid with bio reveal
   ============================================================ */
.team-intro { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.team-intro .eyebrow { justify-content: center; }
.team-intro h2 { font-size: clamp(1.9rem,3.4vw,2.7rem); margin-top: 16px; }
.team-intro p { margin-top: 18px; margin-left: auto; margin-right: auto; }
.tm-groups { display: flex; flex-direction: column; gap: 8px; }
.tm-group-h { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep); margin: 28px 0 16px; display: flex; align-items: center; gap: 14px; }
.tm-group-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tm-groups > .tm-group-h:first-child { margin-top: 8px; }
.tm-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.tm-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--bone-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; outline: none; }
.tm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tm-card:focus-visible { box-shadow: 0 0 0 3px rgba(236,106,76,.5); }
.tm-photo { position: relative; aspect-ratio: 4/5; }
.tm-photo image-slot { width: 100%; height: 100%; display: block; }
.tm-bio { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,32,59,.93), rgba(14,23,48,.97)); color: var(--on-dark); padding: 18px 18px 16px; display: flex; align-items: flex-end; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.tm-bio::before { content: ""; position: absolute; top: 16px; left: 18px; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; }
.tm-bio p { font-size: .9rem; line-height: 1.5; color: var(--on-dark); }
.tm-card:hover .tm-bio, .tm-card:focus-within .tm-bio, .tm-card.show .tm-bio { opacity: 1; transform: none; }
.tm-meta { padding: 13px 15px 15px; }
.tm-name { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.15; }
.tm-role { font-family: var(--display); font-size: 11px; letter-spacing: .06em; color: var(--coral-ink); margin-top: 4px; text-transform: uppercase; font-weight: 600; }

/* ============================================================
   WHAT WE DO
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.svc-card { background: var(--bone-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc-card .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: var(--amber); display: grid; place-items: center; margin-bottom: 22px; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; font-optical-sizing: auto; }
.svc-card .ic.coral { background: var(--coral); color: var(--ink); }
.svc-card .tag { font-family: var(--display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; font-weight: 600; }
.svc-card h3 { font-size: 1.34rem; line-height: 1.12; }
.svc-card p { margin-top: 12px; color: var(--muted); font-size: .98rem; flex: 1; }
.svc-card .qlink { margin-top: 22px; font-size: .96rem; }

/* ============================================================
   MEASUREMENT WEDGE (dark)
   ============================================================ */
.wedge { background: var(--ink-2); color: var(--on-dark); overflow: hidden; position: relative; }
.wedge::before { content:""; position:absolute; top:-30%; right:-10%; width:520px; height:520px; border-radius:50%; background: radial-gradient(circle, rgba(236,106,76,.28), transparent 65%); pointer-events:none; }
.wedge-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.wedge h2 { font-size: clamp(2rem,3.8vw,3rem); color: var(--on-dark); }
.wedge .hl { color: var(--amber); }
.wedge p { margin-top: 22px; color: var(--on-dark-mut); font-size: 1.1rem; line-height: 1.65; }
.wedge p .num { color: var(--amber); }
.wedge .qlink { margin-top: 28px; }
.gap-viz { background: rgba(255,255,255,.04); border: 1px solid var(--line-ink); border-radius: var(--radius); padding: 26px; }
.gap-viz .gv-row { margin-bottom: 22px; }
.gap-viz .gv-row:last-child { margin-bottom: 0; }
.gap-viz .gv-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.gap-viz .gv-top .k { font-size: .9rem; color: var(--on-dark-mut); }
.gap-viz .gv-top .v { font-family: var(--mono); font-weight: 600; }
.gap-viz .bar { height: 12px; border-radius: 100px; background: rgba(255,255,255,.08); overflow: hidden; }
.gap-viz .bar i { display: block; height: 100%; width: 100%; border-radius: 100px; transform: scaleX(0); transform-origin: left center; transition: transform 1.1s cubic-bezier(.4,0,.1,1); }
.gap-viz .bar.reported i { background: rgba(167,174,192,.6); }
.gap-viz .bar.actual i { background: var(--accent-grad); }
.gap-viz .gv-note { font-family: var(--mono); font-size: 11px; color: var(--amber); margin-top: 16px; letter-spacing: .03em; }

/* ============================================================
   DUE DILIGENCE SCORE WIDGET
   ============================================================ */
.dds { background: var(--bone-2); }
.dds-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 440px; }
.dds-left { padding: 44px; display: flex; flex-direction: column; }
.dds-right { background: var(--ink); color: var(--on-dark); padding: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; }
.dds-progress { display: flex; gap: 7px; margin-bottom: 26px; }
.dds-progress .seg { height: 4px; flex: 1; border-radius: 100px; background: var(--line); transition: background .3s; }
.dds-progress .seg.on { background: var(--coral); }
.dds-q { flex: 1; }
.dds-qnum { font-family: var(--mono); font-size: 12px; color: var(--coral-deep); letter-spacing: .08em; }
.dds-q h3 { font-size: 1.5rem; margin: 10px 0 24px; }
.dds-opts { display: flex; flex-direction: column; gap: 11px; }
.dds-opt { text-align: left; border: 1.5px solid var(--line); border-radius: 13px; padding: 15px 18px; font-size: 1rem; font-weight: 500; color: var(--ink); background: var(--bone-card); transition: transform .15s ease, border-color .15s ease, background .15s ease; display: flex; align-items: center; gap: 13px; }
.dds-opt .k { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted-2); flex-shrink: 0; transition: border-color .15s ease, color .15s ease; }
.dds-opt:hover { border-color: var(--coral); transform: translateX(3px); }
.dds-opt:hover .k { border-color: var(--coral); color: var(--coral-deep); }
.dds-foot { margin-top: 22px; font-size: .85rem; color: var(--muted-2); font-family: var(--mono); }

/* Dial */
.dial-wrap { position: relative; width: 230px; height: 230px; }
.dial-wrap svg { transform: rotate(-90deg); }
.dial-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 16; }
.dial-fill { fill: none; stroke: url(#dialgrad); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.3,.8,.3,1); }
.dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dial-center .score { font-family: var(--mono); font-size: 3.6rem; font-weight: 600; color: var(--on-dark); line-height: 1; letter-spacing: -.04em; }
.dial-center .of { font-family: var(--mono); font-size: .85rem; color: var(--on-dark-mut); }
.dds-result-label { font-size: 1.2rem; font-weight: 700; font-family: var(--display); margin-top: 20px; }
.dds-result-sub { color: var(--on-dark-mut); font-size: .95rem; margin-top: 8px; max-width: 30ch; }
.dds-intro { text-align: center; }
.dds-intro .mono-lab { font-family: var(--mono); color: var(--amber); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.dds-intro h3 { color:var(--on-dark); font-size: 1.6rem; margin: 14px 0; }
.dds-intro p { color: var(--on-dark-mut); font-size: .96rem; max-width: 34ch; margin: 0 auto; }
/* result: gaps + optional email capture (left, light) and benchmark (right, dark) */
.dds-gaps { margin: 4px 0 2px; text-align: left; }
.dds-gaps-h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px; }
.dds-gaps ul { margin: 0; padding-left: 18px; }
.dds-gaps li { font-size: .95rem; line-height: 1.5; color: var(--ink); margin-bottom: 8px; }
.dds-email { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.dds-email input { font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); }
.dds-email input:focus { outline: none; border-color: var(--coral); }
.dds-email .btn { justify-content: center; }
.dds-email-msg { margin-top: 10px; font-size: .9rem; line-height: 1.5; color: var(--muted); min-height: 1.1em; }
.dds-email-msg.ok { color: var(--coral-deep); }
.dds-email-msg.err { color: #c0392b; }
.dds-result-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 16px; }
.dds-bench { color: var(--on-dark-mut); font-size: .82rem; line-height: 1.5; margin-top: 20px; max-width: 32ch; font-style: italic; }

/* ============================================================
   WHY US (6)
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px 40px; }
.why-cell { padding: 0; }
.why-cell .n { font-family: var(--serif); font-size: clamp(2.6rem,4vw,3.4rem); font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.03em; font-optical-sizing: auto; }
.why-cell h4 { font-family: var(--display); font-size: 1.16rem; margin: 20px 0 10px; }
.why-cell p { color: var(--muted); font-size: .99rem; line-height: 1.6; }


/* ============================================================
   FLAGSHIP CASE
   ============================================================ */
.case { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.case-l { padding: 56px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.case .ph-tag { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .08em; text-transform: uppercase; }
.case h2 { color: var(--on-dark); font-size: clamp(1.7rem,3vw,2.5rem); margin: 16px 0 8px; }
.case .case-metrics { display: flex; gap: 36px; margin: 22px 0 30px; }
.case .case-metrics .cm .v { font-family: var(--mono); font-size: 2.2rem; font-weight: 600; color: var(--amber); letter-spacing: -.03em; }
.case .case-metrics .cm .l { font-size: .85rem; color: var(--on-dark-mut); margin-top: 4px; }
.case blockquote { border-left: 2px solid var(--coral); padding-left: 20px; color: var(--on-dark-mut); font-size: 1.05rem; line-height: 1.6; margin-bottom: 26px; font-style: italic; }
.case blockquote footer { margin-top: 12px; font-style: normal; font-size: .88rem; color: var(--on-dark); font-weight: 600; }
.case-r { position: relative; min-width: 0; min-height: 380px; background: var(--coral-deep); }
.case-r image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   PRAISE WALL
   ============================================================ */
.praise-masonry { columns: 3; column-gap: 18px; }
.praise { break-inside: avoid; margin-bottom: 18px; background: var(--bone-card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.praise.slack { background: var(--paper); }
.praise-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.praise-av { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: var(--on-dark); font-family: var(--display); flex-shrink: 0; }
.praise.masked .praise-av { background: var(--ink-3); filter: none; }
.praise-av.av1 { background:#5b6cc4 } .praise-av.av2 { background:#c4685b } .praise-av.av3 { background:#5ba17a }
.praise-av.av4 { background:#b08a3e } .praise-av.av5 { background:#7a5bc4 } .praise-av.av6 { background:#c45b9a }
.praise-meta .nm { font-weight: 700; font-size: .92rem; color: var(--ink); display:flex; align-items:center; gap:7px; }
.praise-meta .nm .verified { color:#2a8fd6; font-size: 12px; }
.praise-meta .hd { font-size: .76rem; color: var(--muted-2); font-family: var(--mono); }
.praise-body { font-size: .96rem; color: var(--text); line-height: 1.5; }
.praise-body .hl { background: linear-gradient(transparent 60%, rgba(244,162,60,.45) 60%); font-weight: 600; }
.praise-body .num { color: var(--coral-deep); font-weight: 600; }
.praise.email { border-left: 3px solid var(--coral); }
.praise .chan { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-bottom: 8px; }
.masked-name { filter: blur(4px); user-select: none; }

/* ============================================================
   WHO WE ARE (dictionary motif)
   ============================================================ */
.who { background: var(--bone-2); }
.who-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.dict { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); }
.dict .word { font-family: var(--display); font-size: clamp(2.4rem,5vw,3.4rem); font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.dict .phon { font-family: var(--mono); color: var(--muted); font-size: 1.05rem; margin: 6px 0 18px; }
.dict .pos { font-style: italic; color: var(--coral-deep); font-weight: 600; margin-bottom: 8px; }
.dict .def { font-size: 1.2rem; color: var(--ink); line-height: 1.5; }
.dict .def .em { color: var(--coral-deep); font-weight: 700; }
.who-copy p { color: var(--muted); font-size: 1.06rem; line-height: 1.66; }
.who-copy p + p { margin-top: 18px; }
.founder { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.founder image-slot { width: 64px; height: 64px; flex-shrink: 0; }
.founder .fq { font-size: .98rem; color: var(--ink); font-style: italic; }
.founder .fn { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* ============================================================
   HOW WE WORK
   ============================================================ */
.howwork { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--ink); border-radius: var(--radius-lg); padding: 50px 56px; color: var(--on-dark); }
.howwork h2 { color:var(--on-dark); font-size: clamp(1.8rem,3.2vw,2.5rem); }
.howwork p { color: var(--on-dark-mut); margin-top: 18px; font-size: 1.08rem; line-height: 1.6; }
.howwork .qlink { margin-top: 24px; }
.scope-pills { display: flex; flex-direction: column; gap: 14px; }
.scope-pill { background: rgba(255,255,255,.05); border: 1px solid var(--line-ink); border-radius: 14px; padding: 20px 22px; display: flex; align-items: center; gap: 18px; }
.scope-pill .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--amber); display: grid; place-items: center; flex-shrink: 0; }
.scope-pill .ico svg { width: 22px; height: 22px; }   /* size the inline-SVG icon inside the 44px box (it shares the .ico class) */
.scope-pill .st { font-weight: 700; color: var(--on-dark); }
.scope-pill .sd { font-size: .88rem; color: var(--on-dark-mut); margin-top: 2px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--accent-grad); position: relative; overflow: hidden; }
.final::before { content:""; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.final-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.final h2 { color: var(--ink); font-size: clamp(2rem,4.4vw,3.2rem); }
.final p { color: rgba(21,32,59,.78); font-size: 1.14rem; margin: 22px auto 0; max-width: 60ch; line-height: 1.6; }
.final .btn-ink { margin-top: 34px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 54px; }
.step { background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); padding: 26px; text-align: left; backdrop-filter: blur(4px); }
.step .si { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--amber); display: grid; place-items: center; margin-bottom: 16px; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; font-optical-sizing: auto; }
.step .sv { font-family: var(--mono); font-size: 1.9rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; }
.step .sl { color: rgba(21,32,59,.72); margin-top: 6px; font-size: .96rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.ft { background: var(--ink-2); color: var(--on-dark-mut); padding: 72px 0 36px; }
.ft-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-ink); }
.ft .logo { color: var(--on-dark); margin-bottom: 18px; }
.ft-brand p { font-size: .95rem; max-width: 32ch; line-height: 1.6; }
.ft-badges { display: flex; gap: 12px; margin-top: 22px; }
.ft-badge { background: rgba(255,255,255,.06); border: 1px solid var(--line-ink); border-radius: 10px; padding: 8px 12px; font-size: .78rem; color: var(--on-dark); display:flex; align-items:center; gap:8px; }
.ft-col h5 { color: var(--on-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); font-weight: 500; margin-bottom: 18px; }
.ft-col a { display: block; font-size: .95rem; margin-bottom: 12px; transition: color .15s; }
.ft-col a:hover { color: var(--amber); }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 16px; }
.ft-bottom .cp { font-size: .85rem; font-family: var(--mono); }
.ft-bottom a.mail { color: var(--amber); }
.ft-social { display: flex; gap: 12px; }
.ft-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line-ink); display: grid; place-items: center; color: var(--on-dark); transition: background .15s; }
.ft-social a:hover { background: var(--coral); }

/* Placeholder visual treatment */
.ph-note { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
image-slot { --slot-bg: var(--bone-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-stage { min-height: 440px; margin-top: 20px; }
  .team-grid, .wedge-grid, .who-grid, .howwork { grid-template-columns: 1fr; }
  .tm-grid { grid-template-columns: repeat(3,1fr); }
  .dds-card { grid-template-columns: 1fr; }
  .dds-right { min-height: 360px; }
  .case { grid-template-columns: 1fr; }
  .case-r { min-height: 280px; }
  .cards-3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .praise-masonry { columns: 2; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .band { padding: 56px 0; }
  .band-sm { padding: 44px 0; }
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: clamp(2rem,8vw,2.7rem); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  /* let long button labels wrap instead of forcing the page wider than the screen
     (.btn is white-space:nowrap, which otherwise overflows on narrow phones) */
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
  /* center the wrapped logo rows with an even gap (space-between scattered them) */
  .logo-row { justify-content: center; gap: 22px 30px; }
  /* shrink the large CTA buttons on phones so the long label fits on one line
     (instead of wrapping or overflowing the screen). */
  .btn-lg { padding: 15px 22px; font-size: .95rem; }
  .final .btn-ink { max-width: 100%; text-align: center; }
  .metric-strip { grid-template-columns: 1fr; gap: 28px; }
  .metric-strip .ms:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .praise-masonry { columns: 1; }
  /* let the 3 metrics wrap instead of overflowing the card edge on phones */
  .case .case-metrics { flex-wrap: wrap; gap: 18px 28px !important; }
  .case .case-metrics .cm .v { font-size: 1.85rem; }
  .steps { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .collage { grid-template-columns: repeat(4,1fr); }
  .tm-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .howwork, .case-l, .dds-left, .dds-right { padding: 32px 26px; }
  .nav-cta .btn:not(.nav-toggle) { display:none; }
  /* hero cutouts: keep two, simplify */
  .cut-4 { display:none; }
  .mini-card { display:none; }
  .metric-card { left: 0; width: 210px; }
}

/* Small phones: the 2-col footer overflowed and clipped the right column, so stack
   everything into a single full-width column with comfortable spacing. */
@media (max-width: 560px) {
  footer.ft { padding: 56px 0 32px; }
  .ft-top { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
  .ft-brand p { max-width: none; }
  .ft-badges { flex-wrap: wrap; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   home-v2 additions - real people cutouts in hero + team
   (separate route; this file only loads on /home-v2/)
   ============================================================ */
/* Cutouts sized by HEIGHT so the people fill the orange block vertically.
   Warm-toned B&W (sepia over grayscale) so they read as one with the coral block
   instead of pasted-on; kept monochrome to match the team grid. */
.cutout { width: auto; filter: none; }
.cutout img {
  height: 100%; width: auto; max-width: none;
  object-fit: contain; object-position: center bottom;
  display: block;
  filter: grayscale(1) sepia(.24) brightness(1.02) contrast(1.03);
}
/* Soft grounding shadow where each body meets the block floor. */
.cutout::after {
  content: ""; position: absolute; left: 50%; bottom: 4%;
  width: 74%; height: 24px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20,28,52,.55), rgba(20,28,52,0) 70%);
  filter: blur(7px); z-index: -1; transform: translateX(-50%); pointer-events: none;
}
.cut-2::after { transform: translateX(-50%); } /* cut-2 box is itself centered; keep shadow centered */

/* Desktop composition: people large + bottom-anchored to the block floor;
   the two metric cards moved UP into the empty upper band so no face is covered. */
@media (min-width: 981px) {
  /* Taller hero so it isn't cramped and the next section doesn't peek into the
     first screen. The people stand on the block floor; the upper band holds BOTH
     cards (ROAS top-left, CPA top-right) above every head - so neither card
     overlaps a person and both stay fully inside the block. */
  /* Composition modestly larger (taller + wider block) but the empty band UNDER
     the people is trimmed (smaller bottom inset + much smaller hero bottom padding)
     so the proof bar sits closer. The top band still clears the tall ROAS card. */
  .hero { padding: 52px 0 26px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-stage { min-height: 624px; }
  .hero-block { inset: 4% 4% 5% 6%; }

  .cut-1 { width: auto; height: 324px; left: -4%;  bottom: 5%; }
  .cut-2 { width: auto; height: 334px; left: 50%;  bottom: 5%; transform: translateX(-50%); z-index: 4; }
  .cut-3 { width: auto; height: 324px; right: -4%; bottom: 5%; }

  /* Cards in the upper band, in the two corners, above the heads, inside the block
     (block inset is 6% left / 4% right, so the left card sits at 7%). */
  .metric-card { left: 7%;  right: auto; top: 5%; bottom: auto; transform: none; }
  .mini-card  { right: 6%; left: auto; top: 5%; bottom: auto; }
}

/* Proof bar - real client logos. Reuses ClientLogos.astro's gray->color hover
   (the first homepage's pattern) + a slight scale-up; same logo image files. */
/* Flex row: logos are TRIMMED (tight bounds) and capped to one max-height, then
   vertically centred, so the row reads as one balanced, evenly-aligned line.
   space-between distributes them; flex-wrap handles narrow screens. */
.logo-row { display: grid; grid-template-columns: repeat(8, 1fr); align-items: center; justify-items: center; gap: 20px 14px; margin-bottom: 48px; }
.logo-cell { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 52px; }
/* Logos are height-normalised at the source (h=140) but have very different aspect
   ratios, so a single max-height makes wide wordmarks dominate and compact crests
   vanish. Each cell sets an optical box via
   --lh (height cap) + --lw (width cap) so the row reads as one balanced, even line.
   Wide wordmarks ride the width cap (shorter), compact marks ride the height cap. */
.logo-cell img {
  max-height: var(--lh, 28px); max-width: min(var(--lw, 130px), 100%); width: auto; object-fit: contain;
  opacity: .5; filter: grayscale(1);
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.logo-cell img:hover { opacity: 1; filter: grayscale(0); transform: scale(1.08); }
/* Mobile: scale the whole optical box down proportionally so the same balance holds. */
@media (max-width: 640px) {
  .logo-cell img { max-height: calc(var(--lh, 28px) * 0.82); max-width: calc(var(--lw, 130px) * 0.82); }
}

/* Team card headshots: fill the 4/5 photo box, faces up top */
.tm-photo { background: var(--bone-2); }
.tm-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

/* Logo row responsive: 8 logos go to two rows of four on tablet + phone (grid, not the
   desktop flex, so the second row is never orphan-left). */
@media (max-width: 980px) {
  .logo-row { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; gap: 22px 12px; }
  .logo-cell img { max-width: 100%; }
}
@media (max-width: 640px) {
  .logo-row { gap: 18px 8px; }
  .logo-cell img { max-height: calc(var(--lh, 28px) * 0.74); }
}

/* ============================================================
   home-v2 polish round 2 - mobile nav, mobile hero, seams
   ============================================================ */

/* --- Mobile nav menu (burger -> toggle; pattern from homepage 1 Header.astro) --- */
.mobile-menu { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }                 /* show burger */
  .nav-cta .nav-case, .nav-cta .btn-primary { display: none; } /* inline CTAs live in the menu */
  .mobile-menu:not([hidden]) {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bone); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 14px 28px 20px;
  }
  .mobile-menu a:not(.btn) {
    padding: 13px 2px; font-weight: 600; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .btn { width: 100%; margin-top: 8px; }
  .mobile-menu .btn:first-of-type { margin-top: 14px; }
}

/* --- Mobile hero: same invariants as desktop (people fill the block; the one
   visible card sits fully on the block, over torsos, clear of faces). The
   secondary CPA card is hidden on mobile (as in the original design). --- */
@media (max-width: 980px) and (min-width: 641px) {
  .hero-stage { min-height: 460px; margin-top: 16px; }
  .hero-block { inset: 4% 4% 6% 4%; }
  .cut-1 { width: auto; height: 80%; left: 1%;  bottom: 6%; }
  .cut-2 { width: auto; height: 90%; left: 50%; bottom: 6%; transform: translateX(-50%); z-index: 4; }
  .cut-3 { width: auto; height: 80%; right: 1%; bottom: 6%; }
  .metric-card { left: 50%; right: auto; transform: translateX(-50%); top: auto; bottom: 7%; width: 240px; }
  .mini-card { display: none; }
}
@media (max-width: 640px) {
  .hero-stage { min-height: 340px; margin-top: 14px; }
  .hero-block { inset: 4% 3% 6% 3%; }
  .cut-1 { width: auto; height: 74%; left: -2%; bottom: 6%; }
  .cut-2 { width: auto; height: 84%; left: 50%; bottom: 6%; transform: translateX(-50%); z-index: 4; }
  .cut-3 { width: auto; height: 74%; right: -2%; bottom: 6%; }
  /* override the old base/640 rules: centre the ROAS card on the block floor */
  .metric-card { left: 50%; right: auto; transform: translateX(-50%); top: auto; bottom: 6%; width: min(248px, 84%); }
  .mini-card { display: none; }
}

/* The ROAS widget overlaps the LOWER part of the photo on small screens: it covers
   stomachs / t-shirts / hips / legs but its top stays BELOW the chest, so chests and
   faces are always fully visible. It hangs slightly past the block's bottom edge.
   (Desktop >=981px keeps it in the upper band, above the heads.) */
@media (max-width: 980px) {
  .hero { padding-bottom: 18px; }      /* was 72px; tighten the gap under the widget */
  .hero-stage { margin-bottom: 100px; }
  .metric-card {
    left: 50%; right: auto; transform: translateX(-50%);
    top: auto; bottom: -88px;
    width: min(320px, 90%);
  }
}

/* --- Collapse doubled cream-on-cream section seams to ONE deliberate gap.
   The second section of each light-on-light pair drops its top padding;
   the preceding section's bottom padding becomes the single gap. Dark blocks
   (wedge) are untouched. --- */
/* Round 2 zeroed these to kill the doubled cream-on-cream gap; that over-collapsed
   and the coral section label sat cramped at the top edge. A modest 40px top gives
   the label breathing room while staying well under the old doubled gap. */
.band.seam-top { padding-top: 40px; }

/* ============================================================
   home-v2 round 3 - what-we-do heading, why-us hover
   ============================================================ */

/* "What we do" heading: widen its container + trim size so it lands in 2 lines on desktop */
@media (min-width: 981px) {
  #services .section-head { max-width: 1080px; }
  #services .section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
}

/* Why-us is an editorial column layout now (no cards, no hover). */

/* =========================================================================
   CASE VISUAL (.wviz) - the client-hero card that fills the .case-r slot.
   One locked design family; per-client knobs are CSS vars set inline:
     --brand  : client accent as an "r,g,b" triplet (panel halo only)
     --logo-h : client wordmark height on the bone card
   Used by src/components/service/CaseVisual.astro (service pages) and the
   homepage flagship #case (hand-written markup). Additive: new classnames,
   no overrides of existing rules. .spark is scoped under .wviz to avoid the
   unrelated .metric-card .spark. Base state is fully visible (JS-off safe);
   the entrance only runs as a CSS animation when .play is present.
   ========================================================================= */
.wviz { position: absolute; inset: 0; --brand: 236,106,76; --logo-h: 18px; }
.wcard { position: absolute; inset: 16px; border-radius: 22px; padding: 24px 24px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden; }
.wcard.bone { background: var(--bone-card); border: 1px solid rgba(255,255,255,.6); }

.wc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wc-logo { display: block; height: var(--logo-h); width: auto; }
.wc-desc { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; margin-top: 9px; text-transform: uppercase; white-space: nowrap; color: var(--muted-2); }

.wc-stage { position: relative; flex: 1; min-height: 0; margin: 14px 0; display: flex; align-items: center; justify-content: center; }
.wc-panel { position: relative; z-index: 1; aspect-ratio: 1/1; height: 100%; width: auto; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1.5px solid rgba(var(--brand),.42); box-shadow: 0 0 0 5px rgba(var(--brand),.06), var(--shadow-sm); }
.wc-panel img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* CitizenShipper-style: app UI shown as a native-res background crop (no <img>) */
.wc-ui { background-color: var(--paper); background-repeat: no-repeat; background-size: 208%; background-position: 50% 15%; }

.wc-kpis { display: flex; align-items: stretch; gap: 9px; }
/* min-width:0 lets the flex tiles shrink below their content width so the row never
   overflows the card (which clips with overflow:hidden) on narrow screens. */
.wviz .kpi { flex: 1; min-width: 0; border-radius: 12px; padding: 11px 13px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wviz .kpi .kv { font-family: var(--mono); font-size: 1.3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; display: flex; align-items: center; gap: 5px; color: var(--coral-deep); }
.wviz .kpi .kl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; line-height: 1.25; color: var(--muted-2); }
.wviz .spark { height: 14px; width: 30px; }
.wviz .spark path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--coral); stroke-dasharray: 40; stroke-dashoffset: 0; }
/* lead stat: the headline metric, weighted with a Diligent coral accent */
.wviz .kpi.lead { flex: 1.5; position: relative; padding-left: 19px; background: rgba(236,106,76,.07); border-color: rgba(216,80,47,.30); }
.wviz .kpi.lead::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: linear-gradient(180deg,#EC6A4C,#F4A23C); }
.wviz .kpi.lead .kv { font-size: 1.62rem; color: var(--ink); }
.wviz .kpi.lead .kl { color: var(--coral-deep); }

@media (prefers-reduced-motion: no-preference) {
  .wviz.play .an { animation: wRise .7s cubic-bezier(.22,.7,.3,1) both; }
  .wviz.play .an.d1 { animation-delay: .05s; } .wviz.play .an.d2 { animation-delay: .13s; }
  .wviz.play .an.d3 { animation-delay: .21s; } .wviz.play .an.d4 { animation-delay: .29s; } .wviz.play .an.d5 { animation-delay: .37s; }
  .wviz.play .spark path { animation: wDraw 1s ease .5s both; }
}
@keyframes wRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wDraw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* give the slot enough room for logo + square panel + KPI row once it stacks */
@media (max-width: 980px) {
  .case-r:has(.wviz) { min-height: 430px; }
}

/* Mobile: the 3 KPI tiles were too wide for the card and the last one got clipped.
   Scale the tiles + numbers down and tighten the gap so all three sit inside the
   card with comfortable spacing on the right. */
@media (max-width: 600px) {
  .wcard { inset: 12px; padding: 18px 16px 16px; }
  .wc-kpis { gap: 7px; }
  .wviz .kpi { padding: 9px 10px; }
  .wviz .kpi .kv { font-size: 1.04rem; gap: 4px; }
  .wviz .kpi .kl { font-size: 8.5px; }
  .wviz .kpi.lead { padding-left: 15px; }
  .wviz .kpi.lead::before { left: 7px; }
  .wviz .kpi.lead .kv { font-size: 1.22rem; }
  .wviz .spark { width: 22px; }
}

/* ============================================================
   Services dropdown (shared nav - ServiceLayout frame + home-v2 raw).
   CSS-only: opens on hover AND :focus-within (keyboard/tap), so it is
   no-JS safe and the 6 links are always present in the DOM. The trigger
   itself links to the /services/ hub as the fallback. Absolute menu ->
   no layout shift (CLS-safe). Hidden on mobile (.nav-links display:none);
   the mobile menu lists the same links.
   ============================================================ */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-trigger .caret { font-size: .62em; transition: transform .2s ease; opacity: .7; }
.nav-drop:hover .nav-drop-trigger .caret,
.nav-drop:focus-within .nav-drop-trigger .caret { transform: rotate(180deg); }
/* invisible bridge so moving the cursor from trigger to menu doesn't close it */
.nav-drop::after { content: ""; position: absolute; top: 100%; left: -10px; right: -10px; height: 14px; }
.nav-drop-menu { position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px; min-width: 460px;
  padding: 20px 24px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; z-index: 80; }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0); }
.nav-drop-menu .ndm-group { display: flex; flex-direction: column; }
.nav-drop-menu .ndm-h { font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; padding: 0 6px; }
.nav-drop-menu a { display: block; font-size: .92rem; font-weight: 500; color: var(--ink);
  opacity: .82; padding: 7px 6px; border-radius: 8px; transition: opacity .15s, background .15s, color .15s; }
.nav-drop-menu a:hover { opacity: 1; color: var(--coral-deep); background: var(--bone-2); }

/* Mobile menu: service sub-links group (nav-links/dropdown are hidden <=980px) */
.mm-services { display: flex; flex-direction: column; }
.mm-services .mm-h { font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); padding: 10px 2px 2px; }
@media (max-width: 980px) {
  .mm-services a:not(.btn) { padding: 11px 2px 11px 14px !important; font-weight: 500 !important;
    font-size: .96rem; opacity: .85; }
}

/* inline-SVG icons: baseline-align with text, inherit color + size */
.ico{display:inline-block;vertical-align:-0.125em;flex-shrink:0}
