/* ═══════════════════════════════════════════════════════════
   MigrationProvision — Design refresh layer
   Loaded AFTER tokens/base/components/public.
   Drops the kicker-badge pattern, refines typography,
   adds the new section layouts the scope-rework needs.
═══════════════════════════════════════════════════════════ */

/* ── Headline pattern: integrated, no floating badges ── */
.headline {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--text-strong);
  text-wrap: balance;
}
.headline--xl { font-size: clamp(2.75rem, 4vw + 1.4rem, 4.75rem); }
.headline--lg { font-size: clamp(2.25rem, 2.8vw + 1.2rem, 3.5rem); }
.headline--md { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); }
.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--c-authority-d);
}
.headline strong {
  font-weight: 600;
  color: var(--c-ink);
}

.deck {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, .35vw + .95rem, 1.25rem);
  line-height: 1.7;
  color: var(--text-body);
  text-wrap: pretty;
  max-width: 620px;
}
.deck--lg { font-size: clamp(1.15rem, .5vw + 1rem, 1.35rem); max-width: 680px; }

/* small italic note above headline — REPLACES the kicker pill */
.foreword {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-15);
  color: var(--c-authority-d);
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
}

/* short uppercase chapter label — used sparingly, not on every hero */
.chapter-label {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-slate-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.chapter-label::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--c-authority);
}
.chapter-label--center { display: inline-flex; }
.chapter-label--on-dark { color: var(--c-authority-l); }
.chapter-label--on-dark::before { background: var(--c-authority-l); }

/* ── New hero — quieter, more confident ─────────────── */
.hero-new {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 9vw, 128px);
  background:
    radial-gradient(ellipse 90% 70% at 20% 0%, rgba(14,42,71,.04), transparent 60%),
    linear-gradient(180deg, var(--c-paper), #f7f3e8);
  overflow: hidden;
}
.hero-new::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,42,71,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,42,71,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 65% at 30% 30%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 30% 30%, #000 35%, transparent 80%);
  pointer-events: none;
}
.hero-new__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-new__inner { grid-template-columns: 1fr; gap: 64px; }
}
.hero-new__copy { max-width: 660px; }
.hero-new__visual { display: flex; align-items: center; justify-content: center; }
.hero-new__visual img,
.hero-new__visual svg {
  width: 100%;
  height: auto;
  max-width: 540px;
  filter: drop-shadow(0 30px 50px rgba(14,42,71,.12));
}

.hero-new__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-7);
}

.hero-new__trust {
  display: flex; align-items: center; gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(14,42,71,.10);
  font-size: var(--fs-13);
  color: var(--text-muted);
}
.hero-new__trust strong { color: var(--c-ink); font-weight: 600; }

/* ── Service-overview cards (the big "what we ALL do") ── */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  counter-reset: svc;
}
@media (max-width: 780px) { .services { grid-template-columns: 1fr; } }

.service {
  position: relative;
  padding: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.service:hover {
  border-color: var(--c-ink);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(14,42,71,.18);
}
.service::before {
  counter-increment: svc;
  content: counter(svc, decimal-leading-zero);
  position: absolute; top: var(--space-7); right: var(--space-7);
  font-family: var(--font-serif);
  font-size: var(--fs-48);
  font-weight: 500;
  color: var(--c-authority);
  opacity: .35;
  line-height: 1;
  pointer-events: none;
}
.service__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: rgba(183,138,74,.10);
  border-radius: var(--r-12);
  margin-bottom: var(--space-5);
}
.service__icon svg {
  width: 28px; height: 28px;
  stroke: var(--c-authority-d); stroke-width: 1.5; fill: none;
}
.service__title {
  font-family: var(--font-serif);
  font-size: var(--fs-24);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.25;
  margin-bottom: var(--space-3);
  letter-spacing: -.01em;
}
.service__deck {
  font-size: var(--fs-15);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  margin-bottom: var(--space-5);
}
.service__list {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: grid; gap: 10px;
}
.service__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-14);
  color: var(--text-body);
  line-height: 1.55;
}
.service__list svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  stroke: var(--c-authority-d);
  stroke-width: 2; fill: none;
  margin-top: 3px;
}
.service__price {
  margin-top: var(--space-5);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--c-ink);
  font-size: var(--fs-15);
}
.service__price strong { font-style: normal; font-weight: 600; color: var(--c-authority-d); }

/* ── Problem ↔ Solution rail ─────────────────────────── */
.pvs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-7);
  align-items: stretch;
}
@media (max-width: 900px) {
  .pvs { grid-template-columns: 1fr; gap: var(--space-5); }
  .pvs__divider { display: none; }
}
.pvs__col {
  padding: var(--space-8);
  border-radius: var(--r-16);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.pvs__col--problem { background: #fdfaf3; border-color: #f2e7c8; }
.pvs__col--solution { background: var(--c-ink); color: var(--text-on-dark); border-color: var(--c-ink); }
.pvs__col--solution .pvs__title { color: #fff; }
.pvs__col--solution .pvs__deck { color: var(--text-on-dark-m); }
.pvs__col--solution li { color: var(--text-on-dark); }
.pvs__col--solution li::before { background: var(--c-authority-l); color: var(--c-ink); }

.pvs__tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--c-authority-d);
  font-size: var(--fs-14);
  margin-bottom: var(--space-3);
}
.pvs__col--solution .pvs__tag { color: var(--c-authority-l); }
.pvs__title {
  font-family: var(--font-serif);
  font-size: var(--fs-28);
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: var(--space-4);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.pvs__deck {
  font-size: var(--fs-15);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  margin-bottom: var(--space-6);
}
.pvs__list { display: grid; gap: var(--space-3); }
.pvs__list li {
  position: relative; padding-left: 30px;
  font-size: var(--fs-14);
  line-height: 1.55;
}
.pvs__list li::before {
  content: counter(pvs-li, decimal-leading-zero);
  counter-increment: pvs-li;
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-paper-2);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pvs__list { counter-reset: pvs-li; }

.pvs__divider {
  display: flex; align-items: center; justify-content: center;
  align-self: stretch;
  width: 64px;
  position: relative;
}
.pvs__divider::before {
  content: "";
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--c-authority), transparent);
}
.pvs__divider span {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 1px solid var(--c-authority);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--c-authority-d);
  font-size: var(--fs-13);
}

/* ── Full-bleed quote / pull (more confident than .quote) ─ */
.pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.5vw + 1.1rem, 2.25rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--text-strong);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: var(--space-8) var(--space-7);
}
.pull::before, .pull::after {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 6vw + 1rem, 6rem);
  line-height: 0;
  color: var(--c-authority);
  position: absolute;
}
.pull::before { content: "“"; top: 32px; left: -6px; }
.pull::after  { content: "”"; bottom: 0;  right: -6px; }
.pull__attr {
  display: block; font-style: normal; font-family: var(--font-sans);
  font-size: var(--fs-14);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  margin-top: var(--space-5);
}

/* ── Section intro — replaces the old eyebrow+h2 stack ─── */
.intro {
  max-width: 740px;
  margin: 0 auto var(--space-10);
  text-align: center;
}
.intro--left {
  text-align: left;
  margin-left: 0; margin-right: 0;
}
.intro .chapter-label { margin-bottom: var(--space-4); }
.intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 1.8vw + 1.1rem, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.018em;
  color: var(--text-strong);
  margin-bottom: var(--space-4);
}
.intro h2 em { color: var(--c-authority-d); font-style: italic; }
.intro .deck { margin-left: auto; margin-right: auto; }
.intro--left .deck { margin-left: 0; }

/* ── Tighter, more legal-feel header (no border, gentle blur) ── */
.header {
  background: rgba(250, 250, 247, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 247, .98);
}

/* ── Refined kicker (kept only where genuinely useful) ── */
.kicker {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--c-authority-d);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-15);
  letter-spacing: 0;
  text-transform: none;
}
.kicker .kicker__dot { display: none; }

/* ── Numbered process (large numerals, premium) ───────── */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  position: relative;
}
@media (max-width: 1024px) { .flow { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }
@media (max-width: 540px)  { .flow { grid-template-columns: 1fr; } }
.flow__step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  padding: var(--space-6);
  position: relative;
}
.flow__num {
  font-family: var(--font-serif);
  font-size: var(--fs-40);
  font-weight: 500;
  line-height: 1;
  color: var(--c-authority);
  margin-bottom: var(--space-3);
  letter-spacing: -.02em;
}
.flow__num small {
  font-size: var(--fs-14);
  vertical-align: super;
  color: var(--text-muted);
  margin-left: 4px;
}
.flow__title {
  font-family: var(--font-serif);
  font-size: var(--fs-17);
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
  line-height: 1.25;
}
.flow__body {
  font-size: var(--fs-13);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}
.flow__step--active {
  background: var(--c-ink);
  border-color: var(--c-ink);
}
.flow__step--active .flow__title { color: #fff; }
.flow__step--active .flow__body { color: var(--text-on-dark-m); }
.flow__step--active .flow__num { color: var(--c-authority-l); }

/* ── Hero CTA buttons — slightly larger, premium ───────── */
.btn--xl {
  padding: 16px 28px;
  font-size: var(--fs-16);
  border-radius: var(--r-10);
}
.btn--primary {
  background: var(--c-ink);
  border-color: var(--c-ink);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .55s ease-out;
}
.btn--primary:hover::after { transform: translateX(110%); }

/* ── Sub-hero "we audit" strip ─────────────────────────── */
.audit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  padding: var(--space-7) var(--space-7);
  background: var(--c-paper-2);
  border-radius: var(--r-16);
  border: 1px solid rgba(14,42,71,.06);
}
@media (max-width: 900px) { .audit-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .audit-strip { grid-template-columns: 1fr; } }
.audit-strip__item {
  display: flex; flex-direction: column; gap: 6px;
}
.audit-strip__icon {
  width: 32px; height: 32px;
  background: #fff;
  border-radius: var(--r-8);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  margin-bottom: 6px;
}
.audit-strip__icon svg { width: 16px; height: 16px; stroke: var(--c-ink); stroke-width: 1.6; fill: none; }
.audit-strip__label {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--c-authority-d);
}
.audit-strip__text {
  font-family: var(--font-serif);
  font-size: var(--fs-17);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.audit-strip__sub {
  font-size: var(--fs-13);
  color: var(--text-muted);
}
