/* ============================================================
   ORI — Outsource Recovery, Inc.
   Design system v2. See DESIGN.md for the rules behind it.
   ============================================================ */

/* Self-hosted variable fonts (latin subset) */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-var.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand (from the logo) */
  --purple:        #7B6FC4;
  --purple-ink:    #A79CE3;   /* accent text on dark */
  --purple-deep:   #5A50A0;
  --purple-wash:   rgba(123,111,196,0.10);
  --green:         #4DCB3A;   /* action and money */
  --green-hi:      #6EDE5A;
  --green-wash:    rgba(77,203,58,0.08);

  /* Ground */
  --bg:            #0D0D12;
  --bg-raised:     #12121A;
  --surface:       #181824;
  --surface-hi:    #1E1E2E;

  /* Lines */
  --line:          rgba(155,143,216,0.14);
  --line-strong:   rgba(155,143,216,0.28);

  /* Text */
  --ink:           #F4F3FA;   /* headings */
  --text:          #CFCCE3;   /* body */
  --muted:         #9591B8;   /* secondary */
  --subtle:        #8480A6;   /* metadata, 4.7:1 on --surface */

  /* Type */
  --font-display:  'Manrope', system-ui, sans-serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --step-h1:       clamp(2.4rem, 1.5rem + 3.3vw, 4rem);
  --step-h2:       clamp(1.9rem, 1.35rem + 2.1vw, 2.9rem);
  --step-h3:       1.25rem;
  --step-lede:     clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  --step-body:     1.0625rem;
  --step-small:    0.9375rem;
  --step-meta:     0.8125rem;

  /* Space (4px base) */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;
  --section-y:     clamp(4.5rem, 3rem + 5vw, 8rem);
  --gutter:        clamp(1.25rem, 0.8rem + 2vw, 2rem);
  --measure:       62ch;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture { display: block; max-width: 100%; }
address { font-style: normal; }
a { color: inherit; }

/* Browser surfaces */
::selection { background: var(--purple); color: #fff; }
html { scrollbar-color: var(--purple-deep) var(--bg-raised); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-raised); }
::-webkit-scrollbar-thumb { background: var(--purple-deep); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Icons */
.icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── SKIP LINK ─────────────────────────────── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--green);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0.75rem); }

#main { scroll-margin-top: 6rem; }
[id] { scroll-margin-top: 7rem; }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-h1);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--step-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--step-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h1 em, h2 em { font-style: normal; color: var(--purple-ink); }

p { text-wrap: pretty; }

.lede {
  font-size: var(--step-lede);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure);
}

.lede strong { color: var(--ink); font-weight: 600; }

.list-title {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-bottom: var(--s-4);
}

.meta {
  font-size: var(--step-meta);
  color: var(--subtle);
  letter-spacing: 0.01em;
}

/* Inline text links */
.text-link {
  color: var(--purple-ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.text-link:hover { color: var(--ink); text-decoration-color: var(--green); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section-raised { background: var(--bg-raised); }

.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 46rem; }
.section-head h2 + .lede { margin-top: var(--s-4); }

/* Two-column split: heading block left, content right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.split-sticky { position: sticky; top: 8rem; }
.split .section-head { margin-bottom: 0; }
.split .section-head .btn-row { margin-top: var(--s-6); }

/* ============================================================
   NAV
   ============================================================ */
.site-header > nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem clamp(1.25rem, 3vw, 3rem);
  background: rgba(13,13,18,0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header > nav.scrolled {
  background: rgba(13,13,18,0.95);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.7);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img { height: 64px; width: auto; }

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.3;
  max-width: 7.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.nav-links > li > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.45rem;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links > li > a:hover { color: var(--ink); }
.nav-links > li > a[aria-current="page"]:not(.nav-cta) { color: var(--ink); }
.nav-links > li > a[aria-current="page"]:not(.nav-cta)::after,
.nav-links > li > a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-links > li > a.nav-cta {
  margin-left: 0.75rem;
  padding-inline: 1.25rem;
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.nav-links > li > a.nav-cta:hover { background: var(--green-hi); color: var(--bg); transform: translateY(-1px); }
/* On the contact page the CTA is where you already are: show it as a place, not an action */
.nav-links > li > a.nav-cta[aria-current="page"] { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.nav-links > li > a.nav-cta[aria-current="page"]:hover { transform: none; }

.nav-logo { position: relative; z-index: 210; }

/* Tap-to-call, phones and tablets only */
.nav-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: 0.25rem;
  color: var(--green);
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 210;
  flex-shrink: 0;
}
.nav-call .icon { width: 1.25rem; height: 1.25rem; }
.nav-call:hover { border-color: var(--green); }

/* Hamburger */
.hamburger {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn .icon { width: 1.125rem; height: 1.125rem; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:focus-visible { outline-offset: 4px; }

.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { background: var(--green-hi); transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(77,203,58,0.45); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--purple-ink); background: var(--purple-wash); transform: translateY(-2px); }

.btn-sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ============================================================
   HOME HERO + GLOBE
   The globe is the site's one authored motion moment.
   ============================================================ */
/* Hero + proof strip share the first screen on desktop, so the count-up
   plays in view on load. The globe sizes itself from the height left over. */
.home-top {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.home-top .proof { flex: none; }

.home-hero {
  --nav-h: 84px;
  --proof-h: 150px;
  position: relative;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(1.5rem, 1rem + 2vh, 3rem)) 0 clamp(1rem, 0.5rem + 2vh, 3rem);
  background:
    radial-gradient(ellipse 55% 70% at 10% 65%, rgba(123,111,196,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 45% 60% at 80% 40%, rgba(77,203,58,0.05) 0%, transparent 70%),
    var(--bg);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(2.75rem, 1.5rem + 3.9vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.home-hero .lede { margin: var(--s-5) 0 var(--s-6); max-width: 34rem; }

.home-hero-globe {
  position: relative;
  margin-right: calc(-1 * clamp(0rem, 4vw, 4rem));
}

.globe {
  position: relative;
  width: 100%;
  /* Height budget: screen minus nav, proof strip, caption and breathing room */
  max-width: clamp(300px, calc(100svh - var(--nav-h) - var(--proof-h) - 150px), 620px);
  aspect-ratio: 1;
  margin-inline: auto;
  touch-action: pan-y;
}
/* Glow sits behind the canvas and is larger than it, so nothing clips it.
   Sphere edge is 40% of the box; with closest-side on a 124% box that is
   the 65% stop. */
.globe::before {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    rgba(123,111,196,0.18) 0%,
    rgba(123,111,196,0.16) 60%,
    rgba(123,111,196,0.07) 78%,
    rgba(123,111,196,0) 100%);
  pointer-events: none;
}
.globe canvas, .globe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.globe canvas { cursor: grab; opacity: 0; transform: scale(0.94); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.globe.is-live canvas { opacity: 1; transform: none; }
.globe.is-dragging canvas { cursor: grabbing; }

.globe-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: calc(-1 * var(--s-6));
  font-size: var(--step-small);
  color: var(--muted);
}
.globe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(77,203,58,0.18);
}

@media (max-height: 620px) and (min-width: 1001px) {
  .home-top { min-height: 0; }
  .home-hero { flex: none; }
}

/* Narrow screens: headline, figures, then the globe, so the count-up is
   on screen at load. The hero wrappers flatten so the three pieces can
   be reordered inside .home-top. */
@media (max-width: 1000px) {
  .home-top {
    min-height: 0;
    background:
      radial-gradient(ellipse 90% 45% at 10% 20%, rgba(123,111,196,0.16) 0%, transparent 70%),
      var(--bg);
  }
  .home-hero, .home-hero-inner { display: contents; }
  .home-hero-copy { order: 1; padding: calc(var(--nav-h) + 2.5rem) var(--gutter) var(--s-7); }
  .home-top .proof { order: 2; }
  .home-hero-globe { order: 3; margin: 0 auto; padding: var(--s-7) var(--gutter) var(--s-6); width: min(100%, 560px); }
  .globe { max-width: none; }
  .home-hero h1 { max-width: 12ch; }
}

@media (max-width: 600px) {
  .home-hero { --nav-h: 60px; }
  .home-hero-copy { padding-top: calc(60px + 1.75rem); padding-bottom: var(--s-6); }
  .home-hero-globe { width: 100%; padding-inline: 0; }
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding: clamp(9rem, 7rem + 6vw, 12.5rem) 0 clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  background:
    radial-gradient(ellipse 60% 80% at 8% 60%, rgba(123,111,196,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 92% 10%, rgba(77,203,58,0.06) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: var(--s-5); }

/* ============================================================
   LEDGER ROWS
   A list of equal-weight items drawn as ruled rows, like line
   items on a statement. Used for services, findings, benefits.
   ============================================================ */
.ledger { list-style: none; border-top: 1px solid var(--line-strong); }

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: var(--s-4) clamp(1.5rem, 3vw, 3rem);
  align-items: baseline;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}

.ledger-row h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); }
.ledger-row p { color: var(--muted); max-width: 52ch; }

.ledger-tag {
  display: block;
  font-size: var(--step-meta);
  font-weight: 500;
  color: var(--purple-ink);
  margin-bottom: var(--s-2);
}

/* Linked rows: whole row is the hit area, arrow slides on hover */
.ledger-row.is-link::before {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * var(--s-5));
  background: var(--purple-wash);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: -1;
}
.ledger-row.is-link:hover::before { opacity: 1; }
.ledger-row .row-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.ledger-row .row-link::after { content: ''; position: absolute; inset: 0; }
.ledger-row .row-link .icon { width: 1.125rem; height: 1.125rem; transition: transform 0.25s var(--ease); }
.ledger-row.is-link:hover .row-link .icon { transform: translateX(4px); }

.ledger.two-col .ledger-row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }

/* Audit ticks: home findings are ticked off as they come into view */
.audit-tick {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.45rem;
  vertical-align: -0.22em;
  border: 1px solid var(--line-strong);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.audit-tick svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: var(--green); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.audit-tick path { stroke-dasharray: 22; stroke-dashoffset: 0; }
.audit-ledger .ledger-row .audit-tick { border-color: rgba(77,203,58,0.5); background: var(--green-wash); }

.audit-ledger.is-armed .ledger-row .audit-tick { border-color: var(--line-strong); background: transparent; }
.audit-ledger.is-armed .audit-tick path { stroke-dashoffset: 22; transition: stroke-dashoffset 0.55s var(--ease) 0.1s; }
.audit-ledger.is-armed .ledger-row.is-ticked .audit-tick { border-color: rgba(77,203,58,0.5); background: var(--green-wash); }
.audit-ledger.is-armed .ledger-row.is-ticked .audit-tick path { stroke-dashoffset: 0; }

.ledger-more { margin-top: var(--s-5); }
.ledger-more .text-link { display: inline-block; padding-block: 0.6rem; }

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist { list-style: none; border-top: 1px solid var(--line); }
.checklist li {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.checklist .icon { width: 1.25rem; height: 1.25rem; color: var(--green); margin-top: 0.2rem; }

/* ============================================================
   POINTS (icon + title + body)
   ============================================================ */
.points { list-style: none; display: grid; gap: var(--s-6); }
.points.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) clamp(2rem, 4vw, 4rem); }
.points.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) clamp(2rem, 4vw, 3.5rem); }

.point { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.point-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  color: var(--purple-ink);
}
.point h3 { font-size: 1.0625rem; margin-bottom: var(--s-1); padding-top: 0.55rem; }
.point p { color: var(--muted); font-size: var(--step-small); }

/* ============================================================
   STEPS (the audit process: sequence is the information)
   ============================================================ */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
}
.step { counter-increment: step; position: relative; padding-top: var(--s-7); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-meta);
  font-variant-numeric: tabular-nums;
  color: var(--green);
  background: var(--step-bg, var(--bg));
  padding-right: var(--s-3);
  z-index: 1;
  line-height: 1.5rem;
}
.step::after {
  content: '';
  position: absolute;
  top: 0.75rem; left: 0; right: calc(-1 * var(--s-6));
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::after { right: 0; }
.step h3 { margin-bottom: var(--s-3); }
.step p { color: var(--muted); font-size: var(--step-small); }
.section-raised .steps { --step-bg: var(--bg-raised); }

/* ============================================================
   PROOF STRIP + STAT FIGURES
   ============================================================ */
.proof {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}
.proof-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.proof-item {
  padding: clamp(1.25rem, 1rem + 1.2vh, 2rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
}
.proof-item:first-child { border-left: none; padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .proof .stat-num:not([data-count]) { animation: figure-in 0.9s var(--ease) 0.2s both; }
}
@keyframes figure-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.stat-label {
  margin-top: var(--s-2);
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.45;
  max-width: 22ch;
}

/* ============================================================
   FIGURE (brand-treated photography)
   ============================================================ */
.figure-tint {
  position: relative;
  overflow: hidden;
  background: var(--purple-deep);
  isolation: isolate;
}
.figure-tint img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.72);
  mix-blend-mode: luminosity;
  opacity: 0.85;
}
.why-figure { aspect-ratio: 4 / 5; }
@media (max-width: 1000px) { .why-figure { aspect-ratio: 16 / 10; } }

.figure-tint::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,13,18,0.75) 100%);
  pointer-events: none;
}

/* ============================================================
   TERM LIST (industries)
   ============================================================ */
.terms {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.terms li {
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-body);
  font-weight: 400;
  color: var(--muted);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 90% at 50% 120%, rgba(77,203,58,0.10) 0%, transparent 70%),
    var(--bg-raised);
  text-align: center;
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin: var(--s-5) auto var(--s-6); }
.cta-band .btn-row { justify-content: center; }
.cta-note {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--green);
}
.cta-note .icon { width: 1.125rem; height: 1.125rem; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--step-small);
  text-align: left;
}
.compare th, .compare td { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.compare thead th.col-ori { color: var(--green); }
.compare tbody th { font-weight: 500; color: var(--ink); width: 26%; }
.compare td { color: var(--muted); width: 34%; }
.compare .col-ori { background: var(--green-wash); }
.compare td.col-ori { color: var(--ink); }
.compare td.col-ori .icon { display: inline-block; vertical-align: -0.25em; width: 1.1rem; height: 1.1rem; color: var(--green); margin-right: 0.4rem; }
.compare tbody tr:last-child > * { border-bottom: none; }

/* ============================================================
   COMMITMENT PANEL
   ============================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}
.panel-title { font-size: 1.0625rem; margin-bottom: var(--s-5); color: var(--muted); font-weight: 600; }
.panel-figures { list-style: none; }
.panel-figures li { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.panel-figures li:first-child { border-top: none; padding-top: 0; }
.panel-figures li:last-child { padding-bottom: 0; }
.panel-figures .stat-num { font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem); }
.panel-figures .stat-label { max-width: none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.contact-card {
  padding: var(--s-6) var(--s-5) var(--s-6) 0;
  border-bottom: 1px solid var(--line);
}
.contact-card + .contact-card { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.contact-card > .icon { color: var(--purple-ink); margin-bottom: var(--s-4); }
.contact-card h2, .contact-card h3 { font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: var(--s-3); }
.contact-big {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding-block: 0.2rem;
  transition: color 0.2s;
}
a.contact-big:hover { color: var(--green); }
.existing-clients {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.existing-clients h3 { font-size: var(--step-small); color: var(--muted); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-3); }
.existing-clients ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-7); }
.existing-clients li { display: flex; flex-direction: column; }
.existing-clients a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.existing-clients a:hover { color: var(--green); }

.contact-address { color: var(--text); margin-bottom: var(--s-3); line-height: 1.55; }
.contact-card .text-link { display: inline-block; padding-block: 0.35rem; overflow-wrap: anywhere; }
.contact-card .meta { display: block; margin: 0 0 var(--s-3); }
.contact-card .meta:last-child { margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg-raised); border-top: 1px solid var(--line); }

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: var(--s-7);
  padding-block: var(--s-8) var(--s-7);
}

.footer-brand img { height: 72px; width: auto; margin-bottom: var(--s-5); }
.footer-brand p { font-size: var(--step-small); color: var(--muted); max-width: 30ch; margin-bottom: var(--s-5); }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

.footer-links { list-style: none; display: grid; gap: 0.2rem; }
.footer-links a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: var(--step-small);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }

.footer-contact-item { margin-bottom: var(--s-4); font-size: var(--step-small); }
.footer-contact-item .label { font-size: var(--step-meta); color: var(--subtle); margin-bottom: 0.1rem; }
.footer-contact-item .val { color: var(--muted); }
.footer-contact-item a { color: var(--muted); text-decoration: none; transition: color 0.2s; display: inline-block; padding-block: 0.15rem; }
.footer-contact-item a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
}
.footer-bottom p { font-size: var(--step-meta); color: var(--subtle); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .site-header > nav { padding: 0.5rem 1.25rem; }
  .nav-logo img { height: 52px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem 1.25rem 1.5rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.6);
    z-index: 190;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 0.9rem 0.25rem; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav-links > li > a:not(.nav-cta)::after { display: none; }
  .nav-links > li > a[aria-current="page"]:not(.nav-cta) { color: var(--green); }
  .nav-links > li > a.nav-cta { margin: 1.25rem 0 0; justify-content: center; border-bottom: none; }
  .hamburger { display: flex; }
  .nav-call { display: inline-flex; }

  /* Dim the page behind the open menu */
  body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(6,6,10,0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  /* Footer links become full-height tap targets */
  .footer-links a, .footer-contact-item a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 0; }
  a.contact-big, .contact-card .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { gap: 0; }

  .split { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .step:nth-child(2)::after { right: 0; }
  .points.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3) { border-left: none; padding-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .ledger-row, .ledger.two-col .ledger-row { grid-template-columns: 1fr; gap: var(--s-2); }
  .ledger-row .row-link { margin-top: var(--s-1); }
  .points.cols-2, .points.cols-3 { grid-template-columns: 1fr; gap: var(--s-6); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card + .contact-card { padding-left: 0; border-left: none; }
}

@media (max-width: 380px) {
  .nav-logo-text { display: none; }
}

@media (max-width: 600px) {
  .nav-logo img { height: 44px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { right: 0; }
  .footer-main { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band .btn-row .btn, .notfound .btn-row .btn { flex: 1 1 100%; }

  /* Comparison table stacks into one block per row */
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare td { padding: 0; border: none; }
  .compare tbody th { width: auto; font-family: var(--font-display); font-weight: 700; margin-bottom: var(--s-2); }
  .compare td, .compare td.col-ori { width: auto; display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-3); padding: 0.35rem 0; }
  .compare td::before { content: attr(data-label); color: var(--subtle); font-size: var(--step-meta); padding-top: 0.15rem; }
  .compare td.col-ori { background: none; }
  .compare td.col-ori::before { color: var(--green); }
  .compare td.col-ori .icon { display: none; }
}

@media (max-width: 600px) {
  .proof-item { padding-inline: 0 var(--s-4); }
  .proof-item:nth-child(even) { padding-left: var(--s-4); }
}

@media (max-width: 340px) {
  .terms { grid-template-columns: 1fr; }
  .proof-list { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(even) { border-left: none; padding-left: 0; }
  .proof-item + .proof-item { border-top: 1px solid var(--line); }
}

/* ============================================================
   REDUCED MOTION
   Entrance animations jump to their end state; loops stop.
   Hover and state changes still happen, just without travel.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
