/* site.css: built by build.js from fonts.css, tokens.css, style.css (in that order). Edit those, not this. */

/* ---- fonts.css ---- */
/* fonts.css — self-hosted variable woff2, one file per family, font-display: swap.
   Each file carries a weight axis, so every weight used on the site comes from it. */

/* ============ PLUS JAKARTA SANS — display, H1–H3 (600–800 used) ============ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-variable.woff2') format('woff2');
}

/* ============ INTER — H4, body, UI, forms, eyebrows (400–700 used) ============ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-variable.woff2') format('woff2');
}

/* ============ SPACE GROTESK — numerals and data labels (600–700 used) ============ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-variable.woff2') format('woff2');
}

/* ---- tokens.css ---- */
/* tokens.css — the single source of design values. */

:root {
  /* ============ FONT FAMILIES ============ */
  --ff-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;
  --ff-data:    'Space Grotesk', ui-monospace, 'SF Mono', Consolas, monospace;

  /* ============ TYPE SCALE ============ */
  /* Major Third (1.250) desktop → Minor Third (1.200) mobile */
  --font-display: clamp(2.5rem,   5.5vw, 4rem);      /* 40 → 64 */
  --font-h1:      clamp(2rem,     5vw,   3rem);      /* 32 → 48 */
  --font-h2:      clamp(1.625rem, 4vw,   2.25rem);   /* 26 → 36 */
  --font-h3:      clamp(1.25rem,  3vw,   1.5rem);    /* 20 → 24 */
  --font-h4:      clamp(1.125rem, 2vw,   1.25rem);   /* 18 → 20 */
  --font-body-lg: clamp(1rem,     1.5vw, 1.125rem);  /* 16 → 18 */
  --font-body:    1rem;                              /* 16 fixed; was 15 → 16 */
  --font-body-sm: 0.875rem;                          /* 14 fixed; was 13 → 14 */
  --font-eyebrow: clamp(0.75rem,  1vw,   0.8125rem); /* 12 → 13 */
  --font-stat:    clamp(2.5rem,   6vw,   3.5rem);    /* 40 → 56 */
  --font-ui:      0.9375rem;                         /* 15 fixed */

  /* ============ MEASURE ============ */
  --max-width-prose:  68ch;
  --max-width-narrow: 46ch;
  --max-width-wide:   88ch;

  /* ============ EMERALD (brand) ============ */
  --emerald-900: #064E3B;
  --emerald-800: #065F46;
  --emerald-700: #047857;   /* interactive: links, button fills, small accent text — AA */
  --emerald-600: #059669;   /* brand: icons, borders, tags, text ≥24px only */
  --emerald-500: #10B981;
  --emerald-400: #34D399;
  --emerald-300: #6EE7B7;
  --emerald-100: #D1FAE5;
  --emerald-50:  #ECFDF5;

  /* ============ STONE (light-theme neutrals) ============ */
  --stone-900: #1A1A17;
  --stone-600: #52524C;
  --stone-500: #6E6E68;
  --stone-300: #D2D2CB;
  --stone-200: #E6E6E1;
  --stone-100: #F4F4F1;
  --stone-50:  #FAFAF8;

  /* ============ SLATE (dark-theme neutrals) ============ */
  --slate-950: #020617;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* ============ STATUS ============ */
  --status-ok:   #047857;  --status-ok-tint:   #ECFDF5;
  --status-warn: #B45309;  --status-warn-tint: #FFFBEB;
  --status-bad:  #B91C1C;  --status-bad-tint:  #FEF2F2;
  --status-info: #0369A1;  --status-info-tint: #F0F9FF;

  /* ============ SEMANTIC — TEXT ============ */
  --color-text-primary:   var(--stone-900);
  --color-text-secondary: var(--stone-600);
  --color-text-tertiary:  var(--stone-500);
  --color-text-accent:    var(--emerald-600);
  --color-text-inverse:   var(--white);

  /* ============ SEMANTIC — SURFACE / ACCENT / LINE ============ */
  --color-bg:              var(--stone-50);
  --color-surface:         var(--white);
  --color-surface-sunken:  var(--stone-100);
  --color-surface-raised:  var(--white);
  --color-surface-inverse: var(--stone-900);
  --color-accent:          var(--emerald-600);
  --color-accent-strong:   var(--emerald-700);
  --color-accent-hover:    var(--emerald-800);
  --color-accent-tint:     var(--emerald-50);
  --color-on-accent:       var(--white);
  --color-line:            var(--stone-200);
  --color-line-strong:     var(--stone-300);
  --color-focus:           var(--emerald-600);

  /* ============ GRADIENTS ============ */
  --gradient-hero: linear-gradient(160deg, #0F172A 0%, #020617 100%);
  --gradient-wash: linear-gradient(180deg, var(--color-accent-tint) 0%, transparent 100%);

  /* ============ SPACE ============ */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;    --space-9: 6rem;
  --space-10: 8rem;
  --section-y:    clamp(2rem, 4.5vw, 3.5rem);
  --section-y-lg: clamp(2.5rem, 6vw, 4.5rem);
  /* Gap under a section heading block: 32px on phones up to 48px on desktop,
     so a phone does not get the same air as a wide screen. */
  --section-head-gap: clamp(2rem, 4vw, 3rem);
  /* Space above an h2 inside an article or legal page: 40px → 64px. */
  --prose-h2-gap: clamp(2.5rem, 6vw, 4rem);

  /* ============ LAYOUT ============ */
  --container:       1200px;
  --container-wide:  1400px;
  --container-prose: 760px;
  --container-narrow: 62rem;  /* service detail pages and the band that follows them */
  --table-cell-min:  9rem;    /* narrowest data-table column on a phone */
  --container-pad:   clamp(1rem, 4vw, 2rem);
  --header-h:        72px;
  --header-h-compact: 56px;   /* sticky header after scrolling */
  --grid-gap:        var(--space-5);

  /* ============ SHAPE ============ */
  --radius-xs: 3px;  --radius-sm: 6px;  --radius-md: 10px;
  --radius-lg: 14px; --radius-xl: 20px; --radius-pill: 999px;

  /* ============ ELEVATION ============ */
  --shadow-xs: 0 1px 2px rgba(26,26,23,.06);
  --shadow-sm: 0 1px 3px rgba(26,26,23,.07), 0 1px 2px rgba(26,26,23,.04);
  --shadow-md: 0 4px 12px rgba(26,26,23,.08), 0 1px 3px rgba(26,26,23,.05);
  --shadow-lg: 0 12px 32px rgba(26,26,23,.10), 0 2px 8px rgba(26,26,23,.05);
  --focus-ring: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-focus);
  /* Edge shade on a sideways-scrolling table. Defined from the text colour,
     so it follows the theme on its own. */
  --scroll-shadow: color-mix(in srgb, var(--color-text-primary) 16%, transparent);

  /* ============ MOTION ============ */
  --dur-fast: 120ms;  --dur-base: 200ms;  --dur-slow: 320ms;
  --ease-out:    cubic-bezier(.2,.8,.3,1);
  --ease-in-out: cubic-bezier(.6,0,.3,1);

  /* ============ Z-INDEX ============ */
  --z-base: 0;       --z-sticky: 10;   --z-header: 100;
  --z-dropdown: 200; --z-overlay: 300; --z-modal: 400; --z-toast: 500;
}

[data-theme="dark"] {
  --color-text-primary:   var(--slate-100);
  /* Tertiary was slate-500: 3.75:1 on --color-surface, under AA for small
     text. It takes slate-400 (6.96:1) and secondary steps up to slate-300
     (12.0:1), so the three levels stay distinct instead of collapsing. */
  --color-text-secondary: var(--slate-300);
  --color-text-tertiary:  var(--slate-400);
  --color-text-accent:    var(--emerald-500);
  --color-text-inverse:   var(--slate-100);

  --color-bg:              var(--slate-950);
  --color-surface:         var(--slate-900);
  --color-surface-sunken:  var(--slate-950);
  --color-surface-raised:  var(--slate-800);
  --color-surface-inverse: var(--slate-950);
  --color-accent:          var(--emerald-500);
  --color-accent-strong:   var(--emerald-400);
  --color-accent-hover:    var(--emerald-300);
  --color-accent-tint:     rgba(16,185,129,.12);
  --color-on-accent:       var(--slate-950);
  --color-line:            var(--slate-800);
  --color-line-strong:     var(--slate-700);
  --color-focus:           var(--emerald-400);

  --status-ok:   #34D399;  --status-ok-tint:   rgba(52,211,153,.15);
  --status-warn: #FBBF24;  --status-warn-tint: rgba(251,191,36,.15);
  --status-bad:  #F87171;  --status-bad-tint:  rgba(248,113,113,.15);
  --status-info: #38BDF8;  --status-info-tint: rgba(56,189,248,.15);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.40);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.30);
  --shadow-md: 0 4px 12px rgba(0,0,0,.50), 0 1px 3px rgba(0,0,0,.30);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.35);
}

@media (max-width: 899px) { :root { --header-h: 64px; --header-h-compact: 52px; } }

/* ============ BASE TYPE ============ */

body {
  font-family: var(--ff-body);
  font-size: var(--font-body);
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--ff-heading); color: var(--color-text-primary); margin-top: 0; }
h4         { font-family: var(--ff-body);    color: var(--color-text-primary); margin-top: 0; }

h1 { font-size: var(--font-h1); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: var(--font-h2); font-weight: 700; line-height: 1.20; letter-spacing: -0.02em; }
h3 { font-size: var(--font-h3); font-weight: 600; line-height: 1.30; letter-spacing: -0.01em; }
h4 { font-size: var(--font-h4); font-weight: 600; line-height: 1.35; letter-spacing: 0; }

/* Home hero only — one per site. Still an <h1> element. */
.hero__title {
  font-size: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

p {
  max-width: var(--max-width-prose);
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

/* Long-form pages: regulation, article, legal */
.prose p, .prose li { font-size: var(--font-body-lg); line-height: 1.6; }

/* Load-bearing copy is never secondary */
th, td, label { color: var(--color-text-primary); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--color-accent-strong);   /* #047857 — AA at 13px */
}

th, td { font-size: var(--font-body-sm); font-variant-numeric: tabular-nums; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); }

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

/* ---- style.css ---- */
/* style.css — reset, base, layout, components.
   Tokens live in tokens.css; fonts in fonts.css.
   Mobile-first. Breakpoints: 640px / 900px / 1200px. */

/* ============================================================
   RESET
   ============================================================ */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  /* The closed off-canvas nav sits just off the right edge (translateX(100%)).
     Without this it extends the scrollable area and the page can be swiped
     sideways on touch devices. `clip` rather than `hidden`: `hidden` would
     make this a scroll container and break the sticky header. */
  overflow-x: clip;
}

body {
  min-height: 100vh;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

/* CO2 and similar: keep the subscript from opening up its line. */
sub,
sup {
  line-height: 0;
}

input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* ============================================================
   BASE
   ============================================================ */

p a,
li a:not([class]) {
  color: var(--color-accent-strong);
  text-decoration: underline;
}

::selection {
  background: var(--emerald-100);
}

[data-theme="dark"] ::selection {
  background: var(--slate-700);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-y);
}

.section--banded {
  /* separator hairlines removed by request; sections sit on one continuous surface */
  border-top: none;
}

.section--flush-top {
  /* Follows a section that already carries --section-y bottom padding; its own
     top padding would double the gap. */
  padding-top: 0;
}

.section__header {
  margin-bottom: var(--section-head-gap);
}

/* Headings are reset to margin 0, so a subtitle sat flush against its title. */
.section__header > .section__title:not(:last-child) {
  margin-bottom: var(--space-3);
}

.section__subtitle {
  font-size: var(--font-body-lg);
  color: var(--color-text-secondary);
  max-width: 62ch;
}

/* ============================================================
   SKIP LINK
   ============================================================ */

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus-visible {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  width: auto;
  height: auto;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  overflow: visible;
  clip: auto;
  z-index: var(--z-toast);
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--focus-ring);
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: height var(--dur-base) var(--ease-out),
              border-bottom-color var(--dur-base) var(--ease-out);
}

/* Shrink-on-scroll: the bar condenses once the page has scrolled (see main.js). */
.header.is-scrolled {
  height: var(--header-h-compact);
}

.header__logo-mark,
.header__logo-text {
  transition: transform var(--dur-base) var(--ease-out);
  transform-origin: left center;
}

.header.is-scrolled .header__logo-mark {
  transform: scale(0.82);
}

.header.is-scrolled .header__logo-text {
  transform: scale(0.9);
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header__logo-mark,
  .header__logo-text {
    transition: none;
  }
}

/* Blur lives on a pseudo-element: backdrop-filter on .header itself would make
   it the containing block for the fixed off-canvas nav and break the panel. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header.is-scrolled {
  border-bottom-color: var(--color-line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 100%;
}

.header__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.15;
  /* Flex items default to min-width:auto and refuse to shrink below their
     content. Without this the logo pushes the toggles past the right edge
     on narrow screens. */
  min-width: 0;
}

.header__logo-mark {
  display: block;
  width: 35px;
  height: 34px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header__wordmark {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.header__wordmark-sub {
  white-space: nowrap;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

/* "BY ABHAY CHATTERJEE CONSULTANCY LLP" is 35 letter-spaced uppercase
   characters, around 250px. On a phone that leaves no room for the theme
   toggle and the menu button, so the menu button was pushed off-screen.
   The legal name still appears in the footer and the legal note. */
@media (max-width: 639px) {
  .header__wordmark-sub {
    display: none;
  }
}

/* ============================================================
   NAV — off-canvas panel at base, inline from 900px
   ============================================================ */

/* Off-canvas only when JS is available; without JS the nav stays inline. */
html.js .nav {
  position: fixed;
  inset-block: 0;
  right: 0;
  width: min(320px, 85vw);
  background: var(--color-surface);
  border-left: 1px solid var(--color-line);
  padding: var(--space-7) var(--space-6);
  /* Seven links plus this panel's own padding come to ~470px. A landscape phone
     is shorter than that, and without a scroller the last link is clipped with
     no way to reach it. */
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s var(--dur-base);
  z-index: var(--z-overlay);
}

html.js .nav.is-open {
  transform: none;
  visibility: visible;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s 0s;
  box-shadow: var(--shadow-lg);
}

/* No-JS fallback below 1080px: plain inline links instead of a dead toggle. */
@media (max-width: 1079px) {
  html:not(.js) .nav {
    margin-left: auto;
  }
  html:not(.js) .nav__list,
  html:not(.js) .nav__sub {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  html:not(.js) .nav__toggle {
    display: none;
  }

  html:not(.js) .header,
  html:not(.js) .header__inner {
    height: auto;
  }

  html:not(.js) .header__inner {
    flex-wrap: wrap;
    padding-block: var(--space-3);
  }
}

/* In the drawer, "Contact us" is the one action on the panel, so it reads as a
   button rather than one more plain link. The inline nav above 1080px keeps it
   as a link, and it is hidden entirely once the header button appears. */
@media (max-width: 1079px) {
  html.js .nav__item--contact {
    margin-top: var(--space-4);
  }

  html.js .nav__item--contact .nav__link {
    background: var(--color-accent-strong);
    color: var(--color-on-accent);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-5);
    font-weight: 600;
    text-align: center;
  }

  html.js .nav__item--contact .nav__link:hover {
    background: var(--color-accent-hover);
    color: var(--color-on-accent);
  }
}

/* Landscape phones: the drawer's generous vertical padding is worth more as
   room for the links. */
@media (max-height: 480px) {
  html.js .nav {
    padding-block: var(--space-5);
  }
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav__link {
  white-space: nowrap;
  font-size: var(--font-ui);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  padding: var(--space-3) 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-text-primary);
}

/* "Other" group. In the drawer and in the no-JS inline nav there is no
   dropdown: the button is hidden and the submenu links sit in the list like
   any other link. The dropdown itself is built in the 1080px block below. */
.nav__more-toggle {
  display: none;
}

.nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
  /* Below the header (and the panel inside it), above everything else. */
  z-index: calc(var(--z-header) - 1);
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

/* Below the full-nav breakpoint the theme toggle (first control after the
   off-canvas nav) takes the auto margin so both toggles sit together on the right. */
.theme-toggle {
  margin-left: auto;
}

@media (min-width: 1080px) {
  .theme-toggle {
    margin-left: var(--space-3);
  }
}

/* Theme toggle icons: light shows moon, dark shows sun */
.theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

/* Header CTA only when the full nav has room; "Contact" stays in the nav. */
@media (max-width: 1199px) {
  .header .btn--sm {
    display: none;
  }
}

.header .btn--sm {
  white-space: nowrap;
}

@media (min-width: 1080px) {
  .nav,
  html.js .nav {
    position: static;
    inset-block: auto;
    width: auto;
    margin-left: auto;
    background: transparent;
    border-left: 0;
    padding: 0;
    /* The drawer scrolls; left on here, that would clip the "Other" dropdown. */
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
    z-index: auto;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
  }

  .nav__link {
    padding: 0;
  }

  .nav__toggle {
    display: none;
  }

  .nav-backdrop {
    display: none;
  }

  /* "Other" dropdown. With JS it opens on click (nav.js sets .is-open on the
     list item). Without JS it opens on hover and on keyboard focus. */
  /* Flex, so the button sits on the same line as the links beside it instead
     of on an inline baseline of its own. */
  .nav__item--more {
    position: relative;
    display: flex;
    align-items: center;
  }

  /* Reads as a .nav__link: same type, weight, colour and hover. */
  .nav__more-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius-xs);
    white-space: nowrap;
    font-size: var(--font-ui);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--dur-fast) var(--ease-out);
  }

  .nav__more-toggle:hover,
  .nav__item--more.is-open .nav__more-toggle {
    color: var(--color-text-primary);
  }

  .nav__more-icon {
    flex-shrink: 0;
    transition: transform var(--dur-fast) var(--ease-out);
  }

  .nav__sub {
    position: absolute;
    top: calc(100% + var(--space-3));
    left: calc(-1 * (var(--space-2) + var(--space-3)));
    z-index: var(--z-dropdown);
    min-width: max-content;
    gap: var(--space-1);
    padding: var(--space-2);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-fast) var(--ease-out),
                visibility 0s var(--dur-fast);
  }

  /* Invisible bridge over the gap between the button and the panel, so the
     pointer can travel down to the links without the hover state dropping. */
  .nav__sub::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    height: var(--space-3);
  }

  .nav__item--more.is-open .nav__sub,
  html:not(.js) .nav__item--more:hover .nav__sub,
  html:not(.js) .nav__item--more:focus-within .nav__sub {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur-fast) var(--ease-out), visibility 0s 0s;
  }

  .nav__item--more.is-open .nav__more-icon,
  html:not(.js) .nav__item--more:hover .nav__more-icon,
  html:not(.js) .nav__item--more:focus-within .nav__more-icon {
    transform: rotate(180deg);
  }

  .nav__sub-link {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: color var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out);
  }

  .nav__sub-link:hover {
    background: var(--color-surface-sunken);
  }
}

/* The global reduced-motion rule shortens durations but leaves delays alone,
   and the closing panel waits on a visibility delay. */
@media (prefers-reduced-motion: reduce) {
  .nav__sub,
  .nav__more-icon {
    transition: none;
  }
}

/* Seven inline items and no room to spare until the layout widens at 1200px
   (where "Contact us" leaves the list), so the links sit a step closer. */
@media (min-width: 1080px) and (max-width: 1199px) {
  .nav__list {
    gap: var(--space-4);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--ff-body);
  font-size: var(--font-ui);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  height: 44px;
  padding-inline: var(--space-5);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-accent-strong);
  color: var(--color-on-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent-strong);
  border-color: var(--color-accent);
}

.btn--sm {
  height: 36px;
  padding-inline: var(--space-4);
}

.btn--lg {
  height: 52px;
  padding-inline: var(--space-6);
  font-size: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */

/* Bottom padding is the ordinary section value: the wash fades out, so the
   hero has no visible edge and a larger bottom made the gap to "What we do"
   the biggest on the page. */
.hero {
  padding-block: var(--section-y-lg) var(--section-y);
  background: var(--gradient-wash);
}

.hero .eyebrow {
  display: block;
  margin-bottom: var(--space-4);
}

.hero__title {
  max-width: 22ch;
  margin-bottom: var(--space-5);
}

.hero__lead {
  font-size: var(--font-body-lg);
  max-width: 62ch;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* The lead is split in two: a four-sentence hook and the rest. On desktop they
   read hook, rest, button. On a phone the button moves up to sit right after
   the hook, so it is on screen without scrolling, and the rest follows it. */
.hero__body {
  display: flex;
  flex-direction: column;
}

.hero__lead--hook {
  margin-bottom: var(--space-4);
}

/* Keeps "audit-ready." in one piece instead of breaking at the hyphen. */
.nowrap {
  white-space: nowrap;
}

@media (max-width: 639px) {
  .hero__lead--hook {
    margin-bottom: var(--space-5);
  }

  .hero__actions {
    order: 1;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__lead--more {
    order: 2;
    margin: var(--space-6) 0 0;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

.cards-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.card__icon {
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.card__icon svg {
  display: block;
}

.card__title {
  font-size: var(--font-h4);
  font-family: var(--ff-heading);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.card__body {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
}

/* The last paragraph's 1.25rem bottom margin otherwise sits inside the card
   padding and leaves the bottom edge looking heavier than the top. */
.card > :last-child {
  margin-bottom: 0;
}

.card__meta {
  font-size: var(--font-body-sm);
  color: var(--color-text-tertiary);
  margin: 0;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}

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

}

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

  /* Short lists (appearances page): two-up at most, so a handful of cards
     does not leave an empty third column. Must stay after .cards-grid. */
  .cards-grid--pair {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Two-up only (tablet): an odd card out takes the whole last row instead of
   sitting alone beside an empty cell. Its text is still capped at the prose
   measure by the base p rule. */
@media (min-width: 640px) and (max-width: 899px) {
  .cards-grid > :last-child:nth-child(odd),
  .steps > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   STEPS (approach)
   ============================================================ */

.steps {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

.step {
  position: relative;
  padding: var(--space-5) 0 0 0;
  border-top: 2px solid var(--color-line);
}

.step__num {
  display: block;
  font-family: var(--ff-data);
  font-weight: 700;
  color: var(--color-accent-strong);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
}

.step__title {
  font-size: var(--font-h4);
  font-family: var(--ff-body);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step__body {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

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

/* Five steps in two columns left step 05 alone on a laptop; three columns
   give 3 + 2 until there is room for all five in a row. */
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================================
   CTA BAND — inset surface card, not a dark band
   ============================================================ */

/* ============================================================
   FOOTER
   ============================================================ */

/* Top padding matches a section's, so the gap between the last section and
   "Write to us" is the same as the gap between any two sections. */
.footer {
  padding-block: var(--section-y) var(--space-6);
  background: var(--color-bg);
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.footer__heading {
  font-family: var(--ff-body);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

/* A second group stacked in the same column ("Other" under "Advise", so it comes last on a phone). */
.footer__links + .footer__heading {
  margin-top: var(--space-5);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.footer__links li a {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links li a:hover {
  color: var(--color-accent-strong);
}

.footer__wordmark {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.footer__wordmark-sub {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.footer__email {
  font-size: var(--font-body-sm);
  color: var(--color-accent-strong);
  text-decoration: none;
}

.footer__email:hover {
  text-decoration: underline;
}

.footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  /* Three rows now: brand note + address, the disclaimer, then links +
     copyright. A wider row gap keeps them reading as separate rows. */
  gap: var(--space-4) var(--space-5);
  justify-content: space-between;
  font-size: var(--font-body-sm);
  color: var(--color-text-tertiary);
}

.footer__bottom p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

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

/* Tablet: the brand block takes its own row so the four link groups sit as an
   even 2 x 2 instead of leaving "Advise" alone on a third row. */
@media (min-width: 640px) and (max-width: 899px) {
  .footer__col--about {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}

/* ============================================================
   THEME OVERRIDES
   ============================================================ */

/* Dark theme: slate-500 tertiary is 4.2:1 (large-text only per spec);
   small tertiary copy (card meta, footer bottom) needs slate-400 for AA. */
[data-theme="dark"] {
  --color-text-tertiary: var(--slate-400);
}

/* ============================================================
   FOUNDER
   ============================================================ */

.founder {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.founder__photo {
  width: min(220px, 60vw);
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
}

.founder__name {
  margin-bottom: var(--space-3);
}

.founder__text .btn {
  margin-top: var(--space-2);
}

/* Phone: the two buttons cannot share a line, so each fills its own row
   rather than stacking at two different widths. */
@media (max-width: 639px) {
  .founder__actions .btn {
    flex: 1 1 auto;
  }
}

@media (min-width: 640px) {
  .founder {
    grid-template-columns: auto 1fr;
    gap: var(--space-7);
  }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.footer__form {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-7);
  margin-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-line);
}

.footer__form-title {
  font-size: var(--font-h3);
  margin-bottom: var(--space-3);
}

.footer__form-lead {
  color: var(--color-text-secondary);
  max-width: 40ch;
  margin-bottom: var(--space-4);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .footer__form {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-8);
  }
}

.form {
  display: grid;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.form__field {
  display: grid;
  gap: var(--space-2);
}

.form__field label {
  font-size: var(--font-body-sm);
  font-weight: 500;
}

.form__field input,
.form__field textarea {
  min-height: 44px;
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--font-body);
  color: var(--color-text-primary);
  width: 100%;
}

.form__field textarea {
  resize: vertical;
}

.form__field input:focus-visible,
.form__field textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--color-accent);
}

.form__field input[aria-invalid="true"],
.form__field textarea[aria-invalid="true"] {
  border-color: var(--status-bad);
}

/* Honeypot: visually removed, still in the DOM for bots */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form > .btn {
  justify-self: start;
}

.form__status {
  margin: 0;
  font-size: var(--font-body-sm);
  min-height: 1.2em;
}

.form__status.is-error {
  color: var(--status-bad);
}

.form__status.is-success {
  color: var(--status-ok);
}

/* ============================================================
   EXPERIENCE LOGO STRIP (founder page)
   ============================================================ */

.logo-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Two-up from the smallest phone: one per row made six tall white boxes,
     about two screens of scrolling for six logos. */
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .logo-strip {
    gap: var(--grid-gap);
  }
}

@media (min-width: 900px) {
  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Chips stay white in both themes so the logos keep their own colours */
.logo-chip {
  background: var(--white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}

/* <picture> only picks the file; the <img> inside stays the flex/grid item. */
.logo-chip picture,
.founder picture {
  display: contents;
}

/* With display: contents, an empty <source> would otherwise become its own
   grid/flex item and push the photo into the second column. */
picture > source {
  display: none;
}

.logo-chip img {
  width: auto;
  height: auto;
  max-width: min(100%, 220px);
  max-height: 88px;
}

@media (max-width: 639px) {
  .logo-chip {
    min-height: var(--space-9);
    padding: var(--space-4);
  }

  .logo-chip img {
    max-height: var(--space-8);
  }
}

/* The SSE Business Lab asset is white artwork on black; inverting it
   gives dark-on-white to match the chip. */
.logo-chip__invert {
  filter: invert(1);
}

/* ============================================================
   SDG MAPPING (sustainability page)
   ============================================================ */

.sdg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.sdg-row {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .sdg-row {
    grid-template-columns: minmax(260px, 1fr) 2fr;
    align-items: start;
  }
}

.sdg-row__title {
  font-family: var(--ff-heading);
  font-size: var(--font-h4);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.sdg-row__note {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.sdg-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.sdg-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-body-sm);
  color: var(--color-text-primary);
}

/* Official UN SDG colours; the squares are labelled by the adjacent text */
.sdg-chip__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding-inline: 6px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  font-family: var(--ff-data);
  font-weight: 700;
  font-size: 0.8125rem;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.sdg-4  { background: #C5192D; }
.sdg-6  { background: #26BDE2; color: #1A1A17; }
.sdg-7  { background: #FCC30B; color: #1A1A17; }
.sdg-9  { background: #FD6925; color: #1A1A17; }
.sdg-12 { background: #BF8B2E; }
.sdg-13 { background: #3F7E44; }
.sdg-17 { background: #19486A; }

.sdg-method {
  margin-top: var(--space-6);
  margin-bottom: 0;
  font-size: var(--font-body-sm);
  color: var(--color-text-tertiary);
}

/* ============================================================
   BLOG / ARTICLES
   ============================================================ */

.container--prose {
  max-width: var(--container-prose);
}

.article-back {
  margin-bottom: var(--space-6);
}

.article-back a {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
}

.article-back a:hover {
  color: var(--color-accent-strong);
  text-decoration: underline;
}

article .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

.article-meta {
  font-size: var(--font-body-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-7);
}

/* The h1 has no margin of its own, so the date sat right against it. */
h1 + .article-meta {
  margin-top: var(--space-3);
}

/* Key takeaways: a bold line and 3 to 4 short bullets between the date line
   and the article body. Plain text, no box, same size as the article. */
.article-meta:has(+ .takeaways) {
  margin-bottom: var(--space-5);
}

/* A thin rule under the bullets marks where the article itself begins. */
.takeaways {
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid color-mix(in srgb, var(--color-text-primary) 35%, transparent);
}

.takeaways__title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-body-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.takeaways ul {
  margin: 0;
  padding-left: 1.25em;
}

.takeaways li {
  margin-bottom: var(--space-2);
  font-size: var(--font-body-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.takeaways li:last-child {
  margin-bottom: 0;
}

/* Article headings run one step smaller than section headings: h2 at
   36px in a 760px column crowds the text that follows it. */
.prose h2 {
  font-size: var(--font-h3);
  margin-top: var(--prose-h2-gap);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: var(--font-h4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25em;
  margin-bottom: 1.25rem;
}

.prose li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.article-disclaimer,
.prose .article-disclaimer {
  font-size: var(--font-body-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.article-cta {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.article-cta p {
  margin: 0;
  width: 100%;
}

:is(.card--article, .card--service) .card__title--link a {
  color: var(--color-text-primary);
  text-decoration: none;
}

:is(.card--article, .card--service) .card__title--link a:hover {
  color: var(--color-accent-strong);
}

/* Whole article card (and each homepage service card) is clickable: the title link is stretched over the card.
   Hovering anywhere on the card is hovering the link, so the title turns green. */
:is(.card--article, .card--service) {
  position: relative;
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

:is(.card--article, .card--service) .card__title--link a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

:is(.card--article, .card--service):hover,
:is(.card--article, .card--service):focus-within {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

:is(.card--article, .card--service) .card__title--link a:focus-visible {
  outline: none;
}

:is(.card--article, .card--service):focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .card--article {
    transition: none;
  }
}

/* Cards in a row share one height; the date (and the "watch it" line) is
   pushed to the bottom so it lines up across the row instead of floating
   at a different height in each card. */
.card--article {
  display: flex;
  flex-direction: column;
}

.card--article .card__body {
  margin-bottom: 0;
}

.card--article .card__meta {
  border-top: none;
  padding-top: var(--space-4);
  margin-top: auto;
}

/* Visible "watch it / read it" line on a card whose title link is already
   stretched across the whole card. Styled text, not a second <a>: another
   anchor would sit under the stretched overlay and repeat the same URL for
   screen readers. Clicking it still follows the title link. */
.card__action {
  margin: var(--space-3) 0 0;
  font-size: var(--font-body-sm);
  font-weight: 600;
  color: var(--color-accent-strong);
}

.card--article:hover .card__action,
.card--article:focus-within .card__action {
  text-decoration: underline;
}

.section__more {
  margin-top: var(--space-6);
}

/* ============================================================
   SERVICE CARDS — brochure layout: number, title, tag, summary,
   labelled "what you get" lists
   ============================================================ */

.card__num {
  font-family: var(--ff-data);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-strong);
  margin-bottom: var(--space-2);
}

.card__tag,
.card__label {
  font-family: var(--ff-body);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.card__tag {
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
}

.card__label {
  color: var(--color-accent-strong);
  margin: var(--space-4) 0 var(--space-2);
}

.card__list {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: var(--space-2);
}

.card__list li {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
}

.card__list li::marker {
  color: var(--color-accent);
}

.card__list strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.card__list--steps {
  padding-left: 1.4em;
}

.card__list--steps li::marker {
  font-family: var(--ff-data);
  font-weight: 700;
}

.card__meta a {
  color: var(--color-accent-strong);
}

/* ============================================================
   NOTE BAND — "How work is scoped and priced"
   ============================================================ */

.note-band {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.note-band__title {
  margin-bottom: var(--space-4);
}

.note-band__list {
  max-width: 72ch;
}

.note-band__list li {
  font-size: var(--font-body);
}

/* ============================================================
   CTA BAND — one-line meta under the buttons
   ============================================================ */

/* ============================================================
   FOUNDER — CV rows, actions, text logo chip
   ============================================================ */

.founder__lead {
  font-size: var(--font-body-lg);
  color: var(--color-text-primary);
  font-weight: 500;
}

.founder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.founder__text .founder__actions .btn {
  margin-top: 0;
}

.cv {
  display: grid;
  gap: 0;
  margin: var(--space-7) 0 0;
}

.cv__row {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-line);
}

/* The last row has no rule under it, so its bottom padding only added to the
   section gap and made the space above "Experience from" the largest on the
   site. */
.cv__row:last-child {
  padding-bottom: 0;
}

.cv__label {
  font-family: var(--ff-body);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--color-accent-strong);
  margin: 0;
}

.cv__body {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.cv__body p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-body);
}

.cv__body strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.cv__source {
  font-family: var(--ff-data);
  font-size: var(--font-body-sm);
  color: var(--color-text-tertiary);
}

a.cv__source {
  color: var(--color-accent-strong);
}

@media (min-width: 640px) {
  .cv__row {
    grid-template-columns: 11rem 1fr;
    gap: var(--space-6);
  }
}

.logo-strip__note {
  margin: var(--space-4) 0 0;
  font-size: var(--font-body-sm);
  color: var(--color-text-tertiary);
}

/* ============================================================
   FOOTER — contact links and address
   ============================================================ */

.section__header .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

/* ============================================================
   ICON LINKS (LinkedIn)
   ============================================================ */

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-link .icon,
.btn .icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

.btn .icon {
  margin-right: var(--space-2);
  vertical-align: -0.15em;
}

.footer__contact {
  margin-top: var(--space-3);
}

.footer__contact li {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
}

.footer__contact a {
  overflow-wrap: anywhere;
}

.footer__address {
  font-size: var(--font-body-sm);
  color: var(--color-text-tertiary);
  margin: 0 0 var(--space-2);
}

.footer__legal {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-2);
}

.section__header--tight {
  margin-bottom: var(--space-6);
}

.svc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.svc-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.svc-tile:hover,
.svc-tile:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.svc-tile__num {
  font-family: var(--ff-data);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-strong);
}

.svc-tile__group {
  font-family: var(--ff-body);
  font-size: var(--font-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--color-text-tertiary);
}

.svc-tile__title {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--font-h4);
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-top: var(--space-1);
}

.svc-tile__sum {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
}

.svc-tile::after {
  content: "See details";
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--font-body-sm);
  font-weight: 500;
  color: var(--color-accent-strong);
}

@media (min-width: 640px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

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

/* Twelve services fill 2, 3 and 4 columns exactly, so every tile is one cell. */
@media (min-width: 1200px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Overview tiles: no motion when reduced */
@media (prefers-reduced-motion: reduce) {
  .svc-tile {
    transition: none;
  }
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */

/* The scoping band after a service page shares its column, so the band's
   left edge lines up with the text above instead of jumping out to the
   full container. */
.svc-page .container,
.svc-page + .section > .container {
  max-width: var(--container-narrow);
}

.svc-page__head {
  margin-bottom: var(--space-5);
}

.svc-page__head .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

.svc-page__head .card__tag {
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

.svc-page__head .hero__lead {
  margin-bottom: 0;
}

.svc-page__body {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.svc-page__body .card__label:first-child,
.svc__cols > div > .card__label:first-child {
  margin-top: 0;
}

/* Rhythm inside a service page: 32px above each label, 12px under it, and
   the same 20px after a list as after a paragraph. Before, a list ran
   straight into the paragraph after it and labels sat 16px under a list
   but 36px under a paragraph. */
.svc-page__body .card__label {
  font-size: var(--font-body-sm);
  margin: var(--space-6) 0 var(--space-3);
}

.svc-page__body .card__list li,
.svc-page__body .card__body {
  font-size: var(--font-body);
}

/* Lists keep the same measure as the paragraphs around them; at full
   column width they ran to about 120 characters a line. */
.svc-page__body .card__list {
  gap: var(--space-3);
  max-width: var(--max-width-prose);
  margin-bottom: var(--space-5);
}

.svc-page__body .card__list a {
  color: var(--color-accent-strong);
}

.svc-faq {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.svc-faq .card__label {
  margin-top: 0;
}

/* A short client quote on a service page: a soft accent card with a large
   opening quote mark, the quote in the heading font, the caption under it. */
.svc-quote {
  margin: 0 0 var(--space-5);
  padding: var(--space-5) var(--space-5) var(--space-4);
  max-width: var(--max-width-prose);
  background: var(--color-accent-tint);
  border-radius: var(--radius-lg);
}

.svc-quote blockquote {
  margin: 0;
}

.svc-quote blockquote::before {
  content: "“";
  content: "“" / "";
  display: block;
  font-family: var(--ff-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  height: 1.75rem;
  margin-bottom: var(--space-2);
  color: var(--color-accent);
}

.svc-quote blockquote p {
  margin: 0 0 var(--space-3);
  font-family: var(--ff-heading);
  font-size: var(--font-h4);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
}

.svc-quote figcaption {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
}

.svc-faq__q {
  font-size: var(--font-body);
  font-weight: 600;
  margin: var(--space-5) 0 var(--space-2);
}

.svc__cols {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .svc__cols {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-8);
  }
}

.svc-page__related {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.svc-page__related-title {
  font-size: var(--font-h3);
  margin-bottom: var(--space-4);
}

.svc-grid--related {
  gap: var(--space-3);
}

.svc-page__related-all {
  margin: var(--space-4) 0 0;
  font-size: var(--font-body-sm);
}

.svc-page__related-all a {
  color: var(--color-accent-strong);
}

@media (min-width: 640px) {
  .svc-grid--related {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .svc-grid--related {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* "Contact" in the nav duplicates the header CTA once the CTA is visible (≥1200px). */
@media (min-width: 1200px) {
  .nav__item--contact {
    display: none;
  }
}

/* ============================================================
   LEGAL LINKS — footer bottom row
   ============================================================ */

.footer__legal-links {
  /* Shares the last row with the copyright rather than claiming one of its
     own, so the bottom block does not trail off into empty space. */
  flex: 0 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.footer__legal-links li[hidden] {
  display: none;
}

/* The disclaimer spans the row; base p caps at 68ch, which left the right
   half of the footer empty at desktop widths. */
.footer__disclaimer {
  flex: 1 0 100%;
  max-width: var(--max-width-wide);
}

/* Pushed to the end of the links row; falls back to its own line when narrow. */
.footer__copyright {
  margin-left: auto;
}

.footer__legal-links a,
.footer__consent-btn {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__legal-links a:hover,
.footer__consent-btn:hover {
  color: var(--color-accent-strong);
  text-decoration: underline;
}

/* The consent re-opener is a button because it changes state, not location. */
.footer__consent-btn {
  font-family: inherit;
  line-height: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ============================================================
   CONSENT BANNER — markup injected by js/consent.js
   ============================================================ */

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-toast);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line-strong);
  box-shadow: var(--shadow-lg);
  padding-block: var(--space-4);
}

/* Author rules beat the UA rule for [hidden], so restate it. */
.consent[hidden] {
  display: none;
}

.consent:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-lg);
}

.consent__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.consent__copy {
  flex: 1 1 32ch;
}

.consent__title {
  font-family: var(--ff-heading);
  font-size: var(--font-h4);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  max-width: none;
  margin: 0 0 var(--space-2);
}

.consent__text {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  max-width: 80ch;
  margin: 0;
}

.consent__text a {
  color: var(--color-accent-strong);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Phones: the banner was taking about half a 375x812 screen. The title is
   hidden visually but stays in the accessibility tree, because it is the
   dialog's aria-labelledby target. Tighter padding and line height, and the
   two buttons share one row. */
@media (max-width: 599px) {
  .consent {
    padding-block: var(--space-3);
  }

  .consent__inner {
    gap: var(--space-3);
  }

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

  .consent__text {
    font-size: var(--font-body-sm);
    line-height: 1.4;
  }

  .consent__actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: var(--space-2);
  }

  .consent__actions .btn {
    flex: 1 1 0;
  }
}

/* ============================================================
   INLINE CODE — storage keys and cookie names on the legal pages
   ============================================================ */

.prose code {
  font-family: var(--ff-data);
  font-size: 0.9em;
  color: var(--color-text-primary);
  background: var(--color-surface-sunken);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xs);
  padding: 0.1em 0.35em;
}

/* ============================================================
   TRUST STRIP: partials/trust-strip.html (home, service pages)
   Past roles and study, shown small. Not a client wall.
   ============================================================ */

.trust-strip {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.trust-strip__title {
  font-size: var(--font-h4);
  margin-bottom: var(--space-1);
}

.trust-strip__lead {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.trust-strip__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

/* White in both themes so each logo keeps its own colours, as on /founder/. */
.trust-strip__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.trust-strip__chip picture {
  display: contents;
}

.trust-strip__chip img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--space-7);
}

.trust-strip__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}

.trust-strip__foot p {
  margin: 0;
  font-size: var(--font-body-sm);
}

.trust-strip__label {
  font-weight: 600;
  color: var(--color-text-primary);
}

.trust-strip__more a {
  font-weight: 600;
}

@media (min-width: 640px) {
  .trust-strip__logos {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* The strip stays stacked at every width. Side by side, the intro column
   wrapped its title onto a second line ("...comes / from") and squeezed six
   logos into two thirds of the row, where the square ones were too small to
   read. Stacked, each chip gets a sixth of the full width. */
@media (min-width: 900px) {
  .trust-strip {
    padding: var(--space-5) var(--space-6);
  }
}

.svc-page .trust-strip {
  margin-top: var(--space-8);
}

/* ============================================================
   DATA TABLES: comparison tables in articles
   <div class="table-wrap"><table class="data-table">…</table></div>
   ============================================================ */

/* Scroll shadows: the two "local" layers are surface-coloured covers that
   travel with the content, the two "scroll" layers are shades pinned to the
   edges. A shade shows only while there is more table hidden on that side,
   so a phone reader can see the table scrolls sideways. */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-5) 0 var(--space-6);
  background:
    linear-gradient(to right, var(--color-surface) 30%, transparent) left center / var(--space-7) 100% no-repeat local,
    linear-gradient(to left, var(--color-surface) 30%, transparent) right center / var(--space-7) 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--scroll-shadow), transparent) left center / var(--space-3) 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--scroll-shadow), transparent) right center / var(--space-3) 100% no-repeat scroll,
    var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: var(--font-body-sm);
  line-height: 1.45;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-body-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-line);
}

.data-table th,
.data-table td {
  padding: var(--space-2) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.data-table thead th {
  background: var(--color-surface-sunken);
  font-weight: 600;
  border-bottom-color: var(--color-line-strong);
}

.data-table tbody th {
  font-weight: 600;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Phones: a 3- or 4-column table squeezed into 32rem gave columns of about
   110px and five-line cells. Each column now keeps a readable width and the
   row labels stay pinned on the left while the rest scrolls under them. */
@media (max-width: 639px) {
  .data-table {
    min-width: 0;
  }

  .data-table th,
  .data-table td {
    min-width: var(--table-cell-min);
  }

  .data-table tbody th,
  .data-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 0;
    width: var(--table-cell-min);
    box-shadow: inset -1px 0 0 var(--color-line);
  }

  .data-table tbody th {
    background: var(--color-surface);
  }
}

/* ============================================================
   TEAM PAGE: one card per person, linking to a full profile
   ============================================================ */

.team-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--grid-gap);
  /* One card fills the row; two or more sit side by side once each has room. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 34rem), 1fr));
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.team-card picture {
  display: contents;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
}

.team-card__text {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.team-card__name {
  font-size: var(--font-h3);
  margin: 0;
}

.team-card__bio {
  color: var(--color-text-secondary);
  max-width: var(--max-width-prose);
  margin: 0;
}

.team-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

@media (min-width: 640px) {
  .team-card {
    grid-template-columns: auto 1fr;
    padding: var(--space-6);
  }
}


/* Initials in place of a photo until one is supplied. */
.team-card__initials {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-accent-tint);
  color: var(--color-accent-strong);
  font-family: var(--ff-heading);
  font-size: var(--font-h3);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-card__initials--lg {
  width: min(220px, 60vw);
  height: min(220px, 60vw);
  border-radius: var(--radius-lg);
  font-size: var(--font-h1);
}
