/* =========================================================
   SB Consultancies — Production site styles
   Boutique editorial direction (Variation A)
   ========================================================= */

:root {
  /* palette — C-02 Prussian & Brass.
     Prussian blue carries the page, brass is the accent on dark grounds,
     and the neutrals are warm greys rather than cool slate. */
  --navy-900: #0B2136;
  --navy-800: #0F2A44;
  --navy-700: #143554;
  --navy-600: #1B4267;
  --ink: #0D2036;
  --ink-2: #2C4058;
  --muted: #6E7A88;        /* labels only — fails AA as body text, see --label */
  --label: #5E6976;        /* label/caption grey that clears 4.5:1 on paper, paper-2 and blue-soft */
  --muted-2: #9AA5B1;
  --line: #E0DCD3;
  --line-2: #CBC5B8;
  --paper: #FFFFFF;
  --paper-2: #F6F4F0;
  --paper-3: #EFEBE3;
  --blue: #0D3D6B;
  --blue-soft: #E6EDF4;
  --accent-lite: #C89A3C;
  --blue-deep: #0B2C50;
  --teal: #2F6E9E;

  /* dark-ground text — was 3 repeated hex literals across 9 selectors */
  --ink-on-dark: #E2E8F0;    /* card/door default text on navy */
  --body-on-dark: #C7D2E0;   /* paragraph copy on navy — dimmer than --ink-on-dark */
  --label-on-dark: #7688A6;  /* muted mono label on navy (footer bottom row) */

  /* form-validation states — was 4 repeated hex literals */
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --error-text: #B91C1C;
  --success: #047857;

  /* type */
  --f-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1600px;
  --pad-x: clamp(20px, 4vw, 56px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 1px rgba(13, 61, 107, 0.18), 0 18px 40px -16px rgba(13, 61, 107, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Keyboard focus ring: nothing sitewide overrides the browser default, which
   is a near-black ring — invisible on the site's own dark surfaces (navy
   cards/CTAs, footer). Blue reads fine on the light default; dark-surface
   components get the gold accent instead, which holds contrast on navy. */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.float-cta:focus-visible,
.btn-on-dark:focus-visible,
.card.dark a:focus-visible, .card.dark button:focus-visible,
.door.b a:focus-visible, .door.b button:focus-visible,
.cta-dark a:focus-visible, .cta-dark button:focus-visible,
.hero a:focus-visible, .hero button:focus-visible,
.site-footer a:focus-visible, .site-footer button:focus-visible {
  outline-color: var(--accent-lite);
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  /* the page ground is the warm grey; --paper stays white for sheets and cards */
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.25; }
h4 { font-size: 1.1875rem; line-height: 1.35; }
p { margin: 0 0 14px; color: var(--ink-2); }
.lead { font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}
.eyebrow.muted { color: var(--muted); }
.eyebrow.on-dark { color: var(--accent-lite); }
/* logo-strip lead-in — carries the section, so it outsizes a normal eyebrow.
   Sentence case, not caps: this is a read sentence, not a label, and it
   introduces the highest-credibility real estate on the page (the client roster). */
.eyebrow.trust-line {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
}

.muted { color: var(--muted); }
/* Ink-Not-Grey Rule: prose on light grounds is Ink 2. Weathered Grey stays on
   labels, captions and the mono legend — where it is a label, not a paragraph. */
p.muted { color: var(--ink-2); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* selection */
::selection { background: rgba(13, 61, 107, 0.18); color: var(--ink); }

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding: clamp(40px, 4.6vw, 72px) 0; }
section.tight { padding: clamp(34px, 4.2vw, 62px) 0; }

/* D-01 "Nothing": no rule and no marker between sections. With the alternating
   bands gone too, spacing alone does the separating. */

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Header / Nav ---------- */
/* Inverted bar in the accent, not the deep ground: the header carries the
   brand colour on every page, so the white hero below it stays clean. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-header .brand { color: #fff; }
/* the mark is a steel-blue raster; on the accent it sits at about 1.9:1, so it
   is knocked out to white in the header only (the footer keeps the original) */
.site-header .brand .mark { filter: brightness(0) invert(1); }
/* the bar runs wider than the page grid — brand and nav sit closer to the edges */
.site-header .wrap { max-width: none; padding: 0 clamp(16px, 2.2vw, 32px); }
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.10); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.12); }
/* the CTA sits on the accent, so it inverts to brass to stay the loudest thing in the bar */
.site-header .nav-cta.btn-accent,
.site-header .nav-cta.btn-accent:link,
.site-header .nav-cta.btn-accent:visited,
.site-header .nav-cta.btn-accent:hover,
.site-header .nav-cta.btn-accent[aria-current="page"] {
  background: var(--accent-lite);
  border-color: var(--accent-lite);
  color: var(--navy-900);
  box-shadow: none;
}
.site-header .nav-cta.btn-accent:hover { background: #D8AC50; border-color: #D8AC50; }
.nav-cta { margin-left: 6px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: #fff;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 12px clamp(16px, 2.2vw, 32px);
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px; font-size: 0.875rem; }
  .nav-cta { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* pointer-target minimum; padding alone left these at 41px */
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-accent {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-accent:hover { background: var(--navy-900); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 6px 18px -8px rgba(13,61,107,0.6);
}
.btn-accent,
.btn-accent:link,
.btn-accent:visited,
.btn-accent:hover,
.btn-accent:active { color: #fff; }
.btn-accent:hover { background: var(--blue-deep); box-shadow: 0 10px 22px -8px rgba(13,61,107,0.7); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
/* --paper-2 is now the page ground, so a ghost hover needs the next step down to register */
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-3); }

.btn-on-dark {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
}
.btn-on-dark:hover { background: var(--blue-soft); }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* in-text arrow link */
.link-arrow {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--blue);
  position: relative;
}
.link-arrow::after {
  content: "→";
  transition: transform .15s ease;
  display: inline-block;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Tags / pills ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--label);
}
.tag.on-dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.16); color: var(--body-on-dark); }
.tag.accent { background: var(--blue-soft); border-color: rgba(13,61,107,0.18); color: var(--blue-deep); }
/* .card is a column flexbox with default align-items:stretch, which overrides the
   pill's inline-flex and renders it full-width. The Tag spec is "a label, never a
   control" — a full-bleed lozenge reads as an empty input. */
.card > .tag { align-self: flex-start; }

/* ---------- Cards ---------- */
.card {
  /* K-06 raised sheet. No border: the card is lifted off the warm ground by
     elevation instead of outlined on it, with a larger radius to match. */
  background: var(--paper);
  border: 0;
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(11,33,54,0.05), 0 18px 38px -22px rgba(11,33,54,0.40);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,33,54,0.06), 0 28px 54px -24px rgba(11,33,54,0.50); }
.card.flush { padding: 0; overflow: hidden; }
.card.dark { background: var(--navy-800); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 22px 46px -24px rgba(11,33,54,0.55); color: var(--ink-on-dark); }
.card.dark h3, .card.dark h4 { color: #fff; }
.card.dark p { color: var(--body-on-dark); }

/* Footer band. The card's action doesn't float in the body, it sits in a tinted
   strip flush to the card's own edges. --card-pad is whatever the host card pads
   its body by, so the band's negative margins reach exactly to the corners. */
.card, .industry-card { --card-pad: 28px; overflow: hidden; }
.card.flush { --card-pad: 24px; }
.card-foot {
  margin-top: auto;
  margin-inline: calc(var(--card-pad, 28px) * -1);
  margin-bottom: calc(var(--card-pad, 28px) * -1);
  padding: 15px var(--card-pad, 28px);
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* the flush card's copy block is a plain div, so it has to grow and become a
   column itself before margin-top:auto can pin the band to the card's bottom */
.card.flush > div:last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
/* that column defaults to align-items:stretch, which was stretching a lone
   .tag (no .row-flex wrapper here) to the card's full width as one long pill */
.card.flush > div:last-child > .tag { align-self: flex-start; }
/* on the navy grounds the strip takes the brass wash, not a neutral lift */
.card.dark .card-foot, .door.b .card-foot {
  background: rgba(200,154,60,0.10);
}

.icon-tile {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--paper-3), var(--paper));
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.icon-tile.dark {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border-color: rgba(255,255,255,0.08);
  color: var(--accent-lite);
}
.icon-tile svg { width: 22px; height: 22px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
/* A dashboard mockup crops its own labels under ~340px, so any grid holding one
   sizes by content width instead of a fixed column count — a 4-up of viz cards
   cuts "MADA ESCROW" and the CBU figure in half. */
.grid:has(> .card.flush) { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
/* four viz cards would auto-fit to 3 + a lone orphan; 2x2 squares the block off */
@media (min-width: 821px) { .grid-4:has(> .card.flush) { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 5vw, 68px);
  padding-bottom: clamp(34px, 4.2vw, 56px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-grid .copy h1 { margin-top: 18px; }
/* promoted to the DESIGN.md "deck" tier, matching .callout .big — light ground,
   so no dark-bg compensation needed here */
.hero-grid .copy .lead {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.3125rem, 2.1vw, 1.75rem); line-height: 1.34; letter-spacing: -0.015em;
  margin-top: 22px; max-width: 52ch;
}
.hero-grid .ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 36px;
  font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Stats bar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats .stat {
  background: var(--paper);
  padding: 28px 24px;
}
.stats .num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stats .num .plus { color: var(--blue); }
.stats .lbl {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-top: 12px;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section heading row ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head .left { max-width: 100%; }
.section-head h2 { margin-top: 12px; }
.section-head .left p, .section-head p { margin-top: 12px; color: var(--ink-2); max-width: 64ch; }
.section-head .right a { font-size: 0.875rem; }

/* ---------- Split section: heading left, one content block right ----------
   For sections that are one heading + one block (a callout). Stacked, the
   heading floated above a part-width box with dead space beside it; side by
   side the heading anchors the block and the void is gone. Top-aligned, not
   sticky — the blocks are short. Collapses to a stack below 860px. */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }
/* a callout filling a split column must not also cap its own width — that
   re-creates the exact void the split layout is there to remove */
.split .callout { max-width: none; }

/* ---------- Logo grid ---------- */
/* flex (not grid) so a partial final row centres instead of hanging left —
   the wall is 9 logos, which doesn't divide evenly into the 5/3/2 column counts */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 24px;
}
.logo-cell {
  background: transparent;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: center;
  min-height: 110px;
  position: relative;
  overflow: hidden;
  flex: 0 0 calc((100% - 96px) / 5);   /* 5 per row, minus 4 × 24px column gaps */
}
.logo-cell img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  display: block;
  transition: transform .4s cubic-bezier(0.25, 1, 0.5, 1);
}
.logo-cell:hover img { transform: scale(1.08); }

/* Per-logo scale-ups — these source PNGs have heavy built-in whitespace,
   so they render visually smaller than the others without help */
.logo-cell img[alt="Schlumberger"] { transform: scale(1.7); }
.logo-cell img[alt="Contently"] { transform: scale(1.5); }
.logo-cell:hover img[alt="Schlumberger"] { transform: scale(1.84); }
.logo-cell:hover img[alt="Contently"] { transform: scale(1.62); }

/* "+ more clients" cell — spans the full row beneath the 10 logos */
.logo-cell.more {
  flex: 0 0 100%;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  min-height: 60px;
  cursor: pointer;
  text-decoration: none;
  transition: color .3s ease, letter-spacing .3s ease;
}
.logo-cell.more:hover {
  color: var(--blue);
  letter-spacing: 0.06em;
}

@media (max-width: 980px) {
  .logo-cell { min-height: 140px; flex: 0 0 calc((100% - 48px) / 3); }  /* 3 per row */
  .logo-cell img { height: 90px; }
}
@media (max-width: 560px) {
  .logo-cell { min-height: 120px; padding: 18px 18px; flex: 0 0 calc((100% - 24px) / 2); }  /* 2 per row */
  .logo-cell img { height: 76px; }
}

/* ---------- Visual placeholders (instead of real imagery) ---------- */
.placeholder {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(13,61,107,0.08), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(143,184,255,0.06), transparent 55%),
    linear-gradient(135deg, var(--paper-3), var(--paper));
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.placeholder.dark {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(13,61,107,0.25), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(143,184,255,0.18), transparent 55%),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-color: rgba(255,255,255,0.08);
  color: var(--accent-lite);
}
.placeholder.dark::after {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.placeholder .ph-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(4px);
}
.placeholder.dark .ph-label {
  background: rgba(10,22,40,0.5);
  border-color: rgba(255,255,255,0.12);
  color: var(--accent-lite);
}
.placeholder .ph-label::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,61,107,0.18);
}

/* hero placeholder taller / styled */
.hero .placeholder { aspect-ratio: 4/3; min-height: 0; }

/* ---------- Why bullets ---------- */
.why .item h3 { margin-top: 0; }
.why .item p { margin-top: 8px; color: var(--ink-2); }
.why .num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.1em;
}

/* ---------- Final CTA (dark) ---------- */
.cta-dark {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(13,61,107,0.25), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(143,184,255,0.15), transparent 60%),
    var(--navy-900);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
}
.cta-dark > * { position: relative; }
.cta-dark h2 { color: #fff; }
.cta-dark p { color: var(--body-on-dark); max-width: 50ch; margin: 18px auto 0; }
.cta-dark .ctas { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--body-on-dark);
  padding: 52px 0 28px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer h5 {
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
/* 17px-tall link rows were unhittable on a phone; the padding carries the target
   and the reduced gap keeps the column the same overall height */
.site-footer ul a { color: var(--accent-lite); font-size: 0.875rem; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer ul a:hover { color: #fff; }
.site-footer .brand-block .blurb { font-size: 1rem; max-width: 36ch; margin-top: 14px; color: var(--accent-lite); }
.site-footer .brand-block .brand { color: #fff; }
.site-footer .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-on-dark);
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer .socials { display: flex; gap: 8px; }
.site-footer .social {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-lite);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.site-footer .social:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
@media (max-width: 880px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- Floating book-a-call CTA ---------- */
.float-cta {
  min-height: 44px;
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 32px -10px rgba(15,23,42,0.4), 0 4px 10px rgba(15,23,42,0.18);
  transition: transform .15s ease, background .15s ease;
}
.float-cta:hover { background: var(--blue); transform: translateY(-2px); }

/* ---------- Page hero (interior pages) — dark banner, matches Home/cta-dark visual language ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(13,61,107,0.30), transparent 55%),
    radial-gradient(ellipse at 90% 85%, rgba(200,154,60,0.18), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: clamp(62px, 6.4vw, 104px) 0 clamp(50px, 5vw, 76px);
  color: #fff;
  min-height: clamp(340px, 42vw, 520px);
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 20% 15%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 15%, black 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero .eyebrow { color: var(--accent-lite); margin-bottom: 16px; }
.page-hero h1 { max-width: 18ch; color: #fff; }
.page-hero h1 .hl { color: var(--accent-lite); }
/* promoted to the DESIGN.md "deck" tier — was riding the body-copy .lead style,
   so every hero jumped display h1 straight to 16-20px body with no rung between.
   Light-on-dark needs looser leading + eased tracking than the base deck spec
   to hold its perceived weight (compensated here, not on .callout .big). */
.page-hero .lead {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.3125rem, 2.1vw, 1.75rem); line-height: 1.42; letter-spacing: -0.005em;
  margin-top: 22px; max-width: 60ch; color: rgba(255,255,255,0.72);
}

/* ---------- Service block (services page) ---------- */
.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(34px, 4.2vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.svc-block:first-of-type { border-top: 0; }
.svc-block .num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.svc-block h2 { margin-top: 14px; }
.svc-block .lead { margin-top: 14px; }
.svc-block ul { padding: 0; margin: 22px 0 0; list-style: none; display: grid; gap: 10px; }
.svc-block ul li {
  display: flex;
  align-items: flex-start;
  text-wrap: pretty;
  gap: 10px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}
.svc-block ul li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--blue);
  margin-top: 8px;
}
.svc-block .used-in {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  background: var(--paper);
}
.svc-block .used-in .eyebrow { margin-bottom: 14px; display: block; }
.svc-block .used-in ul { margin: 0; gap: 6px; }
.svc-block .used-in ul li { padding: 0; font-size: 0.875rem; }
.svc-block .used-in ul li::before { display: none; }
.svc-block .used-in a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--paper-2);
  transition: border-color .15s, background .15s;
}
.svc-block .used-in a:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
@media (max-width: 880px) { .svc-block { grid-template-columns: 1fr; } }

/* ---------- Case study — index list ---------- */
.cs-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  --cs-gap: 24px;
  gap: var(--cs-gap);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  background: var(--paper);
  overflow: hidden;
  transition: border-color .15s ease, transform .2s ease, box-shadow .2s ease;
}
.cs-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cs-card .copy { --card-pad: 28px; padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 14px; }
/* the copy column has no left padding, so the band reaches back across the grid
   gap instead — the tint runs the full line, the text stays where it was */
.cs-card .copy > .card-foot {
  margin-left: calc(var(--cs-gap) * -1);
  padding-left: var(--cs-gap);
}
.cs-card .copy .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-card .copy h3 { color: var(--ink); }
.cs-card .placeholder { border: 0; border-radius: 0; min-height: 100%; }
@media (max-width: 760px) {
  .cs-card { grid-template-columns: 1fr; }
  .cs-card .copy { --card-pad: 22px; padding: 22px; }
  .cs-card .copy > .card-foot { margin-left: -22px; padding-left: 22px; }
  .cs-card .placeholder { min-height: 200px; }
}

/* ---------- Case study — detail page ---------- */
.cs-detail-hero {
  /* V-04 accent bloom, matching the home hero. Same two washes, shallower
     because this hero is roughly half the height, over the existing ground. */
  background:
    radial-gradient(58% 90% at 82% 18%, rgba(13,61,107,0.09) 0%, rgba(13,61,107,0) 66%),
    radial-gradient(40% 70% at 94% 82%, rgba(200,154,60,0.09) 0%, rgba(200,154,60,0) 62%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 56px);
}
.cs-detail-hero .crumbs {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.cs-detail-hero .crumbs a { color: var(--ink-2); }
.cs-detail-hero .crumbs a:hover { color: var(--blue); }
/* outcome headlines are full sentences (CONTENT-LOCK's "H1 (outcome)" field) —
   24ch at 60px wrapped cs-schlumberger to 6 lines (8 on mobile). Widening the
   measure and lowering the display ceiling keeps the same locked copy readable
   without shouting; no copy touched. */
.cs-detail-hero h1 { max-width: 34ch; }
.cs-detail-hero .meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;
}
.cs-detail-hero .hero-grid { margin-top: 32px; }
/* min-width, not an override: a plain .cs-detail-hero .hero-grid rule would outrank
   the max-width:900px stack by specificity and keep the hero two-column on phones. */
@media (min-width: 901px) { .cs-detail-hero .hero-grid { grid-template-columns: 1.2fr 1fr; } }

.cs-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 64px);
}
.cs-body aside {
  position: sticky;
  top: 92px;
  align-self: start;
}
.cs-body aside .row + .row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cs-body aside .row .eyebrow { display: block; margin-bottom: 4px; }
.cs-body aside .row .val { font-weight: 500; color: var(--ink); font-size: 1rem; }
.cs-body h2 { margin-top: 8px; }
.cs-body .lead { max-width: 72ch; }
.cs-body section + section { margin-top: 32px; }
.cs-body ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cs-body ul li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--ink-2); font-size: 1rem; line-height: 1.55;
  max-width: 68ch;
}
.cs-body ul li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px; border-radius: 2px;
  transform: rotate(45deg);
  background: var(--blue);
  margin-top: 9px;
}
.cs-body .tech-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cs-body .pull {
  margin-top: 32px;
  padding: 4px 0;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
}
.cs-body .pull cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--f-body); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cs-body .screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.cs-body .screens .placeholder { min-height: 160px; }
@media (max-width: 880px) {
  .cs-body { grid-template-columns: 1fr; }
  .cs-body aside { position: static; }
  .cs-body .screens { grid-template-columns: 1fr; }
}

/* ---------- Industries grid ---------- */
.industry-card {
  background: var(--paper);
  border: 0;
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(11,33,54,0.05), 0 18px 38px -22px rgba(11,33,54,0.40);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.industry-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,33,54,0.06), 0 28px 54px -24px rgba(11,33,54,0.50); }
.industry-card h3 { margin-top: 6px; }
.industry-card .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.industry-card .client-tag {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* 2 of 6 verticals have no client proof yet ("New builds welcome") — same
   markup otherwise, so nothing distinguished a live client from an open
   invitation at a glance. Proven ones get the accent color + a small marker. */
.industry-card .client-tag.proven {
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.industry-card .client-tag.proven::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

/* ---------- About page ---------- */
/* The left column carries a logo+eyebrow header, then the big quote, then the
   process flow; the right carries body copy. Laid out top-aligned, the quote
   sat ~160px below the first paragraph (the logo+eyebrow pushed it down) and
   the two columns read as unrelated rows. Grid areas fix it: the header is its
   own row, and the quote shares row 2 with the body — so the big quote and the
   first paragraph start on the same line. */
.about-narrative {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  grid-template-areas:
    "head  ."
    "quote body"
    "flow  body";
  column-gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-narrative .lead { font-size: 1.1875rem; color: var(--ink-2); margin-bottom: 22px; }
.about-narrative .lead:last-child { margin-bottom: 0; }

.about-narrative .nv-head { grid-area: head; display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.about-narrative .nv-head .eyebrow { margin: 0; }
.about-narrative .nv-body { grid-area: body; }
.about-narrative .visual-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex: none;
}
.about-narrative .visual-quote {
  grid-area: quote;
  margin: 0;
  padding: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.about-narrative .visual-quote .hl {
  color: var(--blue);
}
.about-narrative .process-flow {
  grid-area: flow;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin-top: 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  align-self: start;
}
.about-narrative .process-flow .step.accent {
  color: var(--blue);
  font-weight: 500;
}
.about-narrative .process-flow .arrow {
  color: var(--ink-2);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Founder split — one column per person, side by side */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
/* lifted sheet, not an outlined box — this is the most credibility-critical card
   on the site and it was rendering flatter than every other card (No-Outline Rule) */
.founder {
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(24px, 2.6vw, 36px);
  box-shadow: 0 1px 2px rgba(11,33,54,0.05), 0 18px 38px -22px rgba(11,33,54,0.40);
}
.founder-head {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 26px);
}
/* both portraits are authored to this exact ratio and framing, so the two
   faces start and end on the same horizon across the split */
.founder-photo {
  width: clamp(112px, 11vw, 156px);
  aspect-ratio: 1200 / 1210;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  flex: none;
  box-shadow: var(--shadow-md);
}
.founder-id h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.founder-id .role {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.founder .lead { margin-top: clamp(20px, 2vw, 26px); }
.founder p:last-child { margin-bottom: 0; }
/* a claim the reader can actually check — the point of naming a human at all */
.founder-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.founder-links a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.founder-links a:hover { color: var(--blue-deep); }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .founder-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 800px) {
  .about-narrative {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "quote" "body" "flow";
  }
  .about-narrative .nv-body { margin-top: 24px; }
}
/* ai.html runs a wider right column than about.html; scoped by min-width so the
   800px stack still wins on mobile. */
@media (min-width: 801px) {
  .about-narrative.narrative-wide { grid-template-columns: 1fr 1.4fr; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(36px, 5vw, 64px);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* an author `display` beats the UA's [hidden] rule, so hiding these in JS needs
   saying explicitly or the form stays painted next to its own confirmation */
form.contact[hidden], .form-sent[hidden] { display: none; }
form.contact {
  display: grid;
  /* the form is a grid column beside a taller aside; without this its auto rows
     stretch to absorb the surplus and the 20px gap stops being the real spacing */
  align-content: start;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(13,61,107,0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field.error input, .field.error select, .field.error textarea {
  border-color: var(--error);
  background: var(--error-bg);
}
.field .err-msg {
  display: none;
  color: var(--error-text);
  font-size: 0.875rem;
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
}
.field.error .err-msg { display: block; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.form-status { font-size: 1rem; color: var(--ink-2); }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error-text); }
.form-status a { color: inherit; text-decoration: underline; }
.form-foot .btn { min-height: 44px; }
.form-foot .btn.is-busy { opacity: .72; cursor: wait; }

.form-legend { font-size: 0.875rem; color: var(--ink-2); margin: 0; }
.field-note { font-size: 0.875rem; color: var(--ink-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Post-submit confirmation. Replaces the form in place — the buyer has just
   exposed themselves, so the page owes them more than a line of green text. */
.form-sent {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 1px 2px rgba(11,33,54,0.05), 0 18px 38px -22px rgba(11,33,54,0.40);
  align-self: start;
}
.form-sent:focus { outline: none; }
.form-sent h3 { margin: 10px 0 0; }
.form-sent p { margin-top: 14px; max-width: 52ch; }
.form-sent a { color: var(--blue); text-decoration: underline; }
.sent-echo { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.sent-echo summary {
  cursor: pointer; font-family: var(--f-mono); font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.sent-echo dl { margin: 16px 0 0; display: grid; gap: 10px; }
.sent-echo dt {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.sent-echo dd { margin: 2px 0 0; color: var(--ink-2); white-space: pre-wrap; }
.sent-alt { font-size: 1rem; }

.contact-aside .block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  background: var(--paper);
  margin-bottom: 18px;
}
.contact-aside .block.dark {
  background: var(--navy-900);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.contact-aside .block.dark p { color: var(--accent-lite); }
.contact-aside .block .row + .row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.contact-aside .block.dark .row + .row { border-color: rgba(255,255,255,0.08); }
.contact-aside .eyebrow { display: block; margin-bottom: 14px; }
.contact-aside .val { font-weight: 500; color: var(--ink); font-size: 1rem; }
.contact-aside .block.dark .val { color: #fff; }

/* Partner block on contact page — KSA strategic partner */
.contact-aside .block.partner-block {
  background: var(--paper-2);
  border-color: var(--line-2);
  position: relative;
}
.contact-aside .partner-logo {
  width: 130px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  margin-bottom: 18px;
  display: block;
}

/* Strategic Partners section on About page */
.partner-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  position: relative;
  overflow: hidden;
}
.partner-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 140px;
}
.partner-mark img {
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
  display: block;
}
.partner-copy h3 {
  letter-spacing: -0.02em;
}
.partner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.partner-meta strong { color: var(--ink-2); font-weight: 600; }
@media (max-width: 720px) {
  .partner-card { grid-template-columns: 1fr; }
  .partner-mark { min-height: 120px; }
}

/* ---------- Generic ---------- */
.row-flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.center { text-align: center; }
.mono { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.hl { color: var(--blue); }

/* ---------- Reveal animation ---------- */
[data-reveal], [data-reveal].in { opacity: 1; transform: none; }

/* skip-content */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }


/* =========================================================
   REPOSITION additions — dual-path, green-led
   ========================================================= */

/* Legacy --green-* names, kept as aliases so existing markup keeps working.
   They now resolve to the prussian accent, not green. */
:root { --green: var(--blue); --green-deep: var(--blue-deep); --green-soft: var(--blue-soft); }

/* Dark panel capped to content width (not full-bleed) — matches .cta-dark treatment */
.proof-panel {
  background: var(--navy-900);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
}

/* Respect reduced motion (a11y baseline) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Logo-diamond bullet list */
.dlist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.dlist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.dlist li::before {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: 8px;
  border-radius: 2px; transform: rotate(45deg);
  background: var(--green);
}
.dlist.sm li { font-size: 1rem; }
.dlist strong { color: var(--ink); font-weight: 700; }

/* grey subheads / black body (Sudipto) */
.subhead { color: var(--ink-2); font-weight: 500; }

/* ---- Home splitter: two doors ---- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px){ .doors { grid-template-columns: 1fr; } }
.door {
  position: relative;
  display: flex; flex-direction: column;
  min-height: clamp(400px, 33vw, 520px);
  border: 0;
  border-radius: var(--r-xl);
  padding: clamp(32px, 3.4vw, 48px);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,33,54,0.05), 0 22px 46px -24px rgba(11,33,54,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.door:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(11,33,54,0.07), 0 34px 64px -26px rgba(11,33,54,0.55); }
.door .kicker {
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--label); margin-bottom: 22px;
}
.door.b { background: var(--navy-900); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 22px 46px -24px rgba(11,33,54,0.55); color: var(--ink-on-dark); }
.door.b .kicker { color: var(--accent-lite); }
.door.b h3 { color: #fff; }
.door.b p { color: var(--body-on-dark); }
/* the dark door inherits .dlist's ink colour otherwise — unreadable on navy
   (was previously carried by per-<li> inline styles) */
.door.b .dlist li { color: var(--body-on-dark); }
.door.b .dlist li::before { background: var(--accent-lite); }
.door h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.14; text-wrap: balance; }
.door p { margin: 16px 0 0; max-width: 46ch; }
.door { --card-pad: clamp(32px, 3.4vw, 48px); }
.door .dlist { margin-top: 26px; }
.door .dlist li { line-height: 1.6; }
/* margin-top:auto pins the band to the bottom; the padding is the minimum gap
   above it so the band never touches the last bullet. Dropped the full-width
   tint here (kept everywhere else .card-foot is used) — a single button in a
   ~650px flush band left acres of dead tinted space beside it, which read as
   unpadded rather than left-aligned. The button carries its own background. */
.door .door-cta {
  margin-top: auto; padding: 34px 0 0 0;
  background: none; margin-inline: 0; margin-bottom: 0;
}
.door.b .door-cta { background: none; }
.door .door-tag {
  position: absolute; top: 22px; right: 22px;
  width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg);
  background: var(--green);
}
.door.b .door-tag { background: var(--accent-lite); }

/* ---- Big metrics (bigger numbers for impact) ---- */
.metric-row { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); }
.metric .m-num {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--ink);
}
.metric .m-num .u { color: var(--green); }
.metric .m-lbl { font-family: var(--f-body); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.metric-row.on-dark .m-num { color: #fff; }
.metric-row.on-dark .m-num .u { color: var(--accent-lite); }
.metric-row.on-dark .m-lbl { color: var(--accent-lite); }

/* ---- Big statement ----
   No panel, no tint, no edge rule: the statement earns its weight from type and
   measure alone. The old tinted-box-with-a-coloured-left-bar is the single most
   templated shape on the web and it read that way here too. */
/* Was bare text on the page ground — no border, no background, "the statement
   earns its weight from type alone." Reads fine in isolation but sits between
   heavily bordered/carded sections (.get-grid, .grid-3) on this page and reads
   as unstyled rather than restrained. Given the same neutral card treatment as
   .get-item/.card (border + radius + paper background) — matching what's
   actually around it, not the banned tinted-stripe pattern (no accent colour,
   no side stripe, just the plain card shape used sitewide). The diamond mark
   reuses .get-item .dia / .door-tag exactly, so it reads as the same brand
   system, not a new device. */
.callout {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  padding-left: calc(clamp(28px, 3vw, 40px) + 26px);
  /* a callout is often the ONLY thing in its section (no sibling grid/cards),
     inside a 1600px-max wrap — 46rem left more empty void beside the card
     than the card itself, which read as broken, not restrained. 70% keeps it
     short of full-bleed (still reads as a deliberate quote, not a banner)
     while actually using the section's width; 62rem caps it on ultra-wide. */
  max-width: min(62rem, 70%);
  position: relative;
}
.callout::before {
  content: "";
  position: absolute;
  top: clamp(28px, 3vw, 40px); left: clamp(28px, 3vw, 40px);
  width: 12px; height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--green);
}
/* every callout sits under a section-head h2, so it is a deck, not a second
   headline: lighter weight and a step down in colour keep the hierarchy honest */
.callout .big {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.3125rem, 2.1vw, 1.75rem); line-height: 1.34; letter-spacing: -0.015em;
  color: var(--ink-2); text-wrap: pretty;
  max-width: 44ch;
}
/* was mono at 13px carrying full sentences — mono at sentence length is the
   worst readability pairing on the site; this is running prose, not a label */
.callout .sub {
  margin: 16px 0 0;
  font-family: var(--f-body);
  font-size: 1rem; line-height: 1.6; letter-spacing: normal;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---- Offer ladder ---- */
.ladder { display: grid; gap: 16px; margin-top: 8px; }
.ladder .rung {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px; background: var(--paper);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ladder .rung:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ladder .rung .step-n {
  width: 44px; height: 44px; justify-self: center;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--f-display); font-weight: 800; font-size: 1.125rem;
  line-height: 1; letter-spacing: -0.02em;
}
/* connects rung N's badge to rung N+1's, so the ladder reads as one path
   (diagnostic leads to retainer) instead of two unrelated boxes stacked */
.ladder .rung:not(:last-child)::after {
  content: ""; position: absolute; left: 54px; top: 100%;
  width: 2px; height: 16px; background: var(--line-2);
}
.ladder .rung h4 { font-size: 1.25rem; margin-bottom: 6px; }
.ladder .rung p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.ladder .rung .price {
  font-family: var(--f-mono); font-size: 0.875rem; letter-spacing: 0.04em;
  color: var(--ink); white-space: nowrap; text-align: right; font-weight: 500;
}
.ladder .rung .price .band { display:block; color: var(--label); font-size: 0.6875rem; margin-top: 4px; letter-spacing:0.06em; }
.ladder-note { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--label); margin-top: 16px; }
@media (max-width: 640px){
  .ladder .rung { grid-template-columns: 44px 1fr; }
  .ladder .rung .step-n { width: 32px; height: 32px; font-size: 0.9375rem; }
  .ladder .rung:not(:last-child)::after { left: 48px; }
  .ladder .rung .price { grid-column: 1 / -1; text-align: left; margin-top: 4px; }
}

/* ---- What-you-get checklist ---- */
/* the first 3 mechanics are one-liners; the last 2 (named humans) carry a full
   sentence each — grouped 3-then-2 instead of a flat grid so the short cards
   stay compact and the two long ones get the width they need. 6-col base grid:
   short items span 2 (3 per row), long items span 3 (2 per row). */
.get-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 22px; }
/* scoped to .get-grid specifically — .get-item is also reused standalone
   inside plain .grid-3/.grid-4 sections, which must NOT inherit this span */
.get-grid .get-item:nth-child(-n+3) { grid-column: span 2; }
.get-grid .get-item:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) { .get-grid .get-item:nth-child(-n+3) { grid-column: span 3; } }
@media (max-width: 700px) {
  .get-grid { grid-template-columns: 1fr; }
  .get-grid .get-item:nth-child(-n+3), .get-grid .get-item:nth-child(n+4) { grid-column: auto; }
}
.get-item { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; background: var(--paper); transition: border-color .2s, transform .2s, box-shadow .2s; }
.get-item:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.get-item .dia { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 3px; transform: rotate(45deg); background: var(--green); }
.get-item h4 { font-size: 1.1875rem; }
.get-item p { margin: 6px 0 0; color: var(--ink-2); font-size: 1rem; max-width: 72ch; }

/* ---------- Accountability rider ----------
   The section title is "Accountability, operationalized" — so the section
   should read as the mechanism, not a five-tile feature list. One framed
   document: a scope line, the terms you're held to, then the two people who
   put their name to it as signatories (gold underline = a signature line,
   the one bold moment). The content's real shape is 3 terms + 2 humans; the
   old flat grid hid that split, the rider makes it the structure. */
.rider {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--paper); padding: clamp(24px, 3.4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.rider-scope {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--label);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.rider-scope .dia { flex: none; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--blue); }
.rider-term {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 6px 32px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.rider-term h4 { margin: 0; font-size: 1.125rem; color: var(--ink); }
.rider-term p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.rider-sign-label {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--label); margin: 28px 0 18px;
}
.rider-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rider-sign .name {
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); letter-spacing: -0.01em;
  padding-bottom: 11px; border-bottom: 2px solid var(--accent-lite);
}
.rider-sign .role {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--label); margin: 13px 0 7px;
}
.rider-sign p { margin: 0 0 12px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 720px) {
  .rider-term { grid-template-columns: 1fr; gap: 4px; }
  .rider-signs { grid-template-columns: 1fr; gap: 26px; }
}

/* ---- Price cards (services) ---- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px){ .price-grid { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px,3vw,40px); background: var(--paper); display:flex; flex-direction:column; gap:18px; }
.track-badge { align-self: flex-start; }
.price-card .p-row { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding: 14px 0; border-top: 1px solid var(--line); }
.price-card .p-row:first-of-type { border-top: 0; }
.price-card .p-row .p-name { font-weight: 600; color: var(--ink); }
.price-card .p-row .p-name small { display:block; color: var(--ink-2); font-weight: 400; font-size: 0.875rem; margin-top: 3px; }
.price-card .p-row .p-fig { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; color: var(--green); white-space: nowrap; letter-spacing: -0.01em; }
.track-badge { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--paper-2); }
.track-badge.a { color: var(--green-deep); background: var(--green-soft); border-color: rgba(13,61,107,0.2); }
.track-badge.b { color: #fff; background: var(--green-deep); border-color: transparent; }

/* ---- Team strip (about) ---- */

/* clickable logo cell */
a.logo-cell { text-decoration: none; }

/* Home hero stat strip — clean, minimal, no card/gradient */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
}
@media (max-width: 680px){ .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stat-card { padding: 0; }

/* Home proof metrics band */
.metric-row.proof { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px){ .metric-row.proof { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* section intro helper */
.sec-intro { max-width: 100%; }
.sec-intro h2 { margin-top: 12px; }
.sec-intro p { margin-top: 14px; color: var(--ink-2); max-width: 64ch; }

/* =========================================================
   Motion layer (assets/motion.js) — response + scroll reveal
   No token/color/type changes below this line.
   ========================================================= */

/* Press feedback — instant, on pointer-down not release. `:active` covers desktop
   mouse; `.is-pressed` (set by motion.js on pointerdown) covers touch, where iOS
   Safari's `:active` support is unreliable without a touch listener in the chain. */
.btn:active, .btn.is-pressed { transform: scale(.97); transition-duration: .08s; }
.card:active, .card.is-pressed { transform: scale(.985); }
.float-cta:active, .float-cta.is-pressed { transform: scale(.96); }

/* Header gains depth on scroll — solid background throughout, no backdrop-filter (perf cost) */
.site-header {
  transition: box-shadow .25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Nav drawer — critically-damped-feeling ease instead of linear */
@media (max-width: 920px) {
  .nav-links { transition: opacity .28s cubic-bezier(.22,1,.36,1), transform .28s cubic-bezier(.22,1,.36,1); }
}

/* Progressive-enhancement reveal target: default visible; only hides once JS
   confirms .motion-ready (GSAP loaded + ready to animate it back in) — so a
   failed CDN load, no-JS, or reduced-motion all render full content, never blank. */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
.motion-ready .float-cta[data-reveal] { transform: translateY(16px) scale(.9); }
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ===== §6 craft polish (2026-07-18 revamp) ===== */
/* cards come forward on hover */
.card { transition: transform .22s ease, box-shadow .22s ease; }
/* raised sheet: hover lifts the sheet further rather than ringing it */
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(11,33,54,0.07), 0 34px 64px -26px rgba(11,33,54,0.55); }
/* bigger impact numbers (Sudipto: "numbers can be bigger… more impact") */
.hero-stat-card > div:first-child { font-size: clamp(2.125rem, 4.4vw, 3.25rem); line-height: 1.02; letter-spacing: -0.02em; }
.metric .m-num { font-size: clamp(2.5rem, 5vw, 4rem); }
.db-delta { font-size: clamp(1.875rem, 4vw, 2.75rem); }
/* diamond bullets for case-study prose lists — brand recall */
.cs-body ul { list-style: none; padding-left: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.cs-body ul li { position: relative; padding-left: 22px; color: var(--ink-2); line-height: 1.55; }
.cs-body ul li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); border-radius: 1px; }
/* tighten case-study whitespace ("the space is too much") + bigger client name */
.cs-detail-hero { padding-top: clamp(30px, 3.6vw, 52px); padding-bottom: clamp(22px, 2.6vw, 36px); }
.cs-detail-hero h1 { font-size: clamp(1.875rem, 4vw, 3rem); }
.cs-body > div > section { padding: clamp(15px, 1.9vw, 25px) 0; }
.cs-body > div > section:first-child { padding-top: 0; }
/* "We've also worked with" quieter logo strip */
.logo-strip-quiet { opacity: .82; transition: opacity .2s; }
.logo-strip-quiet:hover { opacity: 1; }

/* --- pointer targets: standalone controls to the 44px minimum ---------------
   Inline links inside a run of prose are exempt (WCAG 2.2 target-size), so this
   only lifts the controls that stand on their own. */
.site-footer .brand-block .brand { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .contact-list a,
.contact-aside .val { display: inline-flex; align-items: center; min-height: 44px; }
.cs-detail-hero .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.founder-links a,
.partner-meta a { display: inline-flex; align-items: center; min-height: 44px; }
/* see floatCtaYield() in motion.js — the pill would otherwise sit on the footer's
   social buttons at the end of every page */
.footer-in-view .float-cta { visibility: hidden; pointer-events: none; }
