/* =========================================================
   Programme Partners — design system
   Direction: sober, modern, technical. Confident UK B2B tone.
   Fonts: Inter Tight (body) + Fraunces (display) via Google Fonts.
   ========================================================= */

:root {
  /* Type scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.15vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.2vw,  0.9375rem);
  --text-base: clamp(1rem,     0.95rem + 0.2vw,  1.0625rem);
  --text-md:   clamp(1.0625rem,1rem    + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.5vw,  1.375rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.2vw,  2.125rem);
  --text-2xl:  clamp(2rem,     1.4rem  + 2.4vw,  3.25rem);
  --text-3xl:  clamp(2.5rem,   1.6rem  + 3.6vw,  4.5rem);

  /* Spacing (4px) */
  --space-1: .25rem;  --space-2: .5rem;  --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem;   --space-10: 2.5rem;
  --space-12: 3rem;   --space-16: 4rem;  --space-20: 5rem;  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --content: 1180px;
  --content-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 7.5rem);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 220ms var(--ease);

  /* Fonts */
  --font-body: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ----- Light theme (default) ----- */
:root,
[data-theme="light"] {
  --bg:            #FBFBFA;
  --surface:       #FFFFFF;
  --surface-2:     #F4F3EF;
  --surface-3:     #EAE7E0;
  --border:        #E2DFD8;
  --border-strong: #C9C5BC;

  --text:          #14161A;     /* near-black ink */
  --text-muted:    #4F5560;
  --text-faint:    #8B909A;
  --text-inverse:  #FBFBFA;

  --primary:       #1B2A4E;     /* deep ink-navy */
  --primary-hover: #0E1A36;
  --accent:        #C46A36;     /* warm umber accent (used sparingly) */
  --accent-soft:   #F1E3D2;

  --success:       #2E6F40;
  --error:         #B33A3A;

  --shadow-sm: 0 1px 2px rgba(20,22,26,.06), 0 1px 1px rgba(20,22,26,.04);
  --shadow-md: 0 8px 24px rgba(20,22,26,.08), 0 2px 6px rgba(20,22,26,.05);
  --shadow-lg: 0 24px 48px rgba(20,22,26,.10), 0 8px 16px rgba(20,22,26,.06);

  --grid-line: rgba(20,22,26,.06);
}

/* ----- Dark theme ----- */
[data-theme="dark"] {
  --bg:            #0E1014;
  --surface:       #14171C;
  --surface-2:     #181C22;
  --surface-3:     #1E232B;
  --border:        #262C36;
  --border-strong: #38404D;

  --text:          #E9EAEC;
  --text-muted:    #A6ADBA;
  --text-faint:    #6C7382;
  --text-inverse:  #0E1014;

  --primary:       #B8C6E6;     /* cool light ink for buttons in dark */
  --primary-hover: #DCE4F5;
  --accent:        #E08A52;
  --accent-soft:   #2A1F18;

  --success:       #6EBA82;
  --error:         #E08585;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 48px rgba(0,0,0,.55);

  --grid-line: rgba(255,255,255,.05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:#0E1014; --surface:#14171C; --surface-2:#181C22; --surface-3:#1E232B;
    --border:#262C36; --border-strong:#38404D;
    --text:#E9EAEC; --text-muted:#A6ADBA; --text-faint:#6C7382; --text-inverse:#0E1014;
    --primary:#B8C6E6; --primary-hover:#DCE4F5;
    --accent:#E08A52; --accent-soft:#2A1F18;
    --success:#6EBA82; --error:#E08585;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,.45);
    --shadow-lg: 0 24px 48px rgba(0,0,0,.55);
    --grid-line: rgba(255,255,255,.05);
  }
}

/* ============== Reset / base ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  hanging-punctuation: first last;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--accent); color: #fff; }

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

/* ============== Typography ============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--text-3xl); letter-spacing: -0.03em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); letter-spacing: -0.015em; }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; max-width: 68ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--border-strong);
}

.lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 56ch;
}

/* Display fragment styling — italic serif accent */
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.025em;
}

/* ============== Layout primitives ============== */
.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--content-narrow); }

section { padding-block: var(--section-pad); }
.section-divider {
  border-top: 1px solid var(--border);
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  padding-block: 1.125rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .875rem;
  font-weight: 700; letter-spacing: -0.012em;
  color: var(--text);
  font-size: clamp(1rem, .95rem + .18vw, 1.1rem);
}
.brand .brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
}
.brand .brand-mark svg,
.brand .brand-mark img {
  width: 34px;
  height: 34px;
}
.brand .brand-name { display: inline-flex; align-items: baseline; gap: 0.35ch; }
.brand .brand-name .pp { color: var(--text); }
.brand .brand-name .ptn { color: var(--text-muted); font-weight: 500; }

.nav-links {
  display: flex; align-items: center; gap: clamp(1.35rem, 2.4vw, 2rem);
  font-size: clamp(.94rem, .9rem + .12vw, 1rem);
  font-weight: 500;
}
.nav-links a {
  color: var(--text-muted);
  transition: color var(--t);
  position: relative;
  padding-block: var(--space-2);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.25rem;
  height: 2px;
  background: var(--accent);
}
.nav-actions { display: inline-flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }

/* Mobile nav */
.menu-toggle { display: none; align-items: center; gap: var(--space-2); }
.nav-cta-desktop { display: inline-flex; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none !important; }
  .menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px;
    border:1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface);}
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--gutter) var(--space-6);
    gap: var(--space-3);
    z-index: 60;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open li { width: 100%; }
  .nav-links.is-open a { display: block; padding: var(--space-3) 0; font-size: var(--text-base); border-bottom: 1px solid var(--border); width: 100%; color: var(--text); }
  .nav-links.is-open li:last-child a { border-bottom: 0; }
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); background: var(--surface-2); }
.btn-ghost { color: var(--text-muted); padding-inline: 0; }
.btn-ghost:hover { color: var(--text); }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.25rem, 0.9rem + 4.8vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-block: var(--space-6) var(--space-8);
  max-width: 14ch;
}
@media (max-width: 900px) {
  .hero h1 { max-width: none; }
}
.hero h1 .display-italic { display: inline-block; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  font-size: var(--text-sm); color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
}
@media (max-width: 640px) {
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero-meta div strong { color: var(--text); display:block; font-weight: 600; font-size: var(--text-base); }
.hero-meta div small { display:block; font-size: var(--text-xs); color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }

.hero-side {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.hero-side h4 { margin-bottom: var(--space-4); }
.hero-stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.hero-stat {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.25rem + 2vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
}
.hero-stat .num .unit { font-size: 0.5em; color: var(--text-muted); margin-left: 2px; }
.hero-stat .lbl { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); line-height: 1.4; }

/* ============== Multi-page additions ============== */
.home-splash,
.page-splash {
  position: relative;
  min-height: clamp(620px, 82vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background: #0E1014;
}
.page-splash {
  min-height: clamp(520px, 70vh, 740px);
}
.home-splash::before,
.page-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,16,20,.92) 0%, rgba(14,16,20,.78) 32%, rgba(14,16,20,.32) 68%, rgba(14,16,20,.2) 100%),
    linear-gradient(180deg, rgba(14,16,20,.2) 0%, rgba(14,16,20,.62) 100%);
}
.home-splash::after,
.page-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 72%);
  pointer-events: none;
}
.splash-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.06);
}
.splash-inner {
  position: relative;
  width: 100%;
}
.splash-content {
  max-width: 760px;
  color: #fff;
}
.splash-content h1 {
  color: #fff;
  max-width: 12.6ch;
  margin-block: var(--space-5) var(--space-6);
  font-size: clamp(3rem, 1.2rem + 5.6vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.page-splash .splash-content h1 {
  max-width: 13.5ch;
  font-size: clamp(2.75rem, 1.25rem + 4.8vw, 5.7rem);
}
.splash-content .lede {
  color: rgba(255,255,255,.84);
  max-width: 56ch;
}
.splash-content .eyebrow {
  color: rgba(255,255,255,.74);
}
.splash-content .eyebrow::before {
  background: rgba(255,255,255,.38);
}
.splash-content .display-italic {
  color: #F1A36A;
}
.splash-content .hero-meta {
  max-width: 720px;
  border-top-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.74);
}
.splash-content .hero-meta div strong {
  color: #fff;
}
.splash-content .hero-meta div small {
  color: rgba(255,255,255,.58);
}
.splash-content .btn-primary {
  background: #fff;
  color: #121722;
}
.splash-content .btn-primary:hover {
  background: #F1E3D2;
}
.splash-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.36);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.splash-secondary:hover {
  color: #fff;
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.14);
}
.services-splash .splash-image {
  object-position: center;
}
.tech-splash .splash-image,
.approach-splash .splash-image,
.about-splash .splash-image,
.contact-splash .splash-image {
  object-position: center;
}
.wide-why {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.wide-why-head {
  display: grid;
  gap: var(--space-5);
  max-width: 1100px;
}
.wide-why-head h2 {
  max-width: 22ch;
}
.wide-why-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.wide-why-copy p {
  max-width: none;
}
.wide-why-copy .text-link {
  white-space: nowrap;
}
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero.compact { padding-block: clamp(4rem, 8vw, 6rem); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 70%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 {
  max-width: 14ch;
  margin-block: var(--space-5) var(--space-5);
  font-size: clamp(2.35rem, 1.1rem + 4.2vw, 4.15rem);
}
.page-hero.compact h1 { max-width: 16ch; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-6); }
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.copy-stack { display: grid; gap: var(--space-5); color: var(--text-muted); }
.text-link { color: var(--accent); font-weight: 700; }
.text-link:hover { color: var(--text); }
.visual-panel {
  border: 1px solid var(--border);
  background: radial-gradient(circle at 20% 10%, var(--accent-soft), transparent 34%), var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
}
.visual-network svg text { font-family: var(--font-body); }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, transparent), var(--surface-2)),
    var(--surface);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 16, 20, 0) 42%, rgba(14, 16, 20, .68)),
    radial-gradient(circle at 15% 15%, rgba(196, 106, 54, .22), transparent 34%);
  pointer-events: none;
  z-index: 1;
}
.media-frame figcaption {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 2;
  max-width: 42ch;
  color: #fff;
  font-size: var(--text-sm);
  line-height: 1.45;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .32);
}
.media-frame:hover img,
.lift-card:hover .media-frame img,
.lift-card:focus-within .media-frame img {
  transform: scale(1.055);
  filter: saturate(1.05) contrast(1.04);
}
.hero-media {
  min-height: clamp(22rem, 38vw, 31rem);
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.hero-media img {
  object-position: center;
}
.portrait-safe img {
  object-position: center 42%;
}
.media-split {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.media-split.reverse > .media-frame {
  order: 2;
}
.media-split > div:not(.media-frame) {
  display: grid;
  gap: var(--space-5);
}
.image-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    radial-gradient(circle at 95% 5%, color-mix(in srgb, var(--accent-soft) 65%, transparent), transparent 34%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
}
.image-band .media-frame {
  box-shadow: none;
}
.image-band .copy-stack {
  padding: clamp(1rem, 2vw, 2rem);
}
.about-intro {
  max-width: 980px;
}
.about-intro p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 68ch;
}
.centered-contact {
  display: grid;
  place-items: center;
}
.centered-contact .contact-panel {
  width: min(100%, 620px);
}
.feature-grid,
.card-grid,
.stack-grid,
.proof-grid {
  display: grid;
  gap: var(--space-5);
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card,
.service-card,
.stack-card,
.proof-card,
.timeline-step,
.contact-panel {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.lift-card {
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t),
    background var(--t);
}
.lift-card:hover,
.lift-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
}
.lift-card:hover .svg-icon,
.lift-card:focus-within .svg-icon {
  transform: translateY(-2px) rotate(-2deg);
  color: var(--accent);
}
.svg-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: transform var(--t), color var(--t);
}
.svg-icon svg { width: 22px; height: 22px; }
.service-card h3,
.feature-card h3,
.stack-card h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; }
.service-card p,
.feature-card p,
.timeline-step p,
.contact-panel p { color: var(--text-muted); }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: .45rem .7rem;
}
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-2));
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 500;
  padding: .34rem .62rem .34rem .36rem;
  transition: transform var(--t), border-color var(--t), background var(--t), color var(--t);
}
.tech-symbol {
  min-width: 1.78rem;
  height: 1.78rem;
  padding-inline: .28rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.stack-card:hover .tech-pill,
.stack-card:focus-within .tech-pill {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--surface);
}
.tech-pill:hover {
  transform: translateY(-2px);
  color: var(--text);
}
.stack-card > .svg-icon {
  margin-bottom: var(--space-1);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.timeline-step > span {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: var(--text-xl);
  line-height: 1;
}
.proof-card strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
}
.proof-card span { color: var(--text-muted); }
.contact-panel { padding: var(--space-8); }

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .media-split,
  .image-band { grid-template-columns: 1fr; }
  .media-split.reverse > .media-frame { order: 0; }
  .wide-why-copy { grid-template-columns: 1fr; }
  .feature-grid,
  .services-grid,
  .proof-grid,
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-splash,
  .page-splash {
    min-height: 680px;
    padding-block: var(--space-16) var(--space-12);
  }
  .page-splash {
    min-height: 560px;
  }
  .home-splash::before,
  .page-splash::before {
    background:
      linear-gradient(180deg, rgba(14,16,20,.9) 0%, rgba(14,16,20,.72) 60%, rgba(14,16,20,.84) 100%);
  }
  .splash-content h1 { max-width: none; }
  .feature-grid,
  .services-grid,
  .stack-grid,
  .proof-grid,
  .timeline { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
}

/* Trust marquee / chips */
.trust-row {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
  align-items: center;
}
.trust-label {
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--surface);
}
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

/* ============== Section heads ============== */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }
.section-head h2 { letter-spacing: -0.025em; }

/* ============== Services grid ============== */
.services {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: var(--space-4);
  min-height: 220px;
  position: relative;
  transition: background var(--t);
}
.service-card:hover { background: var(--surface-2); }
.service-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.service-card h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.service-card p { font-size: var(--text-sm); color: var(--text-muted); }
.service-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--space-3); }
.service-card li {
  font-size: 12px;
  padding: 4px 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

/* ============== Approach (steps) ============== */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
@media (max-width: 900px) { .approach-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .approach-steps { grid-template-columns: 1fr; } }
.step {
  border-top: 1px solid var(--border-strong);
  padding-top: var(--space-5);
  position: relative;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  display: block;
}
.step h4 { margin-bottom: var(--space-2); font-size: var(--text-md); }
.step p { font-size: var(--text-sm); color: var(--text-muted); }

/* Talent model timeline-style */
.timeline {
  margin-top: clamp(3rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; } }
.timeline-cell {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-right: 1px solid var(--border);
}
.timeline-cell:last-child { border-right: none; }
@media (max-width: 820px) {
  .timeline-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .timeline-cell:last-child { border-bottom: none; }
}
.timeline-cell .num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.025em;
  line-height: 1;
}
.timeline-cell .num .unit { font-size: 0.45em; color: var(--text-muted); margin-left: 4px; font-family: var(--font-body); }
.timeline-cell .lbl {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-faint); margin-top: var(--space-3);
}
.timeline-cell p { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); }

/* ============== Why — feature grid (asymmetric) ============== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--t), transform var(--t);
}
.why-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.why-card .ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 8px;
}
.why-card h4 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.why-card p { font-size: var(--text-sm); color: var(--text-muted); }

.why-card.span-2 { grid-column: span 2; }
.why-card.span-3 { grid-column: span 3; }
.why-card.span-4 { grid-column: span 4; }
.why-card.span-6 { grid-column: span 6; }
@media (max-width: 900px) {
  .why-card.span-2, .why-card.span-3, .why-card.span-4, .why-card.span-6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .why-card.span-2, .why-card.span-3, .why-card.span-4, .why-card.span-6 { grid-column: span 1; }
}

/* Pull quote / feature card */
.pullquote {
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, var(--surface), var(--surface-2));
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
}
.pullquote cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 900px) { .pullquote { grid-column: span 2; } }
@media (max-width: 560px) { .pullquote { grid-column: span 1; } }

/* ============== About ============== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.about-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.about-list li dt { color: var(--text-faint); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.about-list li dd { color: var(--text); }

/* ============== Contact ============== */
.contact {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card h2 { font-size: var(--text-2xl); }
.contact-card .email-cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--accent);
  letter-spacing: -0.01em;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  padding-bottom: 4px;
  transition: color var(--t), border-color var(--t);
  word-break: break-all;
}
.contact-card .email-cta:hover { color: var(--text); border-bottom-color: var(--text); }
.contact-aside {
  border-left: 1px solid var(--border);
  padding-left: clamp(1.5rem, 3vw, 3rem);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
@media (max-width: 820px) { .contact-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: var(--space-6); } }
.contact-aside dl { display: grid; grid-template-columns: 90px 1fr; row-gap: var(--space-3); column-gap: var(--space-4); }
.contact-aside dt { color: var(--text-faint); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.contact-aside dd a { color: var(--text); }
.contact-aside dd a:hover { color: var(--accent); }

/* ============== Footer ============== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-8) var(--space-5);
  font-size: .875rem;
  color: var(--text-muted);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, .8fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { max-width: 36ch; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col p {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.footer-col h5 {
  font-size: .72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: .84rem;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  font-size: .75rem;
  color: var(--text-faint);
}

/* ============== Animations ============== */
/* Default: fully visible (no-JS friendly, screenshot/SEO friendly).
   Only when <html> has .js-reveal do we hide for the entrance animation. */
.reveal { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js-reveal .reveal { opacity: 0; transform: translateY(16px); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ============== Utility ============== */
.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;
}
.no-wrap { white-space: nowrap; }
